Single board power-on method, main control board and readable storage medium
By receiving and judging the board information in the board power-on request, the main control board determines the compatibility of the board with it, achieving compatibility between boards with different forwarding capabilities, ensuring the normal operation of the chassis, and solving compatibility issues. Improved customization options.
Patent Information
- Application Number
- CN202010607864.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-06-29
AI Technical Summary
When old and new boards with different forwarding capabilities are used in the same chassis, some peripheral boards are incompatible with the main control board, affecting the normal operation of the chassis.
By receiving the power-on request sent by the board and carrying the board information, the main control board determines whether the board is compatible with it. If it is compatible, it powers on. This power-on mechanism is used to ensure the normal operation of the chassis.
When new and old boards with different forwarding capabilities are used in the same frame, it ensures the normal operation of the frame, improves the degree of customization, provides users with more customized choices, and adapts to the diversity of market demands.
Smart Images

Figure CN113938331B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a single-board power-on method, a main control board and a readable storage medium. Background Art
[0002] As the market demand for forwarding capabilities increases, the forwarding capabilities of switching boards are also constantly improving. The forwarding system is centered on the main control board, which can control the peripheral boards in the same frame. Currently, in the same frame environment, the inserted boards are usually boards with the same forwarding capabilities. As the market demand for forwarding capabilities increases, the forwarding capabilities of boards are also constantly improving. In the future, there may be a phenomenon that new and old boards with different forwarding capabilities are used in the same frame, which may cause some peripheral boards to be incompatible with the main control board, affecting the normal operation of the frame. Summary of the invention
[0003] The main purpose of the embodiments of the present invention is to provide a single board power-on method, a main control board and a readable storage medium, so that when new and old single boards with different forwarding capabilities are used in the same frame, the normal operation of the frame will not be affected.
[0004] To achieve the above-mentioned purpose, an embodiment of the present invention provides a single board power-on method, comprising: receiving a power-on request sent by a single board; wherein the power-on request carries the single board information of the single board; determining whether the single board is compatible with the main control board based on the single board information; if the single board is compatible with the main control board, powering on the single board.
[0005] To achieve the above-mentioned purpose, an embodiment of the present invention also provides a main control board, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor can execute the above-mentioned single-board power-on method.
[0006] To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above single-board power-on method when executed by a processor.
[0007] Compared with the prior art, the embodiment of the present invention can determine whether a single board is compatible with the main control board according to the single board information by receiving a power-on request carrying single board information sent by a single board, that is, the main control board can distinguish single boards that are compatible with the main control board and single boards that are incompatible with the main control board according to the single board information carried in the power-on requests reported by different single boards. Thus, the main control board can power on single boards that are compatible with the main control board. With this power-on mechanism, when new and old single boards with different forwarding capabilities are used in the same frame, the normal operation of the frame will not be affected. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a flow chart of the single board power-on method mentioned in the first embodiment of the present invention;
[0009] Figure 2 is a flow chart of the single board power-on method mentioned in the second embodiment of the present invention;
[0010] Figure 3 It is a schematic diagram of the interaction process of powering on a single board mentioned in the second embodiment of the present invention;
[0011] Figure 4 is a schematic diagram of the process of individual power-on decision-making mentioned in the second embodiment of the present invention;
[0012] Figure 5 is a flow chart for further making a system power-on decision mentioned in the third embodiment of the present invention;
[0013] Figure 6 It is a schematic diagram of the interaction process of powering on a single board mentioned in the third embodiment of the present invention;
[0014] Figure 7 is a schematic diagram of the system power-on decision mentioned in the third embodiment of the present invention;
[0015] Figure 8 It is a structural diagram of the main control board mentioned in the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0016] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0017] The first embodiment of the present invention relates to a single board power-on method, which is applied to a main control board. The main control board can control other peripheral single boards in the same machine frame environment as the main control board. This embodiment mainly involves the main control board powering on or off other peripheral single boards. For the convenience of explanation, the peripheral single board is referred to as a single board in this embodiment and the following embodiments. The implementation details of this embodiment are described below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.
[0018] The flowchart of the single board power-on method in this embodiment can be referred to Figure 1 ,include:
[0019] Step 101: Receive a power-on request sent by a board.
[0020] The power-on request carries the board information of the board.
[0021] In an example, the dimensions of the board information include at least one of the following: forwarding capacity, central processing unit chip type, forwarding chip type, network processing chip type, number of ports, port type, board type, and board name.
[0022] In an example, the main control board and all boards in the same chassis environment can be understood as a forwarding system. When the forwarding system is powered on, the main control board can be powered on directly, and other boards can report power-on requests carrying board information to the main control board and wait for responses, so that the main control board can receive power-on requests sent by all boards in the forwarding system and obtain board information of all boards according to the power-on requests.
[0023] Step 102: Determine whether the single board is compatible with the main control board according to the single board information; if so, execute step 103, otherwise the process ends.
[0024] In one example, the main control board may store the compatibility information of the main control board, and the compatibility information is used to characterize the characteristic information of the single board supported by the main control board. For example, the compatibility information of the main control board includes: the forwarding capacity is less than 2G, and the type of the forwarding chip is 2nd generation and 3rd generation, that is, the main control board is compatible with the single board with a forwarding capacity less than 2G, and the main control board is compatible with the single board with the type of the forwarding chip being 2nd generation and 3rd generation. If the single board information of single board A indicates that the forwarding capacity of single board A is 1G, it can be considered that single board A is compatible with the main control board, if the single board information of single board B indicates that the type of the forwarding chip of single board B is 2nd generation, it can be considered that single board B is compatible with the main control board, and if the single board information of single board C indicates that the forwarding capacity of single board C is 3G, it can be considered that single board C is incompatible with the main control board. In other words, the single board information and the compatibility information of the main control board can be matched, and if the match is successful, it can be determined that the single board is compatible with the main control board, and if the match fails, it can be determined that the single board is incompatible with the main control board.
[0025] In one example, the method for determining whether a single board is compatible with a main control board can be as follows: the main control board determines whether the single board meets a preset customized condition based on the single board information of the single board; wherein the customized condition is a customizable compatible condition set based on the compatible information of the main control board; if the single board meets the customized condition, it is determined that the single board is compatible with the main control board. It can be understood that the customized condition is a condition that can be customized according to actual needs, and different users can customize different customized conditions according to their needs. The customized condition can be set based on the compatible information of the main control board. For example, the compatible information of the main control board includes: if the forwarding capacity is less than 2G, then the customized condition can be set to be less than 1.5G according to actual needs, or the customized condition can also be set to be less than 1G. For another example, the compatible information of the main control board includes: the single board type is: type a, type b, type c, that is, the main control board is compatible with single boards of type a, type b or type c. According to actual needs, the customized condition can be set as: the board type is type a, then if the board type of board 1 is determined to be type a according to the board information of board 1, it can be considered that board 1 meets the customized condition. The design of customized conditions is conducive to meeting different customized power-on requirements.
[0026] In one example, the customized condition includes multiple customized sub-conditions; the method of determining whether the single board is compatible with the main control board can be as follows: determine whether the single board meets at least one of the multiple customized sub-conditions based on the single board information of the single board; if the single board meets at least one of the multiple customized sub-conditions, determine that the single board is compatible with the main control board. For example, customized sub-condition 1 can be the above-mentioned forwarding capacity less than 1G, customized sub-condition 2 can be the above-mentioned single board type a, and similarly, more customized sub-conditions can be set according to actual needs and the compatibility information of the main control board to meet the needs of different scenarios. In a specific implementation, if the single board meets any one of the multiple customized sub-conditions, it can be determined that the single board is compatible with the main control board.
[0027] In one example, determining whether a single board satisfies at least one of a plurality of customized sub-conditions according to the single board information of the single board may include: the main control board sequentially traverses a plurality of customized sub-conditions according to a preset traversal order, and determines whether the traversed customized sub-condition is in an activated state; if the traversed customized sub-condition is in an activated state, determining whether the single board satisfies the traversed customized sub-condition according to the single board information of the single board, and if the single board satisfies the traversed customized sub-condition, determining that the single board satisfies at least one of the plurality of customized sub-conditions. In a specific implementation, if it is determined that the single board satisfies at least one of the plurality of customized sub-conditions, traversing the remaining customized sub-conditions may be stopped, and the single board may be determined as a single board compatible with the main control board. If the traversed customized sub-condition is in an inactive state, traversing the next customized sub-condition may continue, and if all customized sub-conditions are traversed and it is determined that the single board does not satisfy all customized sub-conditions, it may be determined that the single board does not satisfy the customized condition.
[0028] Among them, the preset traversal order can be set according to actual needs, and this embodiment does not make specific restrictions on this. In a specific implementation, the customized condition can be in an unactivated state by default, and a part of the customized sub-conditions in the customized condition can be selectively activated according to actual needs. For example, the customized sub-condition that needs to be activated can be activated through a preset activation command. However, this embodiment does not limit how to activate it specifically, and those skilled in the art can set it according to actual needs. Only when the customized sub-condition is in an activated state can it be determined whether the single board meets the customized sub-condition, which facilitates the activation of the corresponding customized sub-condition according to actual needs, so as to power on the single board that meets the activated customized sub-condition, which is conducive to meeting personalized customization needs.
[0029] Step 103: Power on the board.
[0030] That is, when the main control board determines that the board requested to be powered on is a board compatible with the main control board, the board can be powered on. For example, the main control board can send a response message indicating that power-on is allowed to the board, and the board completes the power-on after receiving the response message indicating that power-on is allowed.
[0031] In a specific implementation, if the main control board determines that the board requested to be powered on does not meet the customized condition, it can refuse to power on the board. The main control board can send a response message indicating the power-on refusal to the board, and the board will not power on after receiving the response message indicating the power-on refusal.
[0032] In one example, if a new board is inserted into the frame during subsequent use, it is possible to determine whether the newly inserted board is compatible with the main control board in the above manner, and after determining that the newly inserted board is compatible with the main control board, power on the newly inserted board.
[0033] It should be noted that the above examples in this embodiment are only provided for the convenience of understanding and do not constitute a limitation on the technical solution of the present invention.
[0034] Compared with the prior art, this implementation can determine whether the single board is compatible with the main control board based on the single board information by receiving a power-on request carrying single board information sent by the single board, that is, the main control board can distinguish between single boards that are compatible with the main control board and single boards that are incompatible with the main control board based on the single board information carried in the power-on requests reported by different single boards. Thus, the main control board can power on single boards that are compatible with the main control board. This power-on mechanism ensures that the normal operation of the frame will not be affected when multiple new and old single boards with different forwarding capabilities are used in the same frame. Moreover, power-on can be performed when at least one of the multiple customized sub-conditions is met, which is conducive to improving the degree of customization, providing users with more customized options, and adapting to the diversity of market demands.
[0035] The second embodiment of the present invention relates to a method for powering on a single board. The implementation details of this embodiment are described below. The following content is only provided for the convenience of understanding and is not necessary for implementing this solution.
[0036] The flowchart of the single board power-on method in this embodiment can be referred to Figure 2 ,include:
[0037] Step 201: Receive a power-on request sent by a board.
[0038] Among them, step 201 is substantially the same as step 101 in the first embodiment, and will not be described again here to avoid repetition.
[0039] Step 202: Determine whether the single board meets the preset customized condition according to the single board information; if yes, execute step 203; otherwise, execute step 204.
[0040] Among them, step 202 has been described in the first embodiment, and the relevant description in the first embodiment can be referred to, and will not be repeated here to avoid repetition. The difference between step 202 and the relevant description in the first embodiment is that if it is determined in step 202 that the single board does not meet the preset customized condition, then step 204 is entered to determine whether the single board meets the preset universal condition, while in the first embodiment, if it is determined that the single board does not meet the preset customized condition, the single board may be refused to be powered on.
[0041] Step 203: Power on the board.
[0042] Among them, step 203 is substantially the same as step 103 in the first embodiment, and will not be described again here to avoid repetition.
[0043] Step 204: Determine whether the board meets the preset general condition based on the board information; if yes, execute step 203, otherwise the process ends.
[0044] Among them, the universal condition is a universal compatibility condition set based on the compatibility information of the main control board. It can be understood that the universal condition is a condition that cannot be customized according to actual needs, and the universal condition can be set based on the compatibility information of the main control board. For example, the compatibility information of the main control board includes: the central processing unit chip type is type c, that is, for the main control board, it is only compatible with the single board with the central processing unit chip type of type c, then the universal condition can be set to: the central processing unit chip type is type c, indicating that the central processing unit chip type cannot be customized. Then if it is determined that the central processing unit chip type of single board 2 is type c based on the single board information of single board 2, it can be considered that single board 2 meets the universal condition. If the single board meets the universal condition, it can be determined that the single board is compatible with the main control board. If the single board does not meet the universal condition, it can be determined that the single board is incompatible with the main control board.
[0045] In one example, the universal condition includes multiple universal sub-conditions; if the single board satisfies multiple universal sub-conditions at the same time, it can be determined that the single board is compatible with the main control board. For example, the main control board can traverse multiple universal sub-conditions in sequence according to a preset traversal order, and determine whether the single board satisfies the traversed universal sub-conditions according to the single board information of the single board. If the single board satisfies the traversed universal sub-conditions, continue to traverse the next universal sub-condition, and continue to determine whether the single board satisfies the traversed universal sub-conditions. If the single board does not meet the traversed universal sub-conditions, it can be determined that the single board is incompatible with the main control board, stop traversal, and refuse to power on the single board. If all universal sub-conditions are traversed and it is determined that the single board meets all universal sub-conditions, it can be determined that the single board meets the preset universal conditions, and the single board is regarded as a single board compatible with the main control board, and then enter step 203.
[0046] In a specific implementation, the general condition may be in an activated state by default, that is, the difference between the general condition and the customized condition is that the customized condition can be activated by a command and is in an inactivated state by default, while the general condition is in an activated state by default.
[0047] Optionally, if the main control board determines that the board requested to be powered on does not meet the general condition, the board may not be powered on. For example, the main control board may send a response message indicating power-on refusal to the board, and the board does not power on after receiving the response message indicating power-on refusal.
[0048] To facilitate understanding of this embodiment, Figure 3 Taking this as an example, the interactive process of powering on a single board in this embodiment is described:
[0049] (1) The board sends a power-on request carrying board information to the main control board.
[0050] in, Figure 3 The single board can represent all the single boards in the same chassis environment as the main control board. After sending a power-on request to the main control board, the single board can wait for a response. The single board information includes but is not limited to forwarding capacity, central processing unit chip type, forwarding chip type, network processing chip type, port number, port type, single board type, single board name, etc.
[0051] (2) The main control board makes individual power-on decisions for the boards.
[0052] Specifically, the main control board can make individual power-on decisions for each single board that requests power-on one by one based on the single board information above, and any one of the single board information above or any combination thereof can be used as the basis for the power-on decision. Among them, making individual power-on decisions for single boards can be understood as determining whether the single board is compatible with the main control board based on the single board information of the single board. If it is determined that the single board is compatible with the main control board, the decision result of making individual power-on decisions for the single board is: power-on is allowed; if it is determined that the single board is incompatible with the main control board, the decision result of making individual power-on decisions for the single board is: power-on is refused.
[0053] In an example, an individual power-on decision can be made in series using a customized decision (whether the customized conditions are met) and a general decision (whether the general conditions are met). First, a customized decision is made. If the board meets the customized conditions, the decision result can be directly obtained to allow the board to be powered on; if the board does not meet the customized conditions, the general decision is entered to determine whether the board meets the general conditions. If the board meets the general conditions, the decision result is to allow the board to be powered on; if the board does not meet the general conditions, the decision result is to refuse to power on the board.
[0054] In one example, a customized condition includes multiple customized sub-conditions, assuming n, and a general condition includes multiple general sub-conditions, assuming m. The process of individual power-on decision can be referred to Figure 4 ,include:
[0055] First, enter the customized decision to determine whether customized sub-condition 1 is in an activated state. If customized sub-condition 1 is in an inactive state, determine whether customized sub-condition 2 is in an activated state; if customized sub-condition 1 is in an activated state, determine whether the single board meets customized sub-condition 1. If the single board meets customized sub-condition 1, the decision result is directly obtained to allow the single board to be powered on; if the single board does not meet customized sub-condition 1, determine whether customized sub-condition 2 is in an activated state. And so on. If it is determined that the single board does not meet the last customized sub-condition n, enter the general decision.
[0056] In the general decision, determine whether the board meets m general sub-conditions in turn. If the board meets m general sub-conditions at the same time, the decision result is to allow the board to be powered on; if the board does not meet any of the general sub-conditions, the decision result is to refuse to power on the board. For example, first determine whether the board meets general sub-condition 1. If the board meets general sub-condition 1, then continue to determine whether the board meets general sub-condition 2; if the board does not meet general sub-condition 1, the decision result is to refuse to power on the board. And so on, until it is determined that the board meets general sub-condition m, the decision result is to allow the board to be powered on.
[0057] (3) The main control board returns the decision result to the single board.
[0058] That is, the main control board sends the decision result of whether to allow the board to power on to the board. For example, the main control board sends the decision result of allowing board 1 to power on to board 1 and the decision result of refusing board 2 to power on to board 2.
[0059] (4) The board is powered on based on the decision result.
[0060] For example, if the board receives a decision result that allows power-on, the board is powered on; if the board receives a decision result that denies power-on, the board is not powered on.
[0061] It should be noted that the above examples in this embodiment are only provided for the convenience of understanding and do not constitute a limitation on the technical solution of the present invention.
[0062] Compared with the prior art, this implementation determines whether the single board is compatible with the main control board through serial decision-making of customized conditions and universal conditions, that is, determines whether to power on the single board through serial decision-making, which is conducive to a more comprehensive power-on decision for the single board. Moreover, considering that the universal condition is a universal compatibility condition set based on the compatibility information of the main control board, that is, a necessary condition for compatibility with the main control board, it is determined that the single board is compatible with the main control board only when multiple universal sub-conditions are met at the same time, that is, the single board is powered on only when multiple universal sub-conditions are met at the same time, which is conducive to more accurate measurement of whether the single board is compatible with the main control board, and ensures that the frame maintains normal operation after the single board is powered on. In addition, the customized conditions and universal conditions can flexibly select the corresponding sub-conditions according to actual needs, which is conducive to adapting to the diversity of market demand.
[0063] The third embodiment of the present invention relates to a method for powering on a single board. The implementation details of this embodiment are described below. The following content is only the implementation details provided for ease of understanding and is not necessary for implementing this solution.
[0064] In this embodiment, after executing steps 201 to 204 in the second embodiment, the following steps may be further performed to further make a system power-on decision. Figure 5 ,include:
[0065] Step 501: Classify all powered-on boards according to the board information of all powered-on boards to obtain classification results.
[0066] In one example, the single board information includes information of multiple dimensions. For example, the dimensions of the single board information may include, but are not limited to, any one of the following or a combination thereof: forwarding capacity, central processing unit chip type, forwarding chip type, network processing chip type, number of ports, port type, single board type, single board name. The control board can determine the classification dimension in multiple dimensions, and then classify all powered-on single boards based on the classification dimension according to the single board information of all powered-on single boards, and obtain classification results based on the classification dimension. In other words, according to actual needs, the required classification dimension can be selected from different dimensions, and based on the classification dimension, all powered-on single boards can be classified, which is conducive to meeting personalized classification needs.
[0067] Assuming that the determined classification dimension is forwarding capacity, each single board can be classified based on forwarding capacity, for example: single boards with forwarding capacity greater than a (preset forwarding capacity) are classified into one category (referred to as first category single boards), and single boards with forwarding capacity less than or equal to a are classified into one category (referred to as second category single boards), where the size of a can be set according to actual needs, and this embodiment does not make specific restrictions on this. It should be noted that the above example only takes the classification of single boards into two categories (first category single boards and second category single boards) as an example. In specific implementations, single boards can also be divided into more categories according to actual needs, however, this embodiment does not make specific restrictions on this.
[0068] In a specific implementation, after receiving the board information sent by all boards in the same frame as the main control board, the main control board can classify all powered-on boards according to the board information of all powered-on boards to obtain classification results.
[0069] Step 502: According to the classification result and the preset power-off condition, a board to be powered off is determined from all powered-on boards.
[0070] The preset power-off condition can be set according to actual needs, and is used to indicate which type of board is expected to be powered off.
[0071] Referring to the above example, it is assumed that the classification result for the single board is: a first-class single board whose forwarding capacity is greater than a, and a second-class single board whose forwarding capacity is less than or equal to a.
[0072] In one example, the preset power-off condition is: the board type with the largest total forwarding capacity, and the board to be powered off can be the first type of board mentioned above. In another example, the preset power-off condition is: the board type with the smallest total forwarding capacity, and the board to be powered off can be the second type of board mentioned above.
[0073] In another example, the preset power-off condition is: the board type with the largest number of boards. Assuming that the number of the first type of boards is 3 and the number of the second type of boards is 5, the determined board to be powered off may be the second type of board.
[0074] In one example, the preset power-off conditions include N power-off conditions, where N is a natural number greater than 1; if a single board belonging to the same classification result satisfies any M of the multiple power-off conditions, the single board belonging to the same classification result will be determined as a single board to be powered off; wherein 1≤M≤N. For example, the N power-off conditions may include, but are not limited to, any combination of the following: a single board class with the largest number of single boards, a single board class with the largest total forwarding capacity, a single board class with the largest number of ports, a single board class with the largest number of certain port types, and so on. In a specific implementation, if M is 1, then if a single board belonging to the same classification result satisfies any one of the power-off conditions, the single board belonging to the same classification result will be determined as a single board to be powered off. It should be noted that the N power-off conditions can be set according to actual needs, and this embodiment does not make specific limitations on this. Providing N power-off conditions facilitates the targeted determination of the single board to be powered off through a variety of measurement criteria according to actual needs.
[0075] Step 503: Power off the board to be powered off.
[0076] For example, the board to be powered off may be notified to stop powering on. In a specific implementation, an alarm may also be issued for the board to be powered off.
[0077] In one example, the above steps 201 to 204 can be considered as the main control board executing individual power-on decisions, and steps 501 to 503 can be considered as the main control board executing system power-on decisions. The main control board can be provided with a main control decision module and a chassis management module. The interactive process of the single board power-on in this embodiment can be referred to Figure 6 ,include:
[0078] (1) The board sends a power-on request carrying board information to the main control board.
[0079] (2) The master control decision module makes individual power-on decisions for the boards.
[0080] (3) The master control decision module returns the decision result to the board.
[0081] (4) The board is powered on based on the decision result.
[0082] in, Figure 6 (1) to (4) and Figure 3 (1) to (4) are roughly the same and will not be described here again to avoid repetition.
[0083] After the system is powered on for a period of time, that is, after each board compatible with the main control board is powered on for a period of time, the system decision can be entered, which can be as follows:
[0084] (5) The master control decision module classifies all powered-on boards and makes system power-on decisions.
[0085] For example, the boards may be classified by referring to the methods in the above steps 501 and 503, and finally the boards to be powered off may be determined.
[0086] In an example, assuming that the preset power-off conditions include N power-off conditions, it is determined in turn whether each type of single board meets any power-off condition. If a single board type meets a power-off condition, the single board in the single board type is marked as a single board to be powered off. For example, the schematic diagram of the system power-on decision can be referred to Figure 7 , take the system power-on decision of one of the single board classes obtained after classification as an example. First, determine whether the single board class meets the power-off condition 1. If the single board class meets the power-off condition 1, then determine the single board in the single board class as the single board to be powered off; if the single board class does not meet the power-off condition 1, then continue to determine whether the single board class meets the power-off condition 2, and so on, until it is determined that the single board does not meet the power-off condition N, and determine the single board in the single board class as a single board that can continue to be powered on.
[0087] (6) The main control decision module notifies the chassis management module of the information of the board to be powered off.
[0088] That is, the main control decision module notifies the frame management module which boards are to be powered off.
[0089] (7) Power off the board to be powered off and issue an alarm.
[0090] (8) The newly inserted board sends a power-on request carrying the new board information to the main control decision module.
[0091] That is to say, after the boards originally in the same frame as the main control board have completed their individual power-on decisions, if a new board is inserted into the frame, the new board can send a power-on request carrying the board information of the new board to the main control decision module.
[0092] (9) Make individual power-on decisions for new boards.
[0093] That is, the main control decision module can make an individual power-on decision for the newly inserted single board to determine whether the single board is compatible with the main control board. If it is compatible, it goes to (10-1); if it is not compatible, it goes to (10-2).
[0094] (10-1) The master control decision module notifies the newly inserted board to allow power on.
[0095] (10-2) The main control decision module notifies the frame management module to refuse to power on the newly inserted single board.
[0096] (11) The newly inserted board continues to be powered on.
[0097] (12) The chassis management module issues an alarm for the newly inserted board and refuses to power it on.
[0098] It should be noted that the above examples in this embodiment are only provided for the convenience of understanding and do not constitute a limitation on the technical solution of the present invention.
[0099] Compared with the prior art, this implementation first completes the individual power-on of each single board, and finally determines the single board to be powered off from all the single boards that have been powered on from the overall system level, and powers off the single board to be powered off, that is, first makes an individual power-on decision, and then makes a system power-on decision, so as to realize the power-on decision by category (classification result) and on demand (preset power-off condition). By classifying the single boards that have been powered on, and then powering off a certain type of single board according to the preset power-off condition, it is helpful to meet the compatibility between the single boards. That is, this implementation method is conducive to further meeting the compatibility between the single boards on the premise of meeting the compatibility between the main control board and the single boards, and at the same time, it can also make on-demand selections of multiple power-off conditions, which is conducive to adapting to the diversity of market demand and meeting personalized power-on needs.
[0100] In addition, those skilled in the art can understand that the step division of the above methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the protection scope of this patent.
[0101] A fourth embodiment of the present invention relates to a main control board, such as Figure 8 As shown, it includes: at least one processor 801; and a memory 802 that is communicatively connected to the at least one processor 801; wherein the memory 802 stores instructions that can be executed by the at least one processor 801, and the instructions are executed by the at least one processor 801, and the at least one processor can execute the single-board power-on method in the above method embodiment.
[0102] The memory 802 and the processor 801 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 801 and the memory 802 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 801 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 801.
[0103] The processor 801 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 802 can be used to store data used by the processor 801 when performing operations.
[0104] A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0105] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0106] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A method for powering on a single board, characterized in that: include: Receive a power-on request sent by a single board; wherein the power-on request carries the single board information of the single board; Determining whether the single board is compatible with the main control board according to the single board information includes: determining whether the single board meets a preset customized condition according to the single board information; wherein the customized condition is a customizable compatible condition set based on the compatible information of the main control board; if the single board meets the customized condition, determining that the single board is compatible with the main control board; If the single board is compatible with the main control board, power on the single board.
2. The single board power-on method according to claim 1, characterized in that: The customized condition includes a plurality of customized sub-conditions; The determining, according to the single board information, whether the single board meets a preset customization condition includes: Determining, according to the single board information, whether the single board satisfies at least one of the multiple customized sub-conditions; If the single board meets the customized condition, determining that the single board is compatible with the main control board includes: If the single board satisfies at least one of the multiple customized sub-conditions, it is determined that the single board is compatible with the main control board.
3. The single board power-on method according to claim 2, characterized in that: The step of determining, according to the single board information, whether the single board satisfies at least one of the plurality of customized sub-conditions comprises: According to a preset traversal order, the plurality of customized sub-conditions are traversed in sequence, and it is determined whether the traversed customized sub-conditions are in an activated state; If the traversed customized sub-condition is in an activated state, determining whether the single board meets the traversed customized sub-condition according to the single board information; If the single board satisfies the traversed customized type sub-conditions, it is determined that the single board satisfies at least one of the multiple customized type sub-conditions.
4. The single board power-on method according to any one of claims 1 to 3, characterized in that: After determining whether the single board meets the preset customization condition, the method further includes: If the single board does not meet the customized condition, determine whether the single board meets a preset universal condition according to the single board information; wherein the universal condition is a universal compatibility condition set based on the compatibility information of the main control board; If the single board meets the universal condition, it is determined that the single board is compatible with the main control board.
5. The single board power-on method according to claim 4, characterized in that: The general condition includes a plurality of general sub-conditions; If the single board meets the universal condition, determining that the single board is compatible with the main control board includes: If the single board satisfies the plurality of general sub-conditions at the same time, it is determined that the single board is compatible with the main control board.
6. The single board power-on method according to claim 1, characterized in that: After the single board is powered on, the method further includes: Classifying all powered-on boards according to the board information of all powered-on boards to obtain classification results; Determining a board to be powered off from among all powered-on boards according to the classification result and a preset power-off condition; Power off the board to be powered off.
7. The single board power-on method according to claim 6, characterized in that: The single board information includes information of multiple dimensions; The classifying all powered-on boards according to the board information of all powered-on boards to obtain the classification results includes: Among the multiple dimensions, determining a classification dimension; According to the board information of all powered-on boards, all powered-on boards are classified based on the classification dimension to obtain a classification result based on the classification dimension.
8. The single board power-on method according to claim 6 or 7, characterized in that: The preset power-off condition includes N power-off conditions, where N is a natural number greater than 1; The step of determining the board to be powered off from among all powered-on boards according to the classification result and the preset power-off condition includes: If the boards belonging to the same classification result meet any M of the N power-off conditions, the boards belonging to the same classification result are determined as boards to be powered off; wherein 1≤M≤N.
9. The single board power-on method according to claim 1, characterized in that: The dimensions of the board information include at least one of the following: Forwarding capacity, CPU chip type, forwarding chip type, network processing chip type, number of ports, port type, board type, board name.
10. A main control board, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor can execute the single-board power-on method as described in any one of claims 1 to 9.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the single board power-on method described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
ATCA (advanced telecom computing architecture) system and method for managing firmware versions by ATCA system
CN102707976A
