Method, system and computer-readable medium for producer network function service instance-wide egress rate limiting in a service communication proxy - Patents.com

The introduction of a rate limiting policer within the SCP system addresses capacity unawareness in producer NF selection, preventing overload by managing token allocation across SCP worker instances, thus ensuring efficient and scalable producer NF service instance-wide egress rate limiting.

JP7589170B2Active Publication Date: 2024-11-25ORACLE INT CORP

Patent Information

Application Number
JP2021564209
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-06-26
Filing Date
2020-05-27
Publication Date
2024-11-25
Estimated Expiration
2040-05-27

AI Technical Summary

Technical Problem

Existing 5G network architectures face challenges in producer NF selection due to unawareness of producer NF capacity, leading to potential overload from multiple consumer NFs or proxies, as individual entities make decisions based on service requests without considering overall capacity usage.

Method used

Implementing a service communication proxy (SCP) with a rate limiting policer that manages producer NF service instance-wide egress rate limiting by using a token allocation system to regulate traffic, ensuring that the combined egress traffic from SCP worker instances does not exceed the capacity of the producer NF service instances.

Benefits of technology

This approach prevents producer NF service instances from becoming overwhelmed by managing capacity across multiple SCP worker instances, ensuring efficient and seamless scaling while maintaining compliance with producer NF service instance limits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007589170000001
    Figure 0007589170000001
  • Figure 0007589170000002
    Figure 0007589170000002
  • Figure 0007589170000003
    Figure 0007589170000003
Patent Text Reader

Abstract

A method for network function (NF) service instance-wide egress rate limiting includes processing performed in a service communication proxy (SCP) and a rate limiting policer. The processing includes requesting, at an SCP worker instance, producer NF service instance capacity for processing service requests from a rate limiting policer separate from the SCP worker instance. The processing includes performing producer NF service instance-wide egress rate limiting between the SCP worker instance and the producer NF service instance by granting or denying, at the rate limiting policer, the request for producer NF service instance capacity from the SCP worker instance such that combined egress traffic from the SCP worker instance does not exceed the rate capacity of the producer NF service instance.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Priority claim This application claims the benefit of priority to U.S. patent application 16 / 453,955, filed June 26, 2019, the entire disclosure of which is incorporated herein by reference.

[0002] Technical Field The subject matter described herein relates to performing rate limiting of network service requests to a producer Network Function (NF). More specifically, the subject matter described herein relates to a method, system, and computer-readable medium for producer NF service instance-wide egress rate limiting in a Service Communication Proxy (SCP). [Background technology]

[0003] background In the 5G network architecture specified by the 3rd Generation Partnership Project (3GPP), a Network Function (NF) is a network node that provides or consumes a service. An NF that provides a service is called a producer NF. An NF that consumes a service is called a consumer NF. An NF can be a producer or a consumer depending on the context. The NF Repository Function (NRF) is a network entity that maintains an NF profile of available NF instances and their supporting services. The NRF also allows other NF instances to subscribe and be notified of new / updated producer NF service instances of a given type to register with the NRF. The NRF supports the service discovery function by receiving NF discovery requests and providing information about available NFs.

[0004] A Service Communication Proxy (SCP) is a node available for indirect communication between consumer NFs and producer NFs. In indirect communication, a consumer NF sends a service request to the SCP, the SCP selects a producer NF to process each service request, and the SCP forwards the service request to the producer NF. The SCP also forwards responses from the producer NF to the consumer NF. According to 3GPP TS23.501, 3rd Generation Partnership Project, Technical Specification Group Service and System Aspects, System Architecture for 5G Systems, Stage 2 (Release 16), V16.0.0 (2019-03), the entire disclosure of which is incorporated herein by reference, the load balancing, monitoring and overload control provided by the SCP are left to the implementation, but the implementation details are not specified. Summary of the Invention [Problem to be solved by the invention]

[0005] One challenge with existing processes used to select producer NFs is that producer NF selection decisions may be made by individual entities that are not aware of producer NF capacity based on service requests sent to the producer NFs from other entities. For example, a producer NF may receive service requests from different consumer NFs or entities acting as proxies for consumer NFs. The consumer NFs or entities acting as proxies for consumer NFs may or may not be aware of the capacity of the producer NF or the amount of capacity used by other consumer NFs or proxies. As a result, a producer NF may be unable to accommodate a large number of service requests from one entity that is not aware of the service requests sent to the producer NF service instances from other entities.

[0006] In light of these challenges, therefore, a need exists for a method, system, and computer-readable medium for producer NF service instance wide egress rate limiting. [Means for solving the problem]

[0007] overview The subject matter described herein includes methods, systems, and computer-readable media for producer network function (NF) service instance-wide egress rate limiting. One method includes steps performed in a service communication proxy (SCP) including at least one processor. The steps include receiving a service request from a consumer NF. The steps further include forwarding the service request to an SCP worker instance. The steps further include requesting, in the SCP worker instance, producer NF service instance capacity for processing the service request from a rate limiting policer separate from the SCP worker instance. The method also includes steps performed in the rate limiting policer. The steps include performing producer NF service instance-wide egress rate limiting between the SCP worker instance and the producer NF service instance by allowing or denying a request for producer NF service instance capacity from the SCP worker instance such that the combined egress traffic from the SCP worker instance does not exceed the rate capacity of the producer NF service instance.

[0008] According to one aspect of the subject matter described herein, requesting producer NF service instance capacity from a rate limiting policer includes requesting a token allocation from the rate limiting policer, the token being available to the SCP worker instance to determine whether to grant or deny the service request.

[0009] According to one aspect of the subject matter described herein, performing wide rate limiting of NF service instances includes accessing a database to determine an amount of tokens available for each of the producer NF service instances.

[0010] According to other aspects of the subject matter described herein, requesting the token allocation includes requesting the token allocation in response to a ratio of authorized tokens available to one of the SCP worker instances being less than a threshold amount.

[0011] According to yet other aspects of the subject matter described herein, the rate limiting policer maintains a maximum limit on the tokens that may be allocated in a time interval for each NF service instance, and grants or denies a token allocation request based on whether the number of tokens requested by the token allocation request exceeds the maximum token limit.

[0012] According to yet another aspect of the subject matter described herein, enforcing NF service instance wide egress rate limiting includes implementing a fixed window during which tokens may be granted.

[0013] According to yet another aspect of the subject matter described herein, enforcing NF service instance wide egress rate limiting includes implementing a sliding window during which tokens may be granted.

[0014] According to yet another aspect of the subject matter described herein, performing producer NF service instance wide rate limit policing includes implementing a best effort allocation where if the number of tokens requested by one of the SCP worker instances in a time interval exceeds the maximum allocated tokens for that time interval, the remaining tokens available for the time interval are granted so long as the maximum token limit is not exceeded.

[0015] According to yet another aspect of the subject matter described herein, enforcing producer NF service instance wide egress rate limiting includes implementing a maximum limit token allocation by rejecting a token allocation request if the number of token requests exceeds the token maximum limit.

[0016] According to yet another aspect of the subject matter described herein, the SCP comprises a service communication proxy (SCP).

[0017] According to yet another aspect of the subject matter described herein, a system for network function (NF) service instance-wide egress rate limiting is provided. The system includes a service communication proxy (SCP) including at least one processor. The processor includes steps of receiving a service request from a consumer NF, forwarding the service request to an SCP worker instance implemented by the SCP, and requesting, by the SCP worker instance, producer NF service instance capacity to process the service request. The system further includes a rate limiting policer. The rate limiting policer performs producer NF service instance-wide egress rate limiting between the SCP worker instance and the producer NF service instance by allowing or denying a request for producer NF service instance capacity from the SCP worker instance such that the combined egress traffic from the SCP worker instance does not exceed the rate capacity of the producer NF service instance.

[0018] According to yet another aspect of the subject matter described herein, an SCP worker instance is configured to request producer NF service instance capacity from a rate limiting policer by requesting a token allocation from the rate limiting policer. The token is usable by the SCP worker instance to determine whether to allow or deny the service request.

[0019] According to yet another aspect of the subject matter described herein, the system includes a database accessible by the rate limiting policer to determine the amount of tokens available for each of the producer NF service instances.

[0020] According to yet another aspect of the subject matter described herein, the SCP worker instances are configured to request a token allocation in response to the number of granted tokens available to one of the SCP worker instances being less than a threshold.

[0021] According to yet other aspects of the subject matter described herein, the rate limiting policer is configured to maintain a maximum limit on the tokens that may be allocated in a time interval for each of the NF service instances, and to grant or deny a token allocation request based on whether the number of tokens requested by the token allocation request exceeds the maximum token limit.

[0022] According to yet other aspects of the subject matter described herein, the rate limiting policer is configured to perform NF service instance wide egress rate limiting by implementing a fixed window within which tokens may be granted.

[0023] According to yet other aspects of the subject matter described herein, the rate limiting policer is configured to perform NF service instance wide egress rate limiting by implementing a sliding window within which tokens may be granted.

[0024] According to yet another aspect of the subject matter described herein, the rate limit policing is configured to perform producer NF service instance wide rate limit policing by implementing a best effort allocation: if the number of tokens requested by one of the SCP worker instances in a time interval exceeds the maximum allocated tokens in a time interval, the remaining tokens available in the time interval that do not exceed the maximum token limit are granted.

[0025] According to yet another aspect of the subject matter described herein, the rate limiting policer is configured to enforce producer NF service instance-wide egress rate limiting by implementing a maximum token allocation, including rejecting a token allocation request if the number of token requests exceeds a maximum token limit.

[0026] According to yet another aspect of the subject matter described herein, a non-transitory computer-readable medium is provided having executable instructions stored thereon that, when executed by a processor of a computer, control the computer to perform steps. The steps include a first set of steps performed in a service communication (SCP) including at least one processor. The first set of steps includes receiving a service request from a consumer NF, forwarding the service request to an SCP worker instance, and requesting, in the SCP worker instance, from a rate limiting policer separate from the SCP worker instance, producer NF service instance capacity for processing the service request. The steps further include a second set of steps performed in the rate limiting policer. The second set of steps includes performing producer NF service instance-wide egress rate limiting between the SCP worker instance and the producer NF instance by granting or denying a request for producer NF service instance capacity from the SCP worker instance such that the combined egress traffic from the SCP worker instance does not exceed the rate capacity of the producer NF service instance.

[0027] The subject matter described herein can be implemented by software in combination with hardware and / or firmware. For example, the subject matter described herein can be implemented by software executed by a processor. In an exemplary embodiment, the subject matter described herein can be implemented using a non-transitory computer-readable medium having stored thereon computer-executable instructions that, when executed by a processor of a computer, control a computer to perform steps. Exemplary computer-readable media suitable for implementing the subject matter described herein include non-transitory computer-readable media such as disk memory devices, chip memory devices, programmable logic devices, and ASICs (Application Specific Integrated Circuits). In addition, computer-readable media implementing the subject matter described herein can be located on a single device or computer platform, or can be distributed across multiple devices or computer platforms. [Brief description of the drawings]

[0028] [Figure 1] FIG. 1 is a network diagram showing an example 5G network architecture including producer NFs, consumer NFs, NRFs and SCPs. [Diagram 2] FIG. 13 is a network diagram illustrating forwarding of service requests from an SCP worker instance to a producer NF service instance without egress rate limiting of requests from the SCP worker instance to the producer NF server instance. [Diagram 3] A network diagram showing the forwarding of requests from an SCP to a producer NF service instance when the capacity of the producer NF service instance is exceeded by requests from different SCP worker instances. [Figure 4] FIG. 13 is a network diagram illustrating egress rate limiting of traffic between an SCP worker instance and a producer NF service instance. [Diagram 5] FIG. 5 is a flowchart illustrating an example fixed window token bucket algorithm that may be implemented by the rate limiting policer of FIG. 4 to prevent producer NF service instances from being overwhelmed with large amounts of traffic from consumer NF service instances. [Figure 6] 13 is a flowchart illustrating a sliding window token bucket algorithm that may be implemented by a rate limiting policer to perform egress rate limiting of traffic to a producer NF service instance. [Figure 7A] 1 is a flow chart illustrating a token request algorithm that may be implemented by an SCP worker instance. [Figure 7B] 13 is a flow chart illustrating a part of the token request algorithm implemented by an SCP worker instance. [Figure 8] 13 is a flowchart illustrating an example process for NF service instance wide egress rate limiting. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029] Detailed Description The subject matter described herein relates to a method, system, and computer-readable medium for producer NF service instance-wide egress rate limiting in a service communication proxy. As previously mentioned, one challenge of existing network architectures is that 5G producer NF service instances may be unable to accommodate large amounts of traffic from multiple different consumers. To more fully explain rate limiting policing, a background of 5G service producer and service consumer network architectures is first presented. FIG. 1 is a block diagram illustrating an example 5G system network architecture. The architecture of FIG. 1 includes an NRF 100 and an SCP 101 located in a Home Public Land Mobile Network (HPLMN). As previously mentioned, the NRF 100 maintains a profile of available producer NF service instances and their supported services, and may allow consumer NFs to subscribe to and be notified of new / updated producer NF service instance registrations. The SCP 101 may also support service discovery and selection of producer NFs. In addition, the SCP 101 may perform load balancing of connections between consumer NFs and producer NFs.

[0030] In Fig. 1, any node other than NRF 100 and SCP 101 can be a consumer NF or a producer NF depending on whether they are requesting or providing a service. In the illustrated example, the node includes a Policy Control Function (PCF) 102 that performs policy related operations in the network, a User Data Management (UDM) Function 104 that manages user data, and an Application Function 106 that provides application services. The node shown in Fig. 1 further includes a Session Management Function (SMF) 108 that manages a session between an Access and Mobility Management (AMF) Function 110 and the PCF 102. The AMF 110 performs mobility management operations similar to those performed by a Mobility Management Entity (MME) in a 4G network. An Authentication Server Function (AUSF) 112 performs authentication services for User Equipment (UE) seeking access to the network, such as UE 114.

[0031] The Network Slice Selection Function (NSSF) 116 provides network slice services for devices that want to access specific network capabilities and characteristics associated with a network slice. The Network Exposure Function (NEF) 118 provides Application Programming Interfaces (APIs) for application functions that want to obtain information about Internet of Things (IoT) devices and other UEs connected to the network.

[0032] The Radio Access network (RAN) 120 connects the UE 114 to a network via a wireless link. The Radio Access network 120 may be accessed using a gNodeB (gNB) or other wireless access points. The User Plane Function (UPF) 122 may support various proxy functions for user plane services. One example of such a proxy function is a Multipath Transmission Control Protocol (MPTCP) proxy function. The UPF 122 may also support a performance measurement function that may be used by the UE 114 to obtain network performance measurements. Also shown in FIG. 1 is a Data Network (DN) 124 through which the UE accesses data network services, such as Internet services.

[0033] As mentioned above, producer NFs register with the NRF to indicate the type of service they provide. Producer NFs can also register capacity and preference information with the NRF. Consumer NFs can discover producer NFs registered to provide a particular service and can use the capacity and preference information to select a producer NF.

[0034] A consumer NF can communicate directly with a NF service producer NF. Alternatively, the consumer NF can communicate indirectly with a producer NF via an SCP. In direct communication, the consumer NF performs discovery of the target producer NF by local configuration or via the NRF. Furthermore, the consumer NF communicates directly with the target service producer NF. In the indirect mode, the consumer NF sends a service request message to the SCP, which may perform service discovery and producer NF selection on behalf of the consumer NF.

[0035] The subject matter described herein includes a service communication proxy (SCP) that exists between a 5G consumer NF and a producer NF. The SCP may perform SCP functions as defined in 3GPP TS 23.501. Such functions may include producer NF service discovery, producer NF selection, routing of messages between consumer NFs and producer NFs, and load balancing between producer NFs and consumer NFs. FIG. 2 is a network diagram illustrating an example architecture in which a service communication proxy exists between a producer NF and a consumer NF. In FIG. 2, a service communication proxy 200 provides a service IP address 202 connected to a 5G consumer NF 204 to receive services from producer NFs 206 and 208. The service communication proxy 200 forwards requests from the consumer NF 204 to the producer NFs 206 and 208 and routes responses from the producer NFs 206 and 208 to the consumer NF 204. The service communication proxy 200 includes SCP worker instances 210 and 212 that are deployed in a scalable manner such that ingress service requests from consumer NFs 204 are load balanced between the SCP worker instances 210 and 212. Each SCP worker instance 210 and 212 is connected to all of the producer NF service instances 206 and 208 for redundancy and load distribution purposes. In the illustrated example, the SCP worker instance 210 initiates HTTP2 service connections with the producer NF service instances 206 and 208 via service endpoints 206A, 206B, 208A, and 208B, respectively. Similarly, the SCP worker instance 212 establishes HTTP2 service connections with the producer NF service instances 206 and 208 via service endpoints 206A, 206B, 208A, and 208B, respectively. Each of the service endpoints 206A, 206B, 208A and 208B may be a service access point advertised by the producer NF service instances 206 and 208.

[0036] The service communication proxy 200 may be implemented using a computer platform including at least one processor and a memory. The computer platform may be configured for on-premise deployment in facilities managed by a network service provider or for cloud network deployment, in which the service communication proxy may be offered as a cloud service to the network service provider.

[0037] FIG. 3 is a network diagram to illustrate a possible problem in the architecture shown in FIG. 2 without egress rate policing for service requests generated by SCP 200 to producer NF service instances. Producer NF service instances 206 and 208 may expose their rate capacities to SCP 200. In FIG. 3, producer NF service instance 206 has an exposed rate capacity of 50,000 requests per second. Producer NF service instance 208 has an exposed rate capacity of 70,000 requests per second. The rate capacity defines the number of new service requests that each producer NF can process in a period of time. Even though SCP 200 is aware of the rate capacity of each producer NF, because SCP 200 uses multiple SCP worker instances to send service requests to producer NFs 206 and 208, and the SCP worker instances are not aware of service requests sent by other SCP worker instances, the rate capacity of producer NF service instances 206 and 208 may be exceeded in a given time interval.

[0038] To avoid this issue, rate limits should be applied per producer NF service instance so that the producer NF service instance is protected against receiving traffic from independent entities that exceeds the capacity of the producer NF. Issues with the architecture shown in Figure 3 include the fact that multiple SCP worker instances can connect and route messages to the same producer NF, and that SCP worker instances are not aware of the transmission rates of other SCP worker instances. As a result, there is a high probability that the producer NF service instance will become overloaded.

[0039] One possible solution to this problem is to provide each SCP worker instance with a static allocation of capacity by each producer NF. For example, producer NF service instance 206 can statically allocate half of its total capacity to SCP worker instance 210 and the other half to SCP worker instance 212. One challenge with this approach is that it underutilizes the capacity of producer NF service instance 206 if the incoming service requests are not evenly distributed between SCP worker instances 210 and 212. Another challenge that requires SCP worker instances to regulate their egress traffic rates is that there may be multiple endpoints to an egress service instance and tracking rate limits per NF service instance may unnecessarily complicate the SCP worker instance logic. Another challenge with statically allocating producer NF capacity among SCP worker instances is that new SCP worker instances may be continually established, requiring reallocation of static capacity among new and existing SCP worker instances.

[0040] Figure 4 is a network diagram showing the architecture of Figure 3 with a rate limit policer 400 implemented as a microservice separate from the SCP worker instances to perform egress rate limiting per NF service instance. In the illustrated example, the rate limit policer 400 includes an in-memory database or cache 402 that maintains the total rate limit capacity per producer NF service instance and controls capacity allocation between the SCP worker instances 210 and 212. The rate limit policer 400 may receive producer NF capacity information from the producer NF or from the SCP 200, which receives capacity information from the producer NF.

[0041] The SCP worker instance 212 is an entity instantiated by the SCP 200 to process service requests from consumer NFs. In general, the functions of an SCP worker instance include receiving incoming service requests from consumer NFs, selecting a producer NF to process the service request (e.g., based on the type of service provided), requesting producer NF service instance capacity from the rate limiting policer 400, and forwarding or dropping the service request depending on whether the producer NF service instance capacity granted by the rate limiting policer is sufficient to process the request. The rate limiting policer 400 receives requests for an allocation of capacity for a given service from the SCP worker instances 210 and 212. The rate limiting policer 400 allocates a rate capacity slice to each SCP worker per NF service instance using a token bucket algorithm described below. The available or used capacity of each producer NF service instance 206 and 208 may be maintained in a database 402 for fast access.

[0042] The rate limiting policer 400 may be implemented using a computer platform including at least one processor and a memory. The computer platform may be configured for on-premise deployment in facilities managed by a network service provider or for cloud network deployment. In a cloud deployment, the rate limiting policer 400 may be offered as a cloud service to a network service provider.

[0043] The rate limiting logic in each SCP worker instance 210 and 212 is simplified with the architecture shown in Fig. 4 because the SCP worker instance does not need to maintain the used capacity of the producer NF service instance. Instead, each SCP worker instance 210 and 212 determines whether it has enough producer NF service instance capacity granted by the rate limiting policer 400 to process the service request from the consumer NF 204. If the SCP worker instance does not have enough producer NF service instance capacity, the worker requests additional capacity from the rate limiting policer 400. If the rate limiting policer 400 grants the capacity to the SCP worker instance, the SCP worker instance can accept the corresponding service request and route the request to the NF service instance 206 or 208 according to the granted capacity. If the SCP worker instance cannot obtain enough capacity to process the new request, the SCP worker instance may drop the traffic for the producer NF service instance. In this way, the rate limiting is seamless for the SCP worker instance, regardless of scaling up or down.

[0044] As mentioned above, in one example, the rate limit policer 400 implements a token bucket algorithm to perform rate limit policing per service instance. The token bucket algorithm may be implemented for every producer NF service instance 206 or 208 per rate limit window. A rate limit window is a period, such as one second, over which the rate limit capacity of the NF service instance may be defined with the number of tokens that may be granted during the window. An SCP worker instance may request multiple tokens in a rate limit window from the rate limit policer 400 (one token for each pending request from a consumer NF). The algorithm of the SCP worker instance is described in detail later. Rate limit policing may be implemented with two different algorithms. One algorithm uses a fixed window and the other algorithm uses a sliding window. Figure 5 shows a fixed window rate policing algorithm that may be implemented by the rate limit policer 400. The fixed window algorithm operates in two different configurations. One configuration is a max limit configuration where requests are rejected if the number of token requests would exceed the max limit capacity of the producer NF. The other configuration option is the best effort configuration option, where if the number of token requests in a given window exceeds the number of available tokens, available tokens may be allocated even if they do not completely satisfy the current demand. For each token demand, the rate limiting policer 400 returns the granted tokens according to an algorithm and the time remaining in the current window.

[0045] With reference to the flowchart of FIG. 5, an SCP worker may initially or intermittently request tokens from producer NF service instances that the SCP worker instance has selected to provide services for a given service request. The token allocation request may include a current timestamp and a current token ask (token request count). In step 500, the rate limiting policer 400 receives the token allocation request and performs a lookup in the database 402 to determine whether the request is a new request for the current time interval or whether tokens have already been allocated to the requester in the current time interval. In step 502, if a record is not found in the lookup, the request is a new request and control proceeds to step 504, where the first window of token allocation for service X is started. Here, the number of previously allocated tokens is set to zero since the window has just been created. The previous expiry time is set to the current timestamp plus the window length, i.e., the expiry time of the created window. In step 502, if a record is found, the request is a subsequent request to the same requester and control proceeds to step 506, where the previously allocated tokens and the previous expiry time are read.

[0046] In step 508, it is determined whether the P-Expiry timer has expired. The P-Expiry timer controls the expiration of previously allocated tokens. If the P-Expiry timer has expired, control proceeds to step 504, where the current request is treated like a new request. If in step 508 the previous expiry time has not expired, control proceeds to step 510. In step 510, it is determined whether the number of previously allocated tokens plus the currently requested number of tokens exceeds the maximum limit of the service instance for the time interval. If the maximum limit is not exceeded, control proceeds to step 510, where the requested tokens are allocated and the variable PToken (previous token) is set to be equal to the current value of PToken plus CToken (currently requested token). In step 512, the values ​​of PToken and CToken are stored in the database 402. The SCP worker instance can then consume the tokens by sending a service request to the producer NF service instance. In one embodiment, one token allows an SCP worker instance to send one service request to a producer NF service instance. After the SCP worker instance sends a service request to the target producer NF service, the SCP worker instance decrements the number of available tokens.

[0047] Returning to step 510, if the previously allocated tokens plus the currently requested tokens for the time interval exceed the maximum limit, control proceeds to step 512 to determine whether a best-effort allocation is implemented. As previously described, a best-effort allocation allows tokens to be allocated even if the number of available tokens is not sufficient to satisfy the current request. If a best-effort allocation is not implemented, control proceeds to step 516 where the token request is denied, and then to step 512 where the values ​​of P-tokens and P-Expiry are stored in the database 402. If a best-effort allocation is implemented, control proceeds to step 514 where the remaining tokens are allocated. The number of allocated tokens is equal to the maximum limit minus the previously allocated tokens. Control then proceeds to step 512 where the values ​​of P-tokens and P-Expiry are stored in the database 402.

[0048] FIG. 5 illustrates a fixed window token allocation algorithm implemented by egress rate limiting policer 400. As mentioned above, in other examples, the token allocation algorithm may utilize a sliding window. In a sliding window approach, the initial time and expiration time for a given token allocation window move in time. The tokens in the window are divided into buckets, each bucket having a start time and a length. When the current timestamp passes the end of the bucket (bucket start time + length), any unused tokens in the bucket expire and can be reclaimed and used to satisfy requests for tokens from the same or other SCP worker instances. Thus, the use of a sliding window increases the availability of unused tokens.

[0049] FIG. 6 is a flow chart illustrating an exemplary sliding window token bucket algorithm that may be implemented by the rate limiting policer 400. With reference to FIG. 6, an SCP worker initially or intermittently requests tokens to process requests targeted to a service. The request identifies a current timestamp and a current number of requested tokens. In step 600, the rate limiting policer 400 performs a lookup in the database 402 to determine whether the request is a new request or an existing request for the time interval. If no entry is found in the lookup, the request is a new request. Thus, control passes from step 602 to step 604, where a previously assigned token variable (P-Tokens) for the time interval is initialized to zero. Control then passes to step 606, where the variable P-Bucket-Tokens is set to zero and the variable P-Bucket-Start-Timestamp is set to the current timestamp.

[0050] In step 602, if an entry is found, the request is a subsequent request for the current time interval. If the request is a subsequent request, control passes to step 608 where the previously assigned tokens (P-Tokens), the variable P-Bucket-Tokens, and the variable P-Bucket-Start-Time are initialized to values ​​in the database. Control then passes to step 610 where it is determined whether the variable P-Bucket-Start-Time is older than the current timestamp minus the bucket length. If this is true, control passes to step 612 where the current bucket is marked as expired. Control then passes to step 606 where the variable P-tokens-bucket is set to zero and the variable P-Bucket-Start-Time is set to the current start time.

[0051] After step 610, control passes to step 613 where expired tokens are reclaimed from the expired bucket and the expired bucket records are removed. From step 613, control passes to step 614 where the reclaimed tokens from the expired bucket are adjusted to P tokens (i.e., P tokens = P tokens - Reclaimed tokens). Control then passes to step 616 where it is determined whether the previously allocated tokens plus the currently requested tokens is greater than the maximum limit. If the sum of the previously allocated tokens and the current tokens does not exceed the maximum limit, the tokens are allocated and control passes to step 618 where P tokens is set to the previously allocated tokens plus the currently requested tokens. Control then passes to step 620 where the values ​​of the variables P-Tokens, P-Bucket-Tokens and P-Bucket-Timestamp are stored in the database 402.

[0052] Referring to step 616, if the sum of the previously allocated tokens and the currently requested tokens exceeds the maximum limit of the time interval, control proceeds to step 622 where it is determined whether a best effort allocation is implemented. If a best effort allocation is not implemented, control proceeds to step 624 where the request is rejected. If a best effort allocation is implemented, control proceeds to step 626 where the remaining tokens are allocated to partially satisfy the request. Control then proceeds to step 620 where the values ​​of the variables P-Tokens, P-Bucket-Tokens and P-Bucket-Timestamp are stored in the database 402.

[0053] As mentioned above, implementing rate limit policing in a rate limit policer 400 separate from the SCP worker instance simplifies the logic of the SCP worker instance. Figures 7A and 7B show an SCP worker instance token request algorithm that may be implemented by each SCP worker instance. In general, each SCP worker instance receives a request for a service provided by a producer NF service instance, initializes the number of tokens, and asks the rate limit policer 400 for an initial grant of tokens. For subsequent requests, the SCP worker instance checks if the number of available tokens is greater than a configurable ratio of the granted tokens and forwards the request. For example, an aggressive token request algorithm may set the threshold amount to 50% or more to anticipate an eventual token shortage. In a less aggressive algorithm, the threshold may be set to a lower ratio, such as 25%, to allow SCP worker instances to nearly exhaust their token allocation before requesting more tokens. Subsequent token demands may be fixed in size or in increasing order, for example based on the Fibonacci sequence. The SCP worker instance does not need to manage the rate limit time window traversal: the rate limit policer provides the time remaining in the current window.

[0054] With reference to the flowchart shown in Fig. 7A, an SCP worker instance receives a request from a consumer NF for a service provided by a producer NF service instance. In step 700, the SCP worker instance performs a lookup in a local database for service instance x to determine the currently available number of tokens, the currently granted number of tokens, and the last token request status for the given service instance. Note that the SCP worker instance does not need to know the value of the rate capacity of the producer NF or the available capacity in use by other consumer NFs. The database maintained by each SCP worker instance may include the number of tokens granted to the SCP worker instance by the rate limiting policer for each producer NF service instance, and the number of unused tokens.

[0055] If no record is found in step 702, it means that the SCP worker instance has not requested a token for the given producer NF service instance in the current time interval. Control then passes to step 704, where the SCP worker instance initializes available tokens for service instance x to 0, granted tokens for service instance x to 0, window time remaining to 0, and token request status to not pending.

[0056] If a record is found, it means that the SCP worker instance has already requested a token for the producer NF service instance in the current time interval. If a record is found, control proceeds to step 706, where the SCP worker instance reads the information located in the search. The information read includes available tokens for the service instance, granted tokens for the producer NF service instance, window time remaining, and token request status. In step 708, the SCP worker determines whether the available tokens minus one is greater than the aforementioned configurable ratio of granted tokens. In other words, the SCP worker requests a new token if more than half of the existing tokens have been used in the current time interval. This is an aggressive algorithm, but it may prevent the SCP worker from starving.

[0057] If the available tokens minus one is greater than the configurable ratio of allowed tokens, then no new tokens are needed, and control proceeds to step 710, where the request is forwarded to service instance x and the available tokens variable is decremented to indicate the use of one token to satisfy the request.

[0058] If the available tokens minus one is not greater than the configurable ratio of allowed tokens, control proceeds to step 712 where the SCP worker determines whether there is a pending token request for the current time interval. If there is a pending token request, control proceeds to step 714 where it is determined whether there is time remaining in the current window. If there is no time remaining in the current window, the SCP worker drops the token request in step 716. If there is time remaining in the current window, control proceeds to step 718 where the SCP worker determines whether there is an available token. If there is an available token, control proceeds to step 710 where the SCP worker forwards the service request and decrements the number of available tokens. If there is no available token, control proceeds to step 720 where it is determined what the status of the pending token request is. If there is a token status request, control proceeds to step 722 where the request is queued and the SCP worker waits for a response from the rate limiting policer. If there is no pending token request, control proceeds to step 716 where the current request is dropped.

[0059] In step 712, if there are no pending token requests and the number of available tokens is less than half the number of allowed tokens, control proceeds to step 724. The SCP worker then requests tokens from the rate limiting policer and marks the pending token status request variable as pending.

[0060] Figure 7B shows the token request algorithm. In Figure 7B, if in step 723 the number of available tokens is zero, control proceeds to step 728 where the SCP worker requests a grant of y tokens from the rate limiting policer, where y is a configurable value. In step 730, the SCP worker receives the grant with the time left in the current window. In step 732, the SCP worker sets the available tokens to the currently available tokens plus the grant. The granted tokens variable is set to the number of tokens in the grant. The window time remaining variable is set to the time remaining in the current window, and the token request status is set to no pending requests.

[0061] If in step 726 the number of available tokens is zero, control proceeds to step 734, where the SCP worker instance requests an initial grant w tokens from the rate limiting policer, where w is a configurable value. Setting w to a large value can expedite delivery of the initial burst of messages. In step 736, the SCP worker instance waits for a grant from the rate limiting policer. If a grant occurs in step 730, control proceeds to step 732, where the SCP worker instance updates its variables to reflect the token grant.

[0062] 8 is a flow chart illustrating an example process for network function service instance-wide egress rate limiting in a service communication proxy. With reference to FIG. 8, in step 800, a service request is received from a consumer NF. For example, the service communication proxy 200 may receive a service request from a consumer NF 204 to access a service provided by a producer NF. The service request may be initiated in response to a UE attaching to a network or a UE initiating a communication session.

[0063] In step 802, the service request is forwarded to the SCP worker instance. For example, the 5G service consumer NF 204 may send a service request to a single IP address of the SCP 200. The SCP 200 may forward the request to the SCP worker instances 210 and 212. In one example, the SCP 200 may load balance the incoming service requests between the SCP worker instances 210 and 212.

[0064] In step 804, the SCP worker instance requests producer NF service instance capacity to process the service request from the rate limiting policer. For example, the SCP worker instances 210 and 212 may request a token or other indication of producer NF service instance capacity from the rate limiting policer 400 to process the service request. The request from the SCP worker instance may identify a producer NF that provides the service identified in the service request. The SCP worker instance may know the services offered by the producer NF service instances based on the service registration from the producer NF.

[0065] In step 806, the rate limiting policer performs producer NF service instance-wide egress rate limiting so that the combined egress traffic from the SCP worker instances does not exceed the capacity of the producer NF service instance. For example, the rate limiting policer 400 may grant or deny tokens in response to token requests from the SCP worker instances 210 and 212 depending on whether granting the request would cause the capacity of the producer NF service selected by the SCP worker instance to be exceeded. If best effort token allocation is implemented, the rate limiting policer 400 may partially satisfy a token allocation request with the number of tokens available in a time interval even when the number of token requests exceeds the number of available tokens. If best effort token allocation is not implemented, a token allocation request would be rejected when the number of token requests exceeds the number of available tokens. As described above, the rate limiting policer 400 may maintain an in-memory database that it uses to track the capacity of a producer NF service instance and the portion of that capacity that has already been allocated to a consumer NF service instance. The rate limiting policer 400 may access a database to determine whether to grant or deny each token allocation request.

[0066] In this way, with a rate limiting policer that has a global view of the tokens assigned to each producer NF service instance, the SCP worker instance token request algorithm is simplified. The SCP worker instance does not drop a service request if the token demand is pending with the rate limiting policer. The pending request is queued until a response from the rate limiting policer comes. This is true for the initial request as well as when the worker gets zero grants from the rate limiting policer, i.e., there is still time left in the window, but the rate exceeded in the current rate limiting window requests messages received until the time window expires or falls. Subsequent token demands during a time interval may be set to a fixed size or to an increasing value based on, for example, a Fibonacci sequence. Thus, with the subject matter described herein, the SCP functionality is simplified and rate limiting is implemented per NF service instance. The SCP 200 can be implemented as a proxy or API gateway for the 5G producer NFs to perform egress-side rate limiting for all producer NFs accessible via the SCP 200. The SCP 200 and / or the rate limiting policer 400 may be implemented as an on-premise hardware platform deployed at a user's site or as a service made available via a cloud network.

[0067] It will be understood that various details of the subject matter described herein may be changed without departing from the scope of the subject matter described herein. Moreover, the foregoing description is by way of example only and not by way of limitation, since the subject matter described herein is defined by the claims set forth below.

Claims

1. Network Function (NF) Service Instance Wide Egress 1. A method for slate limitation, comprising: A service communication proxy (SCP) including at least one processor, receiving a service request from a consumer NF; forwarding the service request to a plurality of SCP worker instances; requesting, at each of the plurality of SCP worker instances, producer NF service instance capacity for processing the service request from a rate limiting policer separate from the plurality of SCP worker instances; In the rate limiting policer, and performing producer NF service instance-wide egress rate limiting between the multiple SCP worker instances and a producer NF service instance by allowing or denying a request for producer NF service instance capacity from each of the multiple SCP worker instances such that the combined egress traffic from the multiple SCP worker instances does not exceed a rate capacity of the producer NF service instance, wherein the combined egress traffic is a sum of egress traffic from the multiple SCP worker instances.

2. Requesting producer NF service instance capacity from the rate limiting policer includes requesting a token allocation from the rate limiting policer; The method of claim 1 , wherein the token is usable by the multiple SCP worker instances to determine whether to allow or deny the service request.

3. 3. The method of claim 2, wherein implementing producer NF service instance wide egress rate limiting comprises accessing a database to determine an amount of tokens available for each of the producer NF service instances.

4. 4. The method of claim 2 or 3, wherein requesting a token allocation comprises requesting the token allocation in response to a ratio of available tokens to granted tokens for one of the plurality of SCP worker instances being less than a threshold amount.

5. In the rate limiting policer, maintaining a maximum limit of tokens that can be allocated in a time interval for each of the producer NF service instances; and granting or denying the token allocation request based on whether the number of tokens requested by the token allocation request exceeds the maximum token limit.

6. The method of claim 5 , wherein enforcing producer NF service instance wide egress rate limiting comprises allocating tokens in a fixed window with a fixed expiration time.

7. 6. The method of claim 5, wherein enforcing producer NF service instance wide egress rate limiting comprises allocating tokens to a sliding window whose expiry time moves in response to bucket expiry.

8. Enforcing producer NF service instance wide rate limits includes implementing a best effort token allocation; 8. The method of claim 2, wherein if the number of tokens requested by one of the plurality of SCP worker instances in a time interval exceeds the maximum allocated tokens for the time interval, then remaining tokens available for the time interval that do not exceed the maximum token limit are granted.

9. The method of any one of claims 2 to 8, wherein enforcing producer NF service instance wide egress rate limiting comprises implementing a maximum limit token allocation by rejecting a token allocation request if the number of token requests exceeds said maximum token limit.

10. The method according to any one of claims 1 to 9, wherein said SCP implements at least one Service Communication Proxy (SCP) function.

11. A program for causing a processor to execute the method according to any one of claims 1 to 10.

12. A memory storing the program according to claim 11; The system comprises the processor.

Citation Information

Patent Citations

  • Band control unit, band control method, and band control program

    JP2005244417A

  • Method, apparatus and computer program for controlling distribution of network traffic

    JP2009543485A

  • Session reception control system and method

    JP2013030855A

  • Routing-aware network limiter

    US10237875B1

  • Quota management for network services

    US20100229218A1

Cited By

  • Methods, systems, and computer readable media for using optimized token bucket algorithm for ingress message rate limiting across distributed producer network function (NF) applications

    US12526235B2