Method and apparatus for improvements in and relating to load balancing in microservice-based core networks
By calculating and enacting execution graphs within the microservice-based core network architecture, the method addresses inefficiencies in load balancing, optimizing microservice instance usage and enhancing scalability and performance in complex networks.
Patent Information
- Application Number
- PCT/KR2024/004905
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-28
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-17
AI Technical Summary
Current load balancing in microservice-based core networks for 5G and beyond is inefficient due to high inter-function communication overhead and processing delays, which hinder the realization of key performance indicators and scalability, especially in complex execution paths involving multiple microservices.
The method involves gathering load information for microservice instances, calculating and enacting an execution graph to distribute input load across multiple instances, and extending the Network Repository Function (NRF) and Service Communication Proxy (SCP) to implement end-to-end load balancing through the Procedure Load Balancing Service (PLBS), which adapts and routes service requests to optimize microservice instance usage.
This approach enables efficient end-to-end load balancing, reduces processing delays, and allows for compartmentalization of execution paths, enhancing scalability and performance in complex microservice-based architectures, particularly in privacy-sensitive applications and future 6G networks.
Smart Images

Figure KR2024004905_17102024_PF_FP_ABST
Abstract
Description
METHOD AND APPARATUS FOR IMPROVEMENTS IN AND RELATING TO LOAD BALANCING IN MICROSERVICE-BASED CORE NETWORKS
[0001] The present invention relates to Load Balancing, particularly in a Microservice-based Core Network of a telecommunication network. In particular, the invention involves extension of the Network Repository Function (NRF) to microservice-based core networks.
[0002] 5G mobile communication technologies define broad frequency bands such that high transmission rates and new services are possible, and can be implemented not only in "Sub 6GHz" bands such as 3.5GHz, but also in "Above 6GHz" bands referred to as mmWave including 28GHz and 39GHz. In addition, it has been considered to implement 6G mobile communication technologies (referred to as Beyond 5G systems) in terahertz bands (for example, 95GHz to 3THz bands) in order to accomplish transmission rates fifty times faster than 5G mobile communication technologies and ultra-low latencies one-tenth of 5G mobile communication technologies.
[0003] At the beginning of the development of 5G mobile communication technologies, in order to support services and to satisfy performance requirements in connection with enhanced Mobile BroadBand (eMBB), Ultra Reliable Low Latency Communications (URLLC), and massive Machine-Type Communications (mMTC), there has been ongoing standardization regarding beamforming and massive MIMO for mitigating radio-wave path loss and increasing radio-wave transmission distances in mmWave, supporting numerologies (for example, operating multiple subcarrier spacings) for efficiently utilizing mmWave resources and dynamic operation of slot formats, initial access technologies for supporting multi-beam transmission and broadbands, definition and operation of BWP (BandWidth Part), new channel coding methods such as a LDPC (Low Density Parity Check) code for large amount of data transmission and a polar code for highly reliable transmission of control information, L2 pre-processing, and network slicing for providing a dedicated network specialized to a specific service.
[0004] Currently, there are ongoing discussions regarding improvement and performance enhancement of initial 5G mobile communication technologies in view of services to be supported by 5G mobile communication technologies, and there has been physical layer standardization regarding technologies such as V2X (Vehicle-to-everything) for aiding driving determination by autonomous vehicles based on information regarding positions and states of vehicles transmitted by the vehicles and for enhancing user convenience, NR-U (New Radio Unlicensed) aimed at system operations conforming to various regulation-related requirements in unlicensed bands, NR UE Power Saving, Non-Terrestrial Network (NTN) which is UE-satellite direct communication for providing coverage in an area in which communication with terrestrial networks is unavailable, and positioning.
[0005] Moreover, there has been ongoing standardization in air interface architecture / protocol regarding technologies such as Industrial Internet of Things (IIoT) for supporting new services through interworking and convergence with other industries, IAB (Integrated Access and Backhaul) for providing a node for network service area expansion by supporting a wireless backhaul link and an access link in an integrated manner, mobility enhancement including conditional handover and DAPS (Dual Active Protocol Stack) handover, and two-step random access for simplifying random access procedures (2-step RACH for NR). There also has been ongoing standardization in system architecture / service regarding a 5G baseline architecture (for example, service based architecture or service based interface) for combining Network Functions Virtualization (NFV) and Software-Defined Networking (SDN) technologies, and Mobile Edge Computing (MEC) for receiving services based on UE positions.
[0006] As 5G mobile communication systems are commercialized, connected devices that have been exponentially increasing will be connected to communication networks, and it is accordingly expected that enhanced functions and performances of 5G mobile communication systems and integrated operations of connected devices will be necessary. To this end, new research is scheduled in connection with eXtended Reality (XR) for efficiently supporting AR (Augmented Reality), VR (Virtual Reality), MR (Mixed Reality) and the like, 5G performance improvement and complexity reduction by utilizing Artificial Intelligence (AI) and Machine Learning (ML), AI service support, metaverse service support, and drone communication.
[0007] Furthermore, such development of 5G mobile communication systems will serve as a basis for developing not only new waveforms for providing coverage in terahertz bands of 6G mobile communication technologies, multi-antenna transmission technologies such as Full Dimensional MIMO (FD-MIMO), array antennas and large-scale antennas, metamaterial-based lenses and antennas for improving coverage of terahertz band signals, high-dimensional space multiplexing technology using OAM (Orbital Angular Momentum), and RIS (Reconfigurable Intelligent Surface), but also full-duplex technology for increasing frequency efficiency of 6G mobile communication technologies and improving system networks, AI-based communication technology for implementing system optimization by utilizing satellites and AI (Artificial Intelligence) from the design stage and internalizing end-to-end AI support functions, and next-generation distributed computing technology for implementing services at levels of complexity exceeding the limit of UE operation capability by utilizing ultra-high-performance communication and computing resources.
[0008] 5th generation (5G) or new radio (NR) mobile communications is recently gathering increased momentum with all the worldwide technical activities on the various candidate technologies from industry and academia. The candidate enablers for the 5G / NR mobile communications include massive antenna technologies, from legacy cellular frequency bands up to high frequencies, to provide beamforming gain and support increased capacity, new waveform (e.g., a new radio access technology (RAT)) to flexibly accommodate various services / applications with different requirements, new multiple access schemes to support massive connections, and so on.
[0009] In line with development of the communication systems, there is a need for improvements to load balancing.
[0010] The technical subjects pursued in the disclosure may not be limited to the above mentioned technical subjects, and other technical subjects which are not mentioned may be clearly understood, through the following descriptions, by those skilled in the art to which the disclosure pertains.
[0011] Disclosed is a method of operating a telecommunication network to load-balance external requests across multiple execution path instances, the method comprising the steps of: gathering, on a periodic or on-demand basis, information relating to a current input and output load of at least one microservice instance running in the network; when triggered by a trigger, employing the gathered information to calculate an execution graph; and enacting the execution graph in telecommunication network.
[0012] The invention further involves definition of the Procedure Load Balancing Service (PLBS), which is a novel service that may logically pertain to the NRF or to the Service Communication Proxy (SCP). PLBS is responsible for adapting the information content on new instances of a microservice D to be disseminated (by means of NRF StatusSubscribe Notify messages) to other microservice instances producing input requests for D. From the logic perspective, if microservice S generates output requests to be processed by microservice D, S is said to be a predecessor of D. In particular, PLBS aims at distributing the input load that is logically generated by predecessors of microservice D and directed to D among all the instances of D. The distribution of the input load may be implemented by notifying only relevant instances of predecessors of D about a new instance of microservice D. The aforementioned input traffic distribution may be implemented also by generating NRF StatusSubscribe Notify messages notifying specific instances of predecessors of D about a fictitious de-registration event pertaining to a given instance of D. In so doing, the considered instances of predecessors of D will be forced to target their outputs toward a different instance of microservice D. It is further responsible for controlling the routing of service requests performed by the SCP.
[0013] The invention also provides for the expansion of the NRF NFUpdate service - Operation NF Heart-Beat to microservice-based architectures which, on a periodic- and / or on-demand-basis the input / output request rate of each microservice instance is gathered. These functionalities are akin to the load information that may be included by an NF instance transmitting to the NRF an NFUpdate message. Unlike currently standardized prior art solutions, the invention imposes that the input / output load of currently instantiated microservice instances shall be communicated over NFUpdate messages.
[0014] The invention also provides for the extension of the Unified Data Management (UDM) entity to include the following structured databases: Procedure Execution Graph (PEG) database - Execution graph of every User Plane (UP) / Control Plane (CP) procedure; and Microservice Load Profile (MLP) database - Current input / output load and Maximum input / output load of each microservice before experiencing performance degradation.
[0015] The invention further provides for the extension of SCP to microservice-based core networks.
[0016] Driven by the necessity for an agile and flexible network, the 3rd Generation Partnership Project (3GPP) has redesigned the mobile core network for the 5th Generation (5G) of mobile communications systems in Release 15. The current design of the 5G Core (5GC) introduces a Service Based Architecture (SBA) with Cloud-Native thinking, where Network Functions (NFs) are loosely coupled, fine-grained services interconnected through a service bus and communicating through RESTful API interfaces. The resulting SBA of the 5GC is shown in Figure 1. This illustrates certain key components and the interconnection therebetween. Such a structure is well known to a person skilled in the art and is not described in detail here.
[0017] While strict separation of the functions in 5GC enables innovation and brings elasticity to the network, the overhead induced by the inter-function communications of the Control Plane (CP) procedures limits the advantages to a great extent, as the majority of CP procedures involve services from multiple functions in the 5GC. Besides, the inter-communication overhead significantly contributes to the overall processing delay taking place in the CP, which may hinder the realization of the promised 5G Key Performance Indicators (KPIs). In this regard, an increasing effort has been devoted to proposing a new architecture for beyond 5G and 6G networks. Embodiments of the present invention relate to a microservice-based architecture for the core network for future releases of one or more 3GPP networks. Embodiments of the invention provide a core network architecture which comprises a set of fine-grained microservices, cleanly separated in functionality, which interact in order to deliver 3GPP's CP and User Plane (UP) procedures.
[0018] The following definitions are useful in understanding the invention:
[0019] -[Definition 1] A microservice is a self-contained logical entity processing one input request at a time. Each processed input generates one output request intended for another microservice. The output of a microservice is entirely determined by its inputs (stateless assumption). Microservices may communicate with other microservices in a plurality of communication patterns that shall entirely rely upon network interactions.
[0020] -[Definition 2] A microservice instance is a copy of a currently running microservice.
[0021] -[Definition 3] From the logic standpoint, an execution path is a sequence of microservices implementing a procedure. From the point of view of a deployed system, an execution path instance is the sequence of microservice instances implementing a procedure in a live system.
[0022] -[Definition 4] From the logic standpoint, an execution graph is the union of the execution paths associated with all the procedures. From the point of view of a deployed system, an execution graph is the union of all the execution path instances across all the procedures.
[0023] -[Definition 5] An entry- / exit-point of an execution path is the first / last microservice in an execution path.
[0024] -[Definition 6] A live system is a core network that is up and running and serving requests coming from / directed to the Radio Access Network (RAN).
[0025] It is assumed that the functionalities associated with a service pertaining to an NF are mapped onto one or more microservices. This is illustrated in Figure 2 which shows a microservice-based implementation of the execution graph associated with the User Equipment (UE) Registration procedure. In this case, the UE Registration procedure is carried out by 59 microservices. The exact details of the microservices shown in Figure 2 is not important to the understanding of the present invention. This figure is provided to illustrate the complex mapping involved in a single procedure.
[0026] As exemplified in Figure 2, in a microservice-based core network, from a logical standpoint, 3GPP procedures are such that:
[0027] -They may involve a large number of microservices;
[0028] -The execution path may involve multiple "back and forth" interactions among the same microservices - thus, preventing the execution path from being modelled as a Directed Acyclic Graph (DAG).
[0029] That is, in a typical core network deployment, it is reasonable to expect that:
[0030] -Multiple instances of the same microservice are needed to fulfil the demand (to carry out each procedure);
[0031] -Within the context of the same procedure, the number of instances associated with a microservice may differ from another. This is due to the nature of the task a microservice carries out or how it has been implemented.
[0032] In an NF-based core network and within the context of a procedure, the decision of which NF instance another NF instance should direct its output to is informed by the NRF, which enables each NF instance to discover suitable instances of the NF that comes next in the procedure. Similar considerations apply when SCP is used. In the context of a microservice-based architecture, this "step-by-step" approach would be impractical when applied to potentially complex execution paths involving a heterogeneous number of instances per microservice for the following reasons:
[0033] -Within the context of a procedure, it would be computationally expensive to subdivide the load experienced by each instance across each execution path.
[0034] -It would be computationally expensive to determine a priori the sequence of microservice instances that an external request will go through, given its entry point.
[0035] -Within the context of a procedure, it would be impossible to compartmentalize some execution paths from others using disjoined sets of instances of one or more microservices. This would be particularly helpful in privacy-sensitive applications.
[0036] Embodiments of this invention rely upon an extension of the NRF and SCP to microservice-based core network architectures. As such, it should be noted that, similarly to what happens in an NF-based 5GC, the NRF and SCP will need to keep track of / inform relevant subscribers / route requests among microservice instances wishing to register, de-register, and change their profile.
[0037] In the context of the 5GC, the NRF provides the following services:
[0038] -Register NF instance (NFRegister): Used by a new NF instance to register its NF profile and list of services provided;
[0039] -Update NF instance (NFUpdate): Used by an NF instance to update its profile or list of provided services. Most notably, the NFUpdate also enables an NF instance to communicate its heart-beat along with load information (the latter being optional).
[0040] -De-register NF instance (NFDeregister): Used by an NF instance to de-register its NF profile.
[0041] -Subscribe to Status (NFStatusSubscribe): Used by an NF instance to subscribe to the status changes of other NF instances (already registered to the NRF).
[0042] -Unsubscribe to Status (NFStatusUnsubscribe): Used by an NF instance to subscribe to the status changes.
[0043] -Notifications of Status (NFStatusNotify): Key service enabling the NRF to notify changes in the status of NF instances to any subscriber.
[0044] The aforementioned services, originally designed for NF-based core network, need to operate on a per-microservice instance basis.
[0045] Figure 3 illustrates three communication models (B-D) for NF interactions.
[0046] The NRF may or may not be coupled with SCP. In particular, this application will make reference to the following communication models:
[0047] -Model B - Direct communication with NRF interaction:
[0048] o NF discovery is initiated by NF consumers by querying the NRF / being notified by the NRT;
[0049] o On the basis of what is communicated by the NRF, the consumer is uniquely responsible for choosing a producer;
[0050] o Producers and consumers communicate directly.
[0051] -Model C - Indirect communication without delegated discovery:
[0052] o NF discovery is initiated by NF consumers by querying the NRF / being notified by the NRT;
[0053] o Case 1:
[0054] § On the basis of what is communicated by the NRF, the consumer is uniquely responsible for choosing a producer;
[0055] § Producers and consumers communicate via the SCP, which may prevent this communication in case NF instances become overloaded.
[0056] o Case 2:
[0057] § On the basis of what is communicated by the NRF, the consumer is uniquely responsible for choosing a set of producers;
[0058] § The consumer sends a service request to the SCP (targeting a set of producer instances).
[0059] § The SCP route the service request to a target producer instance.
[0060] -Model D - Indirect communication with delegated discovery:
[0061] o The decision of with producer instance will serve each consumer instance is entirely delegated to the SCP;
[0062] o Similarly to Model C, SCP is responsible for routing communications among NF instances;
[0063] o The SCP performs discovery of NF instances using the NRF, which each NF instance is expected to register to / inform about their profile changes.
[0064] The aforementioned communication models, originally designed for an NF-based core network, will operate on a per-microservice instance basis.
[0065] Systems according to the prior art advocate for enacting load balancing among instances of the same NF. Indeed, it is possible to apply the same principle in a microservice-based core network. However, due to the potentially large number of microservices pertaining to a procedure, it would be impractical in the case of Communication Model B or Model C in use to delegate to each microservice instance the selection of an instance of the microservice that comes next in a given execution path, with no coordination. In so doing, no load balancing among instances of the same microservice or end-to-end compartmentalization of execution paths is possible.
[0066] In the case of Communication Model D in use, similar consideration as above apply, but applied to the SCP, which performs load balancing on a step-by-step basis and not on an end-to-end basis.
[0067] It is an aim of embodiments of the present invention, whether mentioned herein or not to address shortcomings in the prior art, whether mentioned herein or not.
[0068] According to the present invention there is provided an apparatus and method as set forth in the appended claims. Other features of the invention will be apparent from the dependent claims, and the description which follows.
[0069] According to a first aspect of the present invention, there is provided a method of operating a telecommunication network to load-balance external requests across multiple execution path instances, the method comprising the steps of: gathering, on a periodic or on-demand basis, information relating to a current input and output load of at least one microservice instance running in the network; when triggered by a trigger, employing the gathered information to calculate an execution graph; and enacting the execution graph in telecommunication network.
[0070] In an embodiment, the triggering occurs:
[0071] periodically;
[0072] in response to a particular event, such as where a third-party entity in the network prompts execution of a load-balancing task; or
[0073] for any given pair of microservices where, from a logical standpoint, a first microservice i generates outputs intended for a second microservice j.
[0074] In an embodiment, there is further provided the step of clustering a plurality of microservices to achieve load-balancing among different execution path instances implementing the same procedure in an end-to-end fashion.
[0075] In an embodiment, there is further provided the step of gathering load status information and updating a Microservice Load Profile, MLP, database.
[0076] In an embodiment, if it is decided that a difference between the calculated execution graph and one that is currently running is below a certain threshold, then the calculated execution graph is not enacted.
[0077] In an embodiment, if it decided to enact the calculated execution graph, all producer-consumer relations between all pairs of microservice instances that are no longer connected by a direct edge in the calculated execution graph are broken.
[0078] In an embodiment, if it decided to enact the calculated execution graph, the calculated execution graph is transmitted to a Service Communication Proxy, SCP.
[0079] According to a second aspect of the present invention, there is provided telecommunication network arranged to perform the method of any preceding aspect.
[0080] Although a few preferred embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes and modifications might be made without departing from the scope of the invention, as defined in the appended claims.
[0081] The present disclosure provides an effective and efficient method for improvements to load balancing. Advantageous effects obtainable from the disclosure may not be limited to the above mentioned effects, and other effects which are not mentioned may be clearly understood, through the following descriptions, by those skilled in the art to which the disclosure pertains.
[0082] For a better understanding of the invention, and to show how embodiments of the same may be carried into effect, reference will now be made, by way of example only, to the accompanying diagrammatic drawings in which:
[0083] Figure 1 shows a High-level model of the 5GC with NFs, CP and UP;
[0084] Figure 2 shows a microservice-based implementation of the execution graph associated with the UE Registration procedure;
[0085] Figure 3 shows a number of communication models known;
[0086] Figure 4 shows a call graph for updating load information in the MLP database, according to an embodiment of the invention;
[0087] Figure 5 shows a general procedure for carrying out end-to-end load balancing according to an embodiment of the invention;
[0088] Figure 6 shows a general flow-chart for carrying out end-to-end load balancing according to an embodiment of the invention;
[0089] Figure 7 shows a partial execution graph for procedure according to an embodiment of the invention;
[0090] Figure 8 shows a partial execution graph for procedure according to an embodiment of the invention;
[0091] Figure 9 shows a partial execution graph for a procedure with two sets of execution path instances associated with two disjoined sets of microservice instances according to an embodiment of the invention;
[0092] Figure 10 shows a call graph for an execution graph enacting procedure according to an embodiment of the invention; and
[0093] Figure 11 shows a call graph for an execution graph enacting procedure according to an embodiment of the invention.
[0094] Embodiments of the invention, thanks to the PLBS, depending on the communication model in use (Model B-Model D), enables the NRF and / or the SCP to establish the sequence of microservice instances each external request (provided as input to an entry point of the execution graph) is expected to go through. That is, it is possible to perform load balancing among different execution paths implementing the same procedure and not just on a step-by-step basis. In addition, embodiments of the invention make it possible to compartmentalize some execution paths from others using disjoined sets of instances of one or more microservices - a feature that find its use in privacy-sensitive use cases.
[0095] In the greater context of 6G core networks, embodiments of the invention enable the core to autonomously spread the input / load of each microservice instance on an end-to-end basis, which is a crucial aspect to deliver slicing across next-generation core networks consisting of potentially large sets of microservice instances communicating among them according to a complex execution graph.
[0096] Along with an extension to the UDM, embodiments of the invention provide the introduction of the PLBS as a new service of the NRF or SCP to load balance external requests across a plurality of execution paths on an end-to-end basis. Embodiments are suitable to operate along communication models B-D. Due to the need for functionalities associated with a service pertaining to an NF to be mapped onto one or more microservices, 5GC procedures are delivered by a network of microservice instances. Embodiments do not concern themselves with how microservice instances are implemented in a live system. In particular, one or more microservices may be grouped into the same container or pod.
[0097] Although the focus of embodiments look beyond the current state-of-the-art and 5G standardization efforts, they have applicability to a known 5GC. At the same time, as standardization efforts move beyond 5G, the current state-of-the-art with respect to 6G clearly shows a focus on self-optimization, of which load balancing is a key component. As such, adopting PLBS would unlock this capability in the core of such systems as well.
[0098] In order to load balance across execution paths in an end-to-end fashion, the PLBS periodically and / or in an event-based fashion interrogates the extended UDM of an embodiment (database MLP) to acquire a snapshot of the currently experienced load of each microservice instance. If a plurality of criteria on load are violated (including but not limited to the maximum input load a microservice instance can support), a re-optimisation of the execution graph may be carried out - reoptimisation is possible by an a priori knowledge of the logic interconnection among microservice recorded in the PEG database.
[0099] The way a newly optimized execution graph is enacted in a live system depends on the embodiment we are considering. This invention makes reference to the following embodiments:
[0100] -First Embodiment
[0101] o Communication Models B or C are in use;
[0102] o PLBS is a service of NRF;
[0103] o A newly optimized execution graph may be enacted in a live system by adapting the content of NRF StatusSubscribe Notify messages and notifying fictitious de-registration events.
[0104] -Second Embodiment
[0105] o Communication Model D is in use.
[0106] o PLBS is a service of SCP;
[0107] o A newly optimized execution graph may be enacted in a live system by having the SCP re-routing service requests to different microservice instances.
[0108] In all the considered embodiments, each microservice instance shall report its input / output load by means of the (extended version of) NFUpdate message.
[0109] Figure 4 shows the call graph followed by each microservice instance to update the MLP (part of UDM) with their input / output load. In particular, this translates into the following procedure:
[0110] Step 1. Periodically or on an even-basis fashion, instance X of microservice A calculates its
[0111] -input load - defined as the number of input requests added to the input queue of the microservice instance over a reference time interval.
[0112] -output load - defined as the number of requests processed by the microservice instance over a reference time interval.
[0113] Step 2. Microservice A instance X generates an NFUpdate message (NF Heart-Beat type) including (but not limited to) the following parameters: microservice instance identifier, input, and output loads. In order to support the transmission of the aforementioned parameters, we require the NFUpdate message to be modified.
[0114] Figure 5 shows sample code for a general procedure for carrying out end-to-end load balancing. The following notation is defined for this purpose.
[0115] - A numerical ID (0, 1, .... etc.) is assigned to each 3GPP procedure. P is equal to the set {0, 1, ..., |P|}, where |P| is equal to the total number of 3GPP procedures.
[0116] - M_t is the set of microservice IDs pertaining to procedure t. M_t = {0, 1, ..., |M_t|}.
[0117] - V_t is a |M_t| x |M_t| matrix where element V_t[i,j] is equal to 1 if microservice i generates outputs directed towards microservice j, 0 otherwise. V_t is calculated on the basis of the information contained in the PEG database.
[0118] - rMax is the maximum number of instances that any microservice can be associated with at any given time.
[0119] - MR is a list of tuples (t, mr_t), where t refers to 3GPP procedure t and mr_t is a |M_t| x |M_t| x rMax x rMax array. The (i,j,k,t)-th element of mr_t is equal to 1 if V_t[i,j]=1 and instance k of microservice i directs its outputs (intended for microservice j) toward instance t of microservice j.
[0120] - PA is a list of tuples, where each tuple is a list of instances IDs pertaining to the same microservice.
[0121] Figure 6 shows a general flow-chart for carrying out end-to-end load balancing.
[0122] The end-to-end load balancing task carried out by PLBS may be triggered by any (but not limited to) of the following criteria:
[0123] - Periodically;
[0124] - Event-basis, where a third-party entity in the core prompts the execution of the load-balancing task that may or may not lead the enacting of the new execution graph in a live system.
[0125] The end-to-end load balancing task carried out by PLBS begins by calculating the execution graph by means of the procedure shown in Figure 5, the flow-chart associated with this procedure is shown in Figure 6. The aforementioned procedure consists of the following key steps:
[0126] - For any given pair of microservice i and j, where from a logical standpoint microservice i generates outputs intended for microservice j (see if statement at line 7),
[0127] o PLBS interrogates the NRF to retrieve the number of instances of microservices i and j currently instantiated in the system (see lines 5 and 9).
[0128] o If the number of instances associated with microservice i is greater than or equal to the number of instances associated with microservice j (see line 10)
[0129] § Instances of microservice i are clustered (see line 11) into a number of clusters equal to the number of instances associated with microservice j. In so doing, all the instances of i pertaining to the first cluster will direct their outputs (intended for microservice j) towards the first instance of microservice j, etc. The clustering may take place according to (but not limited to) any of the following criteria:
[0130] -C0: The number of instances in cluster k is equal to ceil(riNum / rjMum).
[0131] -C1: The overall output load of the instances in cluster k is inversely proportional to the input load of instance k of microservice j. This criterion relies on information contained in database MLP.
[0132] -C2: The output load of the last microservice instance in each execution path meets service level agreement.
[0133] -C3: No instance in any execution path exceeds its maximum input load.
[0134] § Update mr_t (see line 14).
[0135] o If the number of instances associated with microservice j is greater than the number of instances associated with microservice i (see line 15)
[0136] § Instances of microservice j are clustered (see line 16) into a number of clusters equal to the number of instances associated with microservice i. In so doing, all the instances of j pertaining to the first cluster will receive their inputs from the first instance of microservice i, etc. The clustering may take place according to (but not limited to) any of the following criteria:
[0137] -C0: The number of instances in cluster k is equal to ceil(rjNum / riMum).
[0138] -C1: The overall input load of the instances in cluster k is inversely proportional to the output load of instance k of microservice i. This criterion relies on information contained in database MLP.
[0139] -C2, C3: as in the previous case.
[0140] § Update mr_t (see line 19).
[0141] It I observed that MR defines the newly calculated execution graph (potentially) to be enacted into the live system.
[0142] In order to give a sense of how the aforementioned procedure operates, consider the following example.
[0143] -Only two procedures are considered. The first procedure has ID 0 and the second ID 1.
[0144] -Each procedure involves two microservices with ID 0 and 1, in both procedures.
[0145] -In both procedures, microservice 0 generates outputs for microservice 1.
[0146] -The maximum number of instances per microservice is set to 4.
[0147] That is, the notation mentioned above takes on the following values:
[0148] -P = {0, 1}
[0149] -M_0 = {0,1}, M_1 = {0,1}
[0150] -V_0 and V_1 are two all-zero 2 x 2 matrices with the exception of their (0,1)-th elements that are set equal to 1.
[0151] -rMax is set to 4.
[0152] Follow lines 3-20 for t equal to 0, assuming that four instances are running for microservice 0 and two for microservice 1. If the clustering criteria C0 is adopted, line 11 returns the partition set PA {(0,1), (2, 3)}, which in turn translates into the (partial) execution graph as per Figure 7.
[0153] Follow lines 3-20 for t equal to 1, assuming that two instances are running for microservice 0 and four for microservice 1. According to clustering criteria C0, line 16 returns the partition set PA {(0,1), (2, 3)}, which in turn translates in the (partial) execution graph as per Figure 8.
[0154] With regards to applications where it is critical for two or more sets of execution path instances of the same procedure to involve disjoined sets of microservice instances, Figure 9 shows the part of an execution graph referring to a simple procedure involving three microservices; different execution path instances are marked in with different line styles, as shown in the legend for Figure 9.
[0155] In this case, note that execution path instances {A, B} and {C,D} refer to two disjoined sets of microservice instances - {microservice 0 - instance 0, microservice 0 - instance 1, microservice 1 - instance 0, microservice 2 - instance 0} and {microservice 0 - instance 2, microservice 0 - instance 3, microservice 1 - instance 1, microservice 2 - instance 1}, respectively.
[0156] Consider again the procedure shown in Figure 5. In order to ensure that two or more sets of execution path instances of procedure t involve disjoined sets of microservice instances, it is necessary to add an if-then statement after line 19, checking if execution path instances involve disjoined sets of microservice instances, as required. If the aforementioned statement fails, then mr_t needs to be re-calculated.
[0157] Note that criteria C0 and C1 make it possible to achieve load balancing in a step-by-step fashion. In particular, C0 is the simplest of the criteria, which assumes that the pre-existing input load of microservice instances is zero and the output loads are the same. On the other hand, C1 leads to a canonical load-balancing result, which is not end-to-end execution path aware.
[0158] Criteria C2 and C3 allow controlling the input / output load of each microservice instance along each execution path. In particular, during each iteration of for-loops at lines 4 and 6 in Figure 5:
[0159] -C2 makes it possible to subdivide the input loads such that the overall time for an external request to go through the whole length of an execution path instance (i.e., procedure completion time) does not exceed a given threshold. There might be situations where the number of microservice instances of one or more microservices is not enough to achieve the aforementioned goal. In that case, the execution graph re-calculation fails.
[0160] -C3 is similar to C2, but it pursues the more conservative goal of ensuring the combined input load to a microservice (that might involve instances of different microservices with heterogeneous output loads) does not exceed its maximum input load recorded in the MLP database.
[0161] The following relates to enacting an execution graph in a live system. The first embodiment applies to communication models B and C Case 1. Communication model C Case 2 is incompatible with this embodiment and is disregarded here.
[0162] Figure 10 shows the call graph following the re-calculation of an execution graph (signified with the function calculateGraph()). In particular, as soon as a new execution graph is calculated:
[0163] -PLBS may decide that the differences between the newly calculated execution graph and the one that is currently running are marginal and decide not to enact the new graph into the system.
[0164] -Alternatively, if the PLBS wishes to enact the new execution graph into the system, it needs to break all the producer-consumer relations between all the pairs of microservice instances that are no longer connected by a (direct) edge in the newly calculated execution graph. In order to do that, in case the producer-consumer relation between microservice j - instance u and microservice i - instance k is no longer valid
[0165] o PLBS generates a fictitious de-registration notification informing microservice i - instance k that microservice j - instance u de-registered
[0166] o PLBS generates a fictitious registration notification informing microservice i - instance k that another microservice instance is offering the same services originally provided by microservice j - instance u.
[0167] The second embodiment applies to communication model D. Figure 11 shows the call graph following the re-calculation of an execution graph. Similar to the first embodiment, above, as soon as a new execution graph is calculated:
[0168] -PLBS may decide that the differences between the newly calculated execution graph and the one that is currently running are marginal and decide not to enact the new graph into the system.
[0169] -Alternatively, if the PLBS wishes to enact the new execution graph into the system, PLBS transmits the new execution graph to SCP (indicated in the figure with updateGraph()). In turn, the SCP updates its internal routing policies.
[0170] In summary, embodiments of the present invention provide a definition of PLBS responsible for: Calculating execution graphs; and enacting execution graphs in a live system.
[0171] Additionally, embodiments of the present invention provide a definition of the PEG database (part of UDM), which contains the execution graph of every User Plane (UP) / Control Plane (CP) procedure.
[0172] Additionally, embodiments of the present invention provide a definition of the MLP database (part of UDM), which contains the current input / output load and Maximum input / output load of each microservice before experiencing performance degradation.
[0173] Embodiments of the invention relate to an apparatus and associated method in a 5GC network relying upon a microservice-based architecture to dynamically load balance across multiple execution paths.
[0174] At least some of the example embodiments described herein may be constructed, partially or wholly, using dedicated special-purpose hardware. Terms such as 'component', 'module' or 'unit' used herein may include, but are not limited to, a hardware device, such as circuitry in the form of discrete or integrated components, a Field Programmable Gate Array (FPGA) or Application Specific Integrated Circuit (ASIC), which performs certain tasks or provides the associated functionality. In some embodiments, the described elements may be configured to reside on a tangible, persistent, addressable storage medium and may be configured to execute on one or more processors. These functional elements may in some embodiments include, by way of example, components, such as software components, object-oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables. Although the example embodiments have been described with reference to the components, modules and units discussed herein, such functional elements may be combined into fewer elements or separated into additional elements. Various combinations of optional features have been described herein, and it will be appreciated that described features may be combined in any suitable combination. In particular, the features of any one example embodiment may be combined with features of any other embodiment, as appropriate, except where such combinations are mutually exclusive. Throughout this specification, the term "comprising" or "comprises" means including the component(s) specified but not to the exclusion of the presence of others.
[0175] Attention is directed to all papers and documents which are filed concurrently with or previous to this specification in connection with this application and which are open to public inspection with this specification, and the contents of all such papers and documents are incorporated herein by reference.
[0176] All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and / or all of the steps of any method or process so disclosed, may be combined in any combination, except combinations where at least some of such features and / or steps are mutually exclusive.
[0177] Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
[0178] The invention is not restricted to the details of the foregoing embodiment(s). The invention extends to any novel one, or any novel combination, of the features disclosed in this specification (including any accompanying claims, abstract and drawings), or to any novel one, or any novel combination, of the steps of any method or process so disclosed.
Claims
1.A method of operating a telecommunication network to load-balance external requests across multiple execution path instances in a communication system, the method comprising the steps of:gathering, on a periodic or on-demand basis, information relating to a current input and output load of at least one microservice instance running in the network;when triggered by a trigger, employing the gathered information to calculate an execution graph; andenacting the execution graph in telecommunication network.2.The method of claim 1 wherein the triggering occurs:periodically;in response to a particular event, such as where a third-party entity in the network prompts execution of a load-balancing task; orfor any given pair of microservices where, from a logical standpoint, a first microservice i generates outputs intended for a second microservice j.3.The method of any preceding claim further comprising the step of clustering a plurality of microservices to achieve load-balancing among different execution path instances implementing the same procedure in an end-to-end fashion.4.The method of any preceding claim further comprising gathering load status information and updating a Microservice Load Profile, MLP, database.5.The method of any preceding claim wherein if it is decided that a difference between the calculated execution graph and one that is currently running is below a certain threshold, then the calculated execution graph is not enacted.6.The method of any one of claims 1 to 4 wherein if it decided to enact the calculated execution graph, all producer-consumer relations between all pairs of microservice instances that are no longer connected by a direct edge in the calculated execution graph are broken.7.The method of any of claims 1 to 4 wherein if it decided to enact the calculated execution graph, the calculated execution graph is transmitted to a Service Communication Proxy, SCP.8.A telecommunication network in a communication system, the telecommunication network comprising:a transceiver; andat least one processor coupled with the transceiver and configured to:gather, on a periodic or on-demand basis, information relating to a current input and output load of at least one microservice instance running in the network,when triggered by a trigger, employ the gathered information to calculate an execution graph, andenact the execution graph in telecommunication network.9.The telecommunication network of claim 8,wherein the triggering occurs:periodically;in response to a particular event, such as where a third-party entity in the network prompts execution of a load-balancing task; orfor any given pair of microservices where, from a logical standpoint, a first microservice i generates outputs intended for a second microservice j.10.The telecommunication network of claim 8, wherein the at least one processor is further configured to:cluster a plurality of microservices to achieve load-balancing among different execution path instances implementing the same procedure in an end-to-end fashion.11.The telecommunication network of claim 8, wherein the at least one processor is further configured to:gather load status information and updating a Microservice Load Profile, MLP, database.12.The telecommunication network of claim 8,wherein if it is decided that a difference between the calculated execution graph and one that is currently running is below a certain threshold, then the calculated execution graph is not enacted.13.The telecommunication network of claim 8,wherein if it decided to enact the calculated execution graph, all producer-consumer relations between all pairs of microservice instances that are no longer connected by a direct edge in the calculated execution graph are broken.14.The telecommunication network of claim 8,wherein if it decided to enact the calculated execution graph, the calculated execution graph is transmitted to a Service Communication Proxy, SCP.
Citation Information
Patent Citations
Systems and methods for real-time configurable load determination
US20190394214A1
Communication Method and Communications Device
US20210168215A1
Providing a set of application slices within an application environment
US20220046084A1
Microservice placement in hybrid multi-cloud using graph matching
US20220060431A1
Microservice latency reduction
US20220116478A1
