Search

EP-4742741-A1 - DATA TRANSMISSION METHOD, AND DEVICE, READABLE STORAGE MEDIUM AND PROGRAM PRODUCT

EP4742741A1EP 4742741 A1EP4742741 A1EP 4742741A1EP-4742741-A1

Abstract

This application discloses a data transmission method, a device, a readable storage medium, and a program product, and relates to the field of terminal technologies. In this application, when the device receives a data packet of a service of a first service type, if a QoS control function corresponding to the first service type is already set by a user to an enabled state, and a currently used APN includes a first APN allocated for the first service type, the device determines a first dedicated bearer corresponding to the first APN, and performs transmission of the data packet on the first dedicated bearer. It can be learned that, in this application, the user determines whether to perform QoS control on a service of a type. When the user determines to perform QoS control on a service of a service type, the device performs transmission of data of the service of the service type on a dedicated bearer for a dedicated APN corresponding to the service type, to guarantee quality of service of the service of the service type, achieve user-intention-based QoS guarantee, and improve user experience.

Inventors

  • YANG, LIN
  • HAN, Yaohui
  • PENG, Yicheng
  • KANG, Jianchi
  • WANG, WEIGANG
  • Peng, Xiaolin
  • MA, Liqiang

Assignees

  • Huawei Technologies Co., Ltd.

Dates

Publication Date
20260513
Application Date
20250328

Claims (13)

  1. A data transmission method, applied to a device, wherein the method comprises: receiving a first data packet, wherein a service type of a first service to which the first data packet belongs is a first service type; if a quality of service QoS control function corresponding to the first service type is in an enabled state, and a currently used access point name APN comprises a first APN, determining a first dedicated bearer corresponding to the first APN, wherein the first APN is an APN allocated to a service of the first service type, and the enabled state of the QoS control function is preset by a user; and performing transmission of the first data packet on the first dedicated bearer.
  2. The method according to claim 1, wherein before the receiving the first data packet, the method further comprises: when detecting that the QoS control function corresponding to the first service type is enabled, performing detection of whether the currently used APN comprises the first APN; and if the currently used APN does not comprise the first APN, establishing a PDN connection by using the first APN.
  3. The method according to claim 1 or 2, wherein the determining the first dedicated bearer corresponding to the first APN comprises: if the first APN corresponds to a first filter rule set, performing detection of whether the first filter rule set comprises a first filter rule, wherein the first filter rule is used for causing the first data packet to pass, and the first filter rule set corresponds to a dedicated bearer; and if the first filter rule set comprises the first filter rule, determining, as the first dedicated bearer, the dedicated bearer corresponding to the first filter rule set.
  4. The method according to claim 3, wherein the method further comprises: if the first filter rule set does not comprise the first filter rule, updating the first filter rule set based on the first data packet, wherein an updated first filter rule set comprises the first filter rule; and determining, as the first dedicated bearer, the dedicated bearer corresponding to the first filter rule set.
  5. The method according to claim 1 or 2, wherein the determining the first dedicated bearer corresponding to the first APN comprises: if the first APN does not correspond to a first filter rule set, configuring the first filter rule set for the first APN based on the first data packet, and configuring corresponding first QoS information for the first filter rule set, wherein the first filter rule set comprises a first filter rule, the first filter rule is used for causing the first data packet to pass, and the first QoS information comprises a QoS parameter of the service of the first service type; and creating the first dedicated bearer corresponding to the first filter rule set.
  6. The method according to claim 5, wherein the creating the first dedicated bearer corresponding to the first filter rule set comprises: sending a dedicated-bearer resource allocation request to a network device, wherein the dedicated-bearer resource allocation request comprises the first APN, the first filter rule set, and the first QoS information; receiving dedicated-bearer configuration information from the network device; and activating the first dedicated bearer based on the dedicated-bearer configuration information.
  7. The method according to any one of claims 3 to 6, wherein the method further comprises: if detecting that a service status of the first service is an end state, deleting the first filter rule in the first filter rule set.
  8. The method according to claim 7, wherein the method further comprises: if the first filter rule set comprises no filter rule, deleting the first filter rule set, and releasing the first dedicated bearer.
  9. The method according to any one of claims 3 to 6, wherein the method further comprises: when detecting that the QoS control function corresponding to the first service type is disabled, deleting the first filter rule set, and releasing the first dedicated bearer.
  10. The method according to any one of claims 1 to 9, wherein the method further comprises: receiving a second data packet, wherein a service type of a second service to which the second data packet belongs is a second service type, and the second service type is different from the first service type; if a QoS control function corresponding to the second service type is in an enabled state, and a currently used APN comprises a second APN, determining a second dedicated bearer corresponding to the second APN, wherein the second APN is an APN allocated to a service of the second service type; and performing transmission of the second data packet on the second dedicated bearer.
  11. A device, wherein the device comprises a processor, and the processor is configured to execute at least one program instruction or code stored in a memory, to implement the data transmission method according to any one of claims 1 to 10.
  12. A readable storage medium, wherein the readable storage medium stores instructions, and when the instructions are run on a device, the device is caused to perform the data transmission method according to any one of claims 1 to 10.
  13. A program product comprising instructions, wherein when the instructions are run by a device, the device is caused to perform the data transmission method according to any one of claims 1 to 10.

Description

This application claims priority to Chinese Patent Application No. 202410642803.0, filed with the China National Intellectual Property Administration on May 22, 2024 and entitled "DATA TRANSMISSION METHOD, DEVICE, READABLE STORAGE MEDIUM, AND PROGRAM PRODUCT", which is incorporated herein by reference in its entirety. TECHNICAL FIELD This application relates to the field of terminal technologies, and in particular, to a data transmission method, a device, a readable storage medium, and a program product. BACKGROUND Currently, devices such as smartphones and tablet computers may be connected to a network via customer premises equipment (customer premises equipment, CPE). A quantity of devices connected to the CPE is usually large, and requirements of services run on different devices may vary. For example, services run on some devices require low data transmission latency. For another example, services run on some devices require large transmission bandwidth. In view of this, how to guarantee a requirement of a service of a device connected to the CPE is an urgent problem to be resolved. SUMMARY This application provides a data transmission method, a device, a readable storage medium, and a program product, to achieve QoS guarantee of a service of a specified service type based on user selection, and improve user experience. To achieve the foregoing objective, this application uses the following technical solutions. According to a first aspect, a data transmission method is provided, which is applied to a device. The method includes: receiving a first data packet, where a service type of a first service to which the first data packet belongs is a first service type; if a quality of service (quality of service, QoS) control function corresponding to the first service type is in an enabled state, and a currently used access point name (access point name, APN) includes a first APN, determining a first dedicated bearer corresponding to the first APN, where the first APN is an APN allocated to a service of the first service type, and the enabled state of the QoS control function is preset by a user; and performing transmission of the first data packet on the first dedicated bearer. It should be understood that the device includes but is not limited to CPE. The first service type may be a latency-first type or a bandwidth-first type. The latency-first means that there is a high latency requirement, and the bandwidth-first means that there is a high bandwidth requirement. The latency-first type may include game, conference, real-time video, and the like. The bandwidth-first type may include video download, large file download, and the like. Correspondingly, the first service type may alternatively be any one of the foregoing latency-first types, or any one of the foregoing bandwidth-first types. Optionally, the method further includes: receiving a second data packet, where a service type of a second service to which the second data packet belongs is a second service type, and the second service type is different from the first service type; if a quality of service QoS control function corresponding to the second service type is in an enabled state, and the currently used access point name APN includes a second APN, determining a second dedicated bearer corresponding to the second APN, where the second APN is an APN allocated to a service of the second service type; and performing transmission of the second data packet on the second dedicated bearer. The second service type is different from the first service type. For example, the first service type is a latency-first type, and the second service type is a bandwidth-first type; or the first service type and the second service type are different types included in the latency-first type or the bandwidth-first type. For example, the first service type is the game, and the second service type is the conference. In this application, when a data packet of the service of the first service type is received, if the QoS control function corresponding to the first service type is already set by the user to the enabled state, and a currently used APN is the first APN allocated to the first service type, the first dedicated bearer corresponding to the first APN may be determined, and transmission of the data packet is performed on the first dedicated bearer. It can be learned that, in this embodiment of this application, the user may determine whether to perform QoS control on a service of a type. When the user determines to perform QoS control on a service of a type, transmission of data of the service of the type is performed on a dedicated bearer for a dedicated APN corresponding to the service type, to guarantee quality of service of the service of the type, achieve user-intention-based QoS guarantee, and improve user experience. Optionally, before receiving the first data packet, the method further includes: when detecting that the QoS control function corresponding to the