An application level rate limiting method, apparatus, device and storage medium

By generating target service identifiers in the core network and forwarding them to the rate-limiting gateway using GRE tunnels, the problem of complex core network configuration caused by multi-application rate limiting is solved, achieving simplified configuration and performance improvement.

CN117412336BActive Publication Date: 2026-11-27CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311340162.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-16
Publication Date
2026-11-27
Estimated Expiration
2043-10-16

AI Technical Summary

Technical Problem

In existing technologies, when multiple applications require rate limiting, the core network configuration becomes complex and performance degrades, making it difficult to promote in practice.

Method used

The PCC rate limiting policy is issued to the PCF/PCRF unit through the slicing platform, and the target service identifier is generated. The UPF/PGW unit opens the GRE tunnel to forward the traffic to the rate limiting gateway. The rate limiting gateway limits the traffic rate according to the application characteristic information, which simplifies the core network configuration.

Benefits of technology

Regardless of the number of rate-limited applications, only one PCC policy needs to be configured in the core network PCF/PCRF unit, simplifying core network configuration and improving performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117412336B_ABST
    Figure CN117412336B_ABST
Patent Text Reader

Abstract

This application provides an application-level rate limiting method, apparatus, device, and storage medium. The method includes: obtaining a user rate limiting request, wherein the user rate limiting request includes a rate-limiting mobile phone number, a rate-limiting application identifier corresponding to the rate-limiting mobile phone number, and a rate limiting policy, the rate limiting policy including a rate limiting time and a rate limiting range; based on the user rate limiting request, issuing a PCC rate limiting policy to a PCF / PCRF unit, so that the PCF / PCRF unit generates a target service identifier according to the PCC rate limiting policy and sends the target service identifier to a UPF / PGW unit; the UPF / PGW unit opens a GRE tunnel according to the target service identifier to forward traffic to a rate limiting gateway through the GRE tunnel; the rate limiting gateway performs traffic rate limiting on the rate-limiting application according to the rate limiting request. Only one PCC policy needs to be configured in the PCF / PCRF unit, then the PCF / PCRF unit generates a target service identifier according to the PCC rate limiting policy, and the UPF / PGW unit opens a GRE tunnel according to the target service identifier to forward traffic to the rate limiting gateway through the GRE tunnel, simplifying the configuration of the core network PCF / PCRF unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an application-level rate limiting method, apparatus, device, and storage medium. Background Technology

[0002] In real life, there are issues that require speed limits for certain applications. For example, during driving, in order to ensure driving safety, it is necessary to limit the speed of entertainment applications on the driver's mobile phone, but at the same time, it is necessary to leave navigation applications unlimited so that the driver can concentrate on driving, without affecting the use of navigation applications such as Baidu Maps and Gaode Maps.

[0003] Currently, on the one hand, PCC policies are issued to user mobile phones through the PCF / PCRF unit to limit the overall mobile data traffic. On the other hand, to limit the traffic of a single application, the IP and URL characteristics (referred to as application characteristics) of the application are configured in advance on the UPF / PGW unit, and a PCC policy is configured on the PCF / PCRF unit. When limiting the traffic, the PCC policy is issued to the PCF / PCRF unit through the PCC capability platform. The PCF / PCRF unit then maps the PCC policy to a QoS rule name (service identifier) ​​and issues it to the UPF / PGW unit. When the UPF / PGW unit forwards user internet traffic, traffic with application characteristics is intercepted or limited, while other traffic is forwarded normally.

[0004] This shows that in existing technologies, when multiple applications require rate limiting, the core network configuration becomes complex and numerous. Summary of the Invention

[0005] This application provides an application-level rate limiting method, apparatus, device, and storage medium to solve the problem of complex and numerous core network configurations when multiple applications require rate limiting.

[0006] Firstly, this application provides an application-level rate limiting method, including:

[0007] Obtain user speed limit requests, which include the speed limit mobile number, the speed limit application identifier corresponding to the speed limit mobile number, and the speed limit policy. The speed limit policy includes the speed limit time and the speed limit range.

[0008] Based on the user's rate limiting request, the PCC rate limiting policy is issued to the PCF / PCRF unit so that the PCF / PCRF unit can generate the target service identifier according to the PCC rate limiting policy and send the target service identifier to the UPF / PGW unit;

[0009] The UPF / PGW unit opens a GRE tunnel based on the target service identifier to forward traffic to the rate-limiting gateway through the GRE tunnel;

[0010] The rate-limiting gateway limits the traffic of applications based on rate-limiting requests.

[0011] In this application, the method also includes, prior to obtaining the user's speed limit request:

[0012] Obtain the application's application characteristic information, which includes the application identifier, application IP, and application URL;

[0013] The application characteristic information is sent to the rate limiting gateway so that the rate limiting gateway can determine the application to be rate-limited based on the application characteristic information.

[0014] In this application, after the UPF / PGW unit opens a GRE tunnel based on the target service identifier to forward traffic to the rate-limiting gateway through the GRE tunnel, and before the rate-limiting gateway performs traffic rate limiting on the rate-limiting application based on the rate-limiting application, the method further includes:

[0015] Obtain current traffic information from the DPI number retrieval platform. This traffic information includes the mobile phone number and the private IP address corresponding to the mobile phone number.

[0016] Based on the phone number with the speed limit and data usage information, obtain the target private IP address corresponding to the phone number with the speed limit.

[0017] Send the target private IP address to the rate limiting gateway so that the rate limiting gateway can limit the traffic of the rate limiting application according to the rate limiting request.

[0018] In this application, after obtaining the target private IP address corresponding to the speed-limited phone number based on the speed-limited phone number and data usage information, the method further includes:

[0019] Send a rate limiting command and the target private network IP to the rate limiting gateway. The rate limiting command is generated based on the user's rate limiting request and includes the rate limiting application identifier and rate limiting policy.

[0020] The speed-limiting gateway limits the traffic of applications based on the target private network IP and the speed-limiting command.

[0021] In this application, the rate-limiting gateway limits the traffic of the rate-limiting application based on the target private network IP and the rate-limiting command. The method also includes:

[0022] The rate limiting gateway obtains the target application feature information corresponding to the rate limiting application identifier based on the rate limiting application identifier and application feature information in the rate limiting instruction;

[0023] The rate-limiting gateway determines the IP address of the application to be rate-limited based on the characteristics of the target application.

[0024] The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, and the speed-limiting time and speed range specified in the speed-limiting command.

[0025] In this application, the rate-limiting gateway limits the traffic of the rate-limiting application based on the target private network IP, the rate-limiting application IP, and the rate-limiting time and speed range specified in the rate-limiting command, including:

[0026] The rate limiting gateway identifies the target data packet and its five-tuple information by first packet identification of the traffic. The five-tuple information of the target data packet is the same for all packets.

[0027] The rate-limiting gateway obtains the IP address of the rate-limiting application based on the five-tuple information and the application characteristic information in the rate-limiting command;

[0028] The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, the speed-limiting time and speed-limiting range in the speed-limiting command.

[0029] In this application, the rate-limiting gateway, based on the rate-limiting application, performs traffic rate limiting on the rate-limiting application, including:

[0030] The speed limiting gateway determines the speed limit range based on the speed limiting application;

[0031] If the speed limit range is within the target range, the speed limit gateway will limit the traffic of the speed limit application according to the speed limit requirements. The speed limit requirements are pre-set speed limit requirements corresponding to the target range, including requirements for disconnecting the speed limit application and requirements for traffic limit of the speed limit application.

[0032] Secondly, this application provides an application-level speed limiting device, comprising:

[0033] The device is used to obtain user speed limit requests, wherein the user speed limit request includes the speed limit mobile phone number, the speed limit application identifier corresponding to the speed limit mobile phone number, and the speed limit policy, and the speed limit policy includes the speed limit time and the speed limit range.

[0034] The issuing device is used to issue PCC rate limiting policy to the PCF / PCRF unit according to the user's rate limiting application, so that the PCF / PCRF unit can generate target service identifier according to PCC rate limiting policy and send the target service identifier to UPF / PGW unit;

[0035] The activation device is used by the UPF / PGW unit to activate the GRE tunnel according to the target service identifier, so as to forward traffic to the rate limiting gateway through the GRE tunnel;

[0036] A rate limiting device is used by a rate limiting gateway to limit the traffic of rate-limiting applications based on rate limiting requests.

[0037] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0038] The memory stores the instructions that the computer executes;

[0039] The processor executes computer execution instructions stored in memory to implement the method in this application.

[0040] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method of this application.

[0041] This application provides an application-level rate limiting method, apparatus, device, and storage medium. The method involves obtaining a user rate limiting request, whereby the request includes a rate-limiting mobile number, a rate-limiting application identifier corresponding to the mobile number, and a rate-limiting policy. The rate-limiting policy includes a rate-limiting time and a rate-limiting range. Based on the user's rate limiting request, a PCC rate-limiting policy is issued to a PCF / PCRF unit, enabling the PCF / PCRF unit to generate a target service identifier based on the PCC rate-limiting policy and send the target service identifier to a UPF / PGW unit. The UPF / PGW unit, based on the target service identifier, opens a GRE tunnel to forward traffic to a rate-limiting gateway. The rate-limiting gateway then applies rate limiting to the application based on the rate limiting request. The PCC rate limiting policy is issued to the PCF / PCRF unit through the slicing platform. The UPF / PGW unit opens a GRE tunnel according to the target service identifier to forward traffic to the rate limiting gateway through the GRE tunnel. Regardless of the number of rate-limiting applications, only one PCC policy needs to be configured in the PCF / PCRF unit. At the same time, compared with the existing technology, the UPF / PGW unit performs rate limiting based on pre-set rate-limiting application characteristics. The UPF / PGW unit in this application only needs to forward traffic to the rate limiting gateway through the GRE tunnel according to the target service identifier so that the rate limiting gateway can perform rate limiting. Therefore, it is not necessary to configure rate-limiting application characteristics in the UPF / PGW unit, thereby simplifying the core network configuration and improving the core network operating performance. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0043] Figure 1 A flowchart illustrating an application-level rate limiting method provided in an embodiment of this application;

[0044] Figure 2 A flowchart illustrating another application-level rate limiting method provided in this application embodiment;

[0045] Figure 3 This is a schematic diagram of the structural device of the application-level speed limiter provided in the embodiments of this application;

[0046] Figure 4 This is a schematic diagram of the electronic device structure provided in an embodiment of this application.

[0047] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0049] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0050] In existing technologies, the method of limiting the overall mobile data traffic of a user's mobile phone by issuing a PCC policy to the user's mobile phone through the PCF / PCRF unit cannot achieve rate limiting for a specific application. This can be achieved by configuring the application's IP and URL characteristics (referred to as application characteristics) in advance on the UPF / PGW unit, and simultaneously configuring a PCC policy on the PCF / PCRF unit. When implementing rate limiting, the PCC capability platform sends PCC policies to the PCF / PCRF unit. The PCF / PCRF unit then maps the PCC policy to a QoS rulename (service identifier) ​​and sends it to the UPF / PGW unit. When the UPF / PGW unit forwards user internet traffic, it intercepts or limits traffic with application characteristics, while other traffic is forwarded normally. This method can perform application-level rate limiting. The disadvantage of this method is that when rate limiting more than one application, a combination of PCC rate limiting policies needs to be configured in the core network PCF / PCRF unit. For example, there are three combinations for rate limiting APP1 and APP2: the first is to limit the rate of only APP1, the second is to limit the rate of only APP2, and the third is to limit the rate of both APP1 and APP2. Each of these three combinations requires a PCC policy to be configured in the core network PCF / PCRF unit, for a total of three PCC rate limiting policies. In addition, the corresponding application characteristics need to be configured in the UPF / PGW unit. As the number of rate-limited applications increases, the number of PCC policies and application features that need to be configured in the core network will increase dramatically, leading to inconvenience in core network configuration and reducing core network performance, making it difficult to promote in practice.

[0051] This application provides an application-level rate limiting method, apparatus, device, and storage medium. Upon receiving a user's rate limiting request, a slicing platform can issue a PCC rate limiting policy to the core network PCF / PCRF unit. The PCF / PCRF unit obtains the target service identifier based on the rate limiting policy and sends it to the UPF / PGW unit. The UPF / PGW unit then opens a GRE tunnel based on the target service identifier, allowing traffic to be forwarded to the rate limiting gateway via the GRE tunnel. The rate limiting gateway applies rate limiting to the application based on the user's rate limiting request. This achieves the goal of configuring only one PCC rate limiting policy in the core network PCF / PCRF unit, regardless of the number of rate-limited applications. This PCC rate limiting policy is used to generate a service identifier to enable GRE tunnel forwarding to the rate limiting gateway, thereby simplifying core network configuration and improving core network performance.

[0052] The application-level rate limiting method provided in this embodiment can be executed by a server. The server can be any server. This embodiment does not specifically limit the rate of the execution entity, as long as the execution entity can obtain a user's rate limiting request. The user's rate limiting request includes the rate-limiting mobile number, the rate-limiting application identifier corresponding to the rate-limiting mobile number, and the rate-limiting policy, which includes the rate-limiting time and the rate-limiting range. Based on the user's rate limiting request, a PCC rate limiting policy is issued to the PCF / PCRF unit, enabling the PCF / PCRF unit to generate a target service identifier based on the PCC rate limiting policy and send the target service identifier to the UPF / PGW unit. The UPF / PGW unit, based on the target service identifier, opens a GRE tunnel to forward traffic to the rate limiting gateway through the GRE tunnel. The rate limiting gateway then applies rate limiting to the application based on the rate limiting request.

[0053] Among them, PCC (Policy Control and Charging) is an architecture that maps the QoS requirements of application-level session service data streams to IP-CAN, accesses the QoS requirements of the transport network bearer-level services to ensure data transmission, and can also implement service data stream-level charging functions according to the operator's charging policy.

[0054] DPI (Deep Packet Inspection) is an application-layer-based traffic inspection and control technology. When IP packets, TCP or UDP data streams pass through a bandwidth management system based on DPI technology, the system reads the contents of the IP packet payload to reconstruct the application layer information in the OSI seven-layer protocol, thereby obtaining the content of the entire application, and then performs traffic shaping operations according to the management policies defined by the system.

[0055] The DPI (Demand-Based Indicator) call detail record (CDR) platform allows operators to bypass and split optical signals on relevant network interface links. It then performs real-time analysis of the data within these links to generate XDR CDR data, including the user's mobile phone number and private IP address (Internet Protocol) information. The DPI platform utilizes this XDR data to provide query and data analysis services for the mapping between user mobile phone numbers and mobile network private IP addresses. It employs a publish / subscribe approach to push the private IP address information corresponding to the speed-limited mobile phone number to the network slicing platform in real-time.

[0056] GRE (Generic Routing Encapsulation) is a generic routing encapsulation protocol that can encapsulate datagrams from certain network layer protocols, enabling these encapsulated datagrams to be transmitted in IPv4 networks.

[0057] PCF / PCRF units refer to units with policy control function (PCF) and policy & charging control function (PCRF). The PCRF unit is a 4G core network element, while the PCF unit is a 5G core network element. PCF / PCRF units can support both 4G and 5G communication services and are configured with PCC rate limiting policies. When application-level rate limiting is performed, the slicing platform sends the PCC rate limiting policy to the PCF / PCRF unit. After receiving the rate limiting policy, the PCF / PCRF unit maps the PCC rate limiting policy to a service identifier and sends it to the UPF / PGW unit.

[0058] A UPF / PGW unit can refer to a unit possessing both User Plane Function (UPF) and PDN (Public Data Network) gateway (PGW). The UPF is a crucial component of the 3GPP (3rd Generation Partnership Project) 5G core network system architecture, primarily responsible for routing and forwarding user plane data packets within the 5G core network. The UPF plays a vital role in 5G edge computing and network slicing technologies, providing low latency and high bandwidth. The PGW is an important network element in the EPC (Evolved Packet Core) of mobile communication networks. The EPC network is essentially an evolved version of the original 3G core network's PS domain, and the PGW is equivalent to an evolved GGSN (Gateway General Support Node) network element, with functions and roles comparable to the original GGSN element.

[0059] A gateway, also known as an internetwork connector or protocol converter, operates at the transport layer to interconnect networks. It is the most complex network interconnection device and is used only for interconnecting two networks with different high-level protocols.

[0060] Figure 1 This is a flowchart illustrating an application-level rate limiting method provided in an embodiment of this application. Figure 1As shown, the execution subject of this method can be a server or other servers. In this embodiment, no specific rate limiting is implemented. Figure 1 As shown, the method includes:

[0061] S101. Obtain user speed limit application, wherein the user speed limit application includes the speed limit mobile phone number, the speed limit application identifier corresponding to the speed limit mobile phone number, and the speed limit policy, and the speed limit policy includes the speed limit time and the speed limit range.

[0062] The implementing entity of this application is a slicing platform, which comprises a gateway controller and a PCC capability platform. The gateway controller serves as the scheduling center for application rate limiting and a centralized management platform for rate limiting gateways. The PCC capability platform is a centralized capability platform for issuing PCC policies. The slicing platform periodically sends the IP and URL characteristics of the application to the rate limiting gateway. When rate limiting is applied, the slicing platform receives a rate limiting request, along with rate limiting action information such as the phone number, application, and rate limiting policy. The slicing platform then sends a rate limiting action signal to the rate limiting gateway, distributing the rate limiting action information. Simultaneously, the slicing platform issues PCC rate limiting policies to the PCF / PCRF unit. Furthermore, the slicing platform subscribes to real-time messages from the DPI (Demand Per Item) retrieval platform regarding the private IP address corresponding to the user's phone number. Once the DPI retrieval platform detects a change in the user's private IP address, the slicing platform promptly receives the corresponding message and pushes it to the rate limiting gateway in real time.

[0063] The speed-limiting phone number is the phone number that the user needs to limit the application speed for.

[0064] The rate-limiting application identifier is the identifier of the application that the user needs to limit the rate of, and it can be the rate-limiting application identifier ID.

[0065] The speed limit time includes the start time of the speed limit, the end time of the speed limit, and the duration of the speed limit. For example, it could be: the speed limit is set from 7 pm tonight to the hotel, and the speed limit lasts for two hours.

[0066] The speed limit range refers to the range of network speeds within which the application speed needs to be controlled. The speed limit range can be to completely block internet access, or to limit the network speed to a certain range; for example, to limit the network speed to within 1MB / s.

[0067] In this embodiment of the application, before obtaining the user's speed limit request, the method further includes:

[0068] Obtain the application's application characteristic information, which includes the application identifier, application IP, and application URL;

[0069] The application characteristic information is sent to the rate limiting gateway so that the rate limiting gateway can determine the application to be rate-limited based on the application characteristic information.

[0070] Here, "App" is short for "Application," but broadly speaking, it refers to all client software, including desktop and mobile applications. In a narrower sense, it refers to the third-party applications for smartphones that we often talk about.

[0071] An application refers to any application that can connect to the internet.

[0072] Application characteristics may include the application's identifier (ID), application IP address, application port, application URL, and payload.

[0073] S102. Based on the user's rate limiting request, issue the PCC rate limiting policy to the PCF / PCRF unit so that the PCF / PCRF unit can generate the target service identifier according to the PCC rate limiting policy and send the target service identifier to the UPF / PGW unit.

[0074] The target service identifier can be a QoS rule name. By default, the PCF / PCRF unit needs to pre-configure the PCC policy. When the slicing platform receives a user's rate limiting request, it issues the PCC policy through the PCC capability platform in the slicing platform. After receiving the PCC policy, the PCF / PCRF unit will issue the PCC policy to the SMF / PGW-C. The SMF / PGW-C will map the PCC policy to a QoS rule name (service identifier) ​​and issue it to the UPF / PGW unit. SMF stands for Session Management Function.

[0075] The S103 and UPF / PGW units open a GRE tunnel based on the target service identifier to forward traffic to the rate-limiting gateway through the GRE tunnel.

[0076] Once the UPF / PGW unit receives the target service identifier (i.e., the QoS rule name issued by the PCF / PCRF unit to the UPF / PGW unit), it opens the GRE tunnel and then forwards the traffic of the UPF / PGW unit to the rate limiting gateway through the GRE tunnel.

[0077] In this embodiment of the application, after the UPF / PGW unit opens a GRE tunnel based on the target service identifier to forward traffic to the rate limiting gateway through the GRE tunnel, and before the rate limiting gateway performs traffic rate limiting on the rate limiting application based on the rate limiting request, the method further includes:

[0078] Obtain current traffic information from the DPI number retrieval platform. This traffic information includes the mobile phone number and the private IP address corresponding to the mobile phone number.

[0079] Based on the phone number with the speed limit and data usage information, obtain the target private IP address corresponding to the phone number with the speed limit.

[0080] Send the target private IP address to the rate limiting gateway so that the rate limiting gateway can limit the traffic of the rate limiting application according to the rate limiting request.

[0081] Among them, the DPI platform can be used to obtain the IPs of all users currently online that are tracked by the DPI platform. By using the speed-limited mobile phone number, the IP of the user corresponding to the speed-limited mobile phone number can be found, that is, the target private network IP.

[0082] In this embodiment of the application, after obtaining the target private network IP corresponding to the speed-limited phone number based on the speed-limited phone number and traffic information, the method further includes:

[0083] Send a rate limiting command and the target private network IP to the rate limiting gateway. The rate limiting command is generated based on the user's rate limiting request and includes the rate limiting application identifier and rate limiting policy.

[0084] The speed-limiting gateway limits the traffic of applications based on the target private network IP and the speed-limiting command.

[0085] In this embodiment of the application, the rate-limiting gateway limits the traffic of the rate-limiting application based on the target private network IP and the rate-limiting command. The method further includes:

[0086] The rate limiting gateway obtains the target application feature information corresponding to the rate limiting application identifier based on the rate limiting application identifier and application feature information in the rate limiting instruction;

[0087] The rate-limiting gateway determines the IP address of the application to be rate-limited based on the characteristics of the target application.

[0088] The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, the speed-limiting time and speed-limiting range in the speed-limiting command.

[0089] In this embodiment of the application, the rate-limiting gateway limits the traffic of the rate-limiting application based on the target private network IP, the rate-limiting application IP, and the rate-limiting time and speed range in the rate-limiting command, including:

[0090] The rate limiting gateway identifies the target data packet and its five-tuple information by first packet identification of the traffic. The five-tuple information of the target data packet is the same for all packets.

[0091] The rate-limiting gateway obtains the IP address of the rate-limiting application based on the five-tuple information and the application characteristic information in the rate-limiting command;

[0092] The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, the speed-limiting time and speed-limiting range in the speed-limiting command.

[0093] The 5-tuple refers to the source IP address, source port, destination IP address, destination port, and transport layer protocol.

[0094] Data packets with identical 5-tuple information are sent consecutively. To reduce CPU resource consumption, it is only necessary to identify the first data packet in the data packets with identical 5-tuple information (i.e., first packet identification).

[0095] The five-tuple information is obtained by identifying the first packet. Then, the five-tuple information is matched with the application feature information preset in the rate-limiting gateway to obtain the rate-limiting application IP.

[0096] S104. The speed limiting gateway limits the traffic of speed-limiting applications based on the speed limiting request.

[0097] In this embodiment of the application, the rate-limiting gateway limits the traffic of the rate-limiting application according to the rate-limiting request, including:

[0098] The speed limiting gateway determines the speed limit range based on the speed limiting application;

[0099] If the speed limit range is within the target range, the speed limit gateway will limit the traffic of the speed limit application according to the speed limit requirements. The speed limit requirements are pre-set speed limit requirements corresponding to the target range, including requirements for disconnecting the speed limit application and requirements for traffic limit of the speed limit application.

[0100] The speed limit can be set to either prohibit applications from accessing the internet or restrict applications to a certain speed range.

[0101] The target range can be 0 or any network speed. For example, any network speed can be 1MB / s, 100KB / s, or 1B / s.

[0102] Rate limiting can be implemented using QoS (Quality of Service) or ACL (Access Control List) control. QoS rate limiting ensures network quality by controlling network traffic; it's a network assurance technology that manages the transmission rate and priority of network traffic, enabling priority processing and bandwidth limitation for different types of network traffic, thus controlling network speed within a certain range. ACL access control is a packet filtering-based flow control technology. Control lists use the source address (i.e., the destination private network IP) and destination address (the rate-limiting application IP) as the basic elements for packet inspection. If the source address of a packet is the destination private network IP and the destination address is the rate-limiting application IP, the packet is not allowed to pass. If the source address is the destination private network IP but the destination address is not the rate-limiting application IP, the packet is allowed to pass. If the source address is not the destination private network IP but the destination address is the rate-limiting application IP, the packet is allowed to pass. If the source address is neither the destination private network IP nor the rate-limiting application IP, the packet is allowed to pass but not transmitted, resulting in a network speed of 0.

[0103] If the network speed limit is 0, then the ACL access control method is selected to limit the speed, preventing the application from accessing the internet. If the network speed limit is any range, then the QoS speed limit method is used to restrict the application's network speed to within that range.

[0104] This application provides an application-level rate limiting method. A user submits a rate limiting request, prompting the slicing platform to issue a PCC rate limiting policy to the PCF / PCRF unit. The PCF / PCRF unit generates a target service identifier based on the PCC rate limiting policy, and then opens a GRE tunnel based on the service identifier, forwarding traffic to the rate limiting gateway. The rate limiting gateway then applies the rate limiting request to the traffic. By configuring a PCC rate limiting command in the core network PCF / PCRF unit, opening a GRE tunnel, and forwarding traffic to the rate limiting gateway, the rate limiting is achieved, simplifying the configuration of the core network PCF / PCRF unit.

[0105] Figure 2 This is a flowchart illustrating another application-level rate limiting method provided in an embodiment of this application. Figure 2 As shown, the execution subject of this method can be a server or other servers. In this embodiment, no specific rate limiting is implemented. Figure 2 As shown, the method includes:

[0106] S201. Configure the application characteristic information of all applications in the rate limiting gateway.

[0107] The application characteristic information includes the application ID, the application IP address corresponding to the application ID, and the application URL.

[0108] S202, The slicing platform obtains the speed limit application submitted by the user.

[0109] The speed limit application includes the mobile phone number that needs to be speed limited, the speed limit application information corresponding to the mobile phone number, and the speed limit policy. The speed limit application information includes the speed limit application ID, and the speed limit policy includes the speed limit time (the start and end time of the speed limit, the duration of the speed limit) and the network speed range.

[0110] S203. The slicing platform obtains the real-time private network IP corresponding to the speed-limited mobile phone number from the DPI number retrieval platform.

[0111] S204. The slicing platform sends a rate-limiting command and real-time private network IP to the rate-limiting gateway.

[0112] The speed limit instruction includes speed limit application information and speed limit policy. The speed limit policy includes the speed limit time (speed limit start time and end time, speed limit duration), and the speed limit application information includes the speed limit application ID.

[0113] S205. Once the slicing platform receives a user's rate limiting request, it issues a PCC rate limiting policy to the PCF / PCRF unit. The PCF / PCRF unit then maps the PCC rate limiting policy to the target service identifier and issues it to the UPF / PGW unit.

[0114] The target business identifier is used to enable the GRE tunnel.

[0115] The S206 and UPF / PGW units open the GRE tunnel according to the target service identifier and forward 4 / 5G traffic to the rate-limiting gateway through the GRE tunnel.

[0116] S207. The rate limiting gateway obtains the rate limiting application characteristic information based on the rate limiting application ID.

[0117] The information on the application of speed limiting features includes the IP address and URL of the speed limiting application.

[0118] If the rate-limiting feature information does not include the rate-limiting application IP, then the packet 5-tuple information is obtained based on the rate-limiting application feature first packet identification, and the packet 5-tuple information contains the rate-limiting application IP.

[0119] S208, the speed limiting gateway limits the speed based on the speed limiting policy, private network IP, speed limiting application IP, and speed limiting time.

[0120] The rate limiting policy determines whether to use QoS rate limiting or ACL access control. If the rate limiting range in the policy represents a complete network outage, ACL access control is selected. If the rate limiting range in the policy represents limiting network speed, QoS rate limiting is selected.

[0121] This application provides another application-level rate limiting method. The PCC capability platform sends PCC policies to the PCF / PCRF unit, which then maps these policies to service identifiers and sends them to the UPF / PGW unit. The UPF / PGW unit then imports all 4G / 5G internet traffic from the user to be rate-limited through a GRE tunnel to the rate-limiting gateway. The rate-limiting gateway performs rate limiting, applying QoS rate limiting and ACL access control based on source and destination information to the imported 4G / 5G internet traffic. The rate-limiting gateway obtains the source information of the rate-limiting action through the user's private IP address. Once the user's private IP address changes, the DPI number retrieval platform pushes the correspondence between the user's mobile phone number and private IP address to the rate-limiting gateway in real time through the slicing platform. The destination information of the rate-limiting action is obtained through application feature identification of packets. The slicing platform periodically sends the application features of the rate-limiting app to the rate-limiting gateway. In this method, since the rate limiting action is completed in the rate limiting gateway, the UPF / PGW unit simply imports all 4 / 5G internet traffic of the user into the rate limiting gateway. Therefore, only one PCC policy needs to be configured in the core network PCF / PCRF unit to carry out the service, which simplifies the configuration of the core network.

[0122] Figure 3 This is a structural example diagram of an application-level speed limiting device provided in an embodiment of this application. (See diagram below.) Figure 3 As shown, the application-level speed limiting device 30 includes: an acquisition module 301, a distribution module 302, an activation module 303, and a speed limiting module 304. Wherein:

[0123] The module 301 is used to obtain user speed limit requests, wherein the user speed limit request includes the speed limit mobile phone number, the speed limit identifier corresponding to the speed limit mobile phone number, and the speed limit policy, and the speed limit policy includes the speed limit time and the speed limit range.

[0124] The distribution module 302 is used to distribute the PCC rate limiting policy to the PCF / PCRF unit according to the user's rate limiting application, so that the PCF / PCRF unit can generate the target service identifier according to the PCC rate limiting policy and send the target service identifier to the UPF / PGW unit;

[0125] The module 303 is enabled so that the UPF / PGW unit can enable the GRE tunnel according to the target service identifier, so as to forward traffic to the rate limiting gateway through the GRE tunnel;

[0126] The rate limiting module 304 is used by the rate limiting gateway to limit the traffic of rate-limiting applications based on the rate limiting request.

[0127] In this embodiment of the application, the acquisition module 301 can also be specifically used for:

[0128] Obtain the application's application characteristic information, which includes the application identifier, application IP, and application URL;

[0129] The application characteristic information is sent to the rate limiting gateway so that the rate limiting gateway can determine the application to be rate-limited based on the application characteristic information.

[0130] In this embodiment of the application, the enabling module 303 can also be specifically used for:

[0131] Obtain current traffic information from the DPI number retrieval platform. This traffic information includes the mobile phone number and the private IP address corresponding to the mobile phone number.

[0132] Based on the phone number with the speed limit and data usage information, obtain the target private IP address corresponding to the phone number with the speed limit.

[0133] Send the target private IP address to the rate limiting gateway so that the rate limiting gateway can limit the traffic of the rate limiting application according to the rate limiting request.

[0134] In this embodiment of the application, the enabling module 303 can also be specifically used for:

[0135] Send a rate limiting command and the target private network IP to the rate limiting gateway. The rate limiting command is generated based on the user's rate limiting request and includes the rate limiting application identifier and rate limiting policy.

[0136] The speed-limiting gateway limits the traffic of applications based on the target private network IP and the speed-limiting command.

[0137] In this embodiment of the application, the enabling module 303 can also be specifically used for:

[0138] The rate limiting gateway obtains the target application feature information corresponding to the rate limiting application identifier based on the rate limiting application identifier and application feature information in the rate limiting instruction;

[0139] The rate-limiting gateway determines the IP address of the application to be rate-limited based on the characteristics of the target application.

[0140] The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, the speed-limiting time and speed-limiting range in the speed-limiting command.

[0141] In this embodiment of the application, the enabling module 303 can also be specifically used for:

[0142] The rate limiting gateway identifies the target data packet and its five-tuple information by first packet identification of the traffic. The five-tuple information of the target data packet is the same for all packets.

[0143] The rate-limiting gateway obtains the IP address of the rate-limiting application based on the five-tuple information and the application characteristic information in the rate-limiting command;

[0144] The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, the speed-limiting time and speed-limiting range in the speed-limiting command.

[0145] In this embodiment of the application, the speed limiting module 304 can also be specifically used for:

[0146] The speed limiting gateway determines the speed limit range based on the speed limiting application;

[0147] If the speed limit range is within the target range, the speed limit gateway will limit the traffic of the speed limit application according to the speed limit requirements. The speed limit requirements are pre-set speed limit requirements corresponding to the target range, including requirements for disconnecting the speed limit application and requirements for traffic limit of the speed limit application.

[0148] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device 40 includes:

[0149] The electronic device 40 may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a communication component 403, and other components. The processor 401, memory 402, and communication component 403 are connected via a bus 404.

[0150] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to execute the application-level rate limiting method described above.

[0151] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0152] In the above Figure 4In the illustrated embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0153] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0154] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0155] In some embodiments, a computer program product is also provided, including a computer program or instructions that, when executed by a processor, implement the steps in any of the above application-level rate limiting methods.

[0156] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0157] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0158] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the application-level rate limiting methods provided in embodiments of this application.

[0159] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0160] According to one aspect of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium.

[0161] Since the instructions stored in the storage medium can execute the steps of any of the application-level rate limiting methods provided in the embodiments of this application, the beneficial effects that any of the application-level rate limiting methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0162] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0163] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. An application-level rate limiting method, applied to a slicing platform, the slicing platform including a gateway controller and a PCC capability platform, characterized in that, The method includes: Obtain a user's speed limit request, wherein the user's speed limit request includes the speed limit mobile phone number, the speed limit application identifier corresponding to the speed limit mobile phone number, and the speed limit policy, wherein the speed limit policy includes the speed limit time and the speed limit range; Based on the user's rate limiting request, a PCC rate limiting policy is issued to the PCF / PCRF unit, so that the PCF / PCRF unit generates a target service identifier according to the PCC rate limiting policy and sends the target service identifier to the UPF / PGW unit; The UPF / PGW unit opens a GRE tunnel based on the target service identifier, so as to forward traffic to the rate limiting gateway through the GRE tunnel; The system obtains current traffic information from the DPI number retrieval platform, including a mobile phone number and its corresponding private IP address. Based on the speed-limited mobile phone number and the traffic information, it obtains the target private IP address corresponding to the speed-limited mobile phone number. It then sends a speed-limiting instruction and the target private IP address to the speed-limiting gateway. The speed-limiting instruction is generated based on a user's speed-limiting request and includes a speed-limiting application identifier and a speed-limiting policy. The speed-limiting gateway then applies traffic speed limits to the speed-limiting application based on the target private IP address and the speed-limiting request.

2. The method according to claim 1, characterized in that, Prior to obtaining the user's speed limit request, the method further includes: Obtain application feature information of the application, including application identifier, application IP, and application URL; The application feature information is sent to the rate limiting gateway so that the rate limiting gateway can determine the rate-limiting application based on the application feature information.

3. The method according to claim 1, characterized in that, After obtaining the target private IP address corresponding to the speed-limited phone number based on the speed-limited phone number and the traffic information, the method further includes: Send a rate limiting instruction and a target private network IP to the rate limiting gateway, wherein the rate limiting instruction is an instruction generated based on the user's rate limiting application, and the rate limiting instruction includes the rate limiting application identifier and the rate limiting policy; The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP and the speed-limiting command.

4. The method according to claim 3, characterized in that, The rate-limiting gateway limits the traffic of the rate-limiting application based on the target private network IP and the rate-limiting command. The method further includes: The speed limiting gateway obtains the target application feature information corresponding to the speed limiting application identifier based on the speed limiting application identifier and application feature information in the speed limiting instruction; The rate-limiting gateway determines the IP address of the rate-limiting application based on the target application's characteristic information. The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, and the speed-limiting time and speed-limiting range in the speed-limiting instruction.

5. The method according to claim 4, characterized in that, The rate-limiting gateway limits the traffic of the rate-limiting application based on the target private network IP, the rate-limiting application IP, and the rate-limiting time and speed range in the rate-limiting command, including: The rate limiting gateway identifies the target data packet and the five-tuple information of the target data packet by performing first packet identification on the traffic, wherein the five-tuple information of the target data packet is all the same; The rate-limiting gateway obtains the rate-limiting application IP based on the five-tuple information and the application characteristic information in the rate-limiting instruction; The speed-limiting gateway limits the traffic of the speed-limiting application based on the target private network IP, the speed-limiting application IP, and the speed-limiting time and speed-limiting range in the speed-limiting instruction.

6. The method according to claim 1, characterized in that, The rate-limiting gateway limits the traffic of the rate-limiting application based on the rate-limiting request, including: The speed limiting gateway determines the speed limit range based on the speed limiting application; If the speed limit range is within the target range, the speed limit gateway applies a speed limit to the application based on the speed limit requirements. The speed limit requirements are pre-set speed limit requirements corresponding to the target range, and include requirements for disconnecting the application from the network and for applying traffic speed limits to the application.

7. An application-level rate limiting device, applied to a slicing platform, the slicing platform including a gateway controller and a PCC capability platform, characterized in that, include: The acquisition module is used to acquire user speed limit requests, wherein the user speed limit request includes the speed limit mobile phone number, the speed limit application identifier corresponding to the speed limit mobile phone number, and the speed limit policy, wherein the speed limit policy includes the speed limit time and the speed limit range. The distribution module is used to distribute the PCC rate limiting policy to the PCF / PCRF unit according to the user rate limiting application, so that the PCF / PCRF unit generates a target service identifier according to the PCC rate limiting policy and sends the target service identifier to the UPF / PGW unit; The enabling module is used by the UPF / PGW unit to enable a GRE tunnel according to the target service identifier, so as to forward traffic to the rate limiting gateway through the GRE tunnel; The rate limiting module is used to obtain current traffic information from the DPI number retrieval platform, wherein the traffic information includes a mobile phone number and the private IP address corresponding to the mobile phone number; based on the rate-limited mobile phone number and the traffic information, it obtains the target private IP address corresponding to the rate-limited mobile phone number; it sends a rate-limiting instruction and the target private IP address to the rate-limiting gateway, wherein the rate-limiting instruction is an instruction generated based on the user's rate-limiting request, and the rate-limiting instruction includes a rate-limiting application identifier and a rate-limiting policy; the rate-limiting gateway limits the traffic of the rate-limiting application based on the target private IP address and the rate-limiting request.

8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Open method for user side QoS guarantee capability and server

    CN108259434A

  • Method and system for adjusting TCP (Transmission Control Protocol) flow

    CN114666423A