Strategy determination method, device and storage medium
Through UPF network elements, the business data packets are parsed and bandwidth strategies are adjusted based on whitelists and blacklists, the problem of students using electronic devices for entertainment during learning is solved, the efficient operation of learning applications and the traffic limitation of entertainment applications is achieved, and learning efficiency is improved.
Patent Information
- Application Number
- CN202310195497.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2043-02-24
AI Technical Summary
The existing technology cannot accurately formulate resource allocation strategies for different applications and businesses, resulting in students using electronic devices for entertainment during their studies, affecting learning efficiency.
UPF network elements obtain target addresses and user types by parsing business data packets, adjust the bandwidth strategy of target applications based on whitelists and blacklists, and relax or limit the data traffic flow rate to ensure the running speed of learning applications and limit the running speed of entertainment applications.
It improves the running speed of learning applications, ensures user experience, and limits the data traffic flow rate of entertainment applications, and improves learning efficiency during learning.
Smart Images

Figure CN116260770B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, device, and storage medium for determining a strategy. Background Art
[0002] With the development of mobile Internet, users are increasingly inclined to use electronic devices (such as mobile phones and computers) to complete various tasks. For example, mobile phones are installed with various applications (such as office applications and game applications), and users can use office applications on their mobile phones to complete their work, or they can use game applications to relax.
[0003] Nowadays, more and more students are using electronic devices while studying. When a user uses an application on an electronic device, the device sends a service data packet to the User Port Function (UPF) network element. The UPF network element then allocates resources for the service. However, due to students' poor self-control, they may use electronic devices for entertainment during study time. Therefore, the strategy for allocating resources to the UPF network element has become a pressing technical issue. Summary of the Invention
[0004] The present application provides a policy determination method, device, and storage medium for solving the problem that resources cannot be allocated in a targeted manner.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] In the first aspect, the present application provides a method for determining a policy. The method is applied to a user plane function UPF network element, and the UPF network element stores a whitelist and a blacklist. The whitelist includes the addresses of learning applications, and the blacklist includes the addresses of entertainment applications. In the method, a service data packet and a user type of a target user are obtained. The service data packet includes: a target address, which is the address of a target application. The service data packet is parsed to determine the target address. If the user type of the target user is a target type, and the target address exists in the whitelist, first policy information is determined, and the first policy information is used to indicate that the bandwidth of the target application is adjusted to a first bandwidth, and the first bandwidth is greater than a preset bandwidth threshold. If the user type of the target user is a target type, and the target address exists in the blacklist, second policy information is determined, and the second policy information is used to indicate that the bandwidth of the target application is adjusted to a second bandwidth, and the second bandwidth is less than a preset bandwidth threshold.
[0007] Based on the above technical solution, after the UPF network element obtains the service data packet, it can parse the service data packet to obtain the target address. In addition, the UPF network element can obtain the user type of the target user. If the user type of the target user is the target type and the target address exists in the whitelist, the first policy information is determined. The first policy information is used to indicate that the target application bandwidth is adjusted to the first bandwidth, and the first bandwidth is greater than the preset bandwidth threshold. In other words, the bandwidth of the target application can be adjusted to a bandwidth greater than the preset bandwidth threshold. In this way, the flow rate of the data traffic used by the target application can be relaxed, the running speed of the target application can be improved, and the user experience can be guaranteed. If the user type of the target user is the target type and the target address exists in the blacklist, the second policy information is determined. The second policy information is used to indicate that the bandwidth of the target application is adjusted to the second bandwidth, and the second bandwidth is less than the preset bandwidth threshold. In other words, the bandwidth of the target application can be adjusted to a bandwidth less than the preset bandwidth threshold. In this way, the flow rate of the data traffic used by the target application can be limited, the running speed of the target application can be reduced, and the operation of the target application can be restricted.
[0008] In one possible design, the target application includes multiple first services. The policy determination method may further include: if the user type of the target user is the target type and the target address exists in the whitelist, then determining the service type of a second service based on the target address, where the second service is the service corresponding to the target address among the multiple first services. If the service type of the second service is a learning service, then determining the first policy information.
[0009] In one possible design, the method for determining the policy may further include: when the user type of the target user is the target type and the target address exists in the whitelist, if the business type of the second business is an entertainment business, determining the second policy information.
[0010] In one possible design, the service data packet further includes: a target time and location information of a target user, where the target time is the time when the terminal sends the service data packet. The method for determining the policy may further include: if the location information of the target user is not within the target area and the target time is not within a preset time period, determining the first policy information.
[0011] In one possible design, the policy determination method may further include: when the target user's user type is a target type and the target address exists in the whitelist, if the target user's location information is within a target area and / or the target time is within a preset time period, then determining second policy information. The target type is student and the target area is school.
[0012] In a second aspect, the present application provides a policy determination device, which is applied to a user plane function (UPF) network element. The UPF network element stores a whitelist and a blacklist. The whitelist includes addresses of learning applications, and the blacklist includes addresses of entertainment applications. The device includes an acquisition unit and a processing unit.
[0013] An acquisition unit is used to acquire a service data packet and a user type of a target user, wherein the service data packet includes a target address, which is the address of a target application. A processing unit is used to parse the service data packet and determine the target address. The processing unit is also used to determine first policy information if the user type of the target user is the target type and the target address exists in the whitelist, wherein the first policy information is used to indicate that the bandwidth of the target application is adjusted to a first bandwidth, wherein the first bandwidth is greater than a preset bandwidth threshold. The processing unit is also used to determine second policy information if the user type of the target user is the target type and the target address exists in the blacklist, wherein the second policy information is used to indicate that the bandwidth of the target application is adjusted to a second bandwidth, wherein the second bandwidth is less than a preset bandwidth threshold.
[0014] In one possible design, the target application includes multiple first services. The processing unit is further configured to, if the user type of the target user is the target type and the target address exists in the whitelist, determine, based on the target address, a service type of a second service, the second service being the service corresponding to the target address among the multiple first services. The processing unit is further configured to, if the service type of the second service is a learning service, determine the first policy information.
[0015] In one possible design, the processing unit is further used to determine the second policy information when the user type of the target user is the target type and the target address exists in the whitelist, if the business type of the second business is an entertainment business.
[0016] In one possible design, the service data packet further includes a target time and location information of a target user, where the target time is the time when the terminal sends the service data packet. The processing unit is further configured to determine the first policy information if the location information of the target user is not within the target area and the target time is not within a preset time period.
[0017] In one possible design, when the target user's user type is a target type and the target address exists in the whitelist, if the target user's location information is within the target area and / or the target time is within a preset time period, the second policy information is determined. The target type is student and the target area is school.
[0018] In a third aspect, the present application provides a policy determination device, which includes: a processor and a memory; the processor and the memory are coupled; the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the policy determination device is running, the processor executes the computer execution instructions stored in the memory to implement the policy determination method described in the first aspect and any possible implementation of the first aspect.
[0019] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method for determining the strategy described in the above-mentioned first aspect and any possible implementation of the first aspect.
[0020] In a fifth aspect, the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the strategy determination method described in the first aspect and any possible implementation of the first aspect.
[0021] In the above solution, the technical problems that can be solved and the technical effects achieved by the strategy determination device, computer equipment, computer storage medium or chip can be referred to the technical problems and technical effects solved by the first aspect above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A system architecture diagram of a communication system provided in an embodiment of the present application;
[0023] Figure 2 A flow chart of a method for determining a strategy provided in an embodiment of the present application;
[0024] Figure 3 A flowchart of another strategy determination method provided in an embodiment of the present application;
[0025] Figure 4 A flowchart of another strategy determination method provided in an embodiment of the present application;
[0026] Figure 5 A flowchart of another strategy determination method provided in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of the structure of a strategy determination device provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of the structure of another strategy determination device provided in an embodiment of the present application;
[0029] Figure 8 A conceptual partial view of a computer program product provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0031] In this document, the character " / " generally indicates an "or" relationship between the preceding and following objects. For example, A / B can be understood as either A or B.
[0032] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.
[0033] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules not listed, or may optionally include other steps or modules inherent to the process, method, product, or apparatus.
[0034] Additionally, in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present concepts in a concrete manner.
[0035] Before introducing in detail the method for determining the strategy of the embodiment of the present application, the implementation environment and application scenarios of the embodiment of the present application are first introduced.
[0036] First, the application scenarios of the embodiments of the present application are introduced. With the development of mobile Internet, users are increasingly inclined to complete various tasks through electronic devices (such as mobile phones, computers, etc.). For example, a mobile phone is installed with various applications (such as office applications and game applications). Users can complete their work through office applications on their mobile phones, or relax through game applications.
[0037] Nowadays, more and more students are using electronic devices while studying. When a user uses an application on an electronic device, the device sends a service data packet to the UPF network element. The UPF network element then allocates resources for the service. However, due to students' poor self-control, they may use their electronic devices for entertainment during study time. Therefore, the strategy for allocating resources to the UPF network element has become a pressing technical issue.
[0038] Currently, Policy and Charging Control (PCC) is a dynamic policy and charging control framework defined by the 3rd Generation Partnership Project (3GPP). It monitors and rationally allocates network resources, enabling telecom operators to provide differentiated services to users and guaranteeing service flow bearer resources and flow charging strategies. However, PCC cannot accurately formulate specific policies for different applications and services.
[0039] In order to solve the above problems, an embodiment of the present application provides a method for determining a policy, in which a UPF network element obtains a service data packet and a user type of a target user, and the service data packet includes: a target address, which is the address of a target application. Afterwards, the UPF network element parses the service data packet to determine the target address. If the user type of the target user is the target type, and the target address exists in the whitelist, first policy information is determined, and the first policy information is used to indicate that the bandwidth of the target application is adjusted to a first bandwidth, and the first bandwidth is greater than a preset bandwidth threshold. If the user type of the target user is the target type, and the target address exists in the blacklist, second policy information is determined, and the second policy information is used to indicate that the bandwidth of the target application is adjusted to a second bandwidth, and the second bandwidth is less than a preset bandwidth threshold.
[0040] Based on the above technical solution, after the UPF network element obtains the service data packet, it can parse the service data packet to obtain the target address. In addition, the UPF network element can obtain the user type of the target user. If the user type of the target user is the target type and the target address exists in the whitelist, the first policy information is determined. The first policy information is used to indicate that the target application bandwidth is adjusted to the first bandwidth, and the first bandwidth is greater than the preset bandwidth threshold. In other words, the bandwidth of the target application can be adjusted to a bandwidth greater than the preset bandwidth threshold. In this way, the flow rate of the data traffic used by the target application can be relaxed, the running speed of the target application can be improved, and the user experience can be guaranteed. If the user type of the target user is the target type and the target address exists in the blacklist, the second policy information is determined. The second policy information is used to indicate that the bandwidth of the target application is adjusted to the second bandwidth, and the second bandwidth is less than the preset bandwidth threshold. In other words, the bandwidth of the target application can be adjusted to a bandwidth less than the preset bandwidth threshold. In this way, the flow rate of the data traffic used by the target application can be limited, the running speed of the target application can be reduced, and the operation of the target application can be restricted.
[0041] The implementation environment of the embodiments of the present application is introduced below.
[0042] like Figure 1 As shown, a communication system provided in an embodiment of the present application includes a network device 101 (eg, a base station, a network element device (eg, a UPF network element)) and a terminal 102.
[0043] A base station may include various forms of base stations, such as a macro base station, a micro base station (also known as a small station), a relay station, an access point, etc. Specifically, it may be an access point (AP) in a wireless local area network (WLAN), a base transceiver station (BTS) in a global system for mobile communications (GSM) or code division multiple access (CDMA), a base station (NodeB, NB) in wideband code division multiple access (WCDMA), an evolved Node B (eNB or eNodeB) in LTE, a relay station or access point, or a vehicle-mounted device, a wearable device, the next generation Node B (gNB) in a future 5G network, or a base station in a future evolved public land mobile network (PLMN) network.
[0044] A terminal can be a device with transceiver functions. The terminal can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water (such as ships, etc.); it can also be deployed in the air (for example, on airplanes, balloons, and satellites, etc.). Terminals include handheld devices, vehicle-mounted devices, wearable devices, or computing devices with wireless communication functions. Exemplarily, the terminal can be a mobile phone, a tablet computer, or a computer with wireless transceiver functions. The terminal device can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in smart grids, a wireless terminal in smart cities, a wireless terminal in smart homes, etc.
[0045] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0046] like Figure 2 As shown, a method for determining a strategy provided in an embodiment of the present application includes:
[0047] S201. The UPF network element obtains a service data packet.
[0048] The service data packet includes: a target address, which is the address of the target application.
[0049] In one possible design, the target address may include: an Internet Protocol (IP) address and / or a Uniform Resource Locator (URL) address.
[0050] For example, if the target application is a social application, the target address may be the IP address of the server of the social application. If the target application is a search engine (such as a browser), the target address may be the URL address of the web page accessed by the terminal.
[0051] In one possible design, the user information may include: an identifier of the terminal.
[0052] It should be noted that the embodiments of the present application do not limit the terminal identifier. For example, the terminal identifier may be an International Mobile Equipment Identity (IMEI). For another example, the terminal identifier may be a Media Access Control (MAC) address.
[0053] In one possible implementation, the terminal may receive a user operation and generate a service data packet. The terminal may then send the service data packet to a UPF network element. The UPF network element may receive the service data packet from the terminal.
[0054] It should be noted that, for the specific process of the terminal sending a service data packet to the UPF network element, you can refer to the method in conventional technology where the terminal sends a service data packet to the UPF network element through the network element device, which will not be repeated here.
[0055] S202. The UPF network element parses the service data packet and determines the target address.
[0056] For example, the UPF network element may parse the service data packet at the network layer to obtain the IP protocol, or the UPF network element may parse the service data packet at the application layer to obtain the URL.
[0057] Optionally, the UPF network element can parse the service data packet to obtain the transmission protocol.
[0058] Exemplarily, the transmission protocol may include: File Transfer Protocol (FTP), Trivial File Transfer Protocol (TFTP), Hypertext Transfer Protocol (HTTP), etc.
[0059] S203. The UPF network element obtains the user type of the target user.
[0060] In an embodiment of the present application, the terminal can determine the target policy of the terminal by signing a contract in the foreground. The terminal can send signing information to the Policy Control Function (PCF) network element, and the signing information may include: the target policy and the user type of the target user. The PCF network element can send the target policy and the user type of the target user to the Session Management Function (SMF) network element. Afterwards, the SMF network element can send the target policy and the user type of the target user to the UPF network element. The UPF network element can receive the target policy and the user type of the target user from the SMF network element.
[0061] In one possible design, the user type may be a student.
[0062] Optionally, the user type may also be company employee.
[0063] S204. The UPF network element determines whether the user type of the target user is the target type.
[0064] In some embodiments, if the user type of the target user is the target type, the UPF network element executes S205.
[0065] It should be noted that if the user type of the target user is not the target type, the UPF network element can determine the bandwidth policy for the target user according to conventional technology (such as determining the policy of the target user based on the PCC).
[0066] S205. The UPF network element determines whether the target address exists in the whitelist.
[0067] In an embodiment of the present application, the UPF network element stores a whitelist and a blacklist, the whitelist includes the addresses of learning applications, and the blacklist includes the addresses of entertainment applications.
[0068] For example, the whitelist may include: IP addresses of conference applications, IP addresses of reading applications, IP addresses of science popularization applications, etc. The blacklist may include: IP addresses of video applications, IP addresses of game applications, etc.
[0069] In some embodiments, if the target address exists in the whitelist, the UPF network element executes S206. If the target address exists in the blacklist, the UPF network element executes S207.
[0070] S206. The UPF network element determines the first policy information.
[0071] The first policy information is used to instruct to adjust the target application bandwidth to a first bandwidth, and the first bandwidth is greater than a preset bandwidth threshold.
[0072] It should be noted that the embodiments of the present application do not limit the preset bandwidth threshold. For example, the preset bandwidth threshold can be 0 Mbps, 4 Mbps, 10 Mbps, etc.
[0073] In a possible implementation, if the user type of the target user is a target type and the target address exists in the whitelist, the UPF network element determines the first policy information.
[0074] It is understandable that the UPF network element adjusts the target application bandwidth to the first bandwidth, which can increase the transmission rate, thereby ensuring that the terminal can use the target application smoothly, and improving the user experience of using learning applications.
[0075] S207. The UPF network element determines the second policy information.
[0076] The second policy information is used to instruct to adjust the bandwidth of the target application to a second bandwidth, where the second bandwidth is less than a preset bandwidth threshold.
[0077] In a possible implementation, if the user type of the target user is a target type and the target address exists in the blacklist, the UPF network element determines the second policy information.
[0078] It should be noted that the embodiments of the present application do not limit the order in which the UPF network element executes S204 and S205. For example, the UPF network element may execute S204 first and then S205. For another example, the UPF network element may execute S205 first and then S204. For another example, the UPF network element may execute S204 and S205 simultaneously.
[0079] In some embodiments, when the UPF network element first executes S205 and then executes S204, if the UPF network element determines whether the target address exists in the blacklist, the UPF network element determines whether the user type of the target user is the target type (i.e., S204). If the UPF network element determines whether the target address exists in the whitelist, the UPF network element may determine the first policy information.
[0080] Based on the above technical solution, after the UPF network element obtains the service data packet, it can parse the service data packet to obtain the target address. In addition, the UPF network element can obtain the user type of the target user. If the user type of the target user is the target type and the target address exists in the whitelist, the first policy information is determined. The first policy information is used to indicate that the target application bandwidth is adjusted to the first bandwidth, and the first bandwidth is greater than the preset bandwidth threshold. In other words, the bandwidth of the target application can be adjusted to a bandwidth greater than the preset bandwidth threshold. In this way, the flow rate of the data traffic used by the target application can be relaxed, the running speed of the target application can be improved, and the user experience can be guaranteed. If the user type of the target user is the target type and the target address exists in the blacklist, the second policy information is determined. The second policy information is used to indicate that the bandwidth of the target application is adjusted to the second bandwidth, and the second bandwidth is less than the preset bandwidth threshold. In other words, the bandwidth of the target application can be adjusted to a bandwidth less than the preset bandwidth threshold. In this way, the flow rate of the data traffic used by the target application can be limited, the running speed of the target application can be reduced, and the operation of the target application can be restricted.
[0081] like Figure 3 As shown, a method for determining a strategy provided by an embodiment of the present application is provided. In this method, after S205, the method further includes:
[0082] S301. The UPF network element determines the service type of the second service based on the target address.
[0083] In the embodiment of the present application, the target application may include multiple first services.
[0084] It should be noted that the target application may have multiple businesses, such as learning businesses (such as science popularization business, question-and-answer business, conference business, etc.) and entertainment businesses (such as short video business, game business, etc.).
[0085] In one possible implementation, the UPF network element stores a correspondence between target addresses and service types. If the target user's user type is the target type and the target address exists in the whitelist, the UPF network element can determine the service type of the second service based on the target address. The second service is the service corresponding to the target address among the multiple first services.
[0086] For example, as shown in Table 1, it shows the corresponding relationship between the target address and the service type.
[0087] Table 1
[0088] Destination Address Business Type Address a Learning business Address b Learning business Address c Entertainment business
[0089] That is, when the target application address is address a, the service type is learning. When the target application address is address b, the service type is learning. When the target application address is address c, the service type is entertainment.
[0090] In one possible design, the server of the target application may send content billing information of the target application to the UPF network element, where the content billing information includes a correspondence between the target address and the service type. The UPF network element stores the correspondence between the target address and the service type.
[0091] S302: The UPF network element determines whether the service type of the second service is a learning service.
[0092] In some embodiments, if the service type of the second service is a learning service, the UPF network element may execute S206.
[0093] That is to say, when the user type of the target user is the target type and the target address exists in the whitelist, if the service type of the second service is a learning service, the UPF network element can determine the first policy information.
[0094] It is understood that if the target application's address is on the whitelist, the service type of the second service can be determined. If the service type of the second service is a learning service, the UPF network element can determine the first policy information. This can relax the data traffic rate used by the second service, improve the operation speed of the second service, and ensure the user experience.
[0095] In some embodiments, if the service type of the second service is an entertainment service, the UPF network element may execute S207.
[0096] That is, when the user type of the target user is the target type and the target address exists in the whitelist, if the service type of the second service is an entertainment service, the UPF network element can determine the second policy information.
[0097] It is understood that if the target application's address is in the whitelist, the service type of the second service can be determined. If the service type of the second service is entertainment, the UPF network element can determine the second policy information. This can limit the flow rate of data traffic used by the second service, reducing the operating speed of the second service and thus restricting the operation of the second service.
[0098] like Figure 4 As shown, a method for determining a strategy provided by an embodiment of the present application is provided. In this method, after S205, the method further includes:
[0099] S401. The UPF network element determines whether the location information of the target user is in the target area.
[0100] In the embodiment of the present application, the service data packet also includes: target time and target user location information. The target time is the time when the terminal sends the service data packet. The UPF network element can parse the service data packet to determine the target time and target user location information.
[0101] It should be noted that the target area is not limited in the embodiments of the present application. For example, if the target user is a student, the target area can be a school. For another example, if the target user is an employee, the target area can be a company.
[0102] In some embodiments, if the location information of the target user is not in the target area, the UPF network element may execute S206.
[0103] It is understandable that if the target user's location information is not in the target area (such as a school), it means that the target user may not need to work or study. The UPF network element can provide the first bandwidth for the target application to help the target application run normally.
[0104] In other embodiments, if the location information of the target user is not in the target area, the UPF network element may execute S402.
[0105] In other embodiments, if the location information of the target user is within the target area, the UPF network element may execute S207. Alternatively, if the location information of the target user is within the target area, the UPF network element may execute S402.
[0106] S402: The UPF network element determines whether the target time is within a preset time period.
[0107] It should be noted that the embodiments of the present application do not limit the preset time period. For example, the preset time period may be working hours (e.g., 08:00-18:00). For another example, the preset time period may include: 09:00-12:00, 14:00-18:00. For another example, the preset time period may be: 00:00-08:00, 21:00-24:00.
[0108] In some embodiments, if the location information of the target user is not in the target area and the target time is not within the preset time period, the UPF executes S206.
[0109] It is understandable that if the target user's location information is not within the target area and the target time is not within the preset time period, it means that the target user is neither in the working area nor using the target application during working hours. Therefore, the UPF network element can provide the first bandwidth for the target application to ensure the operation of the target application.
[0110] In some embodiments, when the user type of the target user is a target type and the target address exists in the whitelist, if the location information of the target user is in the target area, and / or the target time is within a preset time period, the UPF network element executes S207.
[0111] That is, if the target user's location information is within the target area, the UPF network element executes S207. Alternatively, if the target time is within the preset time period, the UPF network element executes S207. Alternatively, if the target user's location information is within the target area and the target time is within the preset time period, the UPF network element executes S207.
[0112] In some embodiments, when the user type of the target user is the target type and the target address exists in the whitelist, if the location information of the target user is not in the target area, the target time is not within the preset time period, and the service type of the second service is a learning service, the UPF network element determines the first policy information.
[0113] The following describes the embodiments of the present application with reference to specific examples. Figure 5 As shown, the UPF network element can perform layer 3 parsing (or layer 4 parsing) of the service data packet to obtain the IP address, and perform layer 7 parsing of the service data packet to obtain the URL. Then, the UPF network element can determine the target address based on the IP address or URL (i.e., the target address) and the rule base (i.e., S204-S205), and execute the policy corresponding to the whitelist (i.e., the first policy information) or the policy corresponding to the blacklist (i.e., the second policy information).
[0114] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of computer equipment. It is understandable that, in order to realize the above functions, the computer equipment includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the steps of determining the strategies of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0115] The present application also provides a policy determination device, which can be a computer device, a CPU in the computer device, a processing module in the computer device for determining policy, or a client in the computer device for determining policy.
[0116] In the embodiment of the present application, the determination of the strategy can be divided into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0117] like Figure 6 FIG. 1 is a schematic diagram of a structure of a strategy determination device provided in an embodiment of the present application. The strategy determination device is used to execute Figure 2 、 Figure 3 or Figure 4 The strategy determination method shown in FIG.
[0118] The acquisition unit 601 is used to obtain a service data packet and a user type of a target user, wherein the service data packet includes a target address, which is the address of a target application. The processing unit 602 is used to parse the service data packet and determine the target address. The processing unit 602 is also used to determine first policy information if the user type of the target user is a target type and the target address exists in a whitelist, wherein the first policy information is used to indicate that the bandwidth of the target application is adjusted to a first bandwidth, wherein the first bandwidth is greater than a preset bandwidth threshold. The processing unit 602 is also used to determine second policy information if the user type of the target user is a target type and the target address exists in a blacklist, wherein the second policy information is used to indicate that the bandwidth of the target application is adjusted to a second bandwidth, wherein the second bandwidth is less than a preset bandwidth threshold.
[0119] In one possible design, the target application includes multiple first services. Processing unit 602 is further configured to, if the user type of the target user is the target type and the target address exists in the whitelist, determine, based on the target address, a service type of a second service, where the second service is the service corresponding to the target address among the multiple first services. Processing unit 602 is further configured to, if the service type of the second service is a learning service, determine the first policy information.
[0120] In one possible design, the processing unit 602 is further used to determine the second policy information when the user type of the target user is the target type and the target address exists in the whitelist, if the business type of the second business is an entertainment business.
[0121] In one possible design, the service data packet further includes: a target time and location information of a target user, where the target time is the time when the terminal sends the service data packet. Processing unit 602 is further configured to determine first policy information if the location information of the target user is not within the target area and the target time is not within a preset time period.
[0122] In one possible design, when the target user's user type is a target type and the target address exists in the whitelist, if the target user's location information is within the target area and / or the target time is within a preset time period, the second policy information is determined. The target type is student and the target area is school.
[0123] Figure 7 7 is a schematic diagram of the hardware structure of a device for determining a policy according to an exemplary embodiment. The device for determining a policy may include a processor 702, which is configured to execute application code to implement the method for determining a policy in this application.
[0124] The processor 702 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0125] like Figure 7 As shown, the strategy determination device may further include a memory 703. The memory 703 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 702.
[0126] The memory 703 may 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, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 703 may exist independently and be connected to the processor 702 via the bus 704. The memory 703 may also be integrated with the processor 702.
[0127] like Figure 7 As shown, the policy determination apparatus may further include a communication interface 701, wherein the communication interface 701, the processor 702, and the memory 703 may be coupled to each other, for example, via a bus 704. The communication interface 701 is used to exchange information with other devices, for example, to support information exchange between the policy determination apparatus and other devices.
[0128] It should be pointed out that Figure 7 The device structure shown in the figure does not constitute a limitation on the means for determining the strategy, except Figure 7 In addition to the components shown, the strategy determination device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0129] In actual implementation, the functions implemented by the processing unit 602 can be Figure 7 The processor 702 shown calls the program code in the memory 703 to implement it.
[0130] The present application also provides a computer-readable storage medium having instructions stored thereon. When the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer is enabled to execute the method for determining the policy provided in the above-described embodiment. For example, the computer-readable storage medium may be a memory 703 including instructions, and the instructions may be executed by the processor 702 of the computer device to perform the above-described method. Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium, for example, a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.
[0131] Figure 8 A conceptual partial view of a computer program product provided by an embodiment of the present application is schematically shown. The computer program product includes a computer program for executing a computer process on a computing device.
[0132] In one embodiment, the computer program product is provided using a signal bearing medium 800. The signal bearing medium 800 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 2 、 Figure 3 、 Figure 4 and Figure 5 Thus, for example, reference to Figure 2 In the embodiment shown in , one or more features of S201 to S207 may be undertaken by one or more instructions associated with the signal bearing medium 800. In addition, Figure 8 The program instructions in also describe example instructions.
[0133] In some examples, the signal-bearing medium 800 may include a computer-readable medium 801 such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.
[0134] In some implementations, the signal bearing medium 800 may include a computer recordable medium 802 such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, or the like.
[0135] In some embodiments, signal bearing medium 800 may include communication medium 803 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0136] The signal bearing medium 800 may be conveyed by a wireless form of communication medium 803. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.
[0137] In some examples, such as for Figure 7 The described policy determination apparatus may be configured to provide various operations, functions, or actions in response to one or more program instructions via computer-readable medium 801 , computer-recordable medium 802 , and / or communication medium 803 .
[0138] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete the full classification or partial functions described above.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0141] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk.
[0143] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for determining a strategy, characterized in that: Applied to a user plane function (UPF) network element, the UPF network element stores a whitelist and a blacklist, the whitelist includes addresses of learning applications, and the blacklist includes addresses of entertainment applications; The method comprises: Acquire a service data packet and a user type of a target user, wherein the service data packet includes: a target address, which is an address of a target application; Parsing the service data packet to determine the target address; If the user type of the target user is the target type and the target address exists in the whitelist, determining first policy information, where the first policy information is used to instruct to adjust the target application bandwidth to a first bandwidth greater than a preset bandwidth threshold; If the user type of the target user is the target type and the target address exists in the blacklist, second policy information is determined, where the second policy information is used to indicate that the bandwidth of the target application is adjusted to a second bandwidth that is less than the preset bandwidth threshold.
2. The method according to claim 1, characterized in that The target application includes a plurality of first services. If the user type of the target user is the target type and the target address exists in the whitelist, the first policy information is determined, including If the user type of the target user is a target type and the target address exists in the whitelist, determining a service type of a second service based on the target address, where the second service is a service corresponding to the target address among the multiple first services; If the service type of the second service is a learning service, the first policy information is determined.
3. The method according to claim 2, characterized in that The method further comprises: When the user type of the target user is a target type and the target address exists in the whitelist, if the service type of the second service is an entertainment service, the second policy information is determined.
4. The method according to claim 1 or 2, characterized in that The service data packet also includes: target time and location information of the target user, wherein the target time is the time when the terminal sends the service data packet; If the user type of the target user is the target type and the target address exists in the whitelist, determining first policy information includes: If the location information of the target user is not in the target area and the target time is not within the preset time period, the first policy information is determined.
5. The method according to claim 4, characterized in that The method further comprises: When the user type of the target user is a target type and the target address exists in the whitelist, if the location information of the target user is in the target area, and / or the target time is within a preset time period, determining the second policy information; The target type is student, and the target area is school.
6. A device for determining a strategy, characterized in that: Applied to a user plane function (UPF) network element, the UPF network element stores a whitelist and a blacklist, the whitelist includes addresses of learning applications, and the blacklist includes addresses of entertainment applications; The device comprises: An acquiring unit, configured to acquire a service data packet and a user type of a target user, wherein the service data packet includes a target address, which is an address of a target application; A processing unit, configured to parse the service data packet and determine the target address; The processing unit is further configured to, if the user type of the target user is a target type and the target address exists in the whitelist, determine first policy information, wherein the first policy information is configured to indicate that the target application bandwidth is adjusted to a first bandwidth, where the first bandwidth is greater than a preset bandwidth threshold; The processing unit is further used to determine second policy information if the user type of the target user is the target type and the target address exists in the blacklist, wherein the second policy information is used to indicate that the bandwidth of the target application is adjusted to a second bandwidth, and the second bandwidth is less than the preset bandwidth threshold.
7. The device according to claim 6, characterized in that The target application includes a plurality of first services; The processing unit is further configured to, if the user type of the target user is a target type and the target address exists in the whitelist, determine a service type of a second service based on the target address, where the second service is a service corresponding to the target address among the multiple first services; The processing unit is further configured to determine the first policy information if the service type of the second service is a learning service.
8. The device according to claim 7, characterized in that The processing unit is further configured to, when the user type of the target user is a target type and the target address exists in the whitelist, determine the second policy information if the service type of the second service is an entertainment service.
9. The device according to claim 6 or 7, characterized in that The service data packet also includes: target time and location information of the target user, wherein the target time is the time when the terminal sends the service data packet; The processing unit is further configured to determine the first policy information if the location information of the target user is not in a target area and the target time is not within a preset time period.
10. The device according to claim 9, characterized in that When the user type of the target user is a target type and the target address exists in the whitelist, if the location information of the target user is in the target area, and / or the target time is within a preset time period, determining the second policy information; The target type is student, and the target area is school.
11. A device for determining a strategy, characterized in that: include: processor and memory; The processor is coupled to the memory; The memory is used to store one or more programs, which include computer-executable instructions. When the policy determination device is running, the processor executes the computer-executable instructions stored in the memory to enable the policy determination device to perform the method as described in any one of claims 1 to 5.
12. A computer-readable storage medium storing instructions, characterized in that: When a computer executes the instruction, the computer performs the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
System and method of network policy optimization
CN110383877A
Dynamic control method of QoS flow and terminal
CN113630778A