Overload protection for edge clusters using a two-layer reinforcement learning model
By using a two-layer reinforcement learning model to optimize routing and redirection strategies in edge computing, fault problems caused by edge node overload are solved, more stable load management and high availability are achieved, and user experience and operational efficiency are improved.
Patent Information
- Application Number
- CN202080105704.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-10-09
AI Technical Summary
Edge nodes are overloaded by a large number of client requests in a short period of time, causing failures and affecting service availability and user experience. Moreover, existing passive overload protection mechanisms cannot effectively prevent node failures in the face of sudden traffic fluctuations.
A two-layer reinforcement learning model is adopted, one at the edge node level and one at the cluster level, to optimize the routing strategy and redirection proxy strategy to decide whether to process or forward client requests, avoid overload, and select appropriate neighboring nodes to handle requests.
Through active overload protection, load fluctuations are reduced, CPU load deviation is prevented from exceeding the threshold, stable operating performance is achieved, service availability and user experience are improved, and operating costs are reduced.
Smart Images

Figure CN116250223B
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to edge computing, and more particularly to overload protection of network nodes in an edge node cluster. Background Art
[0002] To improve the customer experience of using mission-critical services and applications, cloud providers are moving to distributed deployments, known as edge computing or edge deployments, where the computing and data storage resources of services / applications are moved close to the edge of the operator network. Edge nodes that provide services / applications can be deployed in clusters, known as edge clusters or edge node clusters at different locations. Edge nodes within a cluster can be implemented as containers or virtual machines in a virtualized environment. Edge node clusters provide high availability for mission-critical services and applications. If an edge node fails, the client device served by the failed edge node can be served by one of the remaining edge nodes in the same cluster without interruption of service. In addition, services / applications can be scaled (e.g., deployed or removed) on demand at each location based on the traffic requirements of the application.
[0003] To provide geographic redundancy, a cluster can be replicated in different geographic locations to provide service continuity in the event of a power outage that affects an entire location. For example, in the event of an earthquake, hurricane, or other disaster, client devices served by a cluster of edge nodes in the location affected by the disaster can be served by edge nodes in another cluster in a different geographic location without interruption of service.
[0004] One problem encountered in edge cluster deployments is overloading edge nodes with a large number of client requests in a short period of time. There are two common scenarios where overload can occur. One overload scenario is related to live events, such as sporting events or concerts, where a large number of people gather in the same place. During such events, edge nodes may receive a large number of client requests for services or applications at the same time. The second scenario is when edge nodes receive a large number of requests for different applications at the same time. In both cases, the large influx of client requests at almost the same time can cause edge nodes to fail.
[0005] The failure of an edge node reduces the resources available in the cluster for a service or application provided by the cluster. The loss of capacity for a service or application is a problem for both the platform operator and the end-users using that service or application. From the operator's perspective, the failure of an edge node makes it more difficult to meet quality of service requirements. From the end-user's perspective, the failure of an edge node may mean that the service is no longer available to all end users, long wait times, and a poor user experience. In the case where an edge node or cluster provides multiple services / applications, the failure of one edge node due to a client request for one service / application can affect other services / applications provided by the edge node or cluster. Summary of the invention
[0006] The present invention relates to a method and apparatus for overload protection of network nodes in an edge node cluster. The overload protection technique described herein uses two layers of reinforcement learning models to provide active overload protection; one at the edge node level and one at the cluster level. The node-level reinforcement learning model optimizes the routing policy of the service / application to determine whether the edge node receiving the client request should handle the traffic of the service / application. The cluster-level reinforcement learning model optimizes the application's policy, which determines which adjacent edge node should be considered to handle the client request of a given application in the event that the edge node receiving the client request redirects or proxies. The edge node that receives the new client request applies the node-level routing policy to determine whether to handle the client request itself, or redirect or proxy the client request. If the edge node determines to redirect or proxy the client request, the edge node applies a cluster-level redirection or proxy policy to select another edge node in the cluster to handle the client request.
[0007] A first aspect of the present disclosure includes a method implemented by a network node in an overload protected edge node cluster using a two-layer reinforcement learning model for overload protection. In one embodiment, the method includes receiving a client request for an application or service provided by the network node from a client device. The method also includes determining to redirect or proxy the request based on a node-level routing policy of the network node. The method also includes selecting a target network node in the edge cluster to process the client request based on a cluster-level redirection policy or a cluster-level proxy policy applicable to the network nodes in the cluster.
[0008] A second aspect of the present disclosure includes a network node in an edge node cluster, the network node being configured to use a two-layer reinforcement learning model for overload protection. In one embodiment, the network node is configured to receive a client request for an application or service provided by the network node from a client device. The network node is also configured to determine a redirection or proxy request based on a node-level routing policy of the network node. The network node is also configured to select a target network node in the edge cluster to process the client request based on a cluster-level redirection policy or a cluster-level proxy policy applicable to the network nodes in the cluster.
[0009] A third aspect of the present disclosure includes a network node in an edge node cluster, the network node being configured to use a two-layer reinforcement learning model for overload protection. The network node includes a communication circuit and a processing circuit that communicates with a client device through a communication network. In one embodiment, the processing circuit is configured to receive a client request for an application or service provided by the network node from the client device. The processing circuit is also configured to determine a redirection or proxy request based on a node-level routing policy of the network node. The processing circuit is also configured to select a target network node in the edge cluster to process the client request based on a cluster-level redirection policy or a cluster-level proxy policy applicable to the network nodes in the cluster.
[0010] A fourth aspect of the disclosure comprises a computer program comprising executable instructions which, when executed by a processing circuit in a network node in an edge node cluster, cause the network node to perform the method according to the first aspect.
[0011] A fifth aspect of the present disclosure comprises a carrier embodying the computer program according to the fourth aspect, wherein the carrier is one of an electronic signal, an optical signal, a radio signal or a computer-readable storage medium.
[0012] A sixth aspect of the present disclosure includes a non-transitory computer-readable storage medium including executable instructions that, when executed by a processing circuit in a network node in an edge node cluster, cause the network node to perform a method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 Exemplary deployments of edge node clusters at different locations are shown.
[0014] Figure 2A An overload of a network node in an edge node cluster is schematically illustrated.
[0015] Figure 2B An example of CPU loading in a network node implementing a reactive overload protection scheme is shown.
[0016] Figure 3 An example of CPU loading in a network node implementing an active overload protection scheme is shown.
[0017] Figure 4 is a flow chart illustrating an overload protection method using a two-layer reinforcement learning model.
[0018] Figure 5 An exemplary node-level architecture of INOP is shown.
[0019] Figure 6 An exemplary cluster-level architecture of ICOP is shown.
[0020] Figure 7 An exemplary deployment of a DCA and a PMA in an edge node is shown.
[0021] Figure 8 An exemplary deployment of INOP and ICOP within an edge node cluster is shown.
[0022] Fig. 9 shows a high availability deployment of ICOP in a cluster.
[0023] Fig.10 An exemplary signaling flow of INOP is shown.
[0024] Fig.11 An exemplary signaling flow of ICOP is shown.
[0025] Fig.12 A method for implementing overload protection of network nodes using a two-layer reinforcement learning model is shown.
[0026] Fig.13 Network nodes configured for overload protection using a two-layer reinforcement learning model are shown.
[0027] Fig.14 Another network node configured for overload protection using a two-layer reinforcement learning model is shown. DETAILED DESCRIPTION
[0028] Now referring to the accompanying drawings, Figure 1 An exemplary edge deployment of services or applications in a wide area communication network (WAN) 10 is shown. Two edge node clusters 15 are shown and are denoted as cluster X and cluster Y. Cluster X includes EN X1 -EN XM The edge nodes 20. Cluster Y includes EN Y1 -EN YN The edge nodes 20 of the cluster 15 are shown in FIG. 1 . Cluster X and cluster Y are deployed at different geographical locations represented as location A and location B. The edge nodes 20 within the cluster 15 can be implemented as containers or virtual machines in a virtualized environment. Those skilled in the art will appreciate that the edge nodes 20 can also be implemented by independent computers and servers. In the following description, it is assumed that the edge nodes 20 are implemented by a cloud platform provided by a cloud platform provider. Each edge node cluster 15 is connected to a virtual central management office (VCMO) 30 for the cloud platform via a WAN 10. VCMO 30 orchestrates resource management between different clusters 15 located at different locations. VCMO 30 is operated by an administrator associated with the cloud platform provider. VCMO 30 can deploy or remove applications on demand in the edge node cluster 15 depending on the traffic requirements of the application.
[0029] Application service providers can sign a service level agreement (SLA) with cloud platform providers to deploy their applications 25 in edge node clusters 15. Figure 1 In the illustrated embodiment, a first application 25, denoted as App1, is deployed to EN X2 ,EN XM ,EN Y2 and EN YN A second application 25, denoted App2, is deployed to EN X1 ,EN X2 ,EN Y1 and EN YN The edge node cluster 15 provides high availability for the application 25. If an edge node 20 for App1 or App2 fails, the client device 50 served by the failed edge node can be served by one of the remaining edge nodes in the same cluster 15 without interruption of service. X1 Failure occurs, then EN X2 App2 can continue to be used to serve the client device 50. Alternatively, the VCMO 30 can be located at another edge node 20 (e.g., EN X3 ) deploys App2, the edge node 20 can serve the previously X1 The client device 50 of the service.
[0030] like Figure 1 As shown in , deploying the same application 25 in different locations also provides geographic redundancy. In the event of a catastrophic event (such as an earthquake or hurricane) affecting a particular location, client devices 50 served by a cluster 15 of edge nodes 20 at the affected location can be served by an edge node 20 in a cluster 15 of edge nodes at another geographic location without interruption of service. Figure 1 In the example shown, client devices 50 served by cluster X at location A may move to cluster Y at location B in the event of a power outage.
[0031] The client device 50 accesses the services or applications provided by the edge node cluster via the access network 35, which is operated by different Internet service providers (ISPs), such as BELL, ROGERS, VIDEOTRON, etc. These access networks are called "last mile access" networks. The access network can be a radio access network (RAN), a wired network, a fiber optic network, or any other type of communication network. The ISP operating the access network can sign a service level agreement (SLA) with the cloud platform provider to provide a guaranteed quality of service (QoS), such as latency and throughput, to the client device 50 of a specific application 25. In some cases, access to the edge node cluster 15 can be provided free of charge, but only when network performance (such as latency or throughput) is optimal.
[0032] One problem encountered in edge cluster deployment is that edge nodes 20 may be overloaded due to a large number of client requests in a short period of time, such as Figure 2A There are two common scenarios where overload may occur. One overload scenario is related to live events, such as sporting events or concerts, where a large number of people gather in the same place. During such an event, the edge node 20 may receive a large number of client requests for services or applications 25 at the same time. The second scenario is that the edge node 20 receives a large number of requests for different applications 25 at the same time. In both cases, the large influx of client requests at almost the same time can cause the edge node to fail.
[0033] The failure of the edge node 20 reduces the available resources in the cluster 15 for the service or application 25 provided by the cluster 15. The loss of capacity of the service or application 25 is a problem for the cloud platform operator and the end users who use the service or application 25. From the perspective of the cloud platform provider, the failure of the edge node 20 makes it more difficult to meet the QoS guarantees provided by the SLA. From the perspective of the end user, the failure of the edge node 20 may mean that the service is no longer available to all end users, with long waiting times and a poor user experience. In the case where the edge node 20 or cluster 15 provides multiple services / applications 25, the failure of one edge node 20 due to a client request for one service / application 25 will affect other services / applications 25 provided by the edge node 20 or cluster 15.
[0034] One approach to the overload protection solution configures the edge node 20 to stop servicing new client requests for all applications 25 when it is in an "overload" mode, such as when the central processing unit (CPU) usage reaches a predetermined level, such as 90%, and to start accepting new client requests when the CPU usage drops to a "normal" mode (e.g., below 70% CPU usage).
[0035] like Figure 2B As shown in , a variation of this approach is to gradually reduce the number of new client requests accepted once a predetermined threshold is reached, rather than rejecting all new client requests. The edge node 20 can apply a so-called "modest rejection method" to new client requests for a service or application 25. In one example of this method, two thresholds represented as an upper limit and a lower limit are used for overload protection. The upper threshold is an upper limit for the CPU load on the edge node 20. The lower threshold is a lower limit for the CPU load on the edge node 20. The thresholds are selected so as to provide stable overload protection performance for the edge node 20. At each checkpoint represented by the shaded circle, the CPU load is measured based on the number of samples in a given past time slot.
[0036] As the incoming client traffic increases, the CPU load also increases. When the upper limit is exceeded, the edge node 20 enters the overload protection state and starts redirecting / proxying the incoming client traffic. At each verification or checkpoint of traffic overload, when the measured CPU load exceeds the upper limit, the percentage of client traffic to be redirected or proxied increases to reduce the corresponding CPU load. When the measured CPU load is below the lower limit, the edge node 20 returns to the normal operating state. In the normal operating state, the edge node 20 does not need to redirect or proxy client requests, but can process each incoming individual client request according to normal operator policies.
[0037] The above-mentioned overload protection mechanism can be regarded as a "passive overload protection" method or a "reactive overload protection" method, which is triggered when an upper limit is exceeded. If the measured CPU load significantly exceeds the upper limit in a short period of time, the CPU load will fluctuate greatly, and the deviation will be both higher than the upper limit and lower than the lower limit. In some cases, before the overload protection mechanism has time to work, the sudden influx of a large number of client requests will still overload the edge node 20 and cause power outages or node failures. In addition, the mentioned mechanism is applied at the node level, not the application or service level.
[0038] According to one aspect of the present disclosure, active overload protection is provided to provide more stable operation in terms of CPU load. The active overload protection method described herein is based on a two-layer reinforcement learning (RL) model: one at the edge node level and one at the cluster level. Key performance indicators (KPIs) are collected for each edge node 20 in the cluster 15. KPIs may include parameters such as CPU load, read input / output (I / O), write I / O, storage usage, number of client requests, etc. The node-level RL model uses the KPIs of a specific edge node to optimize the routing policy of the service / application 25 to determine whether the edge node 20 receiving the client request should handle the traffic of the service / application 25. The cluster-level RL model uses the KPIs of multiple edge nodes 20 in the cluster to optimize the policy of the application 25, which determines which neighboring edge node 20 should be considered to handle the client request of a given application 25 in the case where the edge node receiving the client request redirects or proxies. The edge node 20 that receives the new client request applies the routing policy optimized by the node-level RL model to determine whether to handle the client request itself, or redirect or proxy the client request. If edge node 20 determines to redirect or proxy the client request, edge node 20 applies the redirection or proxy strategy optimized by the cluster-level RL model to select another edge node 20 in cluster 15 to process the client request.
[0039] In addition to applying the two-layer RL model, the overload protection method is also designed to optimize the policies of the applications 25 separately. That is, the node-level RL model optimizes the routing policy applied by the edge node 20 for each application 25 served by the edge node 20. Similarly, the redirection policy and / or proxy policy applied by the edge nodes 20 in the cluster 15 are optimized separately for each application 25 by the cluster-level RL model.
[0040] Figure 3 The expected performance of the overload protection mechanism is shown. One purpose of the two-layer RL approach for overload protection is to reduce load fluctuations and avoid CPU load excursions beyond an upper limit and below a lower limit. This stable CPU load achieves optimal performance for each edge node 20 in terms of capacity. In order to provide more fine-grained control at the application level, as an example, the number of client requests for each application 25 is considered in the RL modeling. Of course, other relationships between node-level KPIs and corresponding applications 25 deployed in the edge cloud platform can also be considered.
[0041] Figure 4 The process 100 of implementing two layers of overload protection applied by edge node 20 of two RL models is shown. Figure 4As shown in , the decision of whether the edge node 20 processes the client request of the application 25 is controlled by the routing policy output by the node-level RL model. When the edge node 20 receives a client request for a specific application (105), the edge node 20 checks the node-level routing policy of the application 25 (110) and determines whether to process the client request by itself or allow another edge node 20 in the cluster 15 to process the client request (115). As previously described, the node-level routing policy is optimized by the node-level RL model based on the KPI associated with the edge node 20 receiving the request. If the edge node 20 determines that it can process the request, the edge node 20 determines whether to queue the client request or forward it to the application 25 immediately (120). In the former case, the edge node 20 queues the request and sends a response (e.g., 202 Accepted) to the client device 50 (125). In the latter case, the edge node 20 forwards the client request to the application (130). Upon receiving the client request, the application 25 processes the client request (135) and sends a response (e.g., 200 Success) to the client device 50 (140).
[0042] If the edge node 20 determines that it cannot handle the new client request (115), the edge node 20 determines whether to proxy or redirect or proxy the request to another edge node in the cluster (145, 150). The determination of whether to proxy the client request (145) or redirect the client request (150) is based on the routing policy set by the node-level RL model. If the edge node 20 decides not to proxy or redirect the client request, it sends a response (e.g., a 5xx server error) to the client device 50 (155), and the process ends.
[0043] If the edge node 20 determines to proxy the client request, the edge node 20 checks the cluster-level proxy policy for the requested application 25 (160). The proxy policy is created by the cluster-level RL model based on the KPI data set collected for the edge node cluster 15. The KPI data set for the cluster 15 may include the KPIs of all edge nodes 20 in the cluster 15, or the KPIs of a representative sample of edge nodes 20 in the edge node cluster 15. Based on the cluster-level proxy policy, the edge node 20 selects a neighboring edge node 20 within the cluster 15 as a target and proxies the request to the selected edge node 25 (165). Thereafter, when the edge node 25, now acting as a proxy, receives a response, it proxies the response to the client device 50 (170), and the process ends.
[0044] If the edge node 20 determines to redirect the client request, the edge node 20 checks the cluster-level redirection policy for the requested application 25 (175). The redirection policy is created by the cluster-level RL model based on the KPI dataset collected for the edge node cluster 15. The KPI dataset for the cluster 15 may include KPIs for all edge nodes 20 in the cluster 15, or KPIs for a representative sample of edge nodes 20 in the edge node cluster 15. Based on the cluster-level proxy policy, the edge node 20 selects a neighboring edge node 20 within the cluster 15 as a target for redirection, and sends a redirection response to the client device 50 (180).
[0045] The end-to-end control flow of the overload protection method can be divided into the following four main stages or steps:
[0046] Phase 1: Collect KPI datasets for each edge node 20 and cluster 15;
[0047] Phase 2: Processing KPI datasets for RL model training;
[0048] Phase 3: Execute the RL model to obtain the best policy for the best reward (including exploitation and exploration for best performance); and
[0049] Phase 4: The edge node 20 applies the routing / proxy / redirection policy.
[0050] The node-level RL model and the cluster-level RL model are respectively implemented by an intelligent node overload protector (INOP) 60 and an intelligent cluster overload protector (ICOP) 70. The INOP 60 and the ICOP 70 will be described in more detail below.
[0051] Figure 5 An exemplary node-level architecture of INOP 60 is shown. INOP 60 includes five major components as follows:
[0052] 1. KPI Collector Module: This module is responsible for collecting KPI matrices at the node level, such as CPU usage, I / O operations (read / write), storage usage, number of client requests to the application, etc. Data collection can be achieved through a push / pull mechanism. Through the push mechanism, an external data agent can push the KPI dataset to the KPI collector module. Using the pull mechanism, the KPI collector module obtains the dataset from the edge node 20. The dataset can be transmitted through "stream" or "batch file".
[0053] 2. Data sampling module: This module is responsible for cleaning the KPI dataset and converting the collected dataset into the format required by the RL training model. It should issue an alarm when the dataset is missing or contaminated.
[0054] 3. Node Agent RL Module: This module is responsible for training the RL model to obtain the best policy based on the input of the KPI dataset from the data sampling module, reward and transition matrix model (if required).
[0055] 4. Policy Output Module: This module is responsible for creating node-level routing policies based on the results of the node agent RL module. It outputs the routing policies applied by the application 25 running in the edge node 20. Notifications of any policy changes are sent to the submodule / notification module.
[0056] 5. Submodule / Notification Module: This module is responsible for establishing the communication between the edge node 20 and the INOP 60 subsystem. Each application 25 in the edge node 20 should be able to subscribe to the policies created for the application 25. Once the application 25 has subscribed to receive notifications, the application 25 will receive a notification whenever the RL model changes the subscribed policy.
[0057] Figure 6 An exemplary cluster-level architecture of ICOP 70 is shown. The ICOP 70 subsystem includes five major components and relies on two components installed in edge nodes 20 within cluster 15.
[0058] 1. Data Collector / Assembler Module: This module is responsible for collecting KPI datasets from all edge nodes 20 within the same cluster 15. It also assembles samples together from different edge nodes 20. Those edge nodes 20 can be located in different locations.
[0059] 2. Data sampling module: This module is responsible for cleaning the KPI dataset and converting the collected KPI dataset into the format required by the cluster RL training model. This module can be configured to issue an alarm when the KPI dataset from a single or multiple edge nodes 20 is missing or contaminated. Location may be considered as an additional factor in the KPI dataset.
[0060] 3. Cluster RL module: This module is responsible for training the RL model to obtain a list of optimal proxy / redirection strategies based on the input of the dataset from the data sampling module, reward and transition matrix model (if needed). In the list of optimal strategies, each strategy is linked to an application 25 on a given edge node 20 (location).
[0061] At a particular time step, a single policy or multiple policies in the list may change. Changes to those affected policies are recorded and stored. The storage of these policies can be co-located with ICOP 70 or deployed in a separate node 20.
[0062] 4. Policy Output Module: This module is responsible for creating proxy / redirection policies based on the results of the cluster RL module. It outputs the policy that is expected to change in the next time step. Notifications of any policy changes are sent to the submodules / notification module.
[0063] 5. Sub-module / Notification module: This module is responsible for establishing communication between the edge node 20 and the ICOP 70 via the data collection agent (DCA) 80 and the policy management agent (PMA) 90 . Figure 7 FIG. 4 shows the deployment of the DCA 80 and the PMA 90 in the edge node 20. The interaction between the ICOP 70, the DCA 80 and the PMA 90 is as follows:
[0064] a. Step 1: The data collector / assembler collects KPI data sets from relevant edge nodes 20 deployed at different locations. These data transactions are completed periodically by DCA 80.
[0065] b. Step 2: The PMA 90 of the edge nodes 20 at different locations subscribes to the submodule / notification module to receive notifications about changes in its proxy policy or redirection policy.
[0066] c. Step 3: The edge nodes 20 at location A, upon receiving notification that the applicable policies have changed, obtain their updated policies from the ICOP 70.
[0067] d. Step 4: The edge nodes 20 at location B, upon receiving notification that the applicable policy has changed, obtain their updated policy from the ICOP 70.
[0068] In some embodiments, each application 25 in edge node 20 can subscribe to its own policy. Then, whenever the cluster RL model makes a change to the corresponding policy of application 25, application 25 will receive a notification.
[0069] Figure 8 An exemplary deployment of INOPs 60 and ICOPs 70 within a cluster 15 of edge nodes 20 is shown. Two edge nodes 20 are shown. Figure 8The edge node 20 on the left in the figure hosts multiple applications 25, which may be in the form of microservices. INOP 60 is installed for node-level RL, and ICOP 70 is installed for cluster-level RL. DCA 80 retrieves the KPI dataset from the edge node 20 and feeds it to INOP 60 for node-level RL training model (step 1) and ICOP 70 for cluster-level RL training model (step 1a). INOP 60 directly provides updated policies to the corresponding applications (step 2). PMA 90 is also installed in the edge node 20 to receive change notifications of the corresponding policies. When a change notification is received, PMA 90 obtains the new policy and feeds the policy to the corresponding application 25 at the edge node 20 (steps 2a and 3a).
[0070] In the edge node 20 on the right, only INOP 60, DCA 80 and PMA 90 are installed. The redirection or proxy policy within the cluster 15 is given by the ICOP 70 deployed in the adjacent edge node 20 (in Figure 8 Communication with ICOP 70 is done by Figure 8 The DCA 80 sends the KPI data set to the ICOP 70 (step 1b). The PMA 90 receives the policies of the applications 25 running on the edge nodes 20 from the ICOP 70 (process step 2b). The PMA 90 feeds those updated policies to the corresponding applications (process step 3b).
[0071] Because ICOP 70 is the central control component for routing traffic within cluster 15, high availability (HA) should be considered. An example of ICOP 70 HA deployment is as follows: Fig. 9 As shown in Fig. 9 As shown in , three edge nodes 20 are selected to form the basis of the ICOP 70 HA service. If one ICOP 70 crashes, one of the remaining edge nodes 20 will be selected to run the ICOP 70 to replace the crashed edge node 20.
[0072] Fig.10 An exemplary signaling flow of INOP 60 is shown. The following is a detailed description of the signaling flow.
[0073] 1. The application 25 running on the edge node 20 registers certain application policies with the submodule / notification module at the node level by sending a "subscribe request".
[0074] 2. The submodule / notification module sends an acknowledgement back to the application 25 with information about the location and identity of the KPI collector, the access token and the data transfer method (such as push / pull etc.).
[0075] 3. The DCA 80 at the edge node 20 locates the KPI collector module and establishes a data transmission session between the edge node 20 and the KPI collector module. Although the edge node 20 is considered as hardware as an example, it can be a virtual environment such as a VM or a container.
[0076] 4. The KPI Collector module sends a confirmation regarding the data transfer session setup.
[0077] 5. The DCA 80 at the edge node 20 transmits the data to the KPI collector through the established data transmission session.
[0078] 6. The KPI collector stores the raw data in the edge node 20 .
[0079] 7. The data sampling module sends a request to obtain the original data set.
[0080] 8. The KPI Collector module returns a response with the requested data set.
[0081] 9. After receiving the dataset, the Data Sampling Module performs cleansing on the KPI dataset and transforms the KPI dataset of INOP 60, which is ready to be transmitted to the Node Agent RL Module.
[0082] 10. The node agent RL module obtains the dataset from the data sampling module.
[0083] 11. The data sampling module provides the data set in response. In some implementations, data transmission can be completed through local storage.
[0084] 12. The node agent RL module is trained based on the collected dataset and predicts the best policy for the application to be taken at the next time step.
[0085] 13. The node agent RL module outputs the best strategy for the application to the strategy output module.
[0086] 14. The strategy output module converts and stores the best strategy for the application at the next time step.
[0087] 15. The policy output module sends confirmation of the updated policy back to the node agent RL module.
[0088] 16. The policy output module notifies the submodule / notification module about the updated policy.
[0089] 17. The submodule / notification module sends a confirmation of receipt of the notification back to the policy output module.
[0090] 18. The submodule / notification module sends a notification about its policy change to the corresponding edge node.
[0091] 19. After receiving the notification, the edge node 20 sends an acknowledgement to the submodule / notification module.
[0092] 20. The edge node 20 sends a request to the policy output module to obtain an updated policy.
[0093] 21. The policy output module sends a response with the updated policy to the edge node 20.
[0094] Fig.11 An exemplary signaling flow of ICOP 70 is shown. For illustration purposes, Fig.11 Node 2 in FIG. 1 is used to illustrate the control flow of ICOP 70. The following is a detailed description of the signaling flow.
[0095] 1. The KPI collector module collects data sets from edge nodes 20 .
[0096] 2. The KPI collector module passes the dataset to the data sampling module.
[0097] 3. After transforming and normalizing the KPI dataset, the data sampling module passes the dataset to the clustering agent RL module.
[0098] 4. The cluster agent RL module obtains the optimal policy for the application deployed in the edge cluster after training the RL model and sends the policy to the policy output module.
[0099] 5. The policy output module sends a notification of the updated application policy to the affected edge node 20. The affected edge node 20 obtains the updated application policy accordingly.
[0100] The overload protection method based on the two-layer RL model described in this article provides benefits to service providers, cloud platform operators and end users. For service providers and cloud platform operators, overload protection based on the two-layer RL model reduces the cost of operating edge nodes 20 or platforms. It also improves the efficiency of utilizing network and computing resources. For end users, overload protection based on the two-layer RL model provides higher reliability, so that end users can obtain services or applications without compromising service quality and availability.
[0101] Fig.12An exemplary method 200 for implementing overload protection using a two-layer reinforcement learning model by a network node (e.g., edge node 20) in an edge node cluster 15 for overload protection is shown. The network node receives a client request for an application or service 25 provided by the network node from a client device (block 210). The network node determines to redirect or proxy the request based on a node-level routing policy (block 220). The method also includes selecting a target network node in the edge cluster to process the client request based on a cluster-level redirection policy or a cluster-level proxy policy applicable to the network nodes in the cluster (block 230).
[0102] In some embodiments of the method 200, the node-level routing policy is determined by a node-level policy control function that implements a reinforcement learning model based on key performance indicators of the network nodes, usage data, and parameters.
[0103] In some embodiments of method 200, the node-level routing policy is one of two or more application-specific policies for a network node.
[0104] Some embodiments of method 200 also include sending a subscription request to a node-level policy control function to receive notifications of changes to an application's node-level routing policy (the request includes an application identifier), and receiving an application's node-level routing policy from the node-level policy control function.
[0105] In some embodiments of method 200, the node-level policy control function is co-located with the network node.
[0106] In some embodiments of method 200 , a cluster-level redirection policy or a cluster-level proxy policy is determined by a cluster-level policy control function applying a reinforcement learning model based on key performance indicators, usage data, and parameters of two or more network nodes in an edge cluster.
[0107] In some embodiments of the method 200 , the cluster-level redirection policy or the cluster-level proxy policy is one of two or more application-specific policies for the edge cluster.
[0108] Some embodiments of method 200 also include sending a subscription request to a cluster-level policy control function to receive notifications of changes to an application's cluster-level redirection policy or cluster-level proxy policy (the request includes an application identifier), and receiving an application's cluster-level overload protection policy from the cluster-level policy control function.
[0109] In some embodiments of method 200, the cluster-level policy control function is co-located with the network nodes.
[0110] In some embodiments of method 200, the cluster-level policy control function is co-located with another network node in the edge cluster.
[0111] Some embodiments of method 200 also include collecting data for an input data set, the data including key performance indicators, usage data, and parameters of network nodes, sending the input data set to a node-level reinforcement learning model to train the node-level reinforcement learning model, and receiving a node-level routing strategy from the node-level reinforcement learning model.
[0112] Some embodiments of method 200 also include collecting data for an input data set, which includes key performance indicators, usage data, and parameters of network nodes, sending the input data set to a cluster-level reinforcement learning model to train the cluster-level reinforcement learning model, and receiving a cluster-level redirection strategy or a cluster-level proxy strategy from the cluster-level reinforcement learning model.
[0113] Some embodiments of method 200 also include proxying the client request by sending the client request to a target network node.
[0114] Some embodiments of method 200 also include redirecting the client request by sending a redirect response to the client device.
[0115] The device can perform any method described herein by implementing any functional device, module, unit or circuit. For example, in one embodiment, the device includes a corresponding circuit or circuit system configured to perform the steps shown in the method diagram. In this regard, the circuit or circuit system may include a circuit dedicated to performing a specific functional process and / or one or more microprocessors combined with a memory. For example, the circuit system may include one or more microprocessors or microcontrollers, as well as other digital hardware, which may include a digital signal processor (DSP), dedicated digital logic, etc. The processing circuit may be configured to execute a program code stored in a memory, and the memory may include one or more types of memory, such as a read-only memory (ROM), a random access memory, a cache memory, a flash memory device, an optical storage device, etc. In several embodiments, the program code stored in the memory may include program instructions for executing one or more telecommunications and / or data communication protocols, and instructions for executing one or more techniques described herein. In an embodiment using a memory, the memory stores program code, and when executed by one or more processors, the program code executes the technology described herein.
[0116] Fig.13An exemplary network node 300 in an edge node cluster 15 is shown, which is configured to use a two-layer RL model for overload protection. The network node 300 includes a receiving unit 310, a redirection / proxy unit 320, and a selection unit 330. The various units 310-330 can be implemented by one or more microprocessors, digital signal processors, CPUs, hardware circuits, software, or a combination thereof. The receiving unit 310 is configured to receive a client request for an application or service provided by the network node from a client device. The redirection / proxy unit 320 is configured to determine to redirect or proxy the request based on a node-level routing policy of the network node. The selection unit 330 is also configured to select a target network node in the edge cluster to process the client request based on a cluster-level redirection policy or a cluster-level proxy policy applicable to the network nodes in the cluster.
[0117] Fig.14 The main functional components of another network node 400 in the edge node cluster 15 are shown, which is configured to use a two-layer RL model for overload protection. The network node 400 includes a communication circuit 420, a processing circuit 430, and a memory 440 for communicating with the client device 50 through the communication network.
[0118] The communication circuitry 420 includes network interface circuitry for communicating with the client device 50 and other network nodes over a communication network such as an Internet Protocol (IP) network.
[0119] The processing circuit 430 controls the overall operation of the network device 400 and is configured to implement the methods shown and described herein. The processing circuit 430 may include one or more microprocessors, hardware, firmware, or a combination thereof, which are configured to perform the methods and processes described herein, including Figure 4 The method 100 and Fig.12 The method 200 shown. In one embodiment, the processing circuit 430 is configured to receive a client request for an application or service provided by a network node from a client device. The processing circuit 430 is also configured to determine to redirect or proxy the request based on a node-level routing policy of the network node. The processing circuit 430 is also configured to select a target network node in the edge cluster to process the client request based on a cluster-level redirection policy or a cluster-level proxy policy applicable to the network nodes in the cluster.
[0120] Memory 440 includes volatile and non-volatile memory for storing computer program 450 and data required for the operation of processing circuit 430. Memory 440 may include any tangible, non-transitory computer-readable storage medium for storing data, including electronic data storage, magnetic data storage, optical data storage, electromagnetic data storage, or semiconductor data storage. Memory 440 stores computer program 450 including executable instructions that configure processing circuit 430 to implement Fig.12 . In this regard, the computer program 450 may include one or more code modules corresponding to the above-mentioned devices or units. Typically, computer program instructions and configuration information are stored in a non-volatile memory, such as a ROM, an erasable programmable read-only memory (EPROM), or a flash memory. Temporary data generated during operation may be stored in a volatile memory, such as a random access memory (RAM). In some embodiments, the computer program 450 for configuring the processing circuit 430 as described herein may be stored in a removable memory, such as a portable optical disc, a portable digital video disc, or other removable media. The computer program 450 may also be embodied in a carrier, such as an electronic signal, an optical signal, a radio signal, or a computer-readable storage medium.
[0121] Those skilled in the art will also appreciate that the embodiments herein also include corresponding computer programs. The computer program includes instructions that, when executed on at least one processor of a device, cause the device to perform any of the above-mentioned corresponding processes. In this regard, the computer program may include one or more code modules corresponding to the above-mentioned devices or units.
[0122] The embodiment also includes a carrier embodying such a computer program. The carrier may include one of an electric signal, an optical signal, a radio signal or a computer-readable storage medium.
[0123] In this regard, embodiments herein also include a computer program product stored on a non-transitory computer-readable (storage or recording) medium, and the computer program product includes instructions that, when executed by a processor of a device, cause the device to perform as described above.
[0124] The embodiments also include a computer program product, which includes a program code portion for performing the steps of any embodiment herein when the computer program product is executed by a computing device. The computer program product may be stored on a computer readable recording medium.
Claims
1. A method (200) for overload protection implemented by a network node (20, 300, 400) in an edge cluster including two or more network nodes (20, 300, 400), the method (200) comprising: Receiving (210) a client request from a client device for an application or service provided by the network node (20, 300, 400); Determining (220) redirecting or proxying the client request based on a node-level routing policy of the network node (20, 300, 400), the node-level reinforcement learning model optimizing the routing policy of the service or application to determine whether the edge node receiving the client request should process traffic of the service or application; as well as Based on a cluster-level redirection strategy or a cluster-level proxy strategy applicable to the network nodes (20, 300, 400) in the cluster, a target network node (20, 300, 400) is selected (230) in the edge cluster to process the client request, and a cluster-level reinforcement learning model optimizes the application's strategy, which determines which adjacent edge node should be considered to process the client request of a given application when the edge node receiving the client request performs redirection or proxying.
2. The method (200) according to claim 1, wherein the node-level routing strategy is determined by a node-level policy control function, and the node-level policy control function implements the node-level reinforcement learning model based on the key performance indicators, usage data and parameters of the network nodes (20, 300, 400).
3. The method (200) of claim 1 or 2, wherein the node-level routing policy is one of two or more application-specific policies of the network node (20, 300, 400).
4. The method (200) of claim 3, further comprising: sending a subscription request to a node-level policy control function to receive notifications of changes to the node-level routing policy for the application, the request including an application identifier; as well as The node-level routing policy for the application is received from the node-level policy control function.
5. The method (200) of claim 4, wherein the node-level policy control function is co-located with the network node (20, 300, 400).
6. The method (200) according to claim 4, wherein the cluster-level redirection strategy or the cluster-level proxy strategy is determined by a cluster-level policy control function, and the cluster-level policy control function applies the cluster-level reinforcement learning model based on key performance indicators, usage data and parameters of two or more network nodes (20, 300, 400) in the edge cluster.
7. The method (200) according to claim 1 or 2, wherein the cluster-level redirection policy or the cluster-level proxy policy is one of two or more application-specific policies of the edge cluster.
8. The method (200) of claim 3, further comprising: sending a subscription request to a cluster-level policy control function to receive notifications of changes to the cluster-level redirection policy or cluster-level proxy policy for the application, the request including an application identifier; as well as A cluster-level overload protection policy of the application is received from the cluster-level policy control function.
9. The method (200) of claim 8, wherein the cluster-level policy control function is co-located with the network node (20, 300, 400).
10. The method (200) of claim 8, wherein the cluster-level policy control function is co-located with another network node (20, 300, 400) in the edge cluster.
11. The method (200) of claim 1, further comprising: Collecting data for input data sets, the data including key performance indicators, usage data and parameters of the network nodes (20, 300, 400); Sending the input data set to a node-level reinforcement learning model to train the node-level reinforcement learning model; The node-level routing policy is received from the node-level reinforcement learning model.
12. The method (200) according to claim 1 or 11, further comprising: Collecting data for input data sets, the data including key performance indicators, usage data and parameters of the network nodes (20, 300, 400); Sending the input data set to a cluster-level reinforcement learning model to train the cluster-level reinforcement learning model; The cluster-level redirection strategy or the cluster-level proxy strategy is received from the cluster-level reinforcement learning model.
13. The method (200) of claim 12, further comprising proxying the client request by sending the client request to the target network node (20, 300, 400).
14. The method (200) of claim 12, further comprising redirecting the client request by sending a redirect response to the client device.
15. A network node (20, 300, 400), configured to A method (200) according to any one of claims 1 to 14 is performed.
16. A computer program product (450) comprising executable instructions which, when executed by processing circuitry in a network node (20, 300, 400) in an edge node cluster, cause the network node (20, 300, 400) to perform any of the methods (200) according to claims 1 to 14.
17. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to cause a computer to execute any one of the methods (200) of claims 1 to 14.
