WO2011127059A1 - Method for dynamic migration of a process or services from one control plane processor to another - Google Patents
Method for dynamic migration of a process or services from one control plane processor to another Download PDFInfo
- Publication number
- WO2011127059A1 WO2011127059A1 PCT/US2011/031258 US2011031258W WO2011127059A1 WO 2011127059 A1 WO2011127059 A1 WO 2011127059A1 US 2011031258 W US2011031258 W US 2011031258W WO 2011127059 A1 WO2011127059 A1 WO 2011127059A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- processor
- load
- source
- migration
- target
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/60—Router architectures
Definitions
- Typical routing and switching platforms comprise about one or about two fixed control plane processors, e.g., route processors (RPs). Some routers or switches also comprise line processors (LPs).
- the control plane processors may run a plurality of processes and handle load in substantially a static or fixed manner, where processes require substantial manual configuration. In today's modern hardware, more control plane processors are being added to "scale up" a router or switch to handle more network traffic. For example, more than about three control plane processors may be used in network components by adding or plugging additional computation elements (CEs), such as LPs, e.g., with single or multiple core control plane processors.
- CEs computation elements
- control plane processors As the cost of CEs decreases, the quantity of control plane processors that can be used in the network components increases, and thus the control plane processors' capabilities to run more processes and services increases. To benefit from such increase in capability, a more dynamic configuration model may be needed, for example to allow automatic configuration of control plane processors, migration of processes between control plane processors, and distribution of load among control processors.
- the disclosure includes an apparatus comprising a processor configured to migrate load from a source process running on the processor to a target process running on a peer processor in a dynamic manner by monitoring an amount of resources used by the source process, wherein the load is migrated when the amount of resources utilized by the source process exceeds a threshold.
- the disclosure includes a network component comprising a first processor configured to select a source process to migrate a load from the first processor based on available resources on the first processor and the source process; and a second processor configured upon receiving a migration request from the first processor to one of select and start a target process to which to migrate the load based on available resources for the second processor and the target process.
- the disclosure includes a method comprising selecting a first source process from a plurality of local processes for migrating a load from; sending a local request to the first source process; receiving a local response from the first source process; selecting a second source process if the local request is not accepted by the first source process; sending a migration request to a first target process; receiving a migration response from the first target process; selecting a second target process if the migration request is rejected by the first target process; and transferring the load from one of the first source process and the second source process to one of the first target process and the second target process.
- FIG. 1 is a schematic diagram of an embodiment of a plurality of associated processes.
- FIG. 2 is a schematic diagram of an embodiment of a plurality of associated control plane processors.
- FIG. 3 is a schematic diagram of an embodiment of a process migration.
- FIG. 4 is a schematic diagram of an embodiment of a process state synchronization.
- FIG. 5 is a schematic diagram of an embodiment of a process migration state machine.
- FIG. 6 is a schematic diagram of an embodiment of a process migration request.
- FIG. 7 is a schematic diagram of an embodiment of a process migration response.
- FIG. 8 is a flowchart of an embodiment of a dynamic process migration method.
- FIG. 9 is a schematic diagram of an embodiment of a transmitter/receiver unit.
- FIG. 10 is a schematic diagram of an embodiment of a general-purpose computer system.
- a plurality of services and/or processes that run on the processors may be migrated between the processors automatically, e.g., based on predefined policies and/or according to available resources or capacity on the processors.
- the process dynamic migration scheme may be performed on-demand without disrupting the processes and services running on the processors.
- FIG. 1 illustrates an embodiment of plurality of associated processes 100, which may run on a processor 110.
- the processor 110 may be a static control plane processor, e.g., a RP card, or a removable control plane processor, e.g., a LP card, which may be located in a network component, e.g. a switch or a router, a data server, or any other network component.
- the processor 110 may be any CE that is configured to implement or run one or more processes 100, which may handle services or functions related to the processor's operations.
- the processes 100 may comprise a process manager (PM) 112 that is configured to start up and manage other processes and/or services on the processor 110.
- PM process manager
- the processes 100 may also comprise other processes that may run on the processor 110 and provide a plurality of functions/services, such as for implementing a border gateway protocol (BGP) 120, a routing information base (RIB) 122, an Intermediate System to Intermediate System (IS-IS) protocol 124, a virtual private network (VPN) 128, a command-line interface (CLI) 126, a Directory Service (DS) 116, a Configure Daemon (CNFD) 114, a Resource Manger (RSM+) 118, or combinations thereof.
- BGP border gateway protocol
- RIB routing information base
- IS-IS Intermediate System to Intermediate System
- VPN virtual private network
- CLI command-line interface
- DS Directory Service
- CNFD Configure Daemon
- RSM+ Resource Manger
- the PM 112 may be configured to manage initial system startup of other processes and to monitor the other processes 114, 116, 118, 120, 122, 124, 126, 128 that run on the processor 110.
- the PM 112 may monitor the other running processes to verify that the processes are running appropriately and not failing, e.g., due to lack of resources.
- the PM 112 may also restart any failed process or kill any process, such as a run-away process, e.g., to save resources.
- the PM 112 may be configured to communicate with other processes, e.g., peer PMs, that run on peer processors (not shown) using an Internal Router Capability Protocol (IRCP).
- IRCP Internal Router Capability Protocol
- the peer processors may be similar to the processor 110 and may be located on the same network component of the processor 110, e.g., on the same switch or router.
- the IRCP may be configured to allow the dynamic configuration of processes, including PMs, on one or more processors in a network component, e.g., for routing and/or switching operations.
- the IRCP may allow a network administrator to add a new CE or multiple CEs to a network component, e.g., to expand routing and switching capabilities.
- the IRCP may allow the software existing on the network component to automatically find new hardware elements and discover their capabilities.
- the IRCP may allow CEs to migrate load of processes to other CEs, in a dynamic or automatic manner without manual configuration, e.g., to make use of new processing capacity due to adding new CEs.
- the IRCP may simplify network deployment and/or administration while providing an improved degree of scalability and availability, e.g., in comparison to current static configuration schemes.
- FIG. 2 illustrates an embodiment of a plurality of associated control plane processors 200, which may be located on a network component, such as a switch or a router.
- the processors 200 may comprise a first processor 210, a second processor 220, and a third processor 230, which may communicate with one another.
- the first processor 210, the second processor 220, and the third processor 230 may be CEs that include RP cards and/or LP cards.
- the processors 200 may comprise single core processors or CEs, multiple core processors or CEs, or both.
- the first processor 210, the second processor 220, and the third processor 230 may comprise a first PM 212, a second PM 222, and a third PM 232, respectively, which may run on the corresponding processors 200 and may be configured similar to the PM 112.
- the processors 200 may use the IRCP to dynamically learn about one another, request start services from one another, migrate services or part of services between one another, and/or distribute load information between them.
- the IRCP may be implemented on a separate process in each of the processors 200 or as part of other services.
- the IRCP may be implemented by the first PM 212, the second PM 222, and the third PM 232.
- the first PM 212, the second PM 222, and the third PM 232 may use the IRCP to dynamically discover one another, any processes of the processors 200, and their capabilities.
- the first PM 212, the second PM 222, and the third PM 232 may also use the IRCP to migrate processes/services between the processors 200 and change or balance load between the processors 200.
- FIG. 3 illustrates an embodiment of a process migration 300 between a first processor 310 and a second processor 320, which may be configured similar to the processors 200.
- the first processor 310 and the second processor 320 may comprise a first PM 312 and a second PM 322, respectively, which may be configured similar to the PMs above and run on the corresponding processors.
- the first processor 310 and the second processor 320 may also comprise other running processes or services. For instance, initially, the first processor 310 may run processes for implementing BGP, RIB, IS-IS, VPN, DS, CLI, CNFD, and/or RSM+ functions or services.
- the second processor 320 may also run processes for implementing DS and RSM services.
- the first PM 312 may monitor the running processes and the resources of the first processor 310.
- the first PM 312 or a separate process e.g., an IRCP agent, may determine whether it is desirable to migrate a process on the first processor 310 to a peer processor, which is referred to herein as outbound migration. For instance, a process may be migrated to free some of the resources on the first processor 310 or prevent potential process failure. If it is desirable to migrate a process, the first PM 312 may determine which of the processes on the first processor 310 may be migrated. For instance, some processes may not be migrated during some critical operation periods.
- the first PM 312 may inquire an individual process to determine whether a process load, e.g., a task or operation, may be migrated. For example, the first PM 312 may select the busiest or most memory consuming process on the first processor 310. If the process accepts migrating of at least some of its load, the first PM 312 may select a suitable processor to transfer the load to. The first PM 312 may communicate with the second PM 322 in the second processor 320, e.g., using IRCP, to request migration to the second processor 320.
- a process load e.g., a task or operation
- the first PM 312 may inquire the second PM 322 to verify if migration to the second processor 320 is possible or acceptable. Hence, the second PM 322 may examine a total load and resources of the second processor 320, a load of an individual process on the second processor 320 that is similar to the selected process on the first processor 310, and/or whether a process on the second processor 320 agrees to take on a new load from the selected process. In the case of a migration request for entire process load from the first processor 310, the second PM 322 may determine whether the second processor 320 may take on the entire process load based on the total load (of processes) and available resources on the second processor 320.
- the second PM 322 may determine whether a similar process on the second processor 320 may take on the partial load from the first process 310.
- the second PM 322 may inform the first PM 310 that the process associated with the migration request, e.g., a BGP process, is not running on the second processor 320.
- the first PM 312 may send a request to the second PM 322, via IRCP, to start that process on the second processor 320.
- the second PM 322 may then start the requested process (e.g., BGP) on the second processor 320, which is referred to herein as inbound process, and inform the first PM 312 of the start of the inbound process.
- the first PM 312 may then inquire the second PM 322 if the inbound process on the second processor 320 may take a load from a similar outbound process (e.g., BGP) on the first processor 310.
- the second PM 322 may check if the inbound process accepts receiving a new load. If the inbound process accepts to receive a new load, the second PM 322 may examine internal statistics of processes running on the second processor 320 to determine whether the second processor 320 may receive additional external load.
- the second PM 322 may inform the first PM 310 that the second processor 320 may take on new load from the first processor 310.
- the first PM 312 may then instruct the outbound process to migrate load to the inbound process.
- the load may be migrated to the inbound process via migration exchanges between the two corresponding processes, e.g., using an Interim Inter-Switch Signaling Protocol (ISSP).
- ISSP Interim Inter-Switch Signaling Protocol
- the outbound process may then inform the first PM 312 that load migration is completed and hence may be terminated.
- the processors that implement a process migration may support a virtual router function.
- the virtual router may run on a single network node or may involve a plurality of network nodes. Alternatively, the virtual router may be distributed across multiple physical nodes, where any physical node may also run other virtual routers.
- the virtual router function may be used when a new resource (e.g., processor) becomes available or an existing resource becomes unavailable.
- the processes on the processors may be associated with a set of one or more physical nodes, may be migrated independently to any node, or may be migrated only with some other processes, e.g., in a group of processes.
- a process state synchronization may be implemented to ensure that in-service process migration, e.g., between different processors on the same router or switch, may be performed without service disruption. This may be achieved by starting the target process (inbound process) and allowing it to run in parallel, e.g., at an overlapping time period, with the source process (outbound process). While both processes are running, the process states may be locked and transferred from the source process to the target process, as described below. During this time, all service requests received from peer processors may be sent to both the source and target processes. Both the source and target processes may batch the received requests.
- the process states may be unlocked and the batched requests may be merged with the process states that may be completely transferred to the target process.
- the source process may then be terminated and the process migration may be completed. If an error occurs at any time during the migration, the migration may be rolled back or restarted.
- FIG. 4 illustrates an embodiment of a process state synchronization 400 that may be implemented during process migrations, e.g., the process migration 300.
- the process state synchronization 400 may allow uninterrupted routing or switching by transferring related kernel states that correspond to the migrated process.
- process state data may be transferred between a first control plane 410 and a second control plane 420, which may be two peer processors.
- the second control plane 420 may create a target process A', for instance based on a request from the control plane 410 to transfer load for a similar source process A.
- the first control plane 410 may lock related process state data 412 for read only status, which may prevent changes to the state data during migration.
- the first control plane 410 may transfer a snapshot or copy of the locked state data 422 to the second control plane 420.
- the source process A may continue handling any received external requests while state data is being transferred, and forward the external requests to the target process A'.
- the target process A' may batch the received external requests and process the batched external requests when the state data are completely transferred, synchronized, and unlocked.
- the source process A and its infrastructures may retrieve from the infrastructure current information about the transport protocol and transfer this information to the target peer, e.g., process A'.
- the target peer may push this information into its local infrastructure (the second control plane 420) and instruct the infrastructure to hold packets that arrive until the target peer is ready.
- Both the target and source peers may need to update the internal routing to get the outside transport packets flowing to the target peer.
- the source peer may put its last updated transport state and send it to the target peer, which may update its local transport state and enable the reception of packets.
- the process state synchronization 400 may be implemented to support a virtual router function.
- a plurality of virtual routers may have a single set of tasks that perform routing functionalities.
- each virtual router may have a corresponding set of tasks to perform each virtual router's functionalities.
- Virtual routers may be implemented in corresponding containers that isolate the virtual routers' states from other parts of the system to facilitate migration.
- the virtual router may be configured to continue seamlessly processing external messages during a process migration procedure.
- the virtual router migration may comprise the migration of a group of tasks' states or part of the states, and optionally other router specific states.
- FIG. 5 illustrates a migration state machine 500 that may be implemented during a process migration, such as the process migration 300.
- the migration state machine 500 may be triggered by an internal process, e.g., an IRCP agent, that monitors processes and resources on a processor and determines to migrate a process to a peer processor, for instance, when resources (e.g., central processing unit (CPU)/memory usage) reach a threshold.
- the migration state machine 500 may also be started by an external user command, e.g., using CLI.
- only one migration state machine 500 may be implemented at a time, e.g., to ensure that load migration proceeds in relatively slow increments and a slow manner.
- the state machine 500 may have the capability to migrate the entire load of a process. In cases of upgrade/shutdown, the migration state machine 500 may be used under a user CLI direction at relatively slow load times but may not be used by automated facilities.
- the migration state machine 500 may comprise an Idle state 501, a Select Local state 502, a Select Remote state 503, a Start Service (or Start Remote) state 504, a Migrate state 505, and a Hold Down state 506.
- the Idle state 501 may be entered upon creation of the migration state machine 500 and may not be exited without a request from the CLI or a request from an internal IRCP agent auditing of load.
- the migration state machine 500 may not respond to outside requests from any state but the Idle state 501.
- a plurality of processes and services may be marked as not having been visited for migration. This mark is used later in the Select Local state 502.
- the migration state machine 500 may enter the Select Local state 502.
- the Select Local state 502 may involve selecting the local process to migrate.
- the Select Local state 502 may implement the following steps:
- a plurality of peers may each be associated with two flags that may be marked in some fashion.
- Each peer may be monitored in turn, in some iterative order, and any peer that has advertised itself as being available and active may be marked (e.g., using a first flag) as not being yet considered for migration and marked (e.g., using a second flag) as not having been asked to start. If the peer is inactive or not available, then the peer may be marked as having been observed and requested to start.
- the flags may then be used in the following state (the Select Remote state 503).
- Each process that has not been considered for a migration request based on its flag may be examined, and a process that has used the most resources (e.g., CPU/memory) and/or that has a shortage of resources may be selected.
- Each process may be monitored periodically for both CPU and memory usage.
- the Local Select state 502 may determine which process to select based on the last monitored period of the process.
- step (2) results in a process being selected, then a local request may be sent to the process to inquire if the process is willing to migrate load.
- the local request may be sent in an application specific message, which may be based on the local system.
- a response timer may be started and the process may be marked as being visited for a migration request.
- the Local Select state 502 may wait for the response to the request message or a timeout. If a response arrives and confirms proceeding with migration, then the Local Select state 502 may go to step (6). If a timeout occurred or the response did not confirm migration, then the Local Select state 502 may go to step (1).
- step (2) results in a situation in which all visited processes are not willing to migrate, the migration state machine 500 may change to the Hold Down state 506.
- the Local Select state 502 may mark the responding process as the selected process.
- the migration state machine 500 may then change to the Select Remote state 503.
- the entry upon the Select Local state 502 may include a target process. This may override the peer selection process in step (1) above. However, if the target process refuses migration, the rest of the process may be examined for migration in the normal manner.
- the Select Remote state 503 may be configured to choose a remote peer that runs the process selected by the Select Local state 502.
- the Select Remote state 503 may examine a plurality of peers and consider a number of factors including, availability in last announcement, CPU capacity, memory capacity, if it is known that the peer has the service selected running, and/or that the peer knows how to run the selected service.
- the Select Remote state 503 may use the following logic steps to select the remote peer:
- Each peer that is marked as not examined and/or that has the selected process may be examined.
- the process with the most available resources and that has the selected process may be considered first.
- the process may be considered with respect to the number of CPU's and the CPUs' capacity, e.g., the CPU's processing speed in mega hertz. For instance, multi-core processors or CPUs may have more capacity than single-core processors or CPUs.
- the processor with the most capacity may be selected and marked as being considered.
- An IRCP migration request message may then be sent to the selected peer processor and a timer may be started.
- step (1) may be implemented again to ask the peers to start the process or service, including the previously selected peer, e.g., one by one until all peers are considered. If the peer replies that it does not run the process, then step one may be implemented again without considering the previously selected peer as a possible candidate to request starting the service. The previously selected peer may be excluded from consideration by leaving a flag unset. Alternatively, if the peer replies by accepting the migration request, then the migration state machine 500 may change to the Migration state 505.
- the migration state machine 500 may change to the Start Remote (or Start Service) state 504.
- an available peer may check its capacity to validate that it is still available.
- the peer may also send a local request to the target process/service to ask if the process can accept load.
- This message may not be an IRCP message but instead a locally defined system message.
- the local request message and similarly a local response message from the target process may indicate internal process statistics, e.g., to inform an IRCP agent of how well the application is processing messages.
- the IRCP agent may respond to the request from the source or requesting processor with either a confirmation (YES) or a rejection (NO) based on the response from the process. If the service/process does not respond in time, a timer running in the migration state machine 500 may force the consideration of a different process. If the service is not running yet on the peer processor, then an appropriate rejection may be sent to the source processor via IRCP to indicate that the process is not running.
- a highest capacity processor that does not have the process/service running and knows how to run the process may be chosen.
- the process may be known and included in the peer's service list.
- the migration state machine 500 may change back to the Select Remote state 503, where all the peers may be examined unsuccessfully causing, in turn, the migration state machine 500 to return to the Select Local state 502.
- a service start message may be sent to the peer and a timer may be started.
- a flag that indicates the start of the requested process may also be set, which may prevent resending a request to start that process. If the timer expires or the peer replies with a rejection (NO), then the Start Remote state 504 may return to step (1). If the peer responds with an indication that the process was started, the migration state machine 500 may change back to the Select Remote state 503, where the newly started process may be the one next selected to which to migrate the load.
- both a target peer and a target process may have been selected.
- the target peer may inform the IRCP agent of the address and port number of the target process. This information may be sent in an internal (non-IRCP) message to the local source process to request the process to begin the migration of a percentage of its load.
- a timer may also be started to guard against the process taking too long to migrate or failing. The process, at migration completion, may respond with a local system migration complete message. Otherwise, the timer may expire before the completion of the migration. Both events may cause the migration state machine 500 to move to the Hold Down state 506.
- the Hold Down state 506 may be a transition state. Upon entering this state, a timer may be started. All other inputs may be ignored until the timer expires. When the timer expires, the migration state machine 500 may transition to the Idle state 501. The migration state machine 500 may use a plurality of timers in the different states, as described above. For instance, any time a local message is sent to a process, the process may be assigned a determined number of seconds to respond before expiration. The number of seconds may be defined in a parameter IRCP.MIRG- RESP-TO.
- a timer may be set to a number of seconds, which may be defined in another parameter IRCP.MIGR-PEER-RESP- TO.
- a larger timer may be used to allow two processes to move their state data.
- the timer may be set to a number of seconds defined in a parameter IRCP-MIGRATION-TO.
- the Hold Down state 506 may have a timeout value that is defined in a parameter IRCP.HOLDDOWN-TO.
- the values of the parameters above may be configurable by an IRCP agent.
- a dynamic or automatic migration scheme may result in bouncing load.
- Bouncing load may occur when one processor is overloaded and thus migrates load to another peer which may not be overloaded.
- the processor may discover that it has become overloaded, while the freed processor may not be overloaded any more and may be available to take on the load again, which may trigger another process migration.
- a sequence of migrations for the same process may occur, e.g., the process may bounce back and forth between the processors.
- This scenario may occur in a more complicated manner, where the load may move to more than two processors or CEs, e.g., in a circular pattern.
- a plurality of measures may be built into IRCP and may be considered by both application developers and administrators. The following is a list of considerations that may be taken to avoid bouncing load.
- an automated system may not ask a process to migrate about 100 percent of its work load. Doing so may invite bouncing load. Instead, an automated portion of IRCP may ask a process to move a relatively small percentage of its load, e.g. from about 10 percent to about 20 percent. This gives the system a chance to slowly move its load around when possible.
- a complete load migration may be requested by a user command. As such, the user may ensure that both the source and target processors are idle and use this migration request as part of a planned upgrade or other maintenance activity.
- the sending agent may need to carefully examine the amount of CPU capacity that the percentage of load translates to on the target processor.
- the advertised capacity and processing capabilities may be carefully factored in to see if a CE can receive a migrated load.
- a CE that advertises its capability to take on load may not be actually able to successfully accommodate about 10 percent of the process load after migration.
- a sender may choose a CE to migrate load to if the CPU calculations confirm whether the CE has the actual capacity to handle the transferred load.
- a process may refuse the migration request if it is asked to migrate a load percentage but is unable to.
- This may be an important design aspect of applications that support migration. Such applications may have knowledge of how and what the applications may migrate. If all current load of an application is hosted in a single entity that can only be migrated entirely, then migrating the application's load may lead to bouncing load. In this case, it may be preferable for the application to refuse to migrate its load, which may instead cause some other less busy process to migrate some of its load, and hence free more resources for the application.
- a BGP process may control load between peers by migrating load to another BGP process on a peer processor. If all the load being generated is from a single BGP process, then moving that load may idle the overloaded BGP process but cause the target process to become busy and/or the peer process to become overloaded.
- process migration may be decided based on a low water mark (e.g., a threshold value) for idle CPU time and a high water mark value for idle CPU usage.
- a target process may receive a migration request if its CPU idle time is equal to or below the low water mark.
- a processor may be considered overloaded if its idle CPU usage is equal to or below a high water mark.
- the low water mark may be defined in a IRCP system parameter IRCP.CPU-LOW- WATER and the high water mark may be defined in an Internal Router Capability (IRC) parameter IRCP-. CPU-HIGH- WATER. The range or difference between the low and high water marks may be substantial.
- IRC Internal Router Capability
- a CE may take on load when it is substantially idle and may only migrate load when it is substantially busy.
- the high water mark may be set carefully within a range where some CPU headroom may still be available, e.g., to account for the possibility that the migration procedure may temporarily add to the CPU usage.
- IRCP.CPU-LOW- WATER may be equal to about 70 percent and IRCP.CPU-HIGH- WATER may be equal to about 30 percent.
- FIG. 6 illustrates an embodiment of a process migration request 600, which may be an IRCP migration request message.
- the process migration request 600 may be sent to a remote process on a target processor to request transferring load from a local process on a source processor.
- the process migration request 600 may comprise a message type field 602, a plurality of flags field 604, a length field 606, a request serial number field 608, a host identity field 610, an all or part field 612, a memory or CPU field 614, and a service name field 616.
- the message type field 602 may comprise about 32 bits and have a value of about six that indicates the type of the process migration request 600.
- the flags field 604 may comprise about 16 bits, set to a value of about zero by the sender, and ignored by the receiver.
- the length field 606 may comprise about 16 bits and indicate the length of the process migration request 600, e.g., in bytes.
- the request serial number 608 may comprise about 32 bits and indicate the request serial number of the process migration request 600, which may be created by the sender and included in the receiver's response.
- the host identity field 610 may comprise about 64 bits and represent the identity of the sending host or peer. The host identity field 610 may have a value that is generated by selecting the lowest machine address of a plurality of sender's Ethernet interfaces.
- the all or part field 612 may comprise about 32 bits and may be set, e.g., to about one, to indicate that all load is to be transferred or may be reset, e.g., to about zero, to indicate that part of the load is to be transferred.
- the memory and CPU field 614 may comprise about 32 bits and may be set, e.g., to about one, to indicate that the sender is constrained by memory or may be reset, e.g., to about zero, to indicate that the sender is constrained by CPU.
- the service name field 616 may indicate the requested service or process that the sender needs to migrate load to.
- the service name may be represented by an ASCII string that comprises the service name followed by a NULL (or zero) character.
- FIG. 7 illustrates an embodiment of a process migration response 700, which may be an IRCP migration response message.
- the process migration response 700 may be sent by the remote process in response to receiving an IRCP migration request message, such as the process migration request 600.
- the process migration response 700 may comprise a message type field 702, a plurality of flags field 704, a length field 706, a request serial number field 708, a host identity field 710, a response field 712, a protocol field 714, a contact information field 716, and a service name field 718.
- the message type field 702, the flags field 704, the length field 706, the request serial number field 708, the host identity field 710, and the service name field 718 may be configured similar to the corresponding fields in the process migration request 600. Specifically, the request serial number field 708 and the service name field 718 may match the request serial number field 608 and the service name field 616, respectively.
- the response field 712 may comprise about 32 bits and may indicate one of three responses: IRCP-SVC-NOT- RUNNING(IO), which indicates that the service or process is not running, IRCP-MIGRATION- OK(10), which indicates it is allowed (OK) to proceed with migration, and IRCP-MIGRATION- DENIED(IO), which indicates that is not allowed to proceed with migration.
- the protocol field 714 may comprise about 32 bits and may comprise a protocol identification of the transport specified in the socket. A value of about 132 may be used to indicate using a Stream Control Transmission Protocol (SCTP).
- the contact information field 716 may comprise about 128 bytes and may comprise a socket address storage type that holds the socket address of the lead process contacted that may be responsible for the service on the sender' s platform.
- FIG. 8 illustrates an embodiment of a dynamic process migration method 800, which may be implemented between a source processor and a target processor in a network component, such as a router or a switch.
- a source PM, a target PM, an IRCP agent, or combinations thereof may be configured to support and/or implement the dynamic process migration method 800.
- a PM may monitor resources and service loading on a corresponding CPU and memory. The PM may then decide to move some of the loads on its processor to a peer PM and processor that may not be overloaded.
- the method 800 may be initiated via external requests, such as a message from a CLI process.
- the PM and peer PM may implement the method 800, which may use the migration state machine 500.
- the method 800 may begin at block 802, where a source process may be selected for migration.
- the source PM or processor may use a selection algorithm to select a suitable or candidate source process from which to migrate load.
- the selection algorithm may include observing which of the local processes that run on the processor has less available resources (e.g., CPU, memory, other network resources), and selecting a candidate source process that uses more resources and supports load migration.
- the algorithm may also take into account long term and/or short term history of the processes and their usages.
- a local request may be sent to the source process.
- the local request may be sent to query the local process as to whether the process is capable of moving load at the time of the request. For example, the source process may be in a middle of a critical operation during which load transfer may not be possible.
- the method 800 may determine whether the local request is accepted. If the local request is accepted by the local source process, then the method 800 may proceed to block 808. Otherwise, the method 800 may proceed to block 822.
- a target process may be selected for migration. The target PM or processor may use a selection algorithm to select a suitable or candidate target process to migrate load to.
- the target PM or processor may also take into account the statistics (including resource usage) on the source process/processor and the target process/processor.
- the statistics may include CPU capacity, memory capacity, and other information that may be generated dynamically about peer PMs/processors.
- a migration request may be sent to the target process.
- the target PM may send an IRCP migration request message, such as the process migration request 600, to the target process.
- the method 800 may determine whether the migration request is accepted.
- the target process may return an IRCP migration response message, such as the process migration response 700, to the target PM to accept or refuse the migration request.
- the target process may also return internal statistics, e.g., on the message processing by local processes on the target processor.
- the target process may accept or reject the migration request based on the internal statistics. If the migration request is accepted by the target process, then the method 800 may proceed to block 814. Otherwise, the method 800 may proceed to block 832.
- load may be transferred from the source process to the target process.
- the source PM may send a migration request to the source process to inform the source process of the target process on the target processor.
- the migration request may also indicate a percentage of load that may be transferred. For example, the percentage may be from about one percent to about 100 percent. One hundred percent may indicate a switchover (completer transfer), which may lead to the shut down of the source process after completing the migration process.
- the source process may also implement internal mechanisms to coordinate and migrate its process states, such as the process state synchronization 400. Upon completing the migration process, the source process may send a message to the source PM to indicate the completion of process migration.
- the source process may indicate in the message failure to migrate the process.
- the method 800 may end after block 814. [0059] At block 822, the source process may be marked as not able to move load.
- the method 800 may determine whether there are other candidate source processes. If the condition at block 824 is true, then the method 800 may return to block 802 to select another suitable source process. Otherwise, the method 800 may proceed to block 826. At block 826, the method 800 may move to hold on state, such as the Hold Down state 506. At block 828, the method 800 may determine whether a timer (for the hold on state) has expired. If the timer has expired, then the method 800 may return to block 802.
- the method 800 may return to block 826, e.g., to the hold on state.
- the method 800 may determine whether there are other candidate target processes. If the condition at block 832 is true, then the method 800 may return to block 808 to select another suitable target process. Otherwise, the method 800 may return to block 826.
- FIG. 9 illustrates an embodiment of a transmitter/receiver unit 900, which may be any device that transports packets through a network.
- the transmitter/receiver unit 900 may be located in a network component, such as a router or a switch.
- the transmitted/receiver unit 900 may comprise one or more ingress ports or units 910 for receiving packets, objects, or Type-Length Values (TLVs) from other network components, logic circuitry 920 to determine which network components to send the packets to, and one or more egress ports or units 930 for transmitting frames to the other network components.
- TLVs Type-Length Values
- FIG. 10 illustrates a typical, general-purpose network component 1000 suitable for implementing one or more embodiments of the components disclosed herein.
- the network component 1000 includes a processor 1002 (which may be referred to as a central processor unit or CPU) that is in communication with memory devices including secondary storage 1004, read only memory (ROM) 1006, random access memory (RAM) 1008, input/output (I/O) devices 1010, and network connectivity devices 1012.
- the processor 1002 may be implemented as one or more CPU chips, or may be part of one or more application specific integrated circuits (ASICs).
- ASICs application specific integrated circuits
- the secondary storage 1004 is typically comprised of one or more disk drives or tape drives and is used for non-volatile storage of data and as an over-flow data storage device if RAM 1008 is not large enough to hold all working data. Secondary storage 1004 may be used to store programs that are loaded into RAM 1008 when such programs are selected for execution.
- the ROM 1006 is used to store instructions and perhaps data that are read during program execution. ROM 1006 is a no n- volatile memory device that typically has a small memory capacity relative to the larger memory capacity of secondary storage 1004.
- the RAM 1008 is used to store volatile data and perhaps to store instructions. Access to both ROM 1006 and RAM 1008 is typically faster than to secondary storage 1004.
- R Ri + k * (R u - Ri), wherein k is a variable ranging from 1 percent to 100 percent with a 1 percent increment, i.e., k is 1 percent, 2 percent, 3 percent, 4 percent, 7 percent, 70 percent, 71 percent, 72 percent, 97 percent, 96 percent, 97 percent, 98 percent, 99 percent, or 100 percent.
- Ri Ri + k * (R u - Ri)
- k is a variable ranging from 1 percent to 100 percent with a 1 percent increment, i.e., k is 1 percent, 2 percent, 3 percent, 4 percent, 7 percent, 70 percent, 71 percent, 72 percent, 97 percent, 96 percent, 97 percent, 98 percent, 99 percent, or 100 percent.
- any numerical range defined by two R numbers as defined in the above is also specifically disclosed.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
An apparatus comprising a processor configured to migrate load from a source process running on the processor to a target process running on a peer processor in a dynamic manner by monitoring an amount of resources used by the source process, wherein the load is migrated when the amount of resources utilized by the source process exceeds a threshold. Also disclosed is a network component comprising a first processor configured to select a source process to migrate a load from the first processor based on available resources on the first processor and the source process; and a second processor configured upon receiving a migration request from the first processor to one of select and start a target process to which to migrate the load based on available resources for the second processor and the target process.
Description
Method for Dynamic Migration of a Process or Services from One Control Plane Processor to Another
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present application claims the benefit of U.S. Provisional Patent Application No.
61/321,066 filed April 5, 2010 by Renwei Li, et al. and entitled "In-service Process Migration and Virtual Router Migration," and U.S. Provisional Patent Application No. 61/324,610 filed
April 15, 2010 by Renwei Li, et al. and entitled "In-service Process Migration and Virtual Router
Migration," both of which are incorporated herein by reference as if reproduced in their entirety.
[0002] The present application is related to commonly assigned U.S. Patent Application No. (Atty. Docket No. 4194-38600) filed even date herewith by Randall Stewart, et al. and entitled "Method for Dynamic Discovery of Control Plane Resources and Services" and to commonly assigned U.S. Patent Application No. (Atty. Docket No. 4194-38800) filed even date herewith by Randall Stewart, et al. and entitled "Method for Dynamic On
Demand Startup of a Process or Resource," both of which are incorporated herein by reference as if reproduced in their entirety.
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT
[0003] Not applicable.
REFERENCE TO A MICROFICHE APPENDIX [0004] Not applicable.
BACKGROUND
[0001] Typical routing and switching platforms comprise about one or about two fixed control plane processors, e.g., route processors (RPs). Some routers or switches also comprise line processors (LPs). The control plane processors may run a plurality of processes and handle load in
substantially a static or fixed manner, where processes require substantial manual configuration. In today's modern hardware, more control plane processors are being added to "scale up" a router or switch to handle more network traffic. For example, more than about three control plane processors may be used in network components by adding or plugging additional computation elements (CEs), such as LPs, e.g., with single or multiple core control plane processors. As the cost of CEs decreases, the quantity of control plane processors that can be used in the network components increases, and thus the control plane processors' capabilities to run more processes and services increases. To benefit from such increase in capability, a more dynamic configuration model may be needed, for example to allow automatic configuration of control plane processors, migration of processes between control plane processors, and distribution of load among control processors.
SUMMARY
[0002] In one embodiment, the disclosure includes an apparatus comprising a processor configured to migrate load from a source process running on the processor to a target process running on a peer processor in a dynamic manner by monitoring an amount of resources used by the source process, wherein the load is migrated when the amount of resources utilized by the source process exceeds a threshold.
[0003] In another embodiment, the disclosure includes a network component comprising a first processor configured to select a source process to migrate a load from the first processor based on available resources on the first processor and the source process; and a second processor configured upon receiving a migration request from the first processor to one of select and start a target process to which to migrate the load based on available resources for the second processor and the target process.
[0004] In a third aspect, the disclosure includes a method comprising selecting a first source process from a plurality of local processes for migrating a load from; sending a local request to the first source process; receiving a local response from the first source process; selecting a second source process if the local request is not accepted by the first source process; sending a migration request to a first target process; receiving a migration response from the first target process; selecting a second target process if the migration request is rejected by the first target process; and transferring the load from one of the first source process and the second source process to one of the first target process and the second target process.
[0005] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] For a more complete understanding of this disclosure, reference is now made to the following brief description, taken in connection with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.
[0007] FIG. 1 is a schematic diagram of an embodiment of a plurality of associated processes.
[0008] FIG. 2 is a schematic diagram of an embodiment of a plurality of associated control plane processors.
[0009] FIG. 3 is a schematic diagram of an embodiment of a process migration.
[0010] FIG. 4 is a schematic diagram of an embodiment of a process state synchronization.
[0011] FIG. 5 is a schematic diagram of an embodiment of a process migration state machine.
[0012] FIG. 6 is a schematic diagram of an embodiment of a process migration request.
[0013] FIG. 7 is a schematic diagram of an embodiment of a process migration response.
[0014] FIG. 8 is a flowchart of an embodiment of a dynamic process migration method.
[0015] FIG. 9 is a schematic diagram of an embodiment of a transmitter/receiver unit.
[0016] FIG. 10 is a schematic diagram of an embodiment of a general-purpose computer system.
DETAILED DESCRIPTION
[0017] It should be understood at the outset that although an illustrative implementation of one or more embodiments are provided below, the disclosed systems and/or methods may be implemented using any number of techniques, whether currently known or in existence. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.
[0018] Current architectures or models for configuring processors and processes on network components, e.g., routers or switches, may be static and may not support the migration of services or processes between different processors, also referred to herein as in-service process migration, dynamically without manual intervention. The term control plane processor and processor are used herein interchangeably. The term process and service may also be used herein interchangeably. Some systems may support manual process migration, which may disrupt some services and may not be suitable for on-line configuration. Disclosed herein is a system and method for supporting dynamic process migration between a plurality of processors on a network component without manual intervention. A plurality of services and/or processes that run on the processors may be migrated between the processors automatically, e.g., based on predefined
policies and/or according to available resources or capacity on the processors. The process dynamic migration scheme may be performed on-demand without disrupting the processes and services running on the processors.
[0019] FIG. 1 illustrates an embodiment of plurality of associated processes 100, which may run on a processor 110. The processor 110 may be a static control plane processor, e.g., a RP card, or a removable control plane processor, e.g., a LP card, which may be located in a network component, e.g. a switch or a router, a data server, or any other network component. The processor 110 may be any CE that is configured to implement or run one or more processes 100, which may handle services or functions related to the processor's operations. Specifically, the processes 100 may comprise a process manager (PM) 112 that is configured to start up and manage other processes and/or services on the processor 110. The processes 100 may also comprise other processes that may run on the processor 110 and provide a plurality of functions/services, such as for implementing a border gateway protocol (BGP) 120, a routing information base (RIB) 122, an Intermediate System to Intermediate System (IS-IS) protocol 124, a virtual private network (VPN) 128, a command-line interface (CLI) 126, a Directory Service (DS) 116, a Configure Daemon (CNFD) 114, a Resource Manger (RSM+) 118, or combinations thereof.
[0020] The PM 112 may be configured to manage initial system startup of other processes and to monitor the other processes 114, 116, 118, 120, 122, 124, 126, 128 that run on the processor 110. The PM 112 may monitor the other running processes to verify that the processes are running appropriately and not failing, e.g., due to lack of resources. The PM 112 may also restart any failed process or kill any process, such as a run-away process, e.g., to save resources. Additionally, the PM 112 may be configured to communicate with other processes, e.g., peer PMs, that run on
peer processors (not shown) using an Internal Router Capability Protocol (IRCP). IRCP allows existing software to automatically find new hardware elements and discover their capabilities. Furthermore IRCP allows older entities to migrate load to new entities thereby automatically using the new processing capacity which simplifies both deployment and administration while providing a high degree of scalability and availability. The peer processors may be similar to the processor 110 and may be located on the same network component of the processor 110, e.g., on the same switch or router.
[0021] The IRCP may be configured to allow the dynamic configuration of processes, including PMs, on one or more processors in a network component, e.g., for routing and/or switching operations. The IRCP may allow a network administrator to add a new CE or multiple CEs to a network component, e.g., to expand routing and switching capabilities. The IRCP may allow the software existing on the network component to automatically find new hardware elements and discover their capabilities. Further, the IRCP may allow CEs to migrate load of processes to other CEs, in a dynamic or automatic manner without manual configuration, e.g., to make use of new processing capacity due to adding new CEs. As such, the IRCP may simplify network deployment and/or administration while providing an improved degree of scalability and availability, e.g., in comparison to current static configuration schemes.
[0022] FIG. 2 illustrates an embodiment of a plurality of associated control plane processors 200, which may be located on a network component, such as a switch or a router. The processors 200 may comprise a first processor 210, a second processor 220, and a third processor 230, which may communicate with one another. The first processor 210, the second processor 220, and the third processor 230 may be CEs that include RP cards and/or LP cards. The processors 200 may comprise single core processors or CEs, multiple core processors or CEs, or
both. The first processor 210, the second processor 220, and the third processor 230 may comprise a first PM 212, a second PM 222, and a third PM 232, respectively, which may run on the corresponding processors 200 and may be configured similar to the PM 112.
[0023] The processors 200 may use the IRCP to dynamically learn about one another, request start services from one another, migrate services or part of services between one another, and/or distribute load information between them. The IRCP may be implemented on a separate process in each of the processors 200 or as part of other services. In an embodiment, the IRCP may be implemented by the first PM 212, the second PM 222, and the third PM 232. The first PM 212, the second PM 222, and the third PM 232 may use the IRCP to dynamically discover one another, any processes of the processors 200, and their capabilities. The first PM 212, the second PM 222, and the third PM 232 may also use the IRCP to migrate processes/services between the processors 200 and change or balance load between the processors 200.
[0024] FIG. 3 illustrates an embodiment of a process migration 300 between a first processor 310 and a second processor 320, which may be configured similar to the processors 200. The first processor 310 and the second processor 320 may comprise a first PM 312 and a second PM 322, respectively, which may be configured similar to the PMs above and run on the corresponding processors. The first processor 310 and the second processor 320 may also comprise other running processes or services. For instance, initially, the first processor 310 may run processes for implementing BGP, RIB, IS-IS, VPN, DS, CLI, CNFD, and/or RSM+ functions or services. The second processor 320 may also run processes for implementing DS and RSM services.
[0025] The first PM 312 may monitor the running processes and the resources of the first processor 310. The first PM 312 or a separate process, e.g., an IRCP agent, may determine
whether it is desirable to migrate a process on the first processor 310 to a peer processor, which is referred to herein as outbound migration. For instance, a process may be migrated to free some of the resources on the first processor 310 or prevent potential process failure. If it is desirable to migrate a process, the first PM 312 may determine which of the processes on the first processor 310 may be migrated. For instance, some processes may not be migrated during some critical operation periods. The first PM 312 may inquire an individual process to determine whether a process load, e.g., a task or operation, may be migrated. For example, the first PM 312 may select the busiest or most memory consuming process on the first processor 310. If the process accepts migrating of at least some of its load, the first PM 312 may select a suitable processor to transfer the load to. The first PM 312 may communicate with the second PM 322 in the second processor 320, e.g., using IRCP, to request migration to the second processor 320.
[0026] The first PM 312 may inquire the second PM 322 to verify if migration to the second processor 320 is possible or acceptable. Hence, the second PM 322 may examine a total load and resources of the second processor 320, a load of an individual process on the second processor 320 that is similar to the selected process on the first processor 310, and/or whether a process on the second processor 320 agrees to take on a new load from the selected process. In the case of a migration request for entire process load from the first processor 310, the second PM 322 may determine whether the second processor 320 may take on the entire process load based on the total load (of processes) and available resources on the second processor 320. Alternatively, in the case of a migration request for partial process load, the second PM 322 may determine whether a similar process on the second processor 320 may take on the partial load from the first process 310.
[0027] In one scenario upon receiving the migration request from the first PM 312, the second PM 322 may inform the first PM 310 that the process associated with the migration request, e.g., a BGP process, is not running on the second processor 320. Thus, the first PM 312 may send a request to the second PM 322, via IRCP, to start that process on the second processor 320. The second PM 322 may then start the requested process (e.g., BGP) on the second processor 320, which is referred to herein as inbound process, and inform the first PM 312 of the start of the inbound process. The first PM 312 may then inquire the second PM 322 if the inbound process on the second processor 320 may take a load from a similar outbound process (e.g., BGP) on the first processor 310. The second PM 322 may check if the inbound process accepts receiving a new load. If the inbound process accepts to receive a new load, the second PM 322 may examine internal statistics of processes running on the second processor 320 to determine whether the second processor 320 may receive additional external load.
[0028] If additional external load may be received on the second processor 320, the second PM 322 may inform the first PM 310 that the second processor 320 may take on new load from the first processor 310. The first PM 312 may then instruct the outbound process to migrate load to the inbound process. The load may be migrated to the inbound process via migration exchanges between the two corresponding processes, e.g., using an Interim Inter-Switch Signaling Protocol (ISSP). The outbound process may then inform the first PM 312 that load migration is completed and hence may be terminated.
[0029] In some embodiments, the processors that implement a process migration, such as the process migration 300, may support a virtual router function. The virtual router may run on a single network node or may involve a plurality of network nodes. Alternatively, the virtual router may be distributed across multiple physical nodes, where any physical node may also run
other virtual routers. The virtual router function may be used when a new resource (e.g., processor) becomes available or an existing resource becomes unavailable. The processes on the processors may be associated with a set of one or more physical nodes, may be migrated independently to any node, or may be migrated only with some other processes, e.g., in a group of processes.
[0030] During the process migration, a process state synchronization may be implemented to ensure that in-service process migration, e.g., between different processors on the same router or switch, may be performed without service disruption. This may be achieved by starting the target process (inbound process) and allowing it to run in parallel, e.g., at an overlapping time period, with the source process (outbound process). While both processes are running, the process states may be locked and transferred from the source process to the target process, as described below. During this time, all service requests received from peer processors may be sent to both the source and target processes. Both the source and target processes may batch the received requests. After all process states are synchronized to the target process, the process states may be unlocked and the batched requests may be merged with the process states that may be completely transferred to the target process. The source process may then be terminated and the process migration may be completed. If an error occurs at any time during the migration, the migration may be rolled back or restarted.
[0031] FIG. 4 illustrates an embodiment of a process state synchronization 400 that may be implemented during process migrations, e.g., the process migration 300. The process state synchronization 400 may allow uninterrupted routing or switching by transferring related kernel states that correspond to the migrated process. During process migration, process state data may be transferred between a first control plane 410 and a second control plane 420, which may be
two peer processors. At step 401, the second control plane 420 may create a target process A', for instance based on a request from the control plane 410 to transfer load for a similar source process A. At step 402, the first control plane 410 may lock related process state data 412 for read only status, which may prevent changes to the state data during migration. At step 403, the first control plane 410 may transfer a snapshot or copy of the locked state data 422 to the second control plane 420. At step 404, the source process A may continue handling any received external requests while state data is being transferred, and forward the external requests to the target process A'. At step 405, the target process A' may batch the received external requests and process the batched external requests when the state data are completely transferred, synchronized, and unlocked.
[0032] To accomplish process migration and state data synchronization, the source process A and its infrastructures (the first control plane 410) may retrieve from the infrastructure current information about the transport protocol and transfer this information to the target peer, e.g., process A'. The target peer may push this information into its local infrastructure (the second control plane 420) and instruct the infrastructure to hold packets that arrive until the target peer is ready. Both the target and source peers may need to update the internal routing to get the outside transport packets flowing to the target peer. The source peer may put its last updated transport state and send it to the target peer, which may update its local transport state and enable the reception of packets.
[0033] The process state synchronization 400 may be implemented to support a virtual router function. In an embodiment, a plurality of virtual routers may have a single set of tasks that perform routing functionalities. In another embodiment, each virtual router may have a corresponding set of tasks to perform each virtual router's functionalities. Virtual routers may be
implemented in corresponding containers that isolate the virtual routers' states from other parts of the system to facilitate migration. To support uninterrupted or non-stop routing, the virtual router may be configured to continue seamlessly processing external messages during a process migration procedure. The virtual router migration may comprise the migration of a group of tasks' states or part of the states, and optionally other router specific states.
[0034] FIG. 5 illustrates a migration state machine 500 that may be implemented during a process migration, such as the process migration 300. The migration state machine 500 may be triggered by an internal process, e.g., an IRCP agent, that monitors processes and resources on a processor and determines to migrate a process to a peer processor, for instance, when resources (e.g., central processing unit (CPU)/memory usage) reach a threshold. The migration state machine 500 may also be started by an external user command, e.g., using CLI. In some cases, only one migration state machine 500 may be implemented at a time, e.g., to ensure that load migration proceeds in relatively slow increments and a slow manner. Migrating too many processes at once or within relatively short time durations may cause bouncing load between processors as described below. The state machine 500 may have the capability to migrate the entire load of a process. In cases of upgrade/shutdown, the migration state machine 500 may be used under a user CLI direction at relatively slow load times but may not be used by automated facilities.
[0035] The migration state machine 500 may comprise an Idle state 501, a Select Local state 502, a Select Remote state 503, a Start Service (or Start Remote) state 504, a Migrate state 505, and a Hold Down state 506. The Idle state 501 may be entered upon creation of the migration state machine 500 and may not be exited without a request from the CLI or a request from an internal IRCP agent auditing of load. The migration state machine 500 may not respond to outside
requests from any state but the Idle state 501. When the migration state machine 500 enters the Idle state 501, a plurality of processes and services may be marked as not having been visited for migration. This mark is used later in the Select Local state 502.
[0036] After leaving the Idle state 501, the migration state machine 500 may enter the Select Local state 502. The Select Local state 502 may involve selecting the local process to migrate. The Select Local state 502 may implement the following steps:
1- Upon entering the Select Local state 501, a plurality of peers (e.g., processors) may each be associated with two flags that may be marked in some fashion. Each peer may be monitored in turn, in some iterative order, and any peer that has advertised itself as being available and active may be marked (e.g., using a first flag) as not being yet considered for migration and marked (e.g., using a second flag) as not having been asked to start. If the peer is inactive or not available, then the peer may be marked as having been observed and requested to start. The flags may then be used in the following state (the Select Remote state 503).
2- Each process that has not been considered for a migration request based on its flag may be examined, and a process that has used the most resources (e.g., CPU/memory) and/or that has a shortage of resources may be selected. Each process may be monitored periodically for both CPU and memory usage. The Local Select state 502 may determine which process to select based on the last monitored period of the process.
3- If step (2) results in a process being selected, then a local request may be sent to the process to inquire if the process is willing to migrate load. The local request may be sent in an application specific message, which may be based on the local system. After sending the message, a response timer may be started and the process may be marked as being visited for a migration request.
4- The Local Select state 502 may wait for the response to the request message or a timeout. If a response arrives and confirms proceeding with migration, then the Local Select state 502 may go to step (6). If a timeout occurred or the response did not confirm migration, then the Local Select state 502 may go to step (1).
5- If step (2) results in a situation in which all visited processes are not willing to migrate, the migration state machine 500 may change to the Hold Down state 506.
6- The Local Select state 502 may mark the responding process as the selected process. The migration state machine 500 may then change to the Select Remote state 503.
[0037] In some cases, the entry upon the Select Local state 502 (e.g., via CLI direction) may include a target process. This may override the peer selection process in step (1) above. However, if the target process refuses migration, the rest of the process may be examined for migration in the normal manner.
[0038] The Select Remote state 503 may be configured to choose a remote peer that runs the process selected by the Select Local state 502. The Select Remote state 503 may examine a plurality of peers and consider a number of factors including, availability in last announcement, CPU capacity, memory capacity, if it is known that the peer has the service selected running, and/or that the peer knows how to run the selected service.
[0039] The Select Remote state 503 may use the following logic steps to select the remote peer:
1- Each peer that is marked as not examined and/or that has the selected process may be examined. The process with the most available resources and that has the selected process may be considered first. The process may be considered with respect to the number of CPU's and the CPUs' capacity, e.g., the CPU's processing speed in mega hertz. For instance, multi-core processors or CPUs may
have more capacity than single-core processors or CPUs. The processor with the most capacity may be selected and marked as being considered. An IRCP migration request message may then be sent to the selected peer processor and a timer may be started.
2- One of two events may then trigger the migration state machine 500. The peer may reply to the request with an IRCP migration response message or a timeout may occur. If a timeout occurs or the peer replies that it may not accept the migration request, then step (1) may be implemented again to ask the peers to start the process or service, including the previously selected peer, e.g., one by one until all peers are considered. If the peer replies that it does not run the process, then step one may be implemented again without considering the previously selected peer as a possible candidate to request starting the service. The previously selected peer may be excluded from consideration by leaving a flag unset. Alternatively, if the peer replies by accepting the migration request, then the migration state machine 500 may change to the Migration state 505.
3- If there is no peer available that runs the requested service, then the migration state machine 500 may change to the Start Remote (or Start Service) state 504.
[0040] When an available peer receives an IRCP migration request, the peer may check its capacity to validate that it is still available. The peer may also send a local request to the target process/service to ask if the process can accept load. This message may not be an IRCP message but instead a locally defined system message. The local request message and similarly a local response message from the target process may indicate internal process statistics, e.g., to inform an IRCP agent of how well the application is processing messages. The IRCP agent may respond to the request from the source or requesting processor with either a confirmation (YES) or a rejection (NO) based on the response from the process. If the service/process does not respond in time, a timer running in the migration state machine 500 may force the consideration of a different
process. If the service is not running yet on the peer processor, then an appropriate rejection may be sent to the source processor via IRCP to indicate that the process is not running.
[0041] Upon entering the Start Remote state 504, the following steps may be implemented:
1- A highest capacity processor that does not have the process/service running and knows how to run the process may be chosen. The process may be known and included in the peer's service list.
2- If no peer is left that may be capable of starting the service, then the migration state machine 500 may change back to the Select Remote state 503, where all the peers may be examined unsuccessfully causing, in turn, the migration state machine 500 to return to the Select Local state 502.
3- If a peer is found, then a service start message may be sent to the peer and a timer may be started. A flag that indicates the start of the requested process may also be set, which may prevent resending a request to start that process. If the timer expires or the peer replies with a rejection (NO), then the Start Remote state 504 may return to step (1). If the peer responds with an indication that the process was started, the migration state machine 500 may change back to the Select Remote state 503, where the newly started process may be the one next selected to which to migrate the load.
[0042] When entering the Migration state 505, both a target peer and a target process may have been selected. The target peer may inform the IRCP agent of the address and port number of the target process. This information may be sent in an internal (non-IRCP) message to the local source process to request the process to begin the migration of a percentage of its load. A timer may also be started to guard against the process taking too long to migrate or failing. The process, at migration completion, may respond with a local system migration complete message. Otherwise,
the timer may expire before the completion of the migration. Both events may cause the migration state machine 500 to move to the Hold Down state 506.
[0043] The Hold Down state 506 may be a transition state. Upon entering this state, a timer may be started. All other inputs may be ignored until the timer expires. When the timer expires, the migration state machine 500 may transition to the Idle state 501. The migration state machine 500 may use a plurality of timers in the different states, as described above. For instance, any time a local message is sent to a process, the process may be assigned a determined number of seconds to respond before expiration. The number of seconds may be defined in a parameter IRCP.MIRG- RESP-TO. When a processor communicates using IRCP with one or more peers, a timer may be set to a number of seconds, which may be defined in another parameter IRCP.MIGR-PEER-RESP- TO. During migration, a larger timer may be used to allow two processes to move their state data. The timer may be set to a number of seconds defined in a parameter IRCP-MIGRATION-TO. The Hold Down state 506 may have a timeout value that is defined in a parameter IRCP.HOLDDOWN-TO. The values of the parameters above may be configurable by an IRCP agent.
[0044] Sometimes, a dynamic or automatic migration scheme, such as described above, may result in bouncing load. Bouncing load may occur when one processor is overloaded and thus migrates load to another peer which may not be overloaded. Once the load settles on the new processor or CE, the processor may discover that it has become overloaded, while the freed processor may not be overloaded any more and may be available to take on the load again, which may trigger another process migration. Thus, a sequence of migrations for the same process may occur, e.g., the process may bounce back and forth between the processors. This scenario may occur in a more complicated manner, where the load may move to more than two processors or
CEs, e.g., in a circular pattern. To avoid bouncing load, a plurality of measures may be built into IRCP and may be considered by both application developers and administrators. The following is a list of considerations that may be taken to avoid bouncing load.
[0045] In a first consideration, an automated system (for dynamic migration) may not ask a process to migrate about 100 percent of its work load. Doing so may invite bouncing load. Instead, an automated portion of IRCP may ask a process to move a relatively small percentage of its load, e.g. from about 10 percent to about 20 percent. This gives the system a chance to slowly move its load around when possible. In some cases, a complete load migration may be requested by a user command. As such, the user may ensure that both the source and target processors are idle and use this migration request as part of a planned upgrade or other maintenance activity.
[0046] When considering a percentage of load to move to a peer, the sending agent may need to carefully examine the amount of CPU capacity that the percentage of load translates to on the target processor. The advertised capacity and processing capabilities may be carefully factored in to see if a CE can receive a migrated load. A CE that advertises its capability to take on load may not be actually able to successfully accommodate about 10 percent of the process load after migration. A sender may choose a CE to migrate load to if the CPU calculations confirm whether the CE has the actual capacity to handle the transferred load.
[0047] When a process receives a request to migrate load out, the process may refuse the migration request if it is asked to migrate a load percentage but is unable to. This may be an important design aspect of applications that support migration. Such applications may have knowledge of how and what the applications may migrate. If all current load of an application is hosted in a single entity that can only be migrated entirely, then migrating the application's load may lead to bouncing load. In this case, it may be preferable for the application to refuse to
migrate its load, which may instead cause some other less busy process to migrate some of its load, and hence free more resources for the application. For example, a BGP process may control load between peers by migrating load to another BGP process on a peer processor. If all the load being generated is from a single BGP process, then moving that load may idle the overloaded BGP process but cause the target process to become busy and/or the peer process to become overloaded.
[0048] In an embodiment, process migration may be decided based on a low water mark (e.g., a threshold value) for idle CPU time and a high water mark value for idle CPU usage. A target process may receive a migration request if its CPU idle time is equal to or below the low water mark. Additionally, a processor may be considered overloaded if its idle CPU usage is equal to or below a high water mark. The low water mark may be defined in a IRCP system parameter IRCP.CPU-LOW- WATER and the high water mark may be defined in an Internal Router Capability (IRC) parameter IRCP-. CPU-HIGH- WATER. The range or difference between the low and high water marks may be substantial. As such, a CE may take on load when it is substantially idle and may only migrate load when it is substantially busy. The high water mark may be set carefully within a range where some CPU headroom may still be available, e.g., to account for the possibility that the migration procedure may temporarily add to the CPU usage. In one recommended setting the low water mark, IRCP.CPU-LOW- WATER may be equal to about 70 percent and IRCP.CPU-HIGH- WATER may be equal to about 30 percent. These values may be used as starting points and may be tuned or modified based on system conditions.
[0049] FIG. 6 illustrates an embodiment of a process migration request 600, which may be an IRCP migration request message. The process migration request 600 may be sent to a remote process on a target processor to request transferring load from a local process on a source processor. The process migration request 600 may comprise a message type field 602, a
plurality of flags field 604, a length field 606, a request serial number field 608, a host identity field 610, an all or part field 612, a memory or CPU field 614, and a service name field 616.
[0050] The message type field 602 may comprise about 32 bits and have a value of about six that indicates the type of the process migration request 600. The flags field 604 may comprise about 16 bits, set to a value of about zero by the sender, and ignored by the receiver. The length field 606 may comprise about 16 bits and indicate the length of the process migration request 600, e.g., in bytes. The request serial number 608 may comprise about 32 bits and indicate the request serial number of the process migration request 600, which may be created by the sender and included in the receiver's response. The host identity field 610 may comprise about 64 bits and represent the identity of the sending host or peer. The host identity field 610 may have a value that is generated by selecting the lowest machine address of a plurality of sender's Ethernet interfaces.
[0051] The all or part field 612 may comprise about 32 bits and may be set, e.g., to about one, to indicate that all load is to be transferred or may be reset, e.g., to about zero, to indicate that part of the load is to be transferred. The memory and CPU field 614 may comprise about 32 bits and may be set, e.g., to about one, to indicate that the sender is constrained by memory or may be reset, e.g., to about zero, to indicate that the sender is constrained by CPU. The service name field 616 may indicate the requested service or process that the sender needs to migrate load to. The service name may be represented by an ASCII string that comprises the service name followed by a NULL (or zero) character.
[0052] FIG. 7 illustrates an embodiment of a process migration response 700, which may be an IRCP migration response message. The process migration response 700 may be sent by the remote process in response to receiving an IRCP migration request message, such as the process
migration request 600. The process migration response 700 may comprise a message type field 702, a plurality of flags field 704, a length field 706, a request serial number field 708, a host identity field 710, a response field 712, a protocol field 714, a contact information field 716, and a service name field 718.
[0053] The message type field 702, the flags field 704, the length field 706, the request serial number field 708, the host identity field 710, and the service name field 718 may be configured similar to the corresponding fields in the process migration request 600. Specifically, the request serial number field 708 and the service name field 718 may match the request serial number field 608 and the service name field 616, respectively. The response field 712 may comprise about 32 bits and may indicate one of three responses: IRCP-SVC-NOT- RUNNING(IO), which indicates that the service or process is not running, IRCP-MIGRATION- OK(10), which indicates it is allowed (OK) to proceed with migration, and IRCP-MIGRATION- DENIED(IO), which indicates that is not allowed to proceed with migration. The protocol field 714 may comprise about 32 bits and may comprise a protocol identification of the transport specified in the socket. A value of about 132 may be used to indicate using a Stream Control Transmission Protocol (SCTP). The contact information field 716 may comprise about 128 bytes and may comprise a socket address storage type that holds the socket address of the lead process contacted that may be responsible for the service on the sender' s platform.
[0054] FIG. 8 illustrates an embodiment of a dynamic process migration method 800, which may be implemented between a source processor and a target processor in a network component, such as a router or a switch. For instance, a source PM, a target PM, an IRCP agent, or combinations thereof may be configured to support and/or implement the dynamic process migration method 800. A PM may monitor resources and service loading on a corresponding
CPU and memory. The PM may then decide to move some of the loads on its processor to a peer PM and processor that may not be overloaded. Alternatively, the method 800 may be initiated via external requests, such as a message from a CLI process. The PM and peer PM may implement the method 800, which may use the migration state machine 500.
[0055] The method 800 may begin at block 802, where a source process may be selected for migration. The source PM or processor may use a selection algorithm to select a suitable or candidate source process from which to migrate load. The selection algorithm may include observing which of the local processes that run on the processor has less available resources (e.g., CPU, memory, other network resources), and selecting a candidate source process that uses more resources and supports load migration. The algorithm may also take into account long term and/or short term history of the processes and their usages.
[0056] At block 804, a local request may be sent to the source process. The local request may be sent to query the local process as to whether the process is capable of moving load at the time of the request. For example, the source process may be in a middle of a critical operation during which load transfer may not be possible. At block 806, the method 800 may determine whether the local request is accepted. If the local request is accepted by the local source process, then the method 800 may proceed to block 808. Otherwise, the method 800 may proceed to block 822. At block 808, a target process may be selected for migration. The target PM or processor may use a selection algorithm to select a suitable or candidate target process to migrate load to. The target PM or processor may also take into account the statistics (including resource usage) on the source process/processor and the target process/processor. The statistics may include CPU capacity, memory capacity, and other information that may be generated dynamically about peer PMs/processors.
[0057] At block 810, a migration request may be sent to the target process. For example, the target PM may send an IRCP migration request message, such as the process migration request 600, to the target process. At block 812, the method 800 may determine whether the migration request is accepted. The target process may return an IRCP migration response message, such as the process migration response 700, to the target PM to accept or refuse the migration request. The target process may also return internal statistics, e.g., on the message processing by local processes on the target processor. The target process may accept or reject the migration request based on the internal statistics. If the migration request is accepted by the target process, then the method 800 may proceed to block 814. Otherwise, the method 800 may proceed to block 832.
[0058] At block 814, load may be transferred from the source process to the target process. If the migration request is accepted, the source PM may send a migration request to the source process to inform the source process of the target process on the target processor. The migration request may also indicate a percentage of load that may be transferred. For example, the percentage may be from about one percent to about 100 percent. One hundred percent may indicate a switchover (completer transfer), which may lead to the shut down of the source process after completing the migration process. The source process may also implement internal mechanisms to coordinate and migrate its process states, such as the process state synchronization 400. Upon completing the migration process, the source process may send a message to the source PM to indicate the completion of process migration. If the migration process is aborted or rejected at any point in the method 800, then the source process may indicate in the message failure to migrate the process. The method 800 may end after block 814.
[0059] At block 822, the source process may be marked as not able to move load. At block 824, the method 800 may determine whether there are other candidate source processes. If the condition at block 824 is true, then the method 800 may return to block 802 to select another suitable source process. Otherwise, the method 800 may proceed to block 826. At block 826, the method 800 may move to hold on state, such as the Hold Down state 506. At block 828, the method 800 may determine whether a timer (for the hold on state) has expired. If the timer has expired, then the method 800 may return to block 802. Otherwise, the method 800 may return to block 826, e.g., to the hold on state. At bock 832, the method 800 may determine whether there are other candidate target processes. If the condition at block 832 is true, then the method 800 may return to block 808 to select another suitable target process. Otherwise, the method 800 may return to block 826.
[0060] FIG. 9 illustrates an embodiment of a transmitter/receiver unit 900, which may be any device that transports packets through a network. For instance, the transmitter/receiver unit 900 may be located in a network component, such as a router or a switch. The transmitted/receiver unit 900 may comprise one or more ingress ports or units 910 for receiving packets, objects, or Type-Length Values (TLVs) from other network components, logic circuitry 920 to determine which network components to send the packets to, and one or more egress ports or units 930 for transmitting frames to the other network components.
[0061] The network components and/or methods described above may be implemented on any general-purpose network component, such as a computer or network component with sufficient processing power, memory resources, and network throughput capability to handle the necessary workload placed upon it. FIG. 10 illustrates a typical, general-purpose network component 1000 suitable for implementing one or more embodiments of the components
disclosed herein. The network component 1000 includes a processor 1002 (which may be referred to as a central processor unit or CPU) that is in communication with memory devices including secondary storage 1004, read only memory (ROM) 1006, random access memory (RAM) 1008, input/output (I/O) devices 1010, and network connectivity devices 1012. The processor 1002 may be implemented as one or more CPU chips, or may be part of one or more application specific integrated circuits (ASICs).
[0062] The secondary storage 1004 is typically comprised of one or more disk drives or tape drives and is used for non-volatile storage of data and as an over-flow data storage device if RAM 1008 is not large enough to hold all working data. Secondary storage 1004 may be used to store programs that are loaded into RAM 1008 when such programs are selected for execution. The ROM 1006 is used to store instructions and perhaps data that are read during program execution. ROM 1006 is a no n- volatile memory device that typically has a small memory capacity relative to the larger memory capacity of secondary storage 1004. The RAM 1008 is used to store volatile data and perhaps to store instructions. Access to both ROM 1006 and RAM 1008 is typically faster than to secondary storage 1004.
[0063] At least one embodiment is disclosed and variations, combinations, and/or modifications of the embodiment(s) and/or features of the embodiment(s) made by a person having ordinary skill in the art are within the scope of the disclosure. Alternative embodiments that result from combining, integrating, and/or omitting features of the embodiment(s) are also within the scope of the disclosure. Where numerical ranges or limitations are expressly stated, such express ranges or limitations should be understood to include iterative ranges or limitations of like magnitude falling within the expressly stated ranges or limitations (e.g., from about 1 to about 10 includes, 2, 3, 4, etc.; greater than 0.10 includes 0.11, 0.12, 0.13, etc.). For example,
whenever a numerical range with a lower limit, Ri, and an upper limit, Ru, is disclosed, any number falling within the range is specifically disclosed. In particular, the following numbers within the range are specifically disclosed: R = Ri + k * (Ru - Ri), wherein k is a variable ranging from 1 percent to 100 percent with a 1 percent increment, i.e., k is 1 percent, 2 percent, 3 percent, 4 percent, 7 percent, 70 percent, 71 percent, 72 percent, 97 percent, 96 percent, 97 percent, 98 percent, 99 percent, or 100 percent. Moreover, any numerical range defined by two R numbers as defined in the above is also specifically disclosed. Use of the term "optionally" with respect to any element of a claim means that the element is required, or alternatively, the element is not required, both alternatives being within the scope of the claim. Use of broader terms such as comprises, includes, and having should be understood to provide support for narrower terms such as consisting of, consisting essentially of, and comprised substantially of. Accordingly, the scope of protection is not limited by the description set out above but is defined by the claims that follow, that scope including all equivalents of the subject matter of the claims. Each and every claim is incorporated as further disclosure into the specification and the claims are embodiment(s) of the present disclosure. The discussion of a reference in the disclosure is not an admission that it is prior art, especially any reference that has a publication date after the priority date of this application. The disclosure of all patents, patent applications, and publications cited in the disclosure are hereby incorporated by reference, to the extent that they provide exemplary, procedural, or other details supplementary to the disclosure.
[0064] While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods might be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the
details given herein. For example, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented.
[0065] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as coupled or directly coupled or communicating with each other may be indirectly coupled or communicating through some interface, device, or intermediate component whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein.
Claims
1. An apparatus comprising:
a processor configured to migrate load from a source process running on the processor to a target process running on a peer processor in a dynamic manner by monitoring an amount of resources used by the source process,
wherein the load is migrated when the amount of resources utilized by the source process exceeds a threshold.
2. The apparatus of claim 1, wherein the resources comprise at least one of memory usage by the source process and central processing unit (CPU) usage by the source process.
3. The apparatus of claim 1, wherein the processor and the peer processor are located on a single router or switch and configured to communicate with one another via an Internal Router Capability Protocol (IRCP), and wherein the IRCP is configured to allow the processor to detect a new peer processor, discover capabilities of the new peer processor, learn about at least one running service on the new peer processor, and migrate load to the new peer processor.
4. The apparatus of claim 3, wherein a process manager (PM) is configured to run on the processor, manage startup, monitor at least one other process on the processor, restart a failed process on the processor, and communicate using IRCP with a peer PM that runs on a peer processor.
5. The apparatus of claim 3, wherein an IRCP agent is configured to monitor at least one other process on the processor and select the source process from the processes if the amount of resources of the source processor exceeds a threshold.
6. The apparatus of claim 1, wherein the load migrated from the source process comprises from one of about one percent, about ten percent, and about 20 percent of a total load of the source process to prevent bouncing load between the source process and the target process.
7. The apparatus of claim 1, wherein the target process is configured substantially similar to the source process and comprises at least one attribute of having less load than the source process and using less resources than the source process.
8. The apparatus of claim 1, wherein the load is migrated in response to a user command- line interface (CLI).
9. A network component comprising:
a first processor configured to select a source process to migrate a load from the first processor based on available resources on the first processor and the source process; and
a second processor configured upon receiving a migration request from the first processor to one of select and start a target process to which to migrate the load based on available resources for the second processor and the target process.
10. The network component of claim 9, wherein the load is migrated without disrupting a service associated with the source process and the second process using process state synchronization between the source process and the target process.
11. The network component of claim 10, wherein the process state synchronization comprises locking process state data related to the source process, transferring a copy of the locked process state data to the target process, receiving external requests for the source process, forwarding and batching the external requests to the target process, unlocking process state data after transfer, and processing the batched external requests at the target process.
12. The network component of claim 9, wherein the source process is terminated after substantially migrating all the load of the source process to the target process.
13. The network component of claim 9, wherein the target process is started if the target process is not running on the second processor and if the second processor is capable of running the target process.
14. The network component of claim 9, wherein the load is migrated using an Interim Inter- Switch Signaling Protocol (ISSP).
15. The network component of claim 9, wherein the load is migrated by implementing a process migration state machine that comprises an Idle state to initiate load migration, a Select Local state for selecting the source process, a Select Remote state for selecting the target process, a Start Service for starting the target process, a Migrate state for migrating the load, and a Hold Down state for temporarily waiting for at least one of a suitable source process and a suitable target process.
16. A method comprising:
selecting a first source process from a plurality of local processes for migrating a load from;
sending a local request to the first source process;
receiving a local response from the first source process;
selecting a second source process if the local request is not accepted by the first source process;
sending a migration request to a first target process;
receiving a migration response from the first target process;
selecting a second target process if the migration request is rejected by the first target process; and
transferring the load from one of the first source process and the second source process to one of the first target process and the second target process.
17. The method of claim 16 further comprising moving to a hold down state to wait before selecting at least one of another source process and another target process if one of the local request is not accepted and the migration request is not accepted.
18. The method of claim 16 further comprising marking the first source process as unable to move load if the local request is not accepted by the first source process and excluding the first source process from a plurality of candidate source processes when selecting another source process.
19. The method of claim 16, wherein the migration request is sent in an Internal Router Capability Protocol (IRCP) migration request message that comprises a message type field, a plurality of flags field, a length field, a request serial number field, a host identity field, an all or part field, a memory or central processing unit (CPU) field, and a service name field.
20. The method of claim 16, wherein the migration response is sent in an Internal Router Capability Protocol (IRCP) migration response message that comprises a message type field, a plurality of flags field, a length field, a request serial number field, a host identity field, a response field, a protocol field, a contact information field, and a service name field.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US32106610P | 2010-04-05 | 2010-04-05 | |
US61/321,066 | 2010-04-05 | ||
US32461010P | 2010-04-15 | 2010-04-15 | |
US61/324,610 | 2010-04-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011127059A1 true WO2011127059A1 (en) | 2011-10-13 |
Family
ID=44763245
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2011/031261 WO2011127060A1 (en) | 2010-04-05 | 2011-04-05 | Method for dynamic on demand startup of a process or resource |
PCT/US2011/031258 WO2011127059A1 (en) | 2010-04-05 | 2011-04-05 | Method for dynamic migration of a process or services from one control plane processor to another |
PCT/US2011/031252 WO2011127055A1 (en) | 2010-04-05 | 2011-04-05 | Method for dynamic discovery of control plane resources and services |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2011/031261 WO2011127060A1 (en) | 2010-04-05 | 2011-04-05 | Method for dynamic on demand startup of a process or resource |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2011/031252 WO2011127055A1 (en) | 2010-04-05 | 2011-04-05 | Method for dynamic discovery of control plane resources and services |
Country Status (2)
Country | Link |
---|---|
US (3) | US9116749B2 (en) |
WO (3) | WO2011127060A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013064273A1 (en) * | 2011-10-31 | 2013-05-10 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Apparatus, method and computer program for migrating an event detector process |
CN109062677A (en) * | 2018-07-10 | 2018-12-21 | 中国人民解放军国防科技大学 | Unmanned aerial vehicle system calculation migration method |
CN110597631A (en) * | 2019-09-06 | 2019-12-20 | 广州华多网络科技有限公司 | Resource management method, monitoring server, proxy server, and storage medium |
CN112199188A (en) * | 2019-07-08 | 2021-01-08 | 富士通株式会社 | Non-transitory computer-readable recording medium, method and apparatus for information processing |
Families Citing this family (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7490325B2 (en) | 2004-03-13 | 2009-02-10 | Cluster Resources, Inc. | System and method for providing intelligent pre-staging of data in a compute environment |
US20070266388A1 (en) | 2004-06-18 | 2007-11-15 | Cluster Resources, Inc. | System and method for providing advanced reservations in a compute environment |
US8271980B2 (en) | 2004-11-08 | 2012-09-18 | Adaptive Computing Enterprises, Inc. | System and method of providing system jobs within a compute environment |
US9231886B2 (en) | 2005-03-16 | 2016-01-05 | Adaptive Computing Enterprises, Inc. | Simple integration of an on-demand compute environment |
EP1866767B1 (en) | 2005-03-16 | 2018-04-18 | III Holdings 12, LLC | Automatic workload transfer to an on-demand center |
CA2603577A1 (en) | 2005-04-07 | 2006-10-12 | Cluster Resources, Inc. | On-demand access to compute resources |
US11720290B2 (en) | 2009-10-30 | 2023-08-08 | Iii Holdings 2, Llc | Memcached server functionality in a cluster of data processing nodes |
US20110103557A1 (en) * | 2009-11-02 | 2011-05-05 | Alcatel-Lucent Usa Inc. | Overload detection on multi-CPU system |
WO2011127060A1 (en) | 2010-04-05 | 2011-10-13 | Huawei Technologies Co., Ltd. | Method for dynamic on demand startup of a process or resource |
US8866826B2 (en) * | 2011-02-10 | 2014-10-21 | Qualcomm Innovation Center, Inc. | Method and apparatus for dispatching graphics operations to multiple processing resources |
US8914513B2 (en) * | 2011-06-23 | 2014-12-16 | Cisco Technology, Inc. | Hierarchical defragmentation of resources in data centers |
US8850020B2 (en) * | 2011-07-29 | 2014-09-30 | Cisco Technology, Inc. | Resource aware parallel process distribution on multi-node network devices |
US8645969B2 (en) * | 2011-08-19 | 2014-02-04 | Qualcomm Incorporated | Method for dynamic discovery of processors and processor capabilities |
US8797874B2 (en) | 2011-09-09 | 2014-08-05 | Futurewei Technologies, Inc. | Apparatus and system for packet routing and forwarding in an interior network |
US9025601B2 (en) * | 2011-10-27 | 2015-05-05 | Futurewei Technologies, Inc. | Forwarding ASIC general egress multicast filter method |
US20130182605A1 (en) * | 2012-01-13 | 2013-07-18 | Verizon Patent And Licensing Inc. | Method and system for providing a mobile virtual router |
US9705704B2 (en) * | 2012-01-13 | 2017-07-11 | Verizon Patent And Licensing Inc. | Method and system of forming a mobile virtual network |
KR101974349B1 (en) | 2012-10-04 | 2019-05-02 | 삼성전자주식회사 | Light Emitting Module and Lighting Device using the same |
US9405579B2 (en) * | 2012-10-11 | 2016-08-02 | International Business Machines Corporation | Seamless extension of local computing power |
US11132277B2 (en) * | 2012-12-28 | 2021-09-28 | Iii Holdings 2, Llc | System and method for continuous low-overhead monitoring of distributed applications running on a cluster of data processing nodes |
US10218622B2 (en) * | 2013-05-13 | 2019-02-26 | Vmware, Inc. | Placing a network device into a maintenance mode in a virtualized computing environment |
US10402744B2 (en) | 2013-11-18 | 2019-09-03 | International Busniess Machines Corporation | Automatically self-learning bidirectional synchronization of a source system and a target system |
WO2015123853A1 (en) * | 2014-02-21 | 2015-08-27 | 华为技术有限公司 | Data flow processing method and apparatus |
US10419497B2 (en) * | 2015-03-31 | 2019-09-17 | Bose Corporation | Establishing communication between digital media servers and audio playback devices in audio systems |
US10101910B1 (en) | 2015-09-15 | 2018-10-16 | Amazon Technologies, Inc. | Adaptive maximum limit for out-of-memory-protected web browser processes on systems using a low memory manager |
US10248321B1 (en) | 2015-09-15 | 2019-04-02 | Amazon Technologies, Inc. | Simulating multiple lower importance levels by actively feeding processes to a low-memory manager |
US10289446B1 (en) * | 2015-09-15 | 2019-05-14 | Amazon Technologies, Inc. | Preserving web browser child processes by substituting a parent process with a stub process |
WO2017111833A1 (en) * | 2015-12-26 | 2017-06-29 | Intel Corporation | Reusable device management in machine-to-machine systems |
US20190095122A1 (en) * | 2017-09-28 | 2019-03-28 | Intel Corporation | Memory management system, computing system, and methods thereof |
US11455571B2 (en) | 2019-06-14 | 2022-09-27 | Bank Of America Corporation | Data structure tool |
US11579924B2 (en) * | 2020-02-12 | 2023-02-14 | EMC IP Holding Company LLC | Scheduling artificial intelligence model partitions based on reversed computation graph |
CN115437739A (en) * | 2021-06-02 | 2022-12-06 | 伊姆西Ip控股有限责任公司 | Resource management method of virtualization system, electronic device and computer program product |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7203944B1 (en) * | 2003-07-09 | 2007-04-10 | Veritas Operating Corporation | Migrating virtual machines among computer systems to balance load caused by virtual machines |
US20080046890A1 (en) * | 2006-08-17 | 2008-02-21 | Stanley Steven Dunlap | Method and apparatus for balancing workloads in a cluster |
US20080104608A1 (en) * | 2006-10-27 | 2008-05-01 | Hyser Chris D | Starting up at least one virtual machine in a physical machine by a load balancer |
Family Cites Families (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4412285A (en) * | 1981-04-01 | 1983-10-25 | Teradata Corporation | Multiprocessor intercommunication system and method |
US7558557B1 (en) * | 1991-11-12 | 2009-07-07 | Broadcom Corporation | Low-power messaging in a network supporting roaming terminals |
US5787250A (en) | 1996-04-30 | 1998-07-28 | International Business Machines Corporation | Program product for managing membership of a group of processors in a distributed computing environment |
US5774660A (en) | 1996-08-05 | 1998-06-30 | Resonate, Inc. | World-wide-web server with delayed resource-binding for resource-based load balancing on a distributed resource multi-node network |
US6335933B1 (en) * | 1999-05-21 | 2002-01-01 | Broadcom Homenetworking, Inc. | Limited automatic repeat request protocol for frame-based communication channels |
WO2001082678A2 (en) | 2000-05-02 | 2001-11-08 | Sun Microsystems, Inc. | Cluster membership monitor |
US20030026268A1 (en) * | 2000-11-28 | 2003-02-06 | Siemens Technology-To-Business Center, Llc | Characteristic routing |
US6407680B1 (en) * | 2000-12-22 | 2002-06-18 | Generic Media, Inc. | Distributed on-demand media transcoding system and method |
EP1298506A1 (en) * | 2001-09-27 | 2003-04-02 | Siemens Aktiengesellschaft | Dynamic access to automation resources |
US7136924B2 (en) | 2002-04-16 | 2006-11-14 | Dean Dauger | Method and system for parallel operation and control of legacy computer clusters |
US6959393B2 (en) * | 2002-04-30 | 2005-10-25 | Threat Guard, Inc. | System and method for secure message-oriented network communications |
KR100681625B1 (en) | 2002-05-17 | 2007-02-09 | 레노보(베이징)리미티드 | A method to realize dynamic networking and resource sharing among equipments |
US7403993B2 (en) * | 2002-07-24 | 2008-07-22 | Kasenna, Inc. | System and method for highly-scalable real-time and time-based data delivery using server clusters |
FR2844941B1 (en) * | 2002-09-24 | 2005-02-18 | At & T Corp | REQUEST FOR SECURE ACCESS TO THE RESOURCES OF AN INTRANET NETWORK |
US8204992B2 (en) | 2002-09-26 | 2012-06-19 | Oracle America, Inc. | Presence detection using distributed indexes in peer-to-peer networks |
US7353253B1 (en) * | 2002-10-07 | 2008-04-01 | Webex Communicatons, Inc. | Peer-to-peer messaging system |
WO2004111773A2 (en) | 2003-06-02 | 2004-12-23 | Infocus Corporation | Image display device and method of announcing a presence of an image display device over network |
US7421578B1 (en) | 2003-07-22 | 2008-09-02 | Cisco Technology, Inc. | Method and apparatus for electing a leader node in a computer network |
US20050259580A1 (en) * | 2004-04-26 | 2005-11-24 | Christopher Osterloh | Fixed network utility data collection system and method |
US7660873B2 (en) * | 2004-08-16 | 2010-02-09 | General Electric Company | Systems and methods for communicating messages |
CA2691762C (en) * | 2004-08-30 | 2012-04-03 | Qualcomm Incorporated | Method and apparatus for an adaptive de-jitter buffer |
US7630313B2 (en) * | 2004-09-30 | 2009-12-08 | Alcatel-Lucent Usa Inc. | Scheduled determination of network resource availability |
WO2007089217A2 (en) * | 2004-11-05 | 2007-08-09 | Kabushiki Kaisha Toshiba | Network discovery mechanisms |
US8280944B2 (en) * | 2005-10-20 | 2012-10-02 | The Trustees Of Columbia University In The City Of New York | Methods, media and systems for managing a distributed application running in a plurality of digital processing devices |
US7664125B1 (en) * | 2006-01-03 | 2010-02-16 | Emc Corporation | Indication forwarding in a distributed environment |
US8214516B2 (en) * | 2006-01-06 | 2012-07-03 | Google Inc. | Dynamic media serving infrastructure |
US7913529B2 (en) * | 2007-08-28 | 2011-03-29 | Cisco Technology, Inc. | Centralized TCP termination with multi-service chaining |
US20090063686A1 (en) * | 2007-08-30 | 2009-03-05 | Schmidt Brian K | Automated service discovery and dynamic connection management |
US20090304019A1 (en) * | 2008-03-03 | 2009-12-10 | Nokia Corporation | Method and device for reducing multicast traffice in a upnp network |
WO2011127060A1 (en) | 2010-04-05 | 2011-10-13 | Huawei Technologies Co., Ltd. | Method for dynamic on demand startup of a process or resource |
US8984257B2 (en) * | 2010-04-06 | 2015-03-17 | Hewlett-Packard Development Company, L.P. | Managing sensor and actuator data for a processor and service processor located on a common socket |
US8797874B2 (en) | 2011-09-09 | 2014-08-05 | Futurewei Technologies, Inc. | Apparatus and system for packet routing and forwarding in an interior network |
-
2011
- 2011-04-05 WO PCT/US2011/031261 patent/WO2011127060A1/en active Application Filing
- 2011-04-05 WO PCT/US2011/031258 patent/WO2011127059A1/en active Application Filing
- 2011-04-05 WO PCT/US2011/031252 patent/WO2011127055A1/en active Application Filing
- 2011-04-05 US US13/080,248 patent/US9116749B2/en active Active
- 2011-04-05 US US13/080,194 patent/US9158589B2/en active Active
- 2011-04-05 US US13/080,172 patent/US20120136944A1/en not_active Abandoned
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7203944B1 (en) * | 2003-07-09 | 2007-04-10 | Veritas Operating Corporation | Migrating virtual machines among computer systems to balance load caused by virtual machines |
US20080046890A1 (en) * | 2006-08-17 | 2008-02-21 | Stanley Steven Dunlap | Method and apparatus for balancing workloads in a cluster |
US20080104608A1 (en) * | 2006-10-27 | 2008-05-01 | Hyser Chris D | Starting up at least one virtual machine in a physical machine by a load balancer |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013064273A1 (en) * | 2011-10-31 | 2013-05-10 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Apparatus, method and computer program for migrating an event detector process |
WO2013064171A1 (en) * | 2011-10-31 | 2013-05-10 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Apparatus and method for transferring event detector processes |
JP2015501031A (en) * | 2011-10-31 | 2015-01-08 | フラウンホーファー−ゲゼルシャフト・ツール・フェルデルング・デル・アンゲヴァンテン・フォルシュング・アインゲトラーゲネル・フェライン | Apparatus and method for transferring an event detector process |
JP2015501493A (en) * | 2011-10-31 | 2015-01-15 | フラウンホーファー−ゲゼルシャフト・ツール・フェルデルング・デル・アンゲヴァンテン・フォルシュング・アインゲトラーゲネル・フェライン | Apparatus, method, and computer program for moving an event detector process |
AU2011380288B2 (en) * | 2011-10-31 | 2015-09-17 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Apparatus and method for transferring event detector processes |
US9537937B2 (en) | 2011-10-31 | 2017-01-03 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Apparatus, method and computer program for migrating an event detector process |
US9954932B2 (en) | 2011-10-31 | 2018-04-24 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Apparatus and method for transferring event detector processes |
CN109062677A (en) * | 2018-07-10 | 2018-12-21 | 中国人民解放军国防科技大学 | Unmanned aerial vehicle system calculation migration method |
CN109062677B (en) * | 2018-07-10 | 2020-07-31 | 中国人民解放军国防科技大学 | Unmanned aerial vehicle system calculation migration method |
CN112199188A (en) * | 2019-07-08 | 2021-01-08 | 富士通株式会社 | Non-transitory computer-readable recording medium, method and apparatus for information processing |
CN110597631A (en) * | 2019-09-06 | 2019-12-20 | 广州华多网络科技有限公司 | Resource management method, monitoring server, proxy server, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
US20120137012A1 (en) | 2012-05-31 |
WO2011127060A1 (en) | 2011-10-13 |
WO2011127055A1 (en) | 2011-10-13 |
US9116749B2 (en) | 2015-08-25 |
US20120136944A1 (en) | 2012-05-31 |
US20120209989A1 (en) | 2012-08-16 |
US9158589B2 (en) | 2015-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9158589B2 (en) | Method for dynamic migration of a process or services from one control plane processor to another | |
US11237858B2 (en) | Software-defined data center, and deployment method for service cluster therein | |
US10601728B2 (en) | Software-defined data center and service cluster scheduling and traffic monitoring method therefor | |
JP4680919B2 (en) | Redundant routing capabilities for network node clusters | |
US20110178985A1 (en) | Master monitoring mechanism for a geographical distributed database | |
US20060153068A1 (en) | Systems and methods providing high availability for distributed systems | |
CN112039769B (en) | Routing processing method and network equipment | |
CN109960634B (en) | Application program monitoring method, device and system | |
US8880932B2 (en) | System and method for signaling dynamic reconfiguration events in a middleware machine environment | |
CN110830324B (en) | Method and device for detecting network connectivity of data center and electronic equipment | |
WO2018103665A1 (en) | L2tp-based device management method, apparatus and system | |
WO2015158377A1 (en) | Event processing in a network management system | |
CN106411574B (en) | Management control method and device | |
US8161147B2 (en) | Method of organising servers | |
US20170141950A1 (en) | Rescheduling a service on a node | |
CN113821334A (en) | Method, device and system for configuring edge side equipment | |
EP4278580B1 (en) | Fabric availability and synchronization | |
US9015518B1 (en) | Method for hierarchical cluster voting in a cluster spreading more than one site | |
US12015521B2 (en) | Using an application programming interface (API) gateway to manage communications in a distributed system | |
WO2022044546A1 (en) | Communication system and method for recovering faults therein | |
CN117978649A (en) | Communication method and related equipment | |
CN116112335A (en) | Network equipment management method and device | |
JPH10190777A (en) | Restart generation packet transmission method and device | |
JP2016219898A (en) | Communication system and redundancy configuration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11718542 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11718542 Country of ref document: EP Kind code of ref document: A1 |