Patent ID: 9710312
Date: 2017-07-18
CPC Classifications: G06F,H04L

Claim:
1. A component-based task allocation method for an extensible router, the method comprising: S1: selecting components that need to be activated from a component library, generating a topology structure of the components that need to be activated, and measuring load of each component; S2: selecting a super master control and a backup super master control from master controls, allocating the components, generating a task allocation table and a task updating message by the super master control according to dynamic allocation algorithms; and S3: receiving the task updating message from the super master control by other master controls, and activating the components that need to be activated and registering to a component manager, wherein the step S2 comprises the following sub-steps: S21: selecting the super master control and the backup super master control using a node manager module; S22: the node manager module publishing an informing message after the super master control and the backup super master control are selected, the informing message comprising a node list; and S23, the super master control receiving the informing message from the node manager module, allocating tasks using a resource and component allocating manager, generating the task allocation table and constructing the task updating message, wherein the step S21 comprises the following sub-steps: S211: recording values of the super master control and the backup super master control; S212: calculating the backup super master control; S213: calculating the super master control; and S214: repeating the steps S212 and S213 if the master control that is activated for the calculation is the super master control or the backup super master control, or not the super master control any more, or not the backup super master control any more, and the step S23 comprises the following sub-steps: S231: the super master control checking the informing message sent from the node manager module to make sure if itself is the super master control, if no, printing an error message and exit; S232: activating and initializing the component manager, reading the topology structure of the components, and initializing a communication module; S233: allocating the components in the topology structure and generating the task allocation table according to dynamic allocation algorithms; and S234: constructing the task updating message and sending the task allocation table to the master controls.