Data transmission method, and device, readable storage medium and program product
By detecting service types and using dedicated bearers to transmit data packets, the QoS guarantee problem of differentiated service requirements in multi-device scenarios is solved, realizing user-driven service quality improvement and resource optimization.
Patent Information
- Application Number
- PCT/CN2025/085796
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-22
- Filing Date
- 2025-03-28
- Publication Date
- 2025-11-27
AI Technical Summary
In multi-device scenarios, existing technologies struggle to effectively guarantee QoS for different devices' varying service requirements, especially those prioritizing latency and bandwidth.
By receiving data packets and detecting their service type, if the QoS control function is enabled, data transmission is carried out using the dedicated bearer allocated for that service type to ensure service quality. This includes APN detection and the establishment and release of dedicated bearers, and QoS control is performed according to the user's wishes.
It achieves QoS guarantee based on user preferences, improves the service quality and user experience of device services, reduces resource consumption and lowers device power consumption.
Smart Images

Figure CN2025085796_27112025_PF_FP_ABST
Abstract
Description
Data transmission method, device, readable storage medium and program product
[0001] The present application claims priority from the Chinese patent application No. 202410642803.0 filed on May 22, 2024, and entitled "Data transmission method, device, readable storage medium and program product", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminals, and in particular to a data transmission method, device, readable storage medium and program product. BACKGROUND
[0003] At present, devices such as smart phones, tablet computers and the like can connect to a network through customer premises equipment (CPE). Among them, the number of devices connected to the CPE is often large, and the requirements of services running on different devices may be different. For example, some devices running services require small data transmission latency, and for example, some devices running services require large transmission bandwidth. Based on this, how to guarantee the service requirements of devices connected to the CPE is a problem to be solved. SUMMARY
[0004] The present application provides a data transmission method, device, readable storage medium and program product, which can realize QoS guarantee for services of a specified service type based on user selection, and improve user experience.
[0005] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:
[0006] In a first aspect, a data transmission method is provided, applied to a device, and the method comprises: receiving a first data packet, a service type of a first service to which the first data packet belongs being 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) includes a first APN, determining a first dedicated bearer corresponding to the first APN, the first APN being an APN allocated for services of the first service type, and the enabled state of the QoS control function being pre-set by a user; and transmitting the first data packet through the first dedicated bearer. It should be understood that the device includes but is not limited to the CPE.
[0007] The first service type can be a delay-priority type or a bandwidth-priority type, where the delay-priority type refers to a type with a higher delay requirement, and the bandwidth-priority type refers to a type with a higher bandwidth requirement. The delay-priority type can include gaming, conference, real-time video, and the like. The bandwidth-priority type can include video download, large file download, and the like. Correspondingly, the first service type can be any one of the above delay-priority types, or any one of the above bandwidth-priority types.
[0008] Optionally, the method further includes: receiving a second data packet, a service type of a second service to which the second data packet belongs is a second service type, 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 a currently used access point name (APN) includes a second APN, determining a second dedicated bearer corresponding to the second APN, the second APN being an APN allocated for the service of the second service type; and transmitting the second data packet through the second dedicated bearer.
[0009] The second service type is different from the first service type. For example, the first service type is a delay-priority type, and the second service type is a bandwidth-priority type; or the first service type and the second service type are different types included in the delay-priority type or the bandwidth-priority type, for example, the first service type is gaming, and the second service type is conference.
[0010] In the present application, when a data packet of a service of a first service type is received, if a QoS control function corresponding to the first service type has been set to an enabled state by a user, and a currently used APN is a first APN allocated for the first service type, a first dedicated bearer corresponding to the first APN can be determined, and the data packet can be transmitted through the first dedicated bearer. As can be seen, in the embodiments of the present application, whether to perform QoS control on a service of a certain type can be determined by the user. In the case where the user decides to perform QoS control on the service of a certain service type, the service data of the service type is transmitted through a dedicated bearer under a dedicated APN corresponding to the service type, so as to guarantee the service quality of the service of the service type, and the user experience is improved.
[0011] Optionally, before the first data packet is received, the method further includes: when it is detected that the QoS control function corresponding to the first service type is enabled, detecting whether the currently used APN includes the first APN; if the currently used APN does not include the first APN, establishing a packet data network (PDN) connection using the first APN.
[0012] In the present application, the first APN is an APN allocated for the service of the first service type, that is, the first APN is a customized APN for the service of the first service type. On this basis, when it is detected that the QoS control function corresponding to the first service type is enabled, it can be detected whether the PDN connection has been successfully established through the customized APN of the first service type, and in the case where the PDN connection has been successfully established, the data packet of the service corresponding to the first service type can be transmitted by using the dedicated bearer under the PDN connection. As can be seen, the present application uses the dedicated bearer corresponding to the customized APN of the specified service type to transmit the data of the service of the corresponding service type, so as to guarantee the service quality of the service of the service type.
[0013] Optionally, the determining of the implementation process of the first dedicated bearer corresponding to the first APN can include: if the first APN corresponds to a first filter rule set, detecting whether the first filter rule set includes a first filter rule, the first filter rule being used for passing the first data packet, the first filter rule set corresponding to a dedicated bearer; and if the first filter rule set includes the first filter rule, determining the dedicated bearer corresponding to the first filter rule set as the first dedicated bearer.
[0014] In the present application, the first filter rule set refers to a filter rule set used for mapping the data packet of the first service to the first dedicated bearer. If the first APN corresponds to the first filter rule set, it means that the bearer corresponding to the first APN includes the first dedicated bearer used for transmitting the data packet of the first service. On this basis, if the first filter rule set further includes the first filter rule used for passing the first data packet, the first data packet can be directly mapped to the dedicated bearer corresponding to the first filter rule set through the first filter rule set.
[0015] Optionally, the method further includes: if the first filter rule set does not include the first filter rule, updating the first filter rule set based on the first data packet, the updated first filter rule set including the first filter rule; and determining the dedicated bearer corresponding to the first filter rule set as the first dedicated bearer.
[0016] Since the first filter rule set refers to a filter rule set used for mapping the data packet of the first service to the first dedicated bearer, if the first filter rule set does not include the first filter rule used for passing the first data packet of the first service, the first filter rule set can be refreshed according to the first data packet, so that the data packet of the first service can be mapped to the corresponding dedicated bearer for transmission through the first filter rule set.
[0017] Optionally, 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, the first filter rule set comprising a first filter rule for passing the first data packet, and the first QoS information comprising a QoS parameter of the first service type service; and creating the first dedicated bearer corresponding to the first filter rule set.
[0018] In the case that the first APN does not correspond to a first filter rule set, it indicates that the first dedicated bearer for transmitting the first data packet of the first service is not included in the bearer corresponding to the first APN. In this case, the first filter rule set can be generated, the first QoS information corresponding to the first filter rule set can be configured, and then the first dedicated bearer corresponding to the first filter rule set can be created. In this way, the first data packet of the first service can be mapped to the corresponding first dedicated bearer through the first filter rule set in the future, and the transmission of the data packet on the first dedicated bearer can be controlled based on the corresponding first QoS information, so as to realize the QoS control of the first service.
[0019] Optionally, the implementation process of creating the first dedicated bearer corresponding to the first filter rule set can comprise: sending a dedicated bearer resource allocation request to a network device, the dedicated bearer resource allocation request comprising 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.
[0020] The network device can be a radio access network device, for example, a base station. That is, the first dedicated bearer can be actively requested to be allocated resources by the radio access network device, and then the first dedicated bearer can be activated based on the configuration information fed back by the radio access network device.
[0021] Optionally, the method further comprises: if it is detected that the service state of the first service is an end state, deleting the first filter rule in the first filter rule set.
[0022] In the present application, if it is detected that the first service is ended, the first filter rule for passing the data packet of the first service can be deleted, so as to reduce resource occupation.
[0023] Optionally, the method further comprises: if the first filter rule set does not include a filter rule, deleting the first filter rule set and releasing the first dedicated bearer.
[0024] If the first filtering rule set no longer includes filtering rules, that is, the first filtering rule set is empty, it indicates that all services currently requiring the first dedicated bearer to transmit data have ended, in which case the first filtering rule set can be deleted and the first dedicated bearer can be released, so as to reduce the occupation of device storage resources and network resources, reduce device power consumption, and improve resource utilization.
[0025] Optionally, the method further includes: deleting the first filtering rule set and releasing the first dedicated bearer when it is detected that the QoS control function corresponding to the first service type is closed.
[0026] In the embodiments of the present application, the QoS control function of the first service type can be closed based on user intention, so that the corresponding first dedicated bearer is released, and user experience is improved.
[0027] In a second aspect, a device is provided, and the device includes a processor configured to execute at least one program instruction or code stored in a memory to implement the data transmission method of the first aspect.
[0028] In a third aspect, a readable storage medium is provided, and the readable storage medium stores instructions, and when the instructions are run on a device, the device executes the data transmission method of the first aspect.
[0029] In a fourth aspect, a program product is provided, and the program product includes instructions, and when the program product is run on a device, the device executes the data transmission method of the first aspect.
[0030] The technical effects obtained by the second aspect to the fourth aspect are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be described here. BRIEF DESCRIPTION OF DRAWINGS
[0031] FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
[0032] FIG. 2 is a schematic diagram of another communication system according to an embodiment of the present application;
[0033] FIG. 3 is a schematic diagram of another communication system according to an embodiment of the present application;
[0034] FIG. 4 is a schematic diagram of a software architecture of a CPE according to an embodiment of the present application;
[0035] FIG. 5 is a schematic diagram of a structure of a device according to an embodiment of the present application;
[0036] FIG. 6 is a flowchart of a process of opening a QoS control function of a first service type according to an embodiment of the present application;
[0037] FIG. 7 is a schematic diagram of a user starting a QoS control function of a conference service in a conference interface according to an embodiment of the present application;
[0038] FIG. 8 is an exemplary flowchart of starting a QoS control function of a game service according to an embodiment of the present application;
[0039] FIG. 9 is a flowchart of a data transmission method according to an embodiment of the present application;
[0040] FIG. 10 is an implementation flowchart of determining a first dedicated bearer corresponding to a first APN according to an embodiment of the present application;
[0041] FIG. 11 is an implementation flowchart of releasing a first dedicated bearer according to an embodiment of the present application;
[0042] FIG. 12 is another implementation flowchart of releasing a first dedicated bearer according to an embodiment of the present application;
[0043] FIG. 13 is an exemplary flowchart of interaction of various software modules in a CPE to implement data transmission of a game service according to an embodiment of the present application. DETAILED DESCRIPTION
[0044] To make the objectives, technical solutions and advantages of embodiments of the present application clearer, the following will further describe the embodiments of the present application with reference to the accompanying drawings.
[0045] Before the embodiments of the present application are explained in detail, the application scenarios involved in the embodiments of the present application are introduced.
[0046] With the development of Internet services, users have higher and higher requirements on network quality. However, in some areas where people are sparsely distributed, the deployment cost of wireless access network devices (for example, base stations) is relatively high, and therefore, the spacing between two adjacent base stations is relatively large. In this case, in order to ensure network quality, a CPE can be arranged near the residence of users in the area, so that the devices near the CPE can access the network by connecting to the CPE.
[0047] The number of devices connected to the CPE is usually large, and the requirements of services running on different devices can be different. For example, some services running on some devices require low data transmission latency, such as game services, real-time video services, conference services, etc. For another example, some services running on some devices require large transmission bandwidth, such as downloading large files. Based on this, the embodiments of the present application provide a data transmission method for guaranteeing the requirements of services running on devices connected to the CPE, so as to improve user experience.
[0048] Next, the implementation architecture involved in the embodiments of the present application is introduced.
[0049] FIG. 1 is a schematic diagram of a communication system to which a data transmission method provided in embodiments of the present application is applied. As shown in FIG. 1, the communication system can include a device 10, a CPE 11, and a cellular network 12. The device 10 and the CPE 11 are communicatively connected, and the CPE 11 and the cellular network 12 are communicatively connected.
[0050] In a possible scenario, the device 10 can communicate with the CPE 11 through a wireless local area network (WLAN). In this case, referring to FIG. 2, the CPE 11 can convert a cellular signal received from the cellular network 12 into a Wi-Fi signal and provide a Wi-Fi hotspot, thereby providing network services for the device 10 accessing the Wi-Fi hotspot.
[0051] In another possible scenario, the device 10 can communicate with the CPE 11 through an Ethernet. In this case, referring to FIG. 3, the device 10 can be connected to the CPE 11 through a router 13. The CPE 11 can convert a cellular signal received from the cellular network 12 into an Ethernet signal, send the Ethernet signal to the router 13 through an Ethernet cable 14, and then provide network services for the device 10 accessing the router 13.
[0052] It should be noted that in embodiments of the present application, the device 10 can also be referred to as a terminal, a user equipment, or the like. The device 10 can be a smartphone, a tablet computer, a personal computer, a wearable device, a smart home device, or the like.
[0053] The CPE 11 can be a router, a relay device, or the like provided with a subscriber identity module (SIM) card or an embedded-SIM (eSIM) card, or other routers, or can be a device such as a smartphone or a tablet computer having a router function, or the like.
[0054] The cellular network 12 can be a global system for mobile communications (GSM) network, a third generation (3G) communication network, a long term evolution (LTE) communication network, a 5th generation mobile networks (5G) network, or a future communication network, or the like.
[0055] The cellular network 12 can include a radio access network (RAN) and a core network (CN). The RAN can include at least one RAN node 120, and the CN can include at least one core network element 121. The CPE 11 can be connected to the RAN node 120 in a wireless manner, the RAN node 120 can be connected to the core network element 121 in a wireless or wired manner, and the core network element 121 can communicate with an external data network (DN), for example, the Internet.
[0056] The RAN node 120 can also be referred to as a radio access network device, a RAN entity, or an access node, to help the CPE 11 access the communication system in a wireless manner.
[0057] In one application scenario, the RAN node 120 can be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next generation NodeB (gNB) in a 5G communication system, or a base station in a future mobile communication system.
[0058] In another application scenario, the CPE can be helped to access the wireless network through cooperation of multiple RAN nodes, and different RAN nodes respectively implement part of the functions of the base station. For example, the RAN node can be a central unit (CU), a distributed unit (DU), or a radio unit (RU).
[0059] The data transmission method provided by the embodiments of the present application can be mainly applied to the CPE in the communication system introduced above. FIG. 4 is a software architecture diagram of a CPE provided by an embodiment of the present application. As shown in FIG. 4, the CPE can include a user interface (UI) module 110, a dialup module 111, a flow aware (FA) module 112, a service aware (SA) module 113, and a modem 114.
[0060] The UI module 110 can be configured to provide a UI to a user, for example, a website UI and / or a CPE management interface in an application. The user can perform user operations on the UI provided by the UI module 110 to achieve the setting of the relevant functions of the CPE. For example, in the embodiments of the present application, the user can turn on or turn off the QoS control function of a certain service type through the UI provided by the UI module 110, and the UI module can record the on-off state of the QoS control function of the service type based on the user operation, so that the dialing module 111 can determine whether to perform the subsequent steps to perform QoS control on the service of the service type according to the on-off state of the QoS control function of the service type.
[0061] The SA module 113 is configured to receive a service data packet from a device connected to the CPE, and identify the service type of the service data packet to obtain a service identification result. Then, the SA module 113 can send the service identification result and the service data packet to the FA module 112.
[0062] After receiving the service identification result sent by the SA module 113, the FA module 112 determines whether the service data packet is a service data packet of a specified service type based on the service identification result, for example, the specified service type can include a latency priority service type, a bandwidth priority service type, etc. Taking any service type such as a first service type as an example, when it is determined that the service data packet is a data packet of the first service type, the FA module can obtain the five-tuple information of the service data packet and send the five-tuple information and the service identification result to the dialing module 111.
[0063] After receiving the service identification result and the five-tuple information sent by the FA module 112, the dialing module 111 detects whether the QoS control function corresponding to the first service type indicated by the service identification result is in an on state; if it is in the on state and the currently used APN is a first APN allocated for the service of the first service type, the dialing module 111 can instruct the modem 114 to determine the first dedicated bearer corresponding to the first APN based on the five-tuple information through an AT (attention) command.
[0064] After determining the first dedicated bearer, the modem 114 can send the service data packet to the cellular network through the first dedicated bearer.
[0065] It should be noted that the division of the modules in the CPE in the above embodiments is illustrative, and is merely a logical functional division. In actual implementation, another division manner can also be used. In addition, each functional module in each embodiment of the present application can be integrated in one processor, or can be physically separated, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0066] When the integrated module is realized in the form of a software functional module and sold or used as an independent product, the integrated module can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions to make a device or a processor execute all or part of the steps of the method of the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various program code storage media.
[0067] In addition, the functions implemented by each module provided in the above embodiments and the method embodiments in the following belong to the same concept. The specific implementation process is detailed in the method embodiments, and will not be described here.
[0068] FIG. 5 is a hardware structure diagram of a device provided in an embodiment of the present application. The CPE shown in FIGS. 1 to 4 can be implemented by the device provided in FIG. 5. As shown in FIG. 5, the device 500 can include a processor 501, a memory 502, and a transceiver 503 including a transmitter 5031, a receiver 5032, and an antenna 5033. The device structure shown in FIG. 5 does not constitute a limitation on the device. The device 500 can include more or fewer components than those shown, or combine certain components, or different component arrangements, and the embodiments of the present application do not limit this. Each component of the device will be described in detail below with reference to FIG. 5.
[0069] The processor 501 is the control center of the device 500, which can be one processor or a collective term of multiple processing elements. For example, the processor 501 can be a general central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs of the solutions of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). The processor 501 can execute various functions of the device 500 by running or executing programs stored in the memory 502 and calling data stored in the memory 502. For example, the actions of the CPE in each of the embodiments introduced below can be executed by the processor of the device 500 calling data in the memory.
[0070] As an embodiment, the processor 501 can include one or more CPUs.
[0071] As an embodiment, the device 500 can include multiple processors. Each of these processors can be a single-CPU processor or a multi-CPU processor. Here, the processor can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0072] The memory 502 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by the device, but is not limited to this. The memory 502 can exist independently and be connected to the processor 501 through a communication bus. The memory 502 can also be integrated with the processor 501. The memory 502 is configured to store software programs for implementing the schemes provided in the embodiments of the present application, and the processor 501 is configured to control the execution of the software programs.
[0073] The transceiver 503 is configured to transceive signals. The receiver 5032 can be configured to receive information transmitted by the RAN node through the antenna 5033, for example, receive downlink service data, transmission control information, and the like transmitted by the base station. The transmitter 5031 can be configured to transmit information to the RAN node through the antenna 5033. For example, the transmitter 5031 can transmit uplink service data, transmission feedback information, and the like to the base station through the antenna 5033.
[0074] It should be noted that the above mainly introduces a communication system to which the data transmission method is applied. In some possible implementation manners, the data transmission method provided in the embodiments of the present application can also be applied to a communication system that does not include a CPE, for example, can be applied to various devices that directly perform wireless communication with the RAN node in a mobile communication system, and the embodiments of the present application are not limited thereto. Next, the data transmission method provided in the embodiments of the present application will be mainly introduced by taking the application in the CPE as an example.
[0075] Before introducing the data transmission method provided in the embodiments of the present application, first, some terms related to the embodiments of the present application will be introduced.
[0076] 1. APN
[0077] The APN is used to indicate a PDN to be accessed by the device and an access mode of accessing the corresponding PDN. One PDN connection can be established by using one APN.
[0078] 2. Default bearer
[0079] One PDN connection corresponds to one default bearer, which will be established during the existence of the PDN connection, so as to ensure that the device can always be provided with network services. There is no corresponding filter rule set for the default bearer.
[0080] 3. Dedicated bearer
[0081] During the existence of the PDN connection, the service data with certain QoS requirements can be transmitted by establishing a dedicated bearer, so as to ensure the quality of service of the corresponding service. One dedicated bearer corresponds to one filter rule set, which is used to filter the service data packets, so that the passing service data packets are transmitted on the dedicated bearer.
[0082] 4. Filter rule set
[0083] The filter rule set can include at least one filter rule, which can include rules for filtering uplink service data packets, or rules for filtering downlink service data packets. Each filter rule can include five-tuple information. When the five-tuple information of a certain service data packet matches the five-tuple information of a certain filter rule in the filter rule set, the service data packet can be mapped to the dedicated bearer corresponding to the filter rule set for transmission.
[0084] The filter rule set can be a traffic flow template (TFT) or a service data flow (SDF) template or a packet detection rule (PDR).
[0085] 5. QoS information
[0086] The QoS information is used to indicate the QoS requirements of at least one service, and corresponds to one dedicated bearer. The service data of at least one service corresponding to the same QoS information can be transmitted through the dedicated bearer corresponding to the QoS information.
[0087] Specifically, the QoS information can include a QoS parameter of the at least one service, and the QoS parameter can be used to indicate a parameter condition required to be met when the at least one service is transmitted. For example, the QoS parameter can include a QoS class identifier (QCI) or a 5G QoS identifier (5QI), which is used to indicate a forwarding priority, a delay, and a packet loss rate of service data. Alternatively, the QoS information can further include a QoS flow identifier (QFI), which is used to identify a QoS flow indicated by the QoS information, where a service data flow of at least one service corresponding to the same QoS information can be referred to as a QoS flow.
[0088] In the embodiment of the present application, whether to perform QoS control on a service of a certain service type can be determined by a user. In a case where the user determines to perform QoS control on a service of a certain service type, the user can start a QoS control function corresponding to the service type. Correspondingly, subsequently, after receiving a data packet of the service of the service type, the CPE can transmit service data of the service of the service type through a dedicated bearer under a dedicated APN corresponding to the service type, so as to guarantee the service quality of the service of the service type, and realize QoS guarantee based on user intention, thereby improving user experience. Based on this, first, a process in which the user starts a QoS control function of a certain service type is introduced. FIG. 6 is an implementation process of starting a QoS control function of a first service type according to an embodiment of the present application. As shown in FIG. 6, the implementation process includes the following steps:
[0089] S601: Based on a first operation of the user, the CPE starts a QoS control function corresponding to a first service type.
[0090] In some embodiments of the present application, when detecting the first operation of the user, the device connected to the CPE can send a first instruction to the CPE. In response to the first instruction, the CPE starts a QoS control function corresponding to the first service type.
[0091] In a possible implementation, the device connected to the CPE can display a first interface provided by the CPE. In response to a first operation of the user performed in the first interface, the device can send a first instruction to the CPE. The first operation refers to an operation of starting a QoS control function of a first service type, and the first instruction refers to an instruction indicating the CPE to start the QoS control function of the first service type triggered by the first operation.
[0092] It should be noted that the first interface can include relevant information of a first service that is running, and the service type of the first service is the first service type.
[0093] Specifically, the first service type can be a latency priority type, where latency priority means having a higher latency requirement. For example, the first service type can be a game, and accordingly, the first interface can be a game battle interface. For another example, the first service type can be a conference, and accordingly, the first interface can be a video conference interface. For another example, the first service type can be a real-time video, and accordingly, the first interface can be a video playing interface, and the like. Alternatively, the first service type can also be a bandwidth priority type, where bandwidth priority means having a higher bandwidth requirement. For example, the first service type can be data downloading, and accordingly, the first interface can be a downloading interface.
[0094] As an example, the first interface can include an opening option of the QoS control function. When the user wants to open the QoS control function of the first service type, the user can click the opening option. In response to the clicking operation on the opening option, the device can display options of a plurality of service types for the user to select the service type for which the user wants to open the QoS control function. Among the options of the plurality of service types, the option of the first service type is included. Then, the user can click the option of the first service type. In response to the clicking operation of the user on the option of the first service type, the device sends a first instruction to the CPE. The first instruction includes an identifier of the first service type.
[0095] For example, referring to FIG. 7, the first interface is a conference interface, and in the conference interface, an opening option 70 of the QoS control function can be displayed. After the user clicks the opening option 70 of the QoS control function, the device can display options 71 of service types for the user to select, including games, conferences, and real-time videos. The user can select a conference to indicate to open the QoS control function of the conference service, and accordingly, the device can send a first instruction containing an identifier of the conference service to the CPE based on the user selection.
[0096] As another example, the user can directly perform a preset gesture operation in the first interface, where the preset gesture operation is used to indicate to open the QoS control function of the service type corresponding to the service in the current interface. Based on this, after detecting the preset gesture operation, the device obtains the service type of the first service based on the related information of the first service displayed in the first interface, that is, the first service type, and then sends a first instruction to the CPE. The first instruction includes an identifier of the first service type.
[0097] In another possible implementation, a CPE management application is installed on a device connected with the CPE, and the user can start the CPE management application and enter a CPE setting interface. The CPE setting interface can display an opening option of the QoS control function. When the user wants to open the QoS control function of the first service type, the user can click the opening option. After detecting the clicking operation on the opening option of the QoS control function, the device can display options of multiple service types for the user to select the service type for which the user wants to open the QoS control function. Then, the user can click the option of the first service type. After detecting the clicking operation of the user on the option of the first service type, the device sends a first instruction to the CPE. The first instruction includes an identifier of the first service type.
[0098] After receiving the first instruction, the CPE can store the identifier of the first service type and an opening state identifier in a mapping relationship table of service type identifiers and state identifiers, so as to indicate that the QoS control function of the first service type has been opened.
[0099] In some other embodiments of the present application, the CPE can be provided with a switch button of the QoS control function. In this case, the user can also directly open the QoS control function of the first service type by operating the switch button of the QoS control function.
[0100] For example, the CPE can be provided with a switch button of the QoS control function of the corresponding service type for different service types. The user can open the QoS control function of the first service type by pressing the switch button of the QoS control function of the first service type.
[0101] S602: The CPE detects whether the currently used APN includes the first APN; if not, S603 is performed; if yes, the operation ends.
[0102] After opening the QoS control function of the first service type, the CPE can detect whether the currently used APN includes the first APN. The currently used APN refers to the APN that has been successfully dialed, that is, the APN for which a PDN connection has been successfully established. It should be noted that the currently used APN can be one or more. For example, in the case of single-APN supported by the CPE, the currently used APN is one, and in the case of multi-APN supported by the CPE, the currently used APN can be one or more.
[0103] In addition, the first APN is an APN allocated for the service of the first service type, that is, the first APN is an APN customized for the service of the first service type.
[0104] In the embodiment of the present application, for some types of services with special service requirements, the service provider can provide APNs specially allocated for these service types. For example, for services such as games, conferences, real-time videos, etc. with high latency requirements, the service provider can provide customized APNs for the corresponding service types. Based on this, the CPE can be preconfigured with APNs allocated for one or more service types. After starting the QoS control function of the first service type, the CPE can acquire the currently used APN and acquire the first APN corresponding to the first service type. If the first APN is not included in the currently used APN, the CPE can perform S603.
[0105] Optionally, if the currently used APN includes the first APN, it indicates that the CPE has successfully established a connection with the PDN identified by the first APN, in which case the CPE can end the operation.
[0106] S603: The CPE establishes a PDN connection using the first APN.
[0107] If the CPE determines that the currently used APN does not include the first APN, the CPE can dial using the first APN to establish a PDN connection.
[0108] It should be noted that in the embodiment of the present application, the user can purchase the APN customized by the service provider for one or more service types, and accordingly, the user subscription information stored in the core network element can include information of the APN purchased by the user. Based on this, when the CPE establishes a PDN connection using the first APN, the CPE can send a PDN connection establishment request to the core network element, which can include the first APN and the user identifier of the CPE. After receiving the PDN connection establishment request, the core network element can acquire the user subscription information of the CPE based on the user identifier of the CPE, and then determine whether the first APN is an APN already purchased by the user of the CPE based on the user subscription information of the CPE. If the first APN is an APN already purchased by the user of the CPE, the core network element can allocate an IP address for the CPE and establish a connection between the CPE and the PDN identified by the first APN, so that the CPE can access an external data network through the PDN connection.
[0109] Optionally, if the core network element determines that the first APN is not an APN already purchased by the user of the CPE, the core network element can reject the PDN connection establishment request and return a connection establishment failure notification to the CPE, in which case the CPE fails to establish a PDN connection using the first APN.
[0110] In some possible cases, the CPE can only support a single APN, that is, the CPE supports establishing a connection with a PDN identified by the APN at any time, and accordingly, the CPE currently uses one APN. In this case, if the currently used APN is not the first APN, the CPE can start the APN polling function while establishing the PDN connection using the first APN. In this way, if the CPE fails to establish the PDN connection using the first APN, the CPE can automatically switch to use another APN other than the first APN to establish the PDN connection, so as to ensure that the CPE can still establish the PDN connection through another APN to obtain network services in the case that the PDN connection corresponding to the first APN fails to be established.
[0111] In the above embodiments, the first service type is mainly taken as an example to introduce the implementation of the user starting the QoS control function of the first service type. For the QoS control function of other service types, the user can also start the corresponding QoS control function through the above method. For example, when the user wants to start the QoS control function of the second service type, the user can perform a second operation. Based on the second operation, the CPE starts the QoS control function of the second service type, and detects whether the currently used APN includes the second APN allocated for the second service type. If the currently used APN does not include the second APN, the CPE establishes the PDN connection using the second APN.
[0112] Based on the method of starting the QoS control function of a certain service type introduced in the above embodiments, next, taking starting the QoS control function of the game service as an example, an exemplary flow is provided in the embodiments of the present application, which is shown in FIG. 8 and includes the following steps:
[0113] S801: In response to the first instruction triggered by the first operation of the user, the CPE starts the QoS control function of the game service.
[0114] The first operation can be an operation of starting the QoS control function of the game service performed by the user on a certain device connected to the CPE, and accordingly, the first instruction is used to instruct to start the QoS control function of the game service.
[0115] S802: The CPE acquires the currently used APN and the APN of the game service.
[0116] S803: The CPE detects whether the currently used APN includes the APN of the game service. If not, S804 is performed, and if yes, the operation is ended.
[0117] S804: The CPE establishes the PDN connection using the APN of the game service.
[0118] Wherein, the step can be performed simultaneously with S805. Or, the step can also be performed simultaneously with S806, or, can be performed after S806 or after detecting that the APN polling function has been started currently.
[0119] S805: The CPE detects whether the APN polling function has been started currently, if not, S806 is performed, if yes, the operation is ended.
[0120] S806: The CPE starts the APN polling function.
[0121] On the basis of the above introduction of setting the switch state of the QoS control function of a certain service type by the user, after receiving the service data packet sent by the connected device, the CPE can transmit the service data packet through the process shown in FIG. 9. Referring to FIG. 9, the process can include the following steps:
[0122] S901: The CPE receives a first data packet, and the service type of a first service to which the first data packet belongs is a first service type.
[0123] In the embodiment of the present application, the CPE can receive the data packet sent by each device connected to the CPE, and perform service identification on the received data packet to obtain a service identification result. Wherein, the service identification result can include the service type of the service to which the data packet belongs.
[0124] Taking the service of a certain device running as a first service type of a first service as an example, the device can send a first data packet to the CPE. After receiving the first data packet, the CPE can perform service identification on the first data packet, thereby determining that the service type of a first service to which the first data packet belongs is a first service type.
[0125] For example, a certain device is running a certain game, and the device can send the data packet of the game to the CPE. After receiving the data packet, the CPE can identify the data packet, thereby determining that the data packet is a data packet of a game service.
[0126] S902: If the QoS control function corresponding to the first service type is in the started state, and the currently used APN includes the first APN, the CPE determines the first dedicated bearer corresponding to the first APN, and the started state of the QoS control function is set by the user in advance.
[0127] After determining that the first data packet is a data packet of a first service type of service, the CPE can detect whether the QoS control function of the first service type is in the started state.
[0128] In the foregoing embodiments, it is known that the CPE can store the mapping relationship between the identifier of the corresponding service type and the identifier of the enabled QoS control function into the mapping relationship table when the user enables the QoS control function of a certain service type based on the operation. Based on this, in the embodiments of the present application, the CPE can find the identifier corresponding to the identifier of the first service type from the mapping relationship table, and if the identifier corresponding to the identifier of the first service type is the identifier of the enabled state, the CPE can determine that the QoS control function of the first service type is in the enabled state. If the identifier corresponding to the identifier of the first service type is the identifier of the disabled state, the CPE can determine that the QoS control function of the first service type is in the disabled state.
[0129] In the case where the QoS control function of the first service type is in the disabled state, it is indicated that the user does not want to perform the QoS control process provided by the embodiments of the present application on the service of the first service type, and in this case, the CPE can send the first data packet through the default bearer corresponding to the currently used APN.
[0130] In the case where the QoS control function of the first service type is in the enabled state, it is indicated that the user wants to perform the QoS control process provided by the embodiments of the present application on the service of the first service type. Based on this, the CPE can acquire the currently used APN and detect whether the currently used APN includes the first APN.
[0131] In the foregoing embodiments, it is known that the CPE can establish a PDN connection using the first APN after the user selects to enable the QoS control function of the first service type. Based on this, in the case where the QoS control function of the first service type is in the enabled state, if the currently used APN does not include the first APN, it is indicated that the CPE fails to establish a PDN connection using the first APN when enabling the QoS control function of the first service type, and in this case, the CPE can send the first data packet through the default bearer corresponding to the currently used APN.
[0132] In the case where the QoS control function of the first service type is in the enabled state, if the currently used APN includes the first APN, it is indicated that the PDN connection between the PDN identified by the first APN has been successfully established, and on this basis, the CPE can determine the first dedicated bearer corresponding to the first APN, so as to transmit the first data packet through the first dedicated bearer, so as to guarantee the demand of the first service and improve the user experience.
[0133] Specifically, in some examples, referring to FIG. 10, the implementation process of the CPE for determining the first dedicated bearer corresponding to the first APN can include the following steps:
[0134] S9021: The CPE detects whether the first APN corresponds to a first filter rule set; if not, S9022 and S9023 are executed, and if yes, S9024 is executed.
[0135] As introduced above, one APN corresponds to one PDN connection, and the PDN connection corresponds to one default bearer. In addition, during the existence of the PDN connection, one or more dedicated bearers can be established to transmit data packets of services with special QoS requirements. One dedicated bearer can correspond to one filter rule set, and the default bearer does not correspond to a filter rule set. Based on this, in the embodiments of the present application, in the case that the CPE has successfully established a PDN connection using the first APN, the CPE can detect whether the first APN corresponds to a first filter rule set to determine whether a dedicated bearer for transmitting the first data packet exists in the bearer corresponding to the first APN. The bearer corresponding to the first APN refers to the bearer corresponding to the PDN connection corresponding to the first APN.
[0136] In one possible case, services of the first service type have the same QoS requirement, and can be transmitted by establishing one dedicated bearer. For example, when the first service type is a game, service data of each game can be transmitted by establishing one dedicated bearer. On this basis, since the first APN is allocated for the first service type, the dedicated bearer corresponding to the first APN is actually used to transmit services of the first service type. In this case, the first APN corresponds to at most one dedicated bearer, and correspondingly, the first APN corresponds to at most one filter rule set corresponding to the dedicated bearer. Based on this, the CPE can search for the filter rule set corresponding to the first APN. If the filter rule set corresponding to the first APN is not found, it is determined that the first APN does not correspond to a first filter rule set. If the filter rule set corresponding to the first APN is found, it is determined that the first APN corresponds to a first filter rule set. At this time, the first filter rule set refers to the filter rule set for passing data packets of services of the first service type.
[0137] It should be noted that the default bearer corresponding to the APN can be indicated by a main connection identifier (CID), and the dedicated bearer corresponding to the APN can be indicated by a secondary CID associated with the main CID. Based on this, the CPE can store a mapping relationship between the APN and the main CID. The CPE can obtain the main CID corresponding to the first APN from the mapping relationship, and then check whether the main CID corresponding to the first APN has an associated secondary CID. If there is no associated secondary CID, it means that the first APN does not have a corresponding dedicated bearer, and therefore, there is no corresponding filter rule set. If the main CID corresponding to the first APN has an associated secondary CID, it means that there is a dedicated bearer corresponding to the first APN, that is, the first APN has a filter rule set.
[0138] In another possible case, different services of the first service type have different QoS requirements, so that different services can be transmitted through different dedicated bearers. For example, when the first service type is a game, game A and game B have different QoS requirements, and the service data of game A and game B can be transmitted through different dedicated bearers corresponding to the first APN. In this case, the dedicated bearers for carrying different services correspond to different filter rule sets, so the first filter rule set can refer to the filter rule set corresponding to the first service. Based on this, the CPE can first find the filter rule set corresponding to the first APN. If the filter rule set corresponding to the first APN is not found, it is determined that the first APN does not have the first filter rule set. If the filter rule set corresponding to the first APN is found, the CPE can further find the filter rule set corresponding to the first service from the filter rule set corresponding to the first APN. If the filter rule set corresponding to the first service is not found, it is determined that the first APN does not have the first filter rule set. If the filter rule set corresponding to the first service is found, it is determined that the first APN has the first filter rule set.
[0139] It should be noted that in this case, the CPE can refer to the implementation mode introduced in the foregoing to find the filter rule set corresponding to the first APN. On this basis, the filter rule set can further correspond to a service identifier, wherein the service identifier is used to uniquely identify a service. For example, the service identifier can be the identifier of an application used to implement a certain service, such as the identifier of a game application. Based on this, in the embodiment of the present application, after the filter rule set corresponding to the first APN is found, the CPE can obtain the service identifier of the first service, and find the filter rule set corresponding to the first service from the filter rule set corresponding to the first APN based on the service identifier of the first service.
[0140] S9022: The CPE configures a first filter rule set for the first APN based on the first data packet, and configures corresponding first QoS information for the first filter rule set.
[0141] If the first APN does not correspond to the first filter rule set, it indicates that there is no dedicated bearer for carrying the first service in the bearer corresponding to the first APN. In this case, the CPE can configure the first filter rule set for the first APN based on the first data packet, and configure the first QoS information for the first filter rule set.
[0142] In some embodiments, in the case where the services of the first service type have the same QoS requirement and are transmitted through one dedicated bearer, if the first APN does not correspond to the first filter rule set, it indicates that the dedicated bearer corresponding to the first APN has not been established. In this case, the CPE can extract the five-tuple information from the first data packet, and take the five-tuple information as the first filter rule to generate the first filter rule set based on the first filter rule. In addition, the CPE can also obtain the first QoS information indicating the QoS requirement of the services of the first service type. Then, a mapping relationship between the first APN, the first filter rule set and the first QoS information is created and stored. The first filter rule set includes the first filter rule. The first QoS information can include the QoS parameters of the services of the first service type.
[0143] It should be noted that, as introduced in the foregoing, the default bearer corresponding to the APN can be indicated by a primary CID, the dedicated bearer can be indicated by a secondary CID, and the secondary CID of the dedicated bearer can be associated with the primary CID. Based on this, in the embodiments of the present application, when creating the mapping relationship between the first APN, the first filter rule set and the first QoS information, the CPE can first generate the first secondary CID to indicate the first dedicated bearer to be created, and establish the mapping relationship between the primary CID corresponding to the first APN and the first secondary CID, so as to indicate that the dedicated bearer indicated by the first secondary CID is the dedicated bearer corresponding to the first APN. On this basis, the CPE can establish the mapping relationship between the first secondary CID and the first filter rule set, the first QoS information, so as to indicate that the first filter rule set and the first QoS information correspond to the dedicated bearer corresponding to the first APN. In this way, the mapping relationship between the first APN, the first filter rule set and the first QoS information can include the first mapping relationship between the first APN, the primary CID of the first APN and the first secondary CID, and the second mapping relationship between the first secondary CID, the first filter rule set and the first QoS information.
[0144] In some embodiments, if the first APN does not correspond to the first set of filter rules, it means that the first APN does not include a dedicated bearer for carrying the first service. In this case, the CPE can extract the five-tuple information from the first data packet and use the five-tuple information as the first filter rule to generate the first set of filter rules. In addition, the CPE can also obtain the first QoS information indicating the QoS requirement of the first service. Then, the CPE creates and stores a mapping relationship between the first APN, the service identifier of the first service, the first set of filter rules, and the first QoS information. The first set of filter rules includes the first filter rule. The first QoS information includes the QoS parameter of the first service.
[0145] It should be noted that in this embodiment, when creating the mapping relationship between the first APN, the service identifier of the first service, the first set of filter rules, and the first QoS information, the CPE can create the first mapping relationship by referring to the method described above, and establish a third mapping relationship between the first secondary CID, the service identifier of the first service, the first set of filter rules, and the first QoS information. Correspondingly, the mapping relationship between the first APN, the service identifier of the first service, the first set of filter rules, and the first QoS information can include the first mapping relationship and the third mapping relationship. Compared with the second mapping relationship, the third mapping relationship further includes the service identifier of the first service.
[0146] S9023: The CPE creates a first dedicated bearer corresponding to the first set of filter rules.
[0147] After configuring the first set of filter rules for the first APN, the CPE can further request the network device to create a first dedicated bearer and establish a mapping relationship between the first dedicated bearer and the first set of filter rules. The first dedicated bearer is a dedicated bearer for carrying the first service.
[0148] Specifically, the CPE can send a dedicated bearer resource allocation request to the network device to request the network device to allocate resources for the first dedicated bearer to be created. The dedicated bearer resource allocation request includes the first APN, the first set of filter rules, and the first QoS information. After receiving the dedicated bearer resource allocation request, the network device can allocate network resources for the first dedicated bearer and send dedicated bearer configuration information to the CPE. After receiving the dedicated bearer configuration information from the network device, the CPE can activate the first dedicated bearer based on the dedicated bearer configuration information.
[0149] As an example, the CPE can send a dedicated bearer resource allocation request to the base station, and the base station can carry the information in the dedicated bearer resource allocation request in a dedicated bearer resource command to send to the core network element. After receiving the dedicated bearer resource command, the core network element can establish an S5 or S8 bearer in the first dedicated bearer, and establish a mapping relationship between the S5 or S8 bearer and the first set of filtering rules and the first QoS information. Then, the core network element can send a bearer creation request to the base station. After receiving the bearer creation request, the base station creates an evolved radio access bearer (E-RAB) corresponding to the S5 or S8 bearer in the first dedicated bearer, and establishes a mapping relationship between the E-RAB and the first QoS information. Then, the base station can send dedicated bearer configuration information to the CPE, which can be carried by a radio resource control (RRC) connection configuration. The dedicated bearer configuration information can include configuration parameters corresponding to multiple protocol layer entities corresponding to the first dedicated bearer, and an identifier of an E-RAB included in the first dedicated bearer and an identifier of the S5 or S8 bearer. Optionally, the dedicated bearer configuration information can also include the first QoS information and the first set of filtering rules. After receiving the dedicated bearer configuration information, the CPE creates multiple protocol layer entities corresponding to the first dedicated bearer based on the configuration parameters corresponding to the multiple protocol layer entities corresponding to the first dedicated bearer, and establishes a mapping relationship between the identifier of the E-RAB included in the first dedicated bearer and the first set of filtering rules, to activate the first dedicated bearer.
[0150] S9024: The CPE detects whether the first set of filtering rules includes the first filtering rule. If not, S9025 and S9026 are executed. If yes, S9026 is executed.
[0151] If the CPE determines in S9021 that the first APN corresponds to the first set of filtering rules, it means that there is already a dedicated bearer for carrying the first service in the bearer corresponding to the first APN, that is, the first dedicated bearer has been successfully established. In this case, the CPE can further detect whether the first set of filtering rules contains the first filtering rule, that is, whether the first set of filtering rules contains a filtering rule that can map data packets with the same five-tuple information as the first data packet to the first dedicated bearer for transmission.
[0152] S9025: The CPE updates the first set of filtering rules based on the first data packet. The updated first set of filtering rules includes the first filtering rule.
[0153] If the first filter rule set does not include the first filter rule, the CPE can generate the first filter rule based on the quintuple information in the first data packet, add the first filter rule to the first filter rule set, so as to obtain an updated first filter rule set.
[0154] S9026: The CPE determines the first dedicated bearer corresponding to the first filter rule set as the first dedicated bearer.
[0155] As introduced above, when the first dedicated bearer is created, the CPE establishes a mapping relationship between the first dedicated bearer and the first filter rule set. Based on this, the CPE can directly determine the first dedicated bearer corresponding to the first filter rule set based on the mapping relationship established above.
[0156] For example, the CPE stores the second mapping relationship or the third mapping relationship. Based on this, the CPE can obtain the first auxiliary CID corresponding to the first filter rule set from the second mapping relationship or the third mapping relationship, and then determine the first dedicated bearer based on the first auxiliary CID.
[0157] S903: The CPE transmits the first data packet through the first dedicated bearer.
[0158] After the first dedicated bearer is determined, the CPE can transmit the first data packet by using the first dedicated bearer, so as to guarantee the service quality of the first service to which the first data packet belongs.
[0159] In some embodiments, as introduced above, the CPE stores a mapping relationship between the first dedicated bearer and the first QoS information, based on which the CPE can obtain the QCI or the 5QI or the QFI from the first QoS information, and carry the QCI or the 5QI or the QFI in the first data packet, so as to identify the first data packet as service data with the QoS requirement indicated by the first QoS information. Then, the CPE can send the first data packet carrying the QCI or the 5QI or the QFI to the RAN node through the first dedicated bearer. After receiving the first data packet, the RAN node can obtain the corresponding QoS parameter based on the QCI or the 5QI or the QFI carried in the first data packet, and then schedule resources to forward the first data packet to the core network element based on the QoS parameter, so as to realize QoS control of the first service to which the first data packet belongs.
[0160] Optionally, if the RAN node is a base station in a non-standalone networking scenario, the base station can also determine, based on the first QoS information associated with the first dedicated bearer in advance, a transmission strategy of service data carried by the first dedicated bearer, and send indication information indicating the transmission strategy to the CPE. The transmission strategy can be transmission by the base station in the 5G communication system, or transmission by the base station in the 4G communication system, or split transmission by the base station in the 4G and 5G communication systems. Correspondingly, the CPE can also determine, based on the transmission strategy, which base station in which communication system to send the service data when transmitting the service data by the first dedicated bearer.
[0161] In the embodiment of the present application, when the CPE receives a data packet of a service of a first service type, if the QoS control function corresponding to the first service type has been set to an open state by the user, and the currently used APN is a first APN allocated for the first service type, the CPE can determine a first dedicated bearer corresponding to the first APN, and transmit the data packet by the first dedicated bearer. As can be seen, in the embodiment of the present application, the user can decide whether to perform QoS control on a service of a certain type. In the case where the user decides to perform QoS control on a service of a certain type, the CPE can transmit service data of the service type by a dedicated bearer under a dedicated APN corresponding to the service type, so as to guarantee the service quality of the service of the service type, and realize QoS guarantee based on user's intention, and improve user experience.
[0162] In the above embodiment, the implementation process of transmitting a data packet of a service of a first service type is mainly introduced. Optionally, for other service types, for example, a second service type, after the CPE receives a second data packet of a second service belonging to the second service type, if the QoS control function corresponding to the second service type is in an open state, and the currently used APN includes a second APN, the CPE can determine a second dedicated bearer corresponding to the second APN, and the second APN is an APN allocated for the service of the second service type. Then, the CPE can transmit the second data packet by the second dedicated bearer. The specific implementation manner can refer to the foregoing embodiments, and will not be described here.
[0163] In the above embodiment, the process in which the CPE transmits a data packet of a service of a specified service type by a dedicated bearer of an APN corresponding to the corresponding service type is mainly introduced. On this basis, the CPE can also release the corresponding dedicated bearer after detecting that the service of the specified service type ends. For example, still taking the first service type as an example, the process in which the CPE releases the dedicated bearer after transmitting the first data packet of the first service can refer to FIG. 11, and can include the following steps:
[0164] S1101: The CPE detects whether the service state of the first service is an end state, if yes, S1102 and S1103 are executed, if not, the operation is ended.
[0165] In the embodiment of the present application, after the CPE sends the first data packet, if the CPE does not receive other data packets belonging to the first service within a preset time length, the CPE can determine that the service state of the first service is an end state. In this case, the first filter rule for making the data packet of the first service pass in the first filter rule set corresponding to the first dedicated bearer will not be used temporarily, therefore, the CPE can execute S1102.
[0166] S1102: The CPE deletes the first filter rule in the first filter rule set.
[0167] S1103: The CPE detects whether the first filter rule set still includes filter rules, if yes, the operation is ended, if not, S1104 is executed.
[0168] If the first filter rule set is a filter rule set corresponding to various services of the first service type, the first filter rule set not only includes the first filter rule for making the data packet of the first service pass, but also can include other filter rules for making data packets of other services of the first service type pass, of course, can not include other filter rules. Based on this, after the first filter rule is deleted, the first filter rule set can be empty or not. On this basis, if the first filter rule set is not empty, it means that other services of the first service type have not ended and the first dedicated bearer needs to be used to transmit data, in this case, the CPE can end the operation. If the first filter rule set is empty, it means that various services of the first service type have all ended, in this case, the CPE can execute S1104.
[0169] If the first filter rule set is a filter rule set corresponding to the first service, the first filter rule set does not include other filter rules except the first filter rule, in this case, after the first filter rule is deleted, the first filter rule set will be empty, the CPE can execute S1104.
[0170] S1104: The CPE deletes the first filter rule set and releases the first dedicated bearer.
[0171] After the CPE deletes the first filter rule set, the CPE can delete the mapping relationship between the first APN, the first filter rule set and the first QoS information, and delete the mapping relationship between the first filter rule set and the first dedicated bearer. Then, the CPE can request the network device to release the first dedicated bearer.
[0172] In the embodiments of the present application, after the service of the first service type ends, the CPE can release the dedicated bearer used to carry the service of the first service type, so as to reduce resource occupation and improve resource utilization.
[0173] In the above embodiments, the case of releasing the dedicated bearer after the service of a certain service type ends is mainly introduced. In some other possible cases, if it is detected that the QoS control function corresponding to the first service type is closed, the CPE can also delete the first filter rule set and release the first dedicated bearer. For example, referring to FIG. 12, the process can include the following steps:
[0174] S1201: Based on a second operation of a user, the CPE closes the QoS control function corresponding to the first service type.
[0175] For example, the user can perform a second operation on a device connected to the CPE, where the second operation refers to an operation of closing the QoS control function of the first service type. After detecting the second operation, the device sends a second instruction to the CPE to indicate that the QoS control function corresponding to the first service type is closed. After receiving the second instruction, the CPE closes the QoS control function corresponding to the second service type. The implementation of the device detecting the second operation and sending the second instruction can refer to the implementation of detecting the first operation and sending the first instruction in S601, which will not be described herein.
[0176] Optionally, for example, for different service types, the CPE can be provided with a switch button of the QoS control function of the corresponding service type. The user can close the QoS control function of the first service type by pressing the switch button of the QoS control function of the first service type.
[0177] When the QoS control function corresponding to the first service type is closed, the CPE can modify the open state identifier corresponding to the identifier of the first service type in the mapping relationship table of the service type identifier and the state identifier to the closed state identifier.
[0178] S1202: The CPE deletes the first filter rule set and releases the first dedicated bearer.
[0179] After the QoS control function corresponding to the first service type is closed, the CPE can delete the first filter rule set and release the first dedicated bearer by referring to the implementation of S1104.
[0180] In the embodiments of the present application, the CPE can close the QoS control function of the first service type based on the user's intention, thereby releasing the corresponding first dedicated bearer and improving the user experience.
[0181] Based on the data transmission method introduced in the above embodiments, taking the game service as an example, and in combination with the software architecture of the CPE shown in FIG. 4, the embodiment of the application further provides an exemplary process of interaction of various modules in the CPE to implement data transmission of the game service. Referring to FIG. 13, the process can include the following steps:
[0182] S1301: The SA module receives the first data packet and identifies that the service type of the first data packet is a game.
[0183] Optionally, the SA module can further determine the service state of the game service according to whether a data packet of the game service has been received within a preset time length before the current time. If no data packet of the game service has been received within the preset time length before the current time, it is determined that the service state of the game service is a start state. If a data packet of the game service has been received within the preset time length before the current time, it is determined that the service state of the game service is running.
[0184] S1302: The SA module sends the game service type identifier and the first data packet to the FA module.
[0185] The SA module can send the game service type identifier and the first data packet to the FA module through netlink. Netlink is a communication method mainly used for communication between a kernel process and a user process, and can also be used for communication between two user processes. In the embodiment of the application, the SA module can be in the kernel space and the FA module can be in the user space, so the SA module can communicate with the FA module through netlink.
[0186] In an example, the dialing module can pre-subscribe the flow information of the game service to the FA module through a subscription instruction. After receiving the subscription information, the FA module can write the subscription information to the kernel. Based on this, after receiving the first data packet and identifying that the first data packet is a data packet of the game service, the SA module determines that the first data packet contains the flow information subscribed by the dialing module based on the subscription information, and therefore the SA module can send the five-tuple information and the game service type identifier to the FA module.
[0187] Optionally, the SA module can further send an identifier indicating the service state of the game service to the FA module.
[0188] S1303: The FA module extracts the five-tuple information of the first data packet.
[0189] The FA module can further cache the five-tuple information of the first data packet and the identifier of the corresponding service state.
[0190] S1304: The FA module sends the quintuple information and the game service type identifier to the dialing module.
[0191] S1305: The dialing module acquires the currently used APN.
[0192] S1306: The dialing module determines that the currently used APN includes the APN corresponding to the game service type identifier.
[0193] S1307: The dialing module determines that the APN corresponding to the game type identifier does not have a corresponding dedicated bearer.
[0194] S1308: The dialing module generates a TFT based on the quintuple information of the first data packet, and creates a mapping relationship between the first APN, the TFT and the QoS information.
[0195] S1309: The dialing module sends the TFT, the QoS information and the mapping relationship to the modem.
[0196] S1310: The modem establishes a dedicated bearer, and establishes a mapping relationship between the dedicated bearer and the TFT.
[0197] S1311: The modem maps the first data packet to the dedicated bearer for transmission based on the mapping relationship between the dedicated bearer and the TFT.
[0198] S1312: The SA module detects that the service to which the first data packet belongs ends.
[0199] S1313: The SA module sends the quintuple information of the first data packet to the dialing module through the FA module.
[0200] S1314: The dialing module sends indication information for indicating to delete the quintuple information of the first data packet in the TFT to the modem.
[0201] S1315: The modem deletes the quintuple information of the first data packet in the TFT.
[0202] S1316: The modem determines that the TFT is empty, deletes the TFT, and releases the dedicated bearer corresponding to the TFT.
[0203] It should be noted that the implementation of the steps performed by each module described above can refer to the related implementation in the foregoing embodiments, which will not be described here.
[0204] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a program product. The program product includes one or more instructions. When the instructions are loaded and executed on a device, all or part of the processes or functions described in the embodiments of the present application are generated. The instructions can be stored in a readable storage medium or transferred from one readable storage medium to another readable storage medium.
[0205] In various embodiments of the present application, the terms and / or descriptions between different embodiments are consistent and can be referred to each other if there is no special description and logical conflict, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship. In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The "and / or" describes the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. In the textual description of the embodiments of the present application, the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship. In the present application, "first", "second", and various numerical designations are only for the convenience of distinguishing and do not limit the scope of the embodiments of the present application. For example, to distinguish different messages, rather than to describe a specific order or sequence.
[0206] It can be understood that the various numerical designations involved in the embodiments of the present application are only for the convenience of distinguishing and do not limit the scope of the embodiments of the present application. The size of the serial number of the above processes does not mean the execution order, and the execution order of the processes should be determined by its function and inherent logic.
[0207] Finally, it should be noted that the above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A data transmission method, characterized by, The method is applied to a device, and 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 open 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 for services of the first service type, and the open state of the QoS control function is set by a user in advance; transmitting the first data packet through the first dedicated bearer.
2. The method of claim 1, wherein, Before the receiving of the first data packet, the method further comprises: when detecting that the QoS control function corresponding to the first service type is open, detecting whether the currently used APN comprises the first APN; 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, characterized in that, The determining of the first dedicated bearer corresponding to the first APN comprises: if a first filter rule set corresponding to the first APN comprises a first filter rule, determining a dedicated bearer corresponding to the first filter rule set as the first dedicated bearer, wherein the first filter rule is used for passing the first data packet. The method further comprises:
4. The method of claim 3, wherein, 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 the updated first filter rule set comprises the first filter rule; and determining a dedicated bearer corresponding to the first filter rule set as the first dedicated bearer. The determining of 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, wherein the first filter rule set comprises a first filter rule, the first filter rule is used for passing the first data packet, and first QoS information is configured for the first filter rule set, and the first QoS information comprises a QoS parameter of services of the first service type; and creating the first dedicated bearer corresponding to the first filter rule set.
5. The method according to claim 1 or 2, characterized in that, The creating of 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; 6. The method of claim 5, wherein, based on the dedicated bearer configuration information, activating the first dedicated bearer. The method further comprises: if it is detected that a service state of the first service is an end state, deleting the first filter rule in the first filter rule set. The method further comprises:
7. The method according to any one of claims 3 to 6, characterized in that, 8. The method of claim 7, wherein, If no filtering rule is included in the first filtering rule set, the first filtering rule set is deleted and the first dedicated bearer is released.
9. The method according to any one of claims 3 to 6, characterized in that, The method further includes: When it is detected that the QoS control function corresponding to the first service type is closed, the first filtering rule set is deleted and the first dedicated bearer is released.
10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: receiving a second data packet, the second data packet belonging to a second service whose service type is a second service type, the second service type being different from the first service type; If the QoS control function corresponding to the second service type is in an open state and the currently used APN includes a second APN, a second dedicated bearer corresponding to the second APN is determined, the second APN being an APN allocated for the service of the second service type; the second data packet is transmitted through the second dedicated bearer.
11. An apparatus, comprising: The device includes a processor configured to execute at least one program instruction or code stored in a memory to implement the data transmission method of any one of claims 1 to 10.
12. A readable storage medium, characterized by, The readable storage medium has instructions stored therein, and when the instructions are executed on the device, the device performs the data transmission method of any one of claims 1 to 10.
13. A program product comprising instructions, characterized in that The instructions, when executed on the device, cause the device to perform the data transmission method of any one of claims 1 to 10.
Citation Information
Patent Citations
Service filtering method and device based on default bearer
CN102325350A
Method and equipment for accessing mobile communication system
CN103546984A
Wireless network resource management method, network system and related products
CN112449375A
Data transmission method and device, readable storage medium and program product
CN118741594A
Mobile edge computing with low latency traffic segregation within a PDN using dedicated bearers
US20200245182A1