Method for managing main and standby main control boards and routing equipment
Through CPLD, the backup main control board is identified and controlled to enter a sleep state, which solves the high power consumption problem caused by the running of the main control board at the same time, and realizes energy savings and rapid business recovery of routing equipment.
Patent Information
- Application Number
- CN202510706838.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2025-08-22
AI Technical Summary
In the prior art, the running of the main control board simultaneously results in excessive power consumption of the entire routing equipment. Although the backup main control board is in a redundant state most of the time and does not process services, it still consumes energy.
The status of the main and backup main control board is identified through CPLD, and when it is identified as a backup main control board, it will be controlled to enter a sleep state, and periodically wake up and synchronize data, realizing the main and backup switching to reduce energy consumption.
It effectively reduces the energy consumption of routing equipment, especially in the backup main control board state, saving more than 100W of power consumption, while ensuring fast recovery of service switching and data consistency.
Smart Images

Figure CN120528720A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of communication technology, and in particular to a method for managing active and standby main control boards and a routing device. Background Art
[0002] Frame-type routing and switching equipment is generally more complex, such as Figure 1 The routing device architecture shown in FIG. 1 comprises two main control slots (Slot 0 and Slot 1) and 16 service daughter card slots (Slots 2 to 17). The 16 daughter card slots transmit uplink traffic to the main control via a high-speed Ethernet bus, and the main control forwards the daughter card service traffic.
[0003] The main function of the entire system is provided by the 16 upper and lower daughter card slots for outbound ports, while the middle slots 0&1 are responsible for port forwarding. The two main controllers 0&1 provide redundant backup for each other. Only one main controller in 0&1 is responsible for system forwarding at a time. In the event of a failure of the active main controller, the other controller can quickly fail over, ensuring that the entire system's service forwarding function is not affected.
[0004] Currently, since the main control board is the core control and forwarding unit of the entire chassis, the simultaneous operation of the active and standby main control boards will greatly increase the power consumption of the entire machine. Although in actual applications, one of the main control boards is in a redundant backup state most of the time and is not actually processing business, the board is also operating normally, which greatly wastes the power consumption of the entire machine. Summary of the Invention
[0005] To overcome the problems existing in the related art, this specification provides a method for managing active and standby main control boards and a routing device.
[0006] According to a first aspect of an embodiment of this specification, a method for managing a master and a slave main control board is provided, the method comprising:
[0007] The first CPLD obtains status information of the first main control board, wherein the status information includes status information for determining the active and standby main control boards;
[0008] When the first main control board is identified as a standby main control board according to the state information, the first main control board is controlled to enter a sleep state.
[0009] The status information includes: the presence information of the first main control board, the slot information of the first main control board, and the presence information of the second main control board, the slot information of the second main control board;
[0010] The second main control board is the opposite main control board of the first main control board.
[0011] The method for identifying the first main control board as the standby main control board according to the status information includes:
[0012] Determine whether the first main control board and the second main control board are in place according to the in-place information in the status information;
[0013] Identify the slot numbers of the first main control board and the second main control board according to the slot information in the status information;
[0014] Identify the operating status of the first main control board and the second main control board according to the operating information in the status information;
[0015] Identify whether the first main control board is a standby main control board based on the above information.
[0016] After controlling the first main control board to enter the sleep state, the method further includes:
[0017] The first main control board is woken up periodically to synchronize data with the second main control board at the opposite end, and after the data synchronization is completed, the first main control board is controlled to enter a sleep state.
[0018] After controlling the first main control board to enter the sleep state, the method further includes:
[0019] When the first CPLD identifies that the second main control board at the opposite end has changed from the active main control board to the standby main control board, the first main control board is awakened, and the first active main control board becomes the active main control board.
[0020] It can be seen from the above embodiments that the active and standby status of the main control board can be judged by CPLD, and when the corresponding main control board is identified as the standby main control board, the standby main control board can be controlled to enter the sleep state, thereby greatly reducing the energy consumption of the routing device.
[0021] According to a second aspect of an embodiment of this specification, a routing device is provided, the routing device comprising: a first main control board, the first main control board comprising:
[0022] A first CPLD is used to obtain status information of the first main control board, wherein the status information includes status information for determining the active and standby main control boards;
[0023] The first CPLD is further configured to control the first main control board to enter a sleep state when the first main control board is identified as a standby main control board according to the state information.
[0024] The routing device further includes: a second main control board, and the status information includes: presence information of the first main control board, slot information of the first main control board, and presence information of the second main control board, slot information of the second main control board;
[0025] The second main control board is the opposite main control board of the first main control board.
[0026] The first CPLD is specifically configured to determine whether the first main control board and the second main control board are in place according to the in-place information in the status information, identify the slot numbers of the first main control board and the second main control board according to the slot information in the status information, and identify the operating status of the first main control board and the second main control board according to the operating information in the status information;
[0027] Identify whether the first main control board is a standby main control board based on the above information.
[0028] The first CPLD is further configured to periodically wake up the first main control board after controlling the first main control board to enter a sleep state, so that the first main control board synchronizes data with the second main control board at the opposite end, and control the first main control board to enter a sleep state after the data synchronization is completed.
[0029] The first CPLD is further configured to wake up the first main control board and make the first main control board the main control board when the first CPLD identifies that the second main control board at the opposite end changes from the main control board to the backup main control board.
[0030] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0032] Figure 1 This is a schematic diagram of a slot panel of a routing device according to an exemplary embodiment of this specification.
[0033] Figure 2 This is a flowchart of a method for managing active and standby main control boards according to an exemplary embodiment of this specification. DETAILED DESCRIPTION
[0034] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with this specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of this specification, as detailed in the appended claims.
[0035] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. As used in this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0036] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information without departing from the scope of this specification. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to determining."
[0037] As the core device of network communication, the reliability of the router directly affects the stability of the network. The main / backup control board (Main / Backup Control Board) is the core component of the router to achieve high availability (HA). The redundancy design ensures that the service is not interrupted in the event of hardware or software failure.
[0038] Currently, the active main control board is mainly used to handle all data forwarding, protocol interaction and system management tasks, while the standby main control board synchronizes the main control board status (such as routing table, configuration, session information) in real time, is in a "hot backup" state, and is ready to take over at any time.
[0039] However, since the main control board is the core control and forwarding unit of the entire chassis, as the performance of the entire machine increases, the power consumption of a single main control board also increases. For example, some main control boards can consume up to 350W of power. When the active and standby main control boards are running at the same time, the power consumption of the entire machine will increase significantly.
[0040] In order to solve the above technical problems, the present disclosure provides a method for managing the main and standby main control boards, such as Figure 2 As shown, the method includes:
[0041] S201: A first CPLD obtains status information of a first main control board, where the status information includes status information for determining the active and standby main control boards.
[0042] S202: When the first main control board is identified as a standby main control board according to the state information, control the first main control board to enter a sleep state.
[0043] The technical solution provided by this embodiment can use the CPLD low-power chip (2W) to realize the power on and off control of the CPU main chip. The CPLD can control the CPU to enter sleep, normal operation, and power off.
[0044] In this embodiment, when a main control board (active or standby) is inserted into a slot of a routing device, the main control board can identify whether it is the active main control board or the standby main control board using the following logic:
[0045] assignMAS_CTRL_EN=AB_PRN_N? 1'b0:((AB_ACT_P|BA_ACT_P)?
[0046] AB_ACT_P:(~MPU_SLOT|BA_PRN_N));
[0047] Among them, MAS_CTRL_EN means the board outputs the master indication signal, 1 indicates the master, 0 indicates the backup;
[0048] AB_PRN_N means the board is in place signal. When it is 0, it means the board is in place, and 1 means the board is not in place.
[0049] BA_PRN_N means the board is in place signal, 0 means the board is in place, 1 means the board is not in place;
[0050] AB_ACT_P means the board is in active use. 1 indicates the board is in active use, and 0 indicates the board is in standby use and is used internally by the CPLD.
[0051] BA_ACT_P means the main board is used, 1 means the main board is used, 0 means the backup board is used internally by the CPLD;
[0052] MPU_SLOT indicates the slot ID. Slot 0 has an ID of 0, and slot 1 has an ID of 1.
[0053] The corresponding logical functions are:
[0054] ① Forced standby when this board is not in place: When AB_PRN_N=1, the standby state is directly output.
[0055] ②Master status priority: If the current board or the peer board has been configured as the master (AB_ACT_P or BA_ACT_P = 1), then:
[0056] When this board is in active use (AB_ACT_P=1), this board is active.
[0057] When the board is in active use (BA_ACT_P=1 and AB_ACT_P=0), this board is in standby use.
[0058] ③Default master decision: When there is no master configuration (AB_ACT_P=0 and BA_ACT_P=0):
[0059] Slot 0 priority: If the current board is in slot 0 (MPU_SLOT=0), this board is used as the master board.
[0060] Take over when the partner board is not in place: If the partner board is not in place (BA_PRN_N=1), this board takes over as the master regardless of its slot position.
[0061] Standby when slot 1 and the paired board is in place: This board becomes a standby board only when slot 1 is in place and the paired board is in place.
[0062] Through the above method, the CPLD in the main control board can identify whether the main control board is the master main control board or the backup main control board.
[0063] In this embodiment, the CPU includes an ACTIVE normal working state, a SLEEP system dormant state, and an OFF system shutdown state; the CPU power-on control is implemented by a CPLD, which can put the backup master CPU into the SLEEP dormant state to reduce power consumption.
[0064] Specifically, in step S201, the first CPLD obtains status information of the first main control board, which may include: presence information and slot information of the first main control board, and presence information and slot information of the second main control board.
[0065] For example, if the first CPLD obtains that both the first main control board and the second main control board are in place and the first main control board is in slot 0, it can be determined that the first main control board is the active main control board. For another example, if the first CPLD obtains that both the first main control board and the second main control board are in place and the first main control board is in slot 1, it can be determined that the first main control board is the standby main control board.
[0066] In other embodiments, the status information may also include the operating status of the main control board. For example, if the first main control board and the second main control board are both in place, and the first main control board is in slot 0, but the operating status of the first main control board is not good, it can be determined that the second main control board is the main main control board.
[0067] In this embodiment, when the first CPLD determines that the first main control board is a standby main control board based on the status information of the first main control board, the first CPLD can control the first main control board to enter a sleep state, thereby effectively reducing the energy consumption of the first main control board. (It should be noted that the first and second CPLDs in this embodiment are only used for distinction; in actual applications, the roles of the first and second CPLDs can be interchanged.)
[0068] In this embodiment, when the first main control board to which the first CPLD belongs is the active main control board, the first CPLD monitors the heartbeat signal regularly sent by the CPU controller of the first main control board. For example, under normal circumstances, the first CPLD can monitor the heartbeat signal sent by the CPU every second. If no heartbeat signal is received within a timeout, it can be considered that the CPU of the first main control board has failed. In this case, the first CPLD can notify the second CPLD. After receiving the notification, the second CPLD can control the second main control board to change from a standby main control board to a primary main control board.
[0069] For another example, the second main control board to which the second CPLD belongs is the active main control board. When the second CPLD monitors that the second main control board has a fault, it notifies the first CPLD. When the first CPLD identifies that the second main control board on the other end has changed from the active main control board to the standby main control board, it wakes up the first main control board and the first active main control board becomes the active main control board.
[0070] As can be seen from the above embodiment, upon detecting a failure in the active main control board, the CPLD in the standby main control board can wake the standby main control board from its sleep state, thereby switching the standby main control board to become the new active main control board, thus achieving active / standby switchover. Simultaneously, the CPLD in the original active main control board controls the original active main control board to enter a sleep state, thereby reducing resource consumption.
[0071] In this embodiment, the CPLD in the standby main control board can periodically wake up the CPU of the standby main control board so that the standby main control board can synchronize information with the main main control board. For example, the first CPLD controls the first main control board (standby main control board) to wake up at a predetermined interval (every 20 minutes), and synchronizes key data with the main main control board through the inter-board high-speed channel, including routing tables and other operating status information, to ensure information consistency during takeover. When the first main control board enters the sleep state, the memory data is retained, so that the CPU can quickly read the routing table and other operating status information from the memory after powering on again, and quickly resume operation. The synchronization interval can be adjusted according to the actual application scenario requirements. After the first main control board completes information synchronization with the second main control board (main main control board), the first CPLD in the first main control board controls the first main control board to enter the sleep state.
[0072] By applying the above embodiments, assuming that the TDP thermal design power consumption of the active main control board CPU is 130W when in ACTIVE state, the power consumption data of the standby main control board in SLEEP state is within 20W, saving more than 100W of power consumption, effectively reducing energy consumption.
[0073] Based on the above embodiments, the present disclosure provides a routing device, the routing device including: a first main control board, the first main control board including:
[0074] A first CPLD is used to obtain status information of the first main control board, wherein the status information includes status information for determining the active and standby main control boards;
[0075] The first CPLD is further configured to control the first main control board to enter a sleep state when the first main control board is identified as a standby main control board according to the state information.
[0076] The routing device further includes: a second main control board, and the status information includes: presence information of the first main control board, slot information of the first main control board, and presence information of the second main control board, slot information of the second main control board;
[0077] The second main control board is the opposite main control board of the first main control board.
[0078] The first CPLD is specifically configured to determine whether the first main control board and the second main control board are in place according to the in-place information in the status information, identify the slot numbers of the first main control board and the second main control board according to the slot information in the status information, and identify the operating status of the first main control board and the second main control board according to the operating information in the status information;
[0079] Identify whether the first main control board is a standby main control board based on the above information.
[0080] The first CPLD is further configured to periodically wake up the first main control board after controlling the first main control board to enter a sleep state, so that the first main control board synchronizes data with the second main control board at the opposite end, and control the first main control board to enter a sleep state after the data synchronization is completed.
[0081] The first CPLD is further configured to wake up the first main control board and make the first main control board the main control board when the first CPLD identifies that the second main control board at the opposite end changes from the main control board to the backup main control board.
[0082] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0083] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0084] Other embodiments of the present invention will readily occur to those skilled in the art after considering the present invention and practicing the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this specification and include common knowledge or customary techniques in the art that are not claimed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present invention being indicated by the following claims.
[0085] It should be understood that the present description is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
[0086] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for managing a master and standby main control board, characterized in that: The method comprises: The first CPLD obtains status information of the first main control board, wherein the status information includes status information for determining the active and standby main control boards; When the first main control board is identified as a standby main control board according to the state information, the first main control board is controlled to enter a sleep state.
2. The method according to claim 1, characterized in that The status information includes: the presence information of the first main control board, the slot information of the first main control board, and the presence information of the second main control board, the slot information of the second main control board; The second main control board is the opposite main control board of the first main control board.
3. The method according to claim 1, characterized in that The method for identifying the first main control board as the standby main control board according to the status information includes: Determine whether the first main control board and the second main control board are in place according to the in-place information in the status information; Identify the slot numbers of the first main control board and the second main control board according to the slot information in the status information; Identify the operating status of the first main control board and the second main control board according to the operating information in the status information; Identify whether the first main control board is a standby main control board based on the above information.
4. The method according to claim 1, wherein After controlling the first main control board to enter the sleep state, the method further includes: The first main control board is woken up periodically to synchronize data with the second main control board at the opposite end, and after the data synchronization is completed, the first main control board is controlled to enter a sleep state.
5. The method according to claim 1, wherein After controlling the first main control board to enter the sleep state, the method further includes: When the first CPLD identifies that the second main control board at the opposite end has changed from the active main control board to the standby main control board, the first main control board is awakened, and the first active main control board becomes the active main control board.
6. A routing device, characterized in that: The routing device includes: a first main control board, the first main control board including: A first CPLD is used to obtain status information of the first main control board, wherein the status information includes status information for determining the active and standby main control boards; The first CPLD is further configured to control the first main control board to enter a sleep state when the first main control board is identified as a standby main control board according to the state information.
7. The routing device according to claim 6, wherein: The routing device further includes: a second main control board, and the status information includes: in-position information of the first main control board, slot information of the first main control board, and in-position information of the second main control board, slot information of the second main control board; The second main control board is the opposite main control board of the first main control board.
8. The routing device according to claim 6, wherein: The first CPLD is specifically used to determine whether the first main control board and the second main control board are in place according to the in-place information in the status information, identify the slot numbers of the first main control board and the second main control board according to the slot information in the status information, and identify the operating status of the first main control board and the second main control board according to the operating information in the status information; Identify whether the first main control board is a standby main control board based on the above information.
9. The routing device according to claim 6, wherein: The first CPLD is further used to periodically wake up the first main control board after controlling the first main control board to enter a sleep state, so that the first main control board synchronizes data with the second main control board at the opposite end, and after the data synchronization is completed, control the first main control board to enter a sleep state.
10. The routing device according to claim 6, wherein: The first CPLD is further configured to wake up the first main control board and make the first main control board the main control board when the first CPLD identifies that the second main control board at the opposite end changes from the main control board to the standby main control board.