Data processing method, device and readable storage medium
By implementing the service quality interface on the terminal device, the problem that the application client cannot obtain and perceive the service quality parameters is solved, and the acquisition and notification of service quality parameters is realized, ensuring that the application client can make adaptive adjustments, and improving 5G Service quality of service in the network.
Patent Information
- Application Number
- CN202111061072.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-10
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-09-10
AI Technical Summary
In 5G networks, application clients on terminal devices cannot directly obtain and perceive service quality parameters and their changes, resulting in no adaptive adjustments, affecting the service quality of service flow.
By implementing a quality of service interface on the terminal device, the application client is allowed to obtain and notify service quality parameters, including target quality of service parameters and update service quality parameters, ensuring that the application client can perceive and respond to service quality changes.
The application client on the terminal device has realized the ability to obtain service quality parameters, allowing them to make adaptive adjustments, and improving the service quality of service flow and the rational utilization of network resources.
Smart Images

Figure CN113784396B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data processing method, device and readable storage medium. Background Art
[0002] With the popularization and rapid development of smart terminals, in order to meet users' requirements for different service qualities for different applications, the network needs to be able to allocate and schedule resources according to business needs and provide different service qualities for different business flows. Therefore, QoS (Quality of Service) came into being. QoS refers to a network's ability to use various basic technologies to provide better service capabilities for specified network communications. QoS is a network service quality assurance mechanism that can be used to ensure network delay, bit error rate, and data transmission rate, thereby making more reasonable use of network resources.
[0003] At present, in the fifth generation mobile communication technology (5th Generation Mobile Communication Technology, referred to as 5G), in order to ensure the end-to-end service quality of the service, the 5G QoS model is proposed. The 5G QoS model is based on QoS flow (QoS Flow), which can support QoS flows with guaranteed flow bit rate (Guaranteed Bit Rate QoS Flow, referred to as GBR QoS Flow) and QoS flows that do not need to guarantee the flow bit rate (Non-GBR QoS Flow). In the prior art, the Session Management Function (SMF) in the 5G core network generates QoS rules according to the Policy Control and Charging (PCC) rules sent by the Policy Control Function (PCF). When the Protocol Data Unit Session (PDU Session) is established, the SMF sends the QoS rules to the User Equipment (UE) and also sends the flow-level QoS parameters to the UE. For example, for a GBR QoS flow, it may include parameters such as the Guaranteed Flow Bit Rate (GFBR), the Maximum Flow Bit Rate (MFBR) or the optional Averaging Window for the uplink (UL) and downlink (DL). After the UE receives the QoS rules and QoS parameters, for the uplink service flow, the QoS rules may be applied to map the service data packets provided by the application client on the UE to the corresponding QoS flow. In addition, the 5G system also supports a mechanism for alternative QoS configuration, that is, SMF can provide an alternative QoS profile (Alternative QoS Profile) to the Radio Access Network (RAN). When the RAN side cannot meet the existing QoS parameters, it will detect whether the QoS parameters defined in a certain alternative QoS profile (such as guaranteed stream bit rate, packet error rate, packet delay budget, etc.) can be met. If it can be met, RAN will send relevant notifications to SMF, and SMF will further update the corresponding QoS parameters and send them to UE. It can be seen that the existing technical solutions only involve the adjustment of QoS parameters on the network side, but for the application client on the UE, the application client is completely unaware of the QoS parameters and their changes. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, a device, and a readable storage medium, which can expand the ability of an application client to obtain service quality parameters in a service quality mechanism.
[0005] On the one hand, an embodiment of the present application provides a data processing method, including:
[0006] The terminal device obtains the parameter acquisition request sent by the application client corresponding to the protocol data unit session through the service quality interface; the application client runs in the terminal device;
[0007] Obtaining target quality of service parameters corresponding to the quality of service flow according to the parameter acquisition request; the quality of service flow is associated with the service data packet provided by the application client, and the target quality of service parameters are issued by the session management network element;
[0008] The target quality of service parameters are sent to the application client through the quality of service interface.
[0009] On the one hand, an embodiment of the present application provides a data processing method, including:
[0010] The application client corresponding to the protocol data unit session in the terminal device signs a parameter change notification function through the quality of service interface; the application client runs in the terminal device;
[0011] Based on the parameter change notification function, the updated service quality parameters issued by the session management network element are obtained, and the updated service quality parameters are sent to the application client through the service quality interface; updating the service quality parameters refers to updating the service quality parameters corresponding to the service quality flow.
[0012] On the one hand, an embodiment of the present application provides a data processing method, including:
[0013] The session management network element sends service quality rules and service quality parameters to the terminal device, so that the terminal device maps the service data packets sent by the application client corresponding to the protocol data unit session to the service quality flow based on the service quality rules; the application client has the function of generating a parameter acquisition request, and the parameter acquisition request instructs the terminal device to send the target service quality parameters corresponding to the service quality flow to the application client through the service quality interface; the application client runs in the terminal device; the service quality parameters include the target service quality parameters.
[0014] On the one hand, an embodiment of the present application provides a data processing device, which runs in a terminal device and includes:
[0015] A request acquisition module, used to acquire a parameter acquisition request sent by an application client corresponding to a protocol data unit session through a quality of service interface; the application client runs in a terminal device;
[0016] A parameter acquisition module, used to acquire a target quality of service parameter corresponding to a quality of service flow according to a parameter acquisition request; the quality of service flow is associated with a service data packet provided by an application client, and the target quality of service parameter is issued by a session management network element;
[0017] The parameter sending module is used to send the target quality of service parameters to the application client through the quality of service interface.
[0018] The data processing device further comprises:
[0019] The mapping module is used to receive the service quality rules and service quality parameters issued by the session management network element, and based on the service quality rules, map the service data packets sent by the application client to the service quality flow; the service quality flow is associated with the target service quality parameters in the service quality parameters.
[0020] The parameter acquisition module includes:
[0021] An identification unit, configured to obtain a quality of service flow identifier associated with the application client according to the parameter acquisition request, and identify a quality of service flow corresponding to the quality of service flow identifier;
[0022] The acquiring unit is used to acquire the target quality of service parameter corresponding to the quality of service flow from the quality of service parameter.
[0023] The data processing device further comprises:
[0024] A notification contracting module, used to contract for a parameter change notification function associated with an application client through a quality of service interface;
[0025] The change notification module is used to generate a parameter change notification message based on the parameter change notification function when the target service quality parameter changes, and send the parameter change notification message to the application client through the service quality interface, so that the application client re-initiates a parameter acquisition request based on the parameter change notification message.
[0026] The data processing device further comprises:
[0027] The interface opening module is used to obtain the first interface instruction issued by the session management network element; if the first interface instruction is an interface opening instruction, the step of obtaining the target service quality parameters corresponding to the service quality flow according to the parameter acquisition request is executed; the interface opening instruction instructs the terminal device to open the service quality interface to the application client.
[0028] The data processing device further comprises:
[0029] The interface closing module is used to send a request rejection message to the application client through the quality of service interface if the first interface instruction is an interface closing instruction; the interface closing instruction instructs the terminal device not to open the quality of service interface to the application client.
[0030] The request rejection information includes a rejection reason identifier, and the rejection reason identifier represents the rejection reason for the parameter acquisition request.
[0031] The data processing device further comprises:
[0032] The interface support module is used to send the second interface instruction to the session management network element; if the second interface instruction is an interface support instruction, the step of obtaining the first interface instruction issued by the session management network element is executed; the interface support instruction indicates that the terminal device supports the service quality interface.
[0033] The above application client is a client that performs streaming media services;
[0034] The above-mentioned parameter sending module is specifically used to send a parameter acquisition response message containing target service quality parameters to the application client through the service quality interface, so that the application client adjusts the encoding algorithm based on the target service quality parameters, and generates an optimized business data packet based on the adjusted encoding algorithm and streaming media data.
[0035] On the one hand, an embodiment of the present application provides a data processing device, which runs in a terminal device and includes:
[0036] A contracting module, used for signing a parameter change notification function associated with an application client through a quality of service interface; the application client is a client corresponding to a protocol data unit session, and the application client runs in a terminal device;
[0037] The update module is used to obtain the updated service quality parameters issued by the session management network element based on the parameter change notification function, and send the updated service quality parameters to the application client through the service quality interface; updating the service quality parameters refers to updating the service quality parameters corresponding to the service quality flow.
[0038] An embodiment of the present application provides a network element device, which runs in a session management network element, including:
[0039] A sending module is used to send service quality rules and service quality parameters to the terminal device, so that the terminal device can map the business data packets sent by the application client corresponding to the protocol data unit session to the service quality flow based on the service quality rules; the application client has the function of generating a parameter acquisition request, and the parameter acquisition request instructs the terminal device to send the target service quality parameters corresponding to the service quality flow to the application client through the service quality interface; the application client runs in the terminal device; the service quality parameters include the target service quality parameters.
[0040] The network element device further includes:
[0041] An instruction generation module is used to generate a first interface instruction based on interface indication information and send the first interface instruction to a terminal device; the first interface instruction is an interface opening instruction or an interface closing instruction; the interface opening instruction instructs the terminal device to open a quality of service interface to an application client; the interface closing instruction instructs the terminal device not to open a quality of service interface to an application client.
[0042] The network element device further includes:
[0043] The instruction acquisition module is used to acquire the second interface instruction sent by the terminal device; if the second interface instruction is an interface support instruction, the step of generating the first interface instruction based on the interface indication information is executed; the interface support instruction indicates that the terminal device supports the service quality interface.
[0044] On the one hand, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface;
[0045] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide a data communication function, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.
[0046] On the one hand, an embodiment of the present application provides a network element device, including: a processor, a memory, and a network interface;
[0047] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide data communication function, the above-mentioned memory is used to store computer programs, and the above-mentioned processor is used to call the above-mentioned computer program so that the network element device executes the method in the embodiment of the present application.
[0048] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor and executing the method in the embodiment of the present application.
[0049] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device or a network element device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the above-mentioned computer device or the network element device executes the method in the embodiment of the present application.
[0050] The embodiment of the present application can support the terminal device to obtain the parameter acquisition request sent by the application client corresponding to the protocol data unit session through the service quality interface, and then can obtain the target service quality parameters corresponding to the service quality flow associated with the business data packet of the application client according to the parameter acquisition request, and finally send the target service quality parameters to the application client through the service quality interface. It can be seen that when the terminal device establishes a protocol data unit session or after establishing a protocol data unit session, it can respond to the parameter acquisition request sent by the application client running on the terminal device, and provide the application client with corresponding service quality parameters, so that the application client can subsequently make adaptive adjustments based on the corresponding service quality parameters, thereby expanding the ability of the application client to obtain service quality parameters in the service quality mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application;
[0053] Figure 2 It is a schematic diagram of a data processing scenario provided by an embodiment of the present application;
[0054] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0055] Figure 4 It is an interactive schematic diagram of a data processing process provided by an embodiment of the present application;
[0056] Figure 5 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0057] Figure 6This is an interactive schematic diagram of a parameter change notification process provided by an embodiment of the present application;
[0058] Figure 7 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0059] Figure 8 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0060] Fig. 9 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0061] Fig.10 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0062] Fig.11 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0063] Fig.12 is a structural diagram of a network element device provided in an embodiment of the present application;
[0064] Fig.13 is a structural schematic diagram of a computer device provided in an embodiment of the present application;
[0065] Fig.14 It is a structural diagram of a network element device provided in an embodiment of the present application;
[0066] Fig.15 It is a structural diagram of a data processing system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0068] The technical solutions of the embodiments of the present application can be applied to various communication systems, for example: Global System for Mobile communication (GSM), Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunications System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, future fifth generation (5G) mobile communication system or subsequent evolved mobile communication system, etc.
[0069] See also Figure 1 , Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application. The system architecture can be applied to business scenarios that support uplink services (such as streaming media services), such as video conferencing, video on demand, remote education and other multimedia real-time services. The applications corresponding to these different services need to have different QoS (Quality of Service) requirements, which leads to the rapid growth of the demand for service quality in various applications. Among them, QoS is a qualitative agreement on information transmission and sharing between the network and users and between users communicating with each other on the network, such as transmission delay time, guaranteed bit rate of data transmission, etc. It is a technology used to solve problems such as network delay and congestion. It can be understood that QoS is very necessary for certain key applications and multimedia applications. When the network is overloaded or congested, QoS can ensure that important business flows (such as audio and video streams generated during live broadcasts) are not delayed or discarded, while ensuring the efficient operation of the network.
[0070] It is understandable that with the rapid development of network multimedia technology, various applications are emerging in an endless stream, especially for the fifth-generation mobile communication technology (5G for short) with the characteristics of high speed, low latency and large connection. The combination of QoS and 5G can be beneficial to effectively allocate network bandwidth and make more rational use of network resources.
[0071] like Figure 1 As shown, the system architecture may include a business server 100 and a terminal cluster, and the terminal cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n, wherein there may be a communication connection between the terminal clusters, for example, there is a communication connection between terminal device 200a and terminal device 200b, and there is a communication connection between terminal device 200a and terminal device 200c. At the same time, any terminal device in the terminal cluster may have a communication connection with the business server 100, for example, there is a communication connection between terminal device 200a and the business server 100, wherein the above communication connection does not limit the connection method, for example, it may be through a 4G wireless access method, or through a 5G wireless access method, etc., and this application does not limit this.
[0072] It should be understood that Figure 1 Each terminal device in the terminal cluster shown in the figure may be installed with an application client. When the application client runs in each terminal device, it may be respectively connected to the above Figure 1 The business servers 100 shown in the figure interact with each other so that the business servers 100 can receive business data from each terminal device. Among them, the application client can be a live broadcast application, a social application, an instant messaging application, a game application, a short video application, a video application, a music application, a shopping application, a novel application, a payment application, a browser, and other application clients with the function of displaying data information such as text, images, audio, and video. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as an instant messaging client, a social client, a video client, etc.), which is not limited here.
[0073] Taking the live broadcast application as an example, the business server 100 may be a collection of multiple servers including a background server corresponding to the live broadcast application, a data processing server, etc. Therefore, each terminal device can transmit data with the business server 100 through the application client corresponding to the live broadcast application. For example, the anchor user can broadcast live through the application client corresponding to the live broadcast application installed on the terminal device (for example, terminal device 200a) held by him, and other terminal devices (for example, terminal device 200b, terminal device 200c and terminal device 200n, etc.) can participate in the live broadcast through the business server 100. Among them, live broadcast refers to the technology of collecting anchor data through audio and video acquisition equipment, and after a series of processing, such as compressing it into a video stream that can be viewed and transmitted through video encoding (or compressing it into an audio stream that can be heard and transmitted through audio encoding), and outputting it to the viewing user end.
[0074] It should be noted that in mobile communications, Figure 1 The system architecture shown may also include a radio access network (RAN), a bearer network (i.e., a transmission network), and a core network. Multiple access network elements (also referred to as access network devices, such as 5G base stations gNB) may be deployed in the access network, which are mainly responsible for the access and management of terminal devices on the wireless side. The bearer network may be composed of a series of switching and routing devices of operators, which are mainly used to transmit control signaling and user data between the radio access network and the core network. The core network may deploy a series of core network elements (also referred to as core network devices, and "network elements" may also be referred to as "network functions"), which collaborate to perform authentication, billing, and mobility management on terminal devices. Optionally, the core network elements may include a mobility management entity (MME), a broadcast multicast service center (BMSC), etc., or may also include corresponding functional entities in the 5G system, such as a session management element, a mobility management element, a policy control element, etc. The core network element and the access network element can be independent and different physical devices, or the functions of the core network element and the access network element can be integrated on the same physical device, or the functions of some core network elements and some access network elements can be integrated on one physical device. The terminal device can be fixed or movable.
[0075] To facilitate the understanding and description of the subsequent embodiments, the network elements or devices mainly involved in the embodiments of the present application are briefly introduced here, as follows:
[0076] (1) SMF (Session Management Function): Mainly responsible for session establishment, modification and release, user plane selection and control, UE IP (UE, User Equipment, i.e. terminal equipment or user equipment; IP, Internet Protocol, i.e. Internet Protocol) address allocation, etc. In the embodiment of the present application, SMF can also be called session management network element.
[0077] (2) UPF (User Plane Function): Mainly responsible for data routing and forwarding in the user plane of the mobile core network, and interconnection with external data networks (such as operator services, the Internet or third-party services). UPF is the main module for processing user plane data in the 5G core network. In the embodiment of the present application, UPF can also be called a user plane network element.
[0078] (3) PCF (Policy Control Function): mainly responsible for using a unified policy framework to manage network behavior and coordinating user information in the UDR (Unified Data Repository) to execute relevant policies. In the embodiment of the present application, PCF can also be called a policy control network element.
[0079] (4) An access network element is an access device that a terminal device uses to access a mobile communication system wirelessly. It may be a base station NodeB, an evolved base station eNodeB, a base station (gNodeB, gNB) in a 5G mobile communication system, a base station in a future mobile communication system, or an access node in a Wireless Fidelity (WiFi) system, etc. It may also be a wireless controller in a Cloud Radio Access Network (CRAN) scenario, or it may be a relay station, an access point, a vehicle-mounted device, a wearable device, a network device in a future 5G network, or a network device in a future evolved PLMN network (Public Land Mobile Network), etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the access network element.
[0080] (5) Terminal device: may refer to user equipment (UE), access terminal, terminal in V2X (Vehicle to X) communication, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device. The terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved public land mobile communication network (PLMN), etc., which is not limited in the embodiments of the present application. The terminal device may also include a V2X device, such as a vehicle or an onboard unit (OBU) in a vehicle.
[0081] It should be noted that the above-mentioned session management network element, user plane network element, policy control network element and access network element are just names, and the names do not limit the devices themselves. For example, the session management network element can also be called a session management function entity, or a session management function, etc. This application does not limit the device name. In 5G networks and other future networks, the network elements mentioned in the embodiments of this application can also be other names, which are not limited.
[0082] Optionally, the session management network element, the user plane network element, and the policy control network element may be separate network elements, or may be implemented by multiple network elements, or may be functional modules within one network element, which is not limited in the embodiments of the present application.
[0083] Optional, Figure 1 The system architecture shown can be applied to 5G networks and other possible networks in the future, and the embodiments of the present application do not make specific limitations on this.
[0084] For ease of understanding, terminal device 200a and terminal device 200b are used as examples for explanation. In the live broadcast business scenario, assuming that the anchor user broadcasts live through terminal device 200a, terminal device 200a can collect the original audio and video data of the anchor user in real time, and pre-process the original audio and video data (such as image beautification and stylization), and then encode (i.e., digitize) and process (such as audio and video mixing, packaging, etc.) the pre-processed audio and video data to obtain a usable audio and video stream (i.e., a general term for audio streams and video streams). Among them, encoding reduces the amount of data by compressing audio and video data, which can facilitate the push, pull and storage of audio and video data, thereby greatly improving the storage and transmission efficiency. Commonly used encoding methods include CBR (Constant Bit Rate, a compression method with a fixed sampling rate) and VBR (Variable Bit Rate). For video data, commonly used encoding standards include H.265 (H.265-HEVC (High Efficiency Video Coding), a high-efficiency video coding standard adopted by the ITU in 2013), H.264 (a highly compressed digital video codec standard jointly proposed by the ITU and the International Organization for Standardization), MPEG-4 (Moving Picture Experts Group 4, a solution for low transmission rate applications launched by the Moving Picture Experts Group in 1999), etc., which can be encapsulated into file formats such as MKV (Matroska Video File), AVI (Audio Video Interleaved), and MP4 (an abbreviation for MPEG-4); for audio data, commonly used encoding standards include G.711 (a set of voice compression standards customized by the International Telecommunication Union), AAC (Advanced Audio Coding, an audio coding technology based on MPEG-2 launched in 1997), Opus (a lossy sound coding format), etc., can be encapsulated into file formats such as MP3 (Moving Picture Experts Group Audio Layer III), OGG (OGGVobis (oggVorbis)), AAC, etc. This application does not limit the encoding method of the client.
[0085] Furthermore, the terminal device 200a can send the encoded audio and video stream to the service server 100. For example, in the 5G network, the service server 100 is deployed in a data network (Data Network, DN) outside the mobile communication network, such as the Internet, WAP (Wireless Application Protocol), enterprise intranet, etc. The terminal device 200a can send the audio and video stream to the base station, and then the base station forwards the audio and video stream to the core network element UPF (i.e., user plane network element) in the 5G core network (5G Core, referred to as 5GC). After forwarding by the core network element UPF, the audio and video stream can be sent to the service server 100 in the external data network. The other core network elements in the 5G core network are mainly control plane network elements, which are responsible for processing signaling, realizing mobility management, session management, policy control, etc., thereby controlling the entire process. Subsequently, the service server 100 can send the audio and video stream to other terminal devices in the virtual live broadcast room through the core network network element UPF and the base station, for example, it can be sent to the terminal device 200b, and the terminal device 200b can decode the received audio and video stream through relevant hardware or software to obtain an image or sound that can be directly displayed, and then play the corresponding image or sound. Among them, the audio and video streams can be transmitted between the terminal device 200a and the service server 100, and between the service server 100 and the terminal device 200b through transmission protocols such as RTMP (Real Time Messaging Protocol), RTSP (Real Time Streaming Protocol), RTP (Real-time Transport Protocol) or RTCP (Real-time Transport Control Protocol).
[0086] It is understandable that the business server in the embodiment of the present application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. The terminal device can be a smart phone, tablet computer, laptop computer, desktop computer, PDA, mobile internet device (mobile internet device, MID), wearable device (such as smart watch, smart bracelet, etc.), smart computer, smart car equipment, etc., which can run the above-mentioned application client (such as the application client of the live broadcast application).
[0087] It should be noted that in order to further improve the service quality of network services, the above Figure 1 The system architecture described configures QoS capabilities. It can be understood that QoS flow is the finest granularity of QoS distinction in a PDU session (i.e., protocol data unit session). When the system architecture is applied to a 5G network, the same traffic forwarding processing (such as scheduling, access thresholds, etc.) will be used for the service flow controlled by the same QoS flow. For a terminal device, one or more PDU sessions can be established with the 5G network; one or more QoS flows can be established in each PDU session. Each QoS flow is identified by a QoS flow identifier (QoS flow identifier, QFI), and a QFI uniquely identifies a QoS flow in a PDU session. In addition, each QoS flow corresponds to a data radio bearer (Data Radio Bearer, DRB), and a DRB can correspond to one or more QoS flows. Among them, whether a QoS flow is a GBR QoS flow or a Non-GBR QoS flow is determined by the corresponding QoS profile (QoS Profile).
[0088] The 5G core network supports the PDU connection service between the terminal device and the data network. The PDU connection service is embodied in the form of a PDU session. A PDU session refers to a data path for communication between a terminal device and a data network. Assuming that a terminal device (such as the terminal device 200a) wants to obtain a certain application service (such as a live broadcast service), the terminal device can initiate a PDU session establishment request to the core network element SMF (i.e., the session management element) in the 5G core network. During the PDU session establishment process, the core network element SMF can bind the PCC rules (i.e., policy control and charging rules) to the QoS flow according to the QoS and service requirements. The core network element SMF can allocate QFI for the new QoS flow and derive its QoS profile, corresponding UPF instructions and QoS rules from the PCC rules bound to the QoS flow and other information provided by the core network element PCF (i.e., policy control element). Subsequently, the core network element SMF can send the QoS profile to the radio access network (R)AN (i.e., the access network element), send the corresponding UPF instructions to the core network element UPF, and send the QoS rules to the terminal device. In addition, the core network element SMF can also send flow-level QoS parameters (QoS Flow level QoS parameter) to the terminal device at the same time. These QoS parameters are associated with the corresponding QoS rules. Further, after receiving the QoS rules and QoS parameters, the terminal device can classify and mark the uplink service flow (also called uplink user plane traffic) based on the QoS rules. For example, the service flow (such as audio and video stream) can be mapped to the QoS flow according to the QoS rules, and then the QoS flow can be bound to AN resources (AN resources, such as data radio bearer DRB in the 3GPP wireless access network scenario). Among them, a QoS flow can be associated with one or more QoS rules.
[0089] It can be understood that when the network is congested, all service flows may be discarded. After configuring QoS, different service qualities can be provided for different service flows, that is, different QoS flows correspond to different QoS forwarding treatments. For example, priority is given to important and real-time service data packets; for ordinary service data packets that are not real-time, a lower processing priority is provided, and even discarded when the network is congested. In other words, a network that supports QoS functions can provide transmission quality services, that is, for a certain category of service flow, it can be given a certain level of transmission priority to identify its relative importance, and use the various priority forwarding strategies, congestion avoidance and other mechanisms provided by the network to provide special transmission services for these service flows. As can be seen from the above, a network environment configured with QoS can increase the predictability of network performance, effectively allocate network bandwidth, and make more reasonable use of network resources.
[0090] It should be noted that, for GBR QoS flows with notification control enabled, the embodiments of the present application can also provide alternative QoS profiles. Specifically, if the corresponding PCC rule contains relevant information, in addition to the QoS profile, the core network element SMF should also provide the radio access network (R)AN with a priority list of alternative QoS profiles. If the core network element SMF provides the radio access network (R)AN with a new priority list of alternative QoS profiles (if the corresponding PCC rule information changes), the radio access network (R)AN will replace any previously stored list with it. Among them, the alternative QoS profile can represent a combination of QoS parameters that the service flow can adapt to, and the combination of QoS parameters can include a guaranteed flow bit rate (Guaranteed Flow Bit Rate, GFBR), a packet error rate (Packet Error Rate, PER) and a packet delay budget (Packet Delay Budget, PDB). In addition, when the radio access network (R) AN sends a notification to the core network element SMF that the QoS profile is not satisfied, if the currently satisfied parameter value matches the alternative QoS profile, the radio access network (R) AN should also include a reference to the alternative QoS profile to indicate the QoS currently satisfied by the radio access network (R) AN, and then send relevant notifications to the core network element SMF, and the core network element SMF will further update the corresponding QoS parameters and send them to the terminal device. Among them, the QoS parameters will affect the scheduling algorithms and strategies of the radio access network (R) AN for different levels of users and different levels of services. For example, the base station can guide the resource allocation on the wireless side based on the above QoS parameters and other core network parameters.
[0091] In addition, the embodiment of the present application provides a method for optimizing service transmission. When a PDU session is established, the terminal device can obtain a parameter acquisition request sent by an application client (such as a live broadcast application) corresponding to the PDU session through a quality of service interface, wherein the application client runs in the terminal device. Further, the terminal device can obtain the target quality of service parameter corresponding to the QoS flow associated with the service data packet of the application client according to the parameter acquisition request, and then send the target quality of service parameter to the application client through the quality of service interface. It can be understood that when the target quality of service parameter changes, the terminal device can also send the updated QoS parameter to the application client. In other words, the application client on the terminal device can perceive the QoS parameters and their changes, so the QoS parameters can be used to perform some related processing work, for example, the QoS parameters can be adaptively adjusted by calling them, so that the ability of the application client to obtain and use QoS parameters can be expanded in the QoS mechanism. It should be noted that the method provided in the embodiment of the present application is very effective for uplink streaming media services. The application client can adjust the encoding algorithm based on the QoS parameters, thereby improving the transmission efficiency. Typical scenarios include live broadcast of stadium games, live broadcast of concerts, image return of drones, and video return of road cameras.
[0092] For easier understanding, please also refer to Figure 2 , Figure 2 1 is a schematic diagram of a data processing scenario provided by an embodiment of the present application. The implementation process of the data processing scenario is mainly performed inside the terminal device (ie, UE). The terminal device A in the embodiment of the present application can be any terminal device, for example, it can be the above Figure 1 The terminal device 200a shown in FIG. Figure 2 As shown, one or more application clients can be installed and run on the terminal device A. Assume that there are N application clients in total, where N is a positive integer, namely application client A1, application client A2, ..., application client AN. Each application client can correspond to one or more services. When a user has a certain service demand, he can obtain the corresponding application service by choosing to run a certain application client on the terminal device A. Among them, after the terminal device A establishes a PDU session, the application client can transmit data with the corresponding server. In this process, the application client may transmit some uplink information to the server, such as audio and video streams obtained after being collected and processed by devices such as cameras and microphones, that is, uplink service flows. In order to improve the service quality of network services, the embodiments of the present application can provide different forwarding processing for these service flows based on QoS flows.
[0093] It should be noted that during the PDU session establishment process, the session management network element (i.e., SMF) can determine the establishment of a service quality flow based on the local policy or the PCC rule sent by the policy control network element. The session management network element can send the service quality rules and flow-level service quality parameters to the terminal device A through the access and mobility management network element (Access and Mobility Management Function, referred to as AMF, also known as access and mobility management function) and the radio access network (RAN, i.e., access network network element). A service quality rule may include the QFI of the relevant service quality flow, a packet filter set (Packet Filter Set) and a priority value. It should be noted that a packet filter set may contain multiple packet filters, and each packet filter may be uplink, downlink or bidirectional. For example, Figure 2 As shown, the terminal device A can obtain multiple service quality rules such as service quality rule R1, service quality rule R2, service quality rule R3, and service quality parameters related to these service quality rules; the session management network element can send the QoS configuration file related to the service quality flow to the wireless access network through the access and mobility management network element; send service data flow (SDF) information to the user plane network element (i.e., UPF), and the SDF information includes QoS control information. Then, a service quality flow can be established between the terminal device A, the wireless access network and the user plane network element, for example, service quality flow F1, service quality flow F2, service quality flow F3, etc., and the wireless access network can establish an air interface data radio bearer (i.e., DRB, belonging to AN resources) according to the QoS configuration file, and store the binding relationship between the service quality flow and the data radio bearer, for example, the service quality flow F1 and the service quality flow F2 are bound to the data radio bearer D1, and the service quality flow F3 is bound to the data radio bearer D2. It should be noted that the embodiment of the present application does not specifically limit the number of service quality flows, service quality rules and data radio bearers.
[0094] Further, for the uplink (ie, UL), when terminal device A determines to send an uplink service data packet (UL packet), such as Figure 2As shown, assuming that a service flow C is generated in a PDU session, which includes service data packets that may come from any one or more application clients on terminal device A, for example, application client A1, then for a PDU session of IP type (Type IP) or Ethernet type (Type Ethernet), terminal device A can evaluate the service data packets in service flow C according to the priority value of the quality of service rule and the uplink packet filter (UL Packet Filter) in the packet filter set in the quality of service rule in a certain priority order until a matching quality of service rule is found; if no matching quality of service rule is found, terminal device A will discard the service data packet. For unstructured type (Type Unstructured) PDU sessions, the default quality of service rule does not include a packet filter set, and all uplink service data packets will be allowed. It should be noted that for unstructured type PDU sessions, only the default quality of service rule exists. Then, terminal device A can use the QoS flow identifier (i.e., QFI) in the matched quality of service rule to map the service data packets in service flow C to the corresponding quality of service flow, that is, use the QoS flow identifier to mark the service data packets. For example, Figure 2 As shown, according to the quality of service rule R1, part of the business data packets in the business flow C can be mapped to the quality of service flow F1, according to the quality of service rule R2, part of the business data packets in the business flow C can be mapped to the quality of service flow F2, and according to the quality of service rule R3, another part of the business data packets in the business flow C can be mapped to the quality of service flow F3.
[0095] Furthermore, according to the binding relationship between these quality of service flows and data radio bearers, the above service data packets can be placed on the corresponding data radio bearers for transmission. For example, the service data packets in the quality of service flow F1 and the service data packets in the quality of service flow F2 can be transmitted on the data radio bearer D1, and the service data packets in the quality of service flow F3 can be transmitted on the data radio bearer D2. When the wireless access network receives the service data packets transmitted on the data radio bearer D1 and the radio bearer D2, the service data packets can be transmitted to the user plane network element through the N3 interface. After receiving the service data packets, the user plane network element can verify whether these service data packets are transmitted using the correct quality of service flow based on the QoS flow identifier, and process the service data packets accordingly according to the service detection, forwarding, reporting and charging rules issued by the session management network element.
[0096] The embodiment of the present application does not expand the processing flow of the downlink (ie, DL).
[0097] In addition, if Figure 2As shown, the terminal device A also provides a service quality interface B for the application to call. When the PDU session is established or after the PDU session is established, the application client corresponding to the PDU session on the terminal device A can send a parameter acquisition request to the service quality interface B. After receiving the parameter acquisition request through the service quality interface B, the terminal device A can respond to the parameter acquisition request and obtain the service quality parameter (i.e., the target service quality parameter) corresponding to the service quality flow associated with the service data packet provided by the application client according to the parameter acquisition request, and then the service quality parameter can be returned to the application client. Taking the application client A1 as an example, assuming that the service data packet of the application client A1 is mapped to the service quality flow F1 through the aforementioned process, and the service quality parameter associated with the service quality flow F1 is the service quality parameter E, then after the application client A1 initiates a parameter acquisition request to the service quality interface B, the terminal device A can receive the parameter acquisition request through the service quality interface B, and determine that the service data packet of the application client A1 belongs to the service quality flow F1, and then the service quality parameter E of the service quality flow F1 can be sent to the application client A1 through the service quality interface B. It can be understood that during the PDU session, when the service quality parameter E changes, the terminal device A can obtain the changed service quality parameter and can also notify the application client A1 through the service quality interface B.
[0098] It should be noted that after the application client obtains the corresponding service quality parameters, it can use the service quality parameters. For example, if the application client A1 is a client related to the streaming media service (such as live broadcast service), then when the service quality parameter E changes, the application client A1 can make adaptive adjustments, for example, it can adjust the encoding algorithm it adopts based on the change of the service quality parameter E (such as adjusting the encoding rate, compression rate, etc., which needs to be considered comprehensively), so as to obtain an optimized service data packet. Subsequently, the terminal device A can still send the uplink optimized service data packet through the aforementioned process, so as to achieve the purpose of saving transmission bandwidth and improving transmission efficiency. It can be understood that the application client can also use the service quality parameters for other processing. The specific use is the implementation within the application client, and this application does not limit this.
[0099] See also Figure 3 , is a flow chart of a data processing method provided by an embodiment of the present application. The data processing method can be executed by a terminal device. The method provided by an embodiment of the present application can support the terminal device to provide quality of service parameters (i.e., QoS parameters) or parameter change information to the application client on the terminal device. Figure 3 As shown, the data processing method may at least include the following steps S101 to S103:
[0100] Step S101, the terminal device obtains a parameter acquisition request sent by an application client corresponding to a protocol data unit session through a quality of service interface; the application client runs in the terminal device;
[0101] Specifically, in order to provide quality of service parameters to the application client, when the terminal device establishes a protocol data unit session (i.e., a PDU session) or after the protocol data unit session is established, the application client corresponding to the protocol data unit session can send a parameter acquisition request to the terminal device, and then the terminal device can receive the parameter acquisition request. The parameter acquisition request is used to request to obtain the quality of service parameters (i.e., target quality of service parameters) of the quality of service flow (i.e., QoS flow) corresponding to the service flow of the application client. The application client runs on the terminal device and can be a client that supports uplink services (such as transmitting text, images, audio or video data to the server).
[0102] In one embodiment, the terminal device may provide an API interface (Application Programming Interface) for the application client to call. In the embodiment of the present application, the API interface may be referred to as a quality of service interface. The application client may obtain relevant quality of service parameters by calling the quality of service interface. That is, the application client may send a parameter acquisition request to the terminal device by calling the quality of service interface, and the terminal device may also obtain the parameter acquisition request through the quality of service interface. It should be understood that the quality of service interface is an internal interface and is not open to the outside of the terminal device. Optionally, a functional module or functional component that provides quality of service parameters may be integrated on the terminal device, and the functional module may provide a quality of service interface for the application client to call.
[0103] Step S102, obtaining a target quality of service parameter corresponding to the quality of service flow according to the parameter acquisition request; the quality of service flow is associated with the service data packet provided by the application client, and the target quality of service parameter is issued by the session management network element;
[0104] Specifically, the terminal device can obtain the target quality of service parameters corresponding to the quality of service flow according to the parameter acquisition request. In one embodiment, after receiving the parameter acquisition request through the quality of service interface, the terminal device can obtain the quality of service flow identifier (i.e., QFI) associated with the application client according to the parameter acquisition request, identify the quality of service flow corresponding to the quality of service flow identifier, and further, obtain the target quality of service parameters corresponding to the quality of service flow from the quality of service parameters.
[0105] Among them, the target service quality parameter can be represented by a real service quality parameter value, or by a numerical value that can characterize the real parameter value. Optionally, it can be represented by a certain numerical value in the parameter interval to which the real parameter value belongs (for example, the average value corresponding to the parameter interval). For example, assuming that the transmission delay parameter indicated in the acquired target service quality parameter is T (for example, 15ms), where T is a certain numerical value in the T1-T2 interval, it can be indicated that the real transmission delay parameter is in the T1-T2 interval (for example, 10ms-20ms). That is to say, when the real transmission delay parameter is in the T1-T2 interval, T can be used as the target service quality parameter. Optionally, the target service quality parameter can also be represented by the parameter interval to which the real parameter value belongs. For example, the real transmission delay parameter can be represented by the T1-T2 interval. A similar representation method can meet the requirements of network information protection. This application does not limit the representation method of the target service quality parameter.
[0106] Among them, the target quality of service parameters are issued by the session management network element. In one embodiment, the target quality of service parameters that the terminal device can provide include one or more of the following QoS parameters: guaranteed flow bit rate (GFBR), packet error rate (PER), priority level (Priority Level), and packet delay budget (PDB). Among them, the guaranteed flow bit rate represents the minimum bit rate guaranteed by the network to be provided to the service quality flow in the average time window; the packet error rate represents the upper limit of the non-congestion related data packet loss rate; the priority level refers to the priority of the service quality flow scheduling resources, and the lowest priority value corresponds to the highest priority. It can be understood that the priority level can be used to distinguish the QoS flow of the same terminal device, and can also be used to distinguish the QoS flow from different terminal devices. In the case of congestion, when one or more QoS flows cannot meet all QoS requirements, the priority level should be used to select which QoS flows have priority over the QoS requirements, so that the QoS flow with a priority value of T takes precedence over the QoS flow with a higher priority value (i.e., T+1, T+2, etc.); in the absence of congestion, the priority level should be used to define the resource allocation between QoS flows; the packet delay budget represents the upper limit of the transmission delay of the service data packet between the terminal device and the termination point N6 interface on the user plane network element.
[0107] It should be noted that the service quality flow is associated with the service data packet provided by the application client, that is, when establishing a protocol data unit session, the session management network element can send service quality rules and service quality parameters to the terminal device, where the service quality rules can be used to classify and mark the uplink service flow, and the service quality parameters are associated with the service quality rules. In the embodiment of the present application, in addition to ensuring the stream bit rate, packet error rate, priority level, and packet delay budget, the service quality parameters may also include but are not limited to the following QoS parameters: 5G QoS identifier (5G QoS identifier, 5QI), allocation and reservation priority (Allocation and Retention Priority, ARP), maximum flow bit rate (MFBR), reflective QoS attribute (Reflective QoS Attribute, RQA).
[0108] Furthermore, the terminal device can map the service data packet sent by the application client to the corresponding service quality flow based on the service quality rule, wherein the service quality flow is associated with the target service quality parameter, and the target service quality parameter belongs to the service quality parameter. Since the service data packets mapped to the same service quality flow will be marked with the same service quality flow identifier, the terminal device can determine which service quality flow the service data packet of the application client belongs to by the service quality flow identifier.
[0109] Step S103: sending the target quality of service parameters to the application client via the quality of service interface.
[0110] Specifically, the terminal device can send the acquired target service quality parameters to the application client. In one embodiment, the target service quality parameters can be sent to the application client through the service quality interface. Optionally, if the application client is a client that performs streaming media services, the terminal device can generate a parameter acquisition response message containing the target service quality parameters, and then send the parameter acquisition response message to the application client through the service quality interface. After receiving the parameter acquisition response message, the application client can parse the parameter acquisition response message to obtain the target service quality parameters, and then adjust the encoding algorithm used in the current streaming media service based on the target service quality parameters, so that the optimized service data packet can be generated based on the adjusted encoding algorithm and the streaming media data generated in the streaming media service. When uploading the optimized service data packet to the server side, the terminal device can still map the optimized service data packet to the appropriate service quality stream for transmission based on the service quality rules. Among them, the streaming media service refers to the service of transmitting streaming media data such as audio, video, text, image, animation, etc. in a stream manner.
[0111] It should be noted that, since the actual service quality parameter is in a state of fluctuation, the target service quality parameter can be adjusted based on the actual service quality parameter, that is, the changed target service quality parameter can be obtained based on the actual service quality parameter. When the changed target service quality parameter exceeds the threshold value, the terminal device can send the changed target service quality parameter or a notification that the changed target service quality parameter exceeds the threshold value to the application client. For the changed target service quality parameter, the embodiment of the present application can provide a variety of notification methods.
[0112] Optionally, for the GBR QoS flow, the actual service quality parameter may be equal to the value indicated by the target service quality parameter at the beginning, or belong to the interval indicated by the target service quality parameter. When the actual service quality parameter changes to the point where the target service quality parameter is no longer applicable (such as exceeding the interval indicated by the target service quality parameter), the terminal device may notify the session management network element to adjust the target service quality parameter based on the actual service quality parameter, thereby obtaining the changed target service quality parameter (i.e., updated service quality parameter) and returning it to the terminal device. When the terminal device receives the changed target service quality parameter, it may directly send the changed target service quality parameter to the application client; or, it may send the changed target service quality parameter or the first over-threshold notification (i.e., notification that the changed target service quality parameter exceeds the first threshold value) to the application client only when the changed target service quality parameter exceeds the first threshold value. For example, assuming that for a service S1 of an application client, the corresponding transmission delay parameter meets the relevant service requirements within T3-T4 (for example, 10ms-100ms), then T3 and T4 can be used as the first threshold value, and when the changed transmission delay parameter is lower than T3 or higher than T4, the terminal device can notify the application client. In other words, the target service quality parameter can be allowed to fluctuate within a certain range or interval, so that the terminal device will not notify the application client as soon as the target service quality parameter changes, thereby causing interference to the application client, and can also reduce frequent data interaction.
[0113] Optionally, for Non-GBR QoS flows, when certain actual service quality parameters (such as data transmission rate) change, the session management network element will not adjust the target service quality parameters. Instead, the terminal device will adjust the target service quality parameters based on the actual service quality parameters. For example, the actual service quality parameters or the parameter range obtained based on the actual service quality parameters are used as the changed target service quality parameters, and the changed target service quality parameters can be sent to the application client; or, the changed target service quality parameters or the second over-threshold notification (i.e., the notification that the changed target service quality parameters exceed the second threshold value) can be sent to the application client only when the changed target service quality parameters exceed the second threshold value. For example, assuming that for a service S2 of an application client, its corresponding data transmission rate parameter meets the relevant service requirements within Rt1-Rt3 (for example, 100Mbps-500Mbps), but different algorithms may be required in different intervals. For example, in the Rt1-Rt2 interval (for example, 100Mbps-300Mbps), coding algorithm Y1 needs to be used, and in the Rt2-Rt3 interval (for example, 300Mbps-500Mbps), another coding algorithm Y2 needs to be used. Then Rt2 can be used as the second threshold value. When the changed data transmission rate parameter is higher than Rt2, the terminal device can notify the application client. Alternatively, the terminal device can send the change trend of the actual service quality parameter to the application client. For example, the actual service quality parameter indicates that the data transmission rate parameter is Rt4 (for example, 100Mbps). Then, when the data transmission rate parameter Rt4 increases or decreases, the terminal device can send its corresponding change trend to the application client.
[0114] The embodiment of the present application does not limit the specific sizes of the first threshold value and the second threshold value.
[0115] Please also see Figure 4 , Figure 4 Schematic diagram of an interactive data processing process provided by an embodiment of the present application. Figure 4 As shown, the data processing process may include the following steps:
[0116] Step S201, when the terminal device establishes a protocol data unit session or after the protocol data unit session is established, the application client corresponding to the protocol data unit session on the terminal device sends a quality of service parameter request (also referred to as a QoS parameter request, i.e., a parameter acquisition request) to the quality of service interface (UE QoS API);
[0117] In step S202, after the service quality interface receives the service quality parameter request, the terminal device can determine which QoS flow the service data packet of the application client belongs to, and send the parameter information of the QoS flow corresponding to the service flow of the application client (i.e., the target service quality parameter) or the change trend of the actual service quality parameter to the application client through the service quality interface; or when the changed target service quality parameter exceeds the threshold value, the changed target service quality parameter or a notification that the changed target service quality parameter exceeds the threshold value is sent to the application client. For the specific process, please refer to the above step S103.
[0118] In addition, the embodiment of the present application also provides a parameter change notification function, through which parameter change information can be provided to the application client. For the specific process, please refer to the subsequent Figure 5 The corresponding step S304 in the embodiment.
[0119] The embodiment of the present application can support the terminal device to obtain the parameter acquisition request sent by the application client corresponding to the protocol data unit session through the service quality interface, and then can obtain the target service quality parameters corresponding to the service quality flow associated with the service data packet of the application client according to the parameter acquisition request, and finally send the target service quality parameters or the change trend of the actual service quality parameters to the application client through the service quality interface; or when the changed target service quality parameters exceed the threshold value, send the changed target service quality parameters or the notification that the changed target service quality parameters exceed the threshold value to the application client. It can be seen that when the terminal device establishes a protocol data unit session or after establishing a protocol data unit session, it can respond to the parameter acquisition request sent by the application client running on the terminal device, and provide the application client with the corresponding service quality parameters, so that the application client can make adaptive adjustments based on the corresponding service quality parameters later, thereby expanding the ability of the application client to obtain and use service quality parameters in the service quality mechanism.
[0120] Further, please see Figure 5 , Figure 5 is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a terminal device. Figure 5 As shown, the data processing method may at least include the following steps:
[0121] Step S301, obtaining a first interface instruction issued by a session management network element;
[0122] Specifically, the terminal device may obtain a first interface instruction sent by a session management network element, wherein the first interface instruction is used to instruct the terminal device whether to open a quality of service interface to an application client.
[0123] It can be understood that whether the terminal device provides a quality of service interface to the application client is determined by the instruction of the session management network element. That is, when the session management network element sends the quality of service rules and corresponding quality of service parameters to the terminal device, it will further indicate whether to allow the UE QoS API of the relevant QoS flow to be opened for the application client to call.
[0124] Step S302, obtaining a parameter acquisition request sent by an application client corresponding to a protocol data unit session through a quality of service interface;
[0125] The specific process of this step can be found in the above Figure 3 The step S101 in the corresponding embodiment will not be described in detail here.
[0126] Step S303: if the first interface instruction is an interface opening instruction, obtaining target quality of service parameters corresponding to the quality of service flow according to the parameter acquisition request, and sending the target quality of service parameters to the application client through the quality of service interface;
[0127] Specifically, when the first interface instruction is an interface opening instruction, that is, the session management network element indicates that the UE QoS API can be opened, the terminal device can obtain the target service quality parameters corresponding to the service quality flow according to the parameter acquisition request, and send the target service quality parameters to the application client through the service quality interface. The specific process of obtaining the target service quality parameters and sending them to the application client can be referred to in the above Figure 3 Steps S102 to S103 in the corresponding embodiment are not described in detail here. The interface opening instruction may instruct the terminal device to open a quality of service interface to the application client.
[0128] Step S304, the application client in the terminal device subscribes to the parameter change notification function through the service quality interface. When the target service quality parameter changes, the updated service quality parameter is sent to the application client through the service quality interface based on the parameter change notification function;
[0129] Specifically, the application client can sign a parameter change notification function with the terminal device through the service quality interface. After the contract is successfully signed, when the target service quality parameter changes, the terminal device can generate a corresponding parameter change notification message based on the parameter change notification function, and then send the parameter change notification message to the application client through the service quality interface. Subsequently, the application client can re-initiate a parameter acquisition request to the service quality interface based on the parameter change notification message, and then can go through a process similar to the above Figure 3 The process described in the corresponding embodiment sends the changed target quality of service parameters to the application client through the quality of service interface.
[0130] Optionally, when a protocol data unit session is established, the application client first actively initiates a parameter acquisition request to the service quality interface to obtain the target service quality parameters. After the application client signs a parameter change notification function with the terminal device through the service quality interface, when the target service quality parameters change, the terminal device can actively send the changed target service quality parameters to the application client through the service quality interface based on the parameter change notification function.
[0131] Optionally, the parameter change notification message may include a change trend of an actual quality of service parameter.
[0132] Optionally, when the changed target service quality parameter exceeds the threshold value, the terminal device may send the changed target service quality parameter or a notification that the changed target service quality parameter exceeds the threshold value to the application client. The parameter change notification message may include a first threshold exceeding notification or a second threshold exceeding notification. For the specific process, please refer to the above Figure 3 The corresponding step S103 in the embodiment.
[0133] It should be understood that the application client may further include parameter information such as the maximum number of notifications, the first threshold value, the second threshold value, etc. in the contract signing request.
[0134] Step S305: If the first interface instruction is an interface closing instruction, a request rejection message is sent to the application client through the quality of service interface.
[0135] Specifically, when the first interface instruction is an interface closing instruction, that is, the session management network element indicates that the UEQoS API cannot be opened, the terminal device can send a request rejection message to the application client through the service quality interface. The interface closing instruction is used to instruct the terminal device not to open the service quality interface to the application client. Further, the request rejection information may include a rejection reason identifier (also referred to as a rejection reason value), wherein the rejection reason identifier is used to characterize the rejection reason for the parameter acquisition request, which is pre-defined by the network. For example, different numbers can be used to represent different rejection reasons, such as the number "1" indicates that the contract is not allowed, the number "2" indicates that the slice is not allowed, the number "3" indicates that the data network name (DataNetwork Name, DNN) is not allowed, the number "4" indicates that the operator does not allow, and so on.
[0136] That is to say, if the session management network element indicates that the UE QoS API cannot be opened, when the UE QoS API receives a parameter acquisition request (also called a QoS parameter call request) sent by the application client, it will indicate the rejection of the request in the corresponding response message, and may further include a rejection reason value.
[0137] It should be noted that when the session management network element indicates whether to allow the open service quality interface for the application client to call, one or more of the following interface indication information may be considered: the contract information of the terminal device, the data network name (DNN) carried when the protocol data unit session is initiated, and the single network slice selection assistance information (Single Network Slice Selection Assistance Information, S-NSSAI), the operator's own configuration, the network policy, etc. For example, any terminal device may allow / not allow the open service quality interface, or for a service that specifies a specific network slice, the service may allow the open service quality interface. The embodiment of the present application does not limit the specific licensing policy adopted by the session management network element.
[0138] Please also see Figure 6 , Figure 6 FIG. 1 is an interactive diagram of a parameter change notification process provided by an embodiment of the present application. Figure 6 As shown, the process may include the following steps:
[0139] Step S401, the application client signs a QoS parameter change notification (i.e., parameter change notification function) with the terminal device through the service quality interface (UE QoS API);
[0140] Step S402, when the QoS parameter (i.e., target service quality parameter) of the QoS flow corresponding to the business flow of the application client changes or the changed QoS parameter (i.e., the changed target service quality parameter exceeds the threshold value) exceeds the threshold value, the terminal device will notify the application client through the service quality interface.
[0141] From the above, it can be seen that after signing the parameter change notification function, the application client does not need to frequently send parameter acquisition requests to the service quality interface. Instead, when the relevant service quality parameters change or exceed the threshold value, the terminal device can actively notify the application client about the changes in the service quality parameters through the service quality interface, thereby enabling the application client to directly perceive the changes in the service quality parameters and improve the efficiency of obtaining the service quality parameters.
[0142] Further, please see Figure 7 , Figure 7 is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a terminal device. Figure 7 As shown, the data processing method may at least include the following steps:
[0143] Step S501, sending a second interface instruction to a session management network element;
[0144] Specifically, when initiating a protocol data unit session, the terminal device can indicate to the session management network element whether the terminal device supports the quality of service interface, that is, send a second interface instruction to the session management network element. In one embodiment, the second interface instruction can be used as a parameter in the N1 SM container. When the second interface instruction sent by the terminal device is an interface support instruction, that is, the terminal device explicitly indicates that it supports the quality of service interface, step S502 can be continued; on the contrary, when the second interface instruction sent by the terminal device is an interface unsupported instruction (that is, the terminal device indicates that it does not support the quality of service interface), or the terminal device does not indicate that it supports the quality of service interface (that is, the session management network element will believe that the terminal device does not need or support the quality of service interface), there is no need to execute subsequent steps, and the process ends.
[0145] Step S502: if the second interface instruction is an interface support instruction, obtaining a first interface instruction issued by a session management network element;
[0146] Specifically, when the session management network element detects that the second interface instruction is an interface support instruction, it can generate a first interface instruction based on the permission policy and send the first interface instruction to the terminal device, so that the terminal device can receive the first interface instruction. The specific process of this step can be referred to above Figure 5Step S301 in the corresponding embodiment will not be described in detail here.
[0147] Step S503, obtaining a parameter acquisition request sent by an application client corresponding to a protocol data unit session through a quality of service interface;
[0148] The specific process of this step can be found in the above Figure 3 The step S101 in the corresponding embodiment will not be described in detail here.
[0149] Step S504: if the first interface instruction is an interface opening instruction, obtaining target quality of service parameters corresponding to the quality of service flow according to the parameter acquisition request, and sending the target quality of service parameters to the application client through the quality of service interface;
[0150] The specific process of this step can be found in the above Figure 5 Step S303 in the corresponding embodiment will not be described in detail here.
[0151] When the target service quality parameter changes, step S506 may continue to be executed.
[0152] Step S505: If the first interface instruction is an interface closing instruction, a request rejection message is sent to the application client through the quality of service interface.
[0153] The specific process of this step can be found in the above Figure 5 Step S305 in the corresponding embodiment will not be described in detail here.
[0154] Step S506, the application client in the terminal device subscribes to the parameter change notification function through the service quality interface. When the target service quality parameter changes, the updated service quality parameter is sent to the application client through the service quality interface based on the parameter change notification function.
[0155] The specific process of this step can be found in the above Figure 5 Step S304 in the corresponding embodiment will not be described in detail here.
[0156] In an embodiment of the present application, through the interaction between the terminal device and the session management network element, corresponding service quality parameters can be provided to the application client running on the terminal device. In addition, when the service quality parameters change, the changed service quality parameters can also be provided to the application client, so that the application client can subsequently make adaptive adjustments based on the service quality parameters, thereby expanding the ability of the application client to obtain and use the service quality parameters in the service quality mechanism.
[0157] Please also see Figure 8 , Figure 8 is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a terminal device. Figure 8 As shown, the data processing method may at least include the following steps:
[0158] Step S601, the application client corresponding to the protocol data unit session in the terminal device signs a parameter change notification function through the quality of service interface;
[0159] Specifically, the application client corresponding to the protocol data unit session in the terminal device can sign a parameter change notification function with the terminal device through the service quality interface. After the contract is successfully signed, the terminal device can provide parameter change information to the application client. The application client runs in the terminal device.
[0160] Step S602: when the updated service quality parameters sent by the session management network element are obtained based on the parameter change notification function, the updated service quality parameters are sent to the application client through the service quality interface.
[0161] Specifically, when the service quality parameter corresponding to the service flow of the application client changes, the session management network element can update the service quality parameter, thereby obtaining the updated service quality parameter, and sending the updated service quality parameter to the terminal device. Wherein, updating the service quality parameter means updating the service quality parameter corresponding to the service quality flow, and the updated service quality flow is associated with the service data packet provided by the application client. In the embodiment of the present application, after the service quality parameter is updated, the corresponding service quality flow is also updated accordingly.
[0162] Furthermore, the terminal device can obtain the updated service quality issued by the session management network element based on the parameter change notification function, and then send the updated service quality parameters to the application client through the service quality interface. The interaction process between the application client and the service quality interface can be seen in the above Figure 6 The corresponding embodiment.
[0163] Optionally, the terminal device may send the updated service quality parameter or the notification that the updated service quality parameter exceeds the first threshold value (ie, the first threshold exceeding notification) to the application client only when the updated service quality parameter exceeds the first threshold value.
[0164] In an embodiment of the present application, through the contract parameter change notification function, the terminal device can support the application client to provide the changed service quality parameters through the service quality interface, so that the application client can subsequently make adaptive adjustments based on the changed service quality parameters, thereby expanding the application client's ability to obtain and use service quality parameters in the service quality mechanism.
[0165] Please also see Fig. 9 , Fig. 9 1 is a flow chart of a data processing method provided by an embodiment of the present application. The data processing method can be jointly executed by a session management network element, a terminal device (including a service quality interface), and an application client running on the terminal device. Fig. 9 As shown, the data processing method may at least include the following steps:
[0166] Step S701: When a protocol data unit session is established, the session management network element may send quality of service rules and quality of service parameters to the terminal device.
[0167] Step S702: After receiving the quality of service rules and quality of service parameters, the terminal device may map the service data packets sent by the application client corresponding to the protocol data unit session to the quality of service flow based on the quality of service rules. For the specific process, please refer to the above Figure 3 Step S102 in the corresponding embodiment will not be described in detail here.
[0168] In step S703, the terminal device may generate a second interface instruction and send it to the session management network element to indicate to the session management network element whether the terminal device supports the quality of service interface.
[0169] Step S704: After receiving the second interface instruction, the session management network element may judge the second interface instruction. If the second interface instruction is an interface support instruction, the session management network element may generate a first interface instruction based on the interface indication information, wherein the interface indication information includes but is not limited to the contract information of the terminal device, the data network name carried when the protocol data unit session is initiated, and the single network slice selection auxiliary information, the operator's own configuration, and one or more of the network policies. The first interface instruction may be an interface opening instruction or an interface closing instruction.
[0170] Optionally, if the second interface instruction is an instruction that is not supported by the interface, or the terminal device does not send the second interface instruction, the session management network element may not generate the first interface instruction.
[0171] Step S705: The session management network element may send the generated first interface instruction to the terminal device.
[0172] Step S706: The application client may send a parameter acquisition request to the quality of service interface on the terminal device.
[0173] Step S707: When the terminal device receives the parameter acquisition request, it can first determine the first interface instruction. If the first interface instruction is an interface opening instruction, the target service quality parameter corresponding to the service quality flow can be obtained from the service quality parameter according to the parameter acquisition request. The specific process can be referred to above. Figure 5 The corresponding step S303 in the embodiment.
[0174] Step S708: The terminal device may send the target quality of service parameter to the application client via the quality of service interface.
[0175] Step S709: If the first interface instruction is an interface closing instruction, the terminal device may generate request rejection information through the quality of service interface.
[0176] In step S710, the terminal device may send request rejection information to the application client via the quality of service interface.
[0177] Step S711, the application client may sign a contract for a parameter change notification function with the terminal device through a quality of service interface.
[0178] Step S712: When the target quality of service parameter changes, the session management network element may update the target quality of service parameter to obtain an updated quality of service parameter, and then send the updated quality of service parameter to the terminal device.
[0179] Step S713, the terminal device obtains the updated service quality parameters sent by the session management network element, and sends the updated service quality parameters to the application client through the service quality interface. Optionally, the terminal device may also first send a parameter change notification message to the application client, and then the application client may re-initiate a parameter acquisition request based on the parameter change notification message, and finally obtain the updated service quality parameters.
[0180] Optionally, the terminal device may also send the changing trend of the actual service quality parameters to the application client through the service quality interface; or when the changed target service quality parameters exceed the threshold value, the changed target service quality parameters or a notification that the changed target service quality parameters exceed the threshold value may be sent to the application client.
[0181] In an embodiment of the present application, through the interaction between the application client, the terminal device and the session management network element, corresponding service quality parameters can be provided to the application client running on the terminal device. In addition, when the service quality parameters change, the changed service quality parameters can also be provided to the application client, so that the application client can subsequently make adaptive adjustments based on the service quality parameters, thereby expanding the ability of the application client to obtain and use the service quality parameters in the service quality mechanism.
[0182] See also Fig.10 , is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running on a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. Fig.10 As shown, the data processing device 1 can be run on a terminal device, which can be the above-mentioned Figure 2 The corresponding embodiment is the terminal device A. The data processing device 1 may include: a request acquisition module 11, a parameter acquisition module 12, and a parameter sending module 13;
[0183] The request acquisition module 11 is used to acquire the parameter acquisition request sent by the application client corresponding to the protocol data unit session through the service quality interface; the application client runs in the terminal device;
[0184] The parameter acquisition module 12 is used to acquire the target quality of service parameters corresponding to the quality of service flow according to the parameter acquisition request; the quality of service flow is associated with the service data packet provided by the application client, and the target quality of service parameters are issued by the session management network element;
[0185] A parameter sending module 13, used to send the target quality of service parameters to the application client through the quality of service interface;
[0186] In one implementation, the application client is a client that executes a streaming media service;
[0187] The parameter sending module 13 is specifically used to send a parameter acquisition response message containing target service quality parameters to the application client through the service quality interface, so that the application client adjusts the encoding algorithm based on the target service quality parameters, and generates an optimized business data packet based on the adjusted encoding algorithm and streaming media data.
[0188] The specific functional implementation of the request acquisition module 11 can be found in the above Figure 3The specific functional implementation of the parameter acquisition module 12 in the corresponding embodiment of step S101 can be found in the above Figure 3 The specific functional implementation of the parameter sending module 13 in step S102 of the corresponding embodiment can be referred to in the above Figure 3 Step S103 in the corresponding embodiment will not be described in detail here.
[0189] Please also see Fig.10 , the data processing device 1 may further include: a mapping module 14;
[0190] The mapping module 14 is used to receive the QoS rules and QoS parameters sent by the session management network element, and based on the QoS rules, map the service data packets sent by the application client to the QoS flow; the QoS flow is associated with the target QoS parameters in the QoS parameters.
[0191] The specific functional implementation of the mapping module 14 can be found in the above Figure 3 Step S102 in the corresponding embodiment will not be described in detail here.
[0192] Please also see Fig.10 , the data processing device 1 may further include: a contract notification module 15, a change notification module 16;
[0193] Notification contracting module 15, used to contract for parameter change notification function associated with application client through quality of service interface;
[0194] The change notification module 16 is used to generate a parameter change notification message based on the parameter change notification function when the target service quality parameter changes, and send the parameter change notification message to the application client through the service quality interface, so that the application client re-initiates a parameter acquisition request based on the parameter change notification message.
[0195] The specific functional implementation of the notification signing module 15 and the change notification module 16 can be found in the above Figure 5 Step S304 in the corresponding embodiment will not be described in detail here.
[0196] Please also see Fig.10 , the data processing device 1 may further include: an interface opening module 17;
[0197] The interface opening module 17 is used to obtain the first interface instruction issued by the session management network element; if the first interface instruction is an interface opening instruction, the step of obtaining the target service quality parameters corresponding to the service quality flow according to the parameter acquisition request is executed; the interface opening instruction instructs the terminal device to open the service quality interface to the application client.
[0198] The specific functional implementation of the interface opening module 17 can be found in the above Figure 5 Step S301 and step S303 in the corresponding embodiment will not be described in detail here.
[0199] Please also see Fig.10 , the data processing device 1 may further include: an interface closing module 18;
[0200] The interface closing module 18 is used to send a request rejection message to the application client through the quality of service interface if the first interface instruction is an interface closing instruction; the interface closing instruction instructs the terminal device not to open the quality of service interface to the application client;
[0201] In one implementation, the request rejection information includes a rejection reason identifier; the rejection reason identifier represents a rejection reason for the parameter acquisition request.
[0202] The specific functional implementation of the interface closing module 18 can be found in the above Figure 5 Step S305 in the corresponding embodiment will not be described in detail here.
[0203] Please also see Fig.10 , the data processing device 1 may further include: an interface support module 19;
[0204] The interface support module 19 is used to send the second interface instruction to the session management network element; if the second interface instruction is an interface support instruction, the step of obtaining the first interface instruction issued by the session management network element is executed; the interface support instruction indicates that the terminal device supports the service quality interface.
[0205] The specific functional implementation of the interface support module 19 can be found in the above Figure 7 Step S501 in the corresponding embodiment will not be described in detail here.
[0206] Please also see Fig.10 , the parameter acquisition module 12 may include: an identification unit 121 and an acquisition unit 122;
[0207] An identification unit 121 is configured to obtain a quality of service flow identifier associated with the application client according to the parameter acquisition request, and identify a quality of service flow corresponding to the quality of service flow identifier;
[0208] The acquiring unit 122 is configured to acquire a target quality of service parameter corresponding to the quality of service flow from the quality of service parameters.
[0209] The specific functional implementation of the identification unit 121 and the acquisition unit 122 can be found in the above Figure 3 Step S102 in the corresponding embodiment will not be described in detail here.
[0210] The embodiment of the present application can support the terminal device to obtain the parameter acquisition request sent by the application client corresponding to the protocol data unit session through the service quality interface, and then can obtain the target service quality parameters corresponding to the service quality flow associated with the business data packet of the application client according to the parameter acquisition request, and finally send the target service quality parameters to the application client through the service quality interface. It can be seen that when the terminal device establishes a protocol data unit session or after establishing a protocol data unit session, it can respond to the parameter acquisition request sent by the application client running on the terminal device, and provide the application client with corresponding service quality parameters, so that the application client can subsequently make adaptive adjustments based on the corresponding service quality parameters, thereby expanding the ability of the application client to obtain and use service quality parameters in the service quality mechanism.
[0211] See also Fig.11 , is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running on a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. Fig.11 As shown, the data processing device 2 can be run on a terminal device, which can be the above-mentioned Figure 2 The corresponding embodiment is the terminal device A. The data processing device 2 may include: a contract module 21, an update module 22;
[0212] A contracting module 21 is used to sign a contract for a parameter change notification function associated with an application client through a quality of service interface; the application client is a client corresponding to a protocol data unit session, and the application client runs in a terminal device;
[0213] The updating module 22 is used to obtain the updated service quality parameters issued by the session management network element based on the parameter change notification function, and send the updated service quality parameters to the application client through the service quality interface; updating the service quality parameters refers to updating the service quality parameters corresponding to the service quality flow.
[0214] The specific functional implementation of the signing module 21 can be found in the above Figure 8 The specific functional implementation of the update module 22 in the corresponding embodiment of step S602 can be found in the above Figure 8 Step S602 in the corresponding embodiment will not be described in detail here.
[0215] In an embodiment of the present application, through the contract parameter change notification function, the terminal device can support the application client to provide the changed service quality parameters through the service quality interface, so that the application client can subsequently make adaptive adjustments based on the changed service quality parameters, thereby expanding the application client's ability to obtain and use service quality parameters in the service quality mechanism.
[0216] See also Fig.12 , is a schematic diagram of the structure of a network element device provided in an embodiment of the present application. The network element device may be a computer program (including program code) running on a network element device, for example, the network element device is an application software; the device may be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. Fig.12 As shown, the network element device 3 can be run in a session management network element. The network element device 3 may include: a sending module 31;
[0217] The sending module 31 is used to send service quality rules and service quality parameters to the terminal device, so that the terminal device can map the business data packets sent by the application client corresponding to the protocol data unit session to the service quality flow based on the service quality rules; the application client has the function of generating a parameter acquisition request, and the parameter acquisition request instructs the terminal device to send the target service quality parameters corresponding to the service quality flow to the application client through the service quality interface; the application client runs in the terminal device; the service quality parameters include target service quality parameters.
[0218] The specific functional implementation of the sending module 31 can be found in the above Fig. 9 Step S701 in the corresponding embodiment will not be described in detail here.
[0219] Please also see Fig.12 , the network element device 3 may further include: an instruction generating module 32;
[0220] The instruction generation module 32 is used to generate a first interface instruction based on the interface indication information and send the first interface instruction to the terminal device; the first interface instruction is an interface opening instruction or an interface closing instruction; the interface opening instruction instructs the terminal device to open the service quality interface to the application client; the interface closing instruction instructs the terminal device not to open the service quality interface to the application client.
[0221] The specific functional implementation of the instruction generation module 32 can be found in the above Fig. 9 Steps S704 to S705 in the corresponding embodiment will not be described in detail here.
[0222] Please also see Fig.12 , the network element device 3 may further include: an instruction acquisition module 33;
[0223] The instruction acquisition module 33 is used to acquire the second interface instruction sent by the terminal device; if the second interface instruction is an interface support instruction, the step of generating the first interface instruction based on the interface indication information is executed; the interface support instruction indicates that the terminal device supports the service quality interface.
[0224] The specific function implementation of the instruction acquisition module 33 can be found in the above Fig. 9 Steps S703 and S704 in the corresponding embodiment will not be described in detail here.
[0225] In an embodiment of the present application, through the interaction between the application client, the terminal device and the session management network element, corresponding service quality parameters can be provided to the application client running on the terminal device. In addition, when the service quality parameters change, the changed service quality parameters can also be provided to the application client, so that the application client can subsequently make adaptive adjustments based on the service quality parameters, thereby expanding the ability of the application client to obtain and use the service quality parameters in the service quality mechanism.
[0226] See also Fig.13 , is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.13 As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.13 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application. In the embodiment of the present application, the computer device 1000 may be a terminal device.
[0227] In such Fig.13In the computer device 1000 shown in the figure, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to enable the computer device 1000 to execute the above Figure 3 , Figure 5 , Figure 7 , Figure 8 , Fig. 9 The description of the data processing method in any corresponding embodiment can also be performed as described above. Fig.10 In the corresponding embodiment, the data processing device 1 or Fig.11 The description of the data processing device 2 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0228] See also Fig.14 , is a schematic diagram of the structure of a network element device provided in an embodiment of the present application. Fig.14 As shown, the network element device 2000 may include: a processor 2001, a network interface 2003 and a memory 2004. In addition, the above network element device 2000 may also include: at least one communication bus 2002. The communication bus 2002 is used to realize the connection and communication between these components. The network interface 2003 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 2004 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 2004 may optionally be at least one storage device located away from the aforementioned processor 2001. As Fig.14 As shown, the memory 2004 as a computer-readable storage medium may include an operating system, a network communication module, and a device control application. In the embodiment of the present application, the network element device 2000 may be a session management network element.
[0229] In such Fig.14 In the network element device 2000 shown in the figure, the network interface 2003 can provide a network communication function; and the processor 2001 can be used to call the device control application stored in the memory 2004, so that the network element device 2000 executes the above Fig. 9 The description of the data processing method in the corresponding embodiment can also be performed as described above. Fig.12 The description of the network element device 3 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.
[0230] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 or the data processing device 2 or the network element device 3 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above Figure 3 , Figure 5 , Figure 7 , Figure 8 , Fig. 9 The description of the above data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0231] The above-mentioned computer-readable storage medium may be the data processing device or network element device provided in any of the above-mentioned embodiments or the internal storage unit of the above-mentioned computer device or network element device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device (or network element device), such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device (or network element device) and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device (or network element device). The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0232] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above Figure 3 , Figure 5 , Figure 7 , Figure 8 , Fig. 9 In addition, the processor of the network element device can also read the computer instruction from the computer readable storage medium, and the processor executes the computer instruction so that the network element device executes the above Fig. 9 The method provided by the corresponding embodiment.
[0233] For further information, see Fig.15 , Fig.15 1 is a schematic diagram of a data processing system provided in an embodiment of the present application. The data processing system 4 may include a data processing device 1a, a data processing device 2a and a network element device 3a. The data processing device 1a may be the above-mentioned Fig.10 The data processing device 1 in the corresponding embodiment can be understood that the data processing device 1a can be integrated in the above Figure 2 The corresponding terminal device A in the embodiment is not described in detail here. The data processing device 2a can be the above-mentioned Fig.11 The data processing device 2 in the corresponding embodiment can be understood that the data processing device 2a can be integrated in the above Figure 2 The corresponding terminal device A in the embodiment will not be described in detail here. Fig.12 The network element device 3 in the corresponding embodiment will not be described in detail here. In addition, the description of the beneficial effects of the same method will not be described in detail. For technical details not disclosed in the data processing system embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0234] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0235] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0236] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: include: When establishing a protocol data unit session, the terminal device receives the quality of service rules and quality of service parameters issued by the session management network element, and maps the service data packets sent by the application client to the quality of service flow based on the quality of service rules; The application client runs in the terminal device; After the protocol data unit session is established, the terminal device obtains a parameter acquisition request sent by the application client corresponding to the protocol data unit session through a quality of service interface; Acquire a quality of service flow identifier associated with the application client according to the parameter acquisition request, identify the quality of service flow corresponding to the quality of service flow identifier, and acquire a target quality of service parameter corresponding to the quality of service flow from quality of service parameters pre-acquired locally; The quality of service flow is associated with the service data packet provided by the application client; sending the target quality of service parameter to the application client via the quality of service interface; The application client is used to adjust the encoding algorithm used in the streaming media service based on the target service quality parameter, and is also used to generate an optimized service data packet based on the adjusted encoding algorithm and the streaming media data generated in the streaming media service; The application client in the terminal device signs a parameter change notification function via the quality of service interface; When the target service quality parameter changes and the changed target service quality parameter exceeds a threshold value, a parameter change notification message is generated based on the parameter change notification function to indicate that the changed target service quality parameter exceeds the threshold value, and the parameter change notification message is sent to the application client through the service quality interface, so that the application client re-initiates a parameter acquisition request based on the parameter change notification message.
2. The method according to claim 1, characterized in that: Also includes: Obtaining a first interface instruction issued by the session management network element; If the first interface instruction is an interface opening instruction, the step of acquiring the target quality of service parameter corresponding to the quality of service flow according to the parameter acquisition request is executed; the interface opening instruction instructs the terminal device to open the quality of service interface to the application client.
3. The method according to claim 2, characterized in that Also includes: If the first interface instruction is an interface closing instruction, sending a request rejection message to the application client through the quality of service interface; The interface closing instruction instructs the terminal device not to open the quality of service interface to the application client.
4. The method according to claim 3, characterized in that The request rejection information includes a rejection reason identifier; the rejection reason identifier represents a rejection reason for the parameter acquisition request.
5. The method according to claim 2, characterized in that: Also includes: Sending a second interface instruction to the session management network element; If the second interface instruction is an interface support instruction, the step of obtaining the first interface instruction issued by the session management network element is performed; the interface support instruction indicates that the terminal device supports the quality of service interface.
6. A data processing method, characterized in that: include: When establishing a protocol data unit session, the session management network element sends a quality of service rule and a quality of service parameter to the terminal device, so that the terminal device maps a service data packet sent by an application client corresponding to the protocol data unit session to a quality of service flow based on the quality of service rule; The application client has a function of generating a parameter acquisition request after establishing the protocol data unit session, wherein the parameter acquisition request instructs the terminal device to send the target quality of service parameter corresponding to the quality of service flow in the quality of service parameter pre-acquired locally to the application client through the quality of service interface; The application client runs in the terminal device; the service quality parameter includes the target service quality parameter; The target quality of service parameter is a quality of service parameter corresponding to a quality of service flow obtained by the terminal device from the quality of service parameter, and the quality of service flow is obtained by the terminal device through identifying a quality of service flow identifier associated with the application client obtained according to the parameter acquisition request; the application client is used to adjust the encoding algorithm used in the streaming media service based on the target quality of service parameter, and is also used to generate an optimized service data packet based on the adjusted encoding algorithm and the streaming media data generated in the streaming media service; Among them, the application client in the terminal device is used to sign a parameter change notification function through the service quality interface; the terminal device is used to generate a parameter change notification message for indicating that the changed target service quality parameter exceeds the threshold value based on the parameter change notification function when the target service quality parameter changes and the changed target service quality parameter exceeds the threshold value, and is used to send the parameter change notification message to the application client through the service quality interface, and the application client is used to re-initiate a parameter acquisition request based on the parameter change notification message.
7. The method according to claim 6, characterized in that Also includes: Generate a first interface instruction based on the interface indication information, and send the first interface instruction to the terminal device; The first interface instruction is an interface opening instruction or an interface closing instruction; the interface opening instruction instructs the terminal device to open the quality of service interface to the application client; the interface closing instruction instructs the terminal device not to open the quality of service interface to the application client.
8. The method according to claim 7, characterized in that Also includes: Obtaining a second interface instruction sent by the terminal device; If the second interface instruction is an interface support instruction, the step of generating the first interface instruction based on the interface indication information is performed; the interface support instruction indicates that the terminal device supports the quality of service interface.
9. A computer device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program code, and the processor is used to call the program code so that the computer device executes the method described in any one of claims 1-5.
10. A network element device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store program code, and the processor is used to call the program code so that the network element device executes the method described in any one of claims 6-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method according to any one of claims 1 to 8.
Citation Information
Cited By
Data processing method, device, readable storage medium, and program product
WO2023035894A1
