An information processing method, a control board, a service board and a network device
By establishing a chip hardware channel between the control board and the service board in the network device, the logic chip of the service board can actively send information to the logic chip of the control board, which solves the problem of high CPU resource consumption of the control board and improves the efficiency and accuracy of information acquisition.
Patent Information
- Application Number
- CN202111146028.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2041-09-28
AI Technical Summary
In existing technologies, the control board of network devices needs to access the service board periodically, resulting in high CPU resource consumption on the control board.
By establishing a chip hardware channel between the control board and the service board, the logic chip of the service board can actively send target information to the logic chip of the control board. The CPU of the control board can then obtain the operating information of the service board based on the target information, thereby reducing the CPU resource consumption of the control board.
This reduces the CPU resource consumption of the control board, improves the efficiency and accuracy of obtaining operational information from the service board, and reduces the frequency of CPU access from the control board to the service board.
Smart Images

Figure CN113835906B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to an information processing method, a control board, a service board and a network device. BACKGROUND
[0002] The network device comprises a control board and a service board, the service board is used to provide services externally, and the control board is used to load services for the service board, control the service board and the like. When the control board controls the service board, the control board needs to control the service board by using a targeted control mode based on current running information of the service board. Therefore, it is very important to obtain the current running information of the service board.
[0003] In the prior art, the CPU of the control board accesses the service board at a fixed time to obtain the current running information of the service board. However, since the CPU of the control board needs to access the service board at a fixed time, the CPU resources of the control board are occupied more. SUMMARY
[0004] Embodiments of the present application aim to provide an information processing method, a control board, a service board and a network device to reduce the CPU resources of the control board. The specific technical solutions are as follows.
[0005] In a first aspect, an embodiment of the present application provides an information processing method applied to a control board in a network device, the control board comprising a first logic chip and a first CPU, the network device further comprising a service board, the service board comprising a second logic chip and a second CPU, and the method comprising:
[0006] The first logic chip receives target information sent by the second logic chip through a chip hardware channel;
[0007] The first CPU obtains the target information provided by the first logic chip;
[0008] The first CPU obtains running information of the service board according to the target information.
[0009] In a second aspect, an embodiment of the present application provides an information processing method applied to a service board in a network device, the service board comprising a second logic chip and a second CPU, the network device further comprising a control board, the control board comprising a first logic chip and a first CPU, and the method comprising:
[0010] The second CPU sends a trigger signal to the second logic chip;
[0011] After the second logic chip receives the trigger signal, the second logic chip generates target information reflecting running information of the service board;
[0012] The second logic chip sends the target information to the first logic chip through a chip hardware channel.
[0013] In a third aspect, embodiments of the present application provide a control board, the control board comprising a first logic chip and a first CPU, the control board being configured in a network device, the network device further comprising a service board, the service board comprising a second logic chip and a second CPU, wherein:
[0014] The first logic chip is configured to execute the information processing method of the first aspect.
[0015] The first CPU is configured to execute the information processing method of the first aspect.
[0016] In a fourth aspect, embodiments of the present application provide a service board, the service board comprising a second logic chip and a second CPU, the service board being configured in a network device, the network device further comprising a control board, the control board comprising a first logic chip and a first CPU, wherein:
[0017] The second CPU is configured to execute the information processing method of the second aspect.
[0018] The second logic chip is configured to execute the information processing method of the second aspect.
[0019] In a fifth aspect, embodiments of the present application provide a network device, the network device comprising the control board of the third aspect and the service board of the fourth aspect.
[0020] In a sixth aspect, embodiments of the present application provide a machine readable storage medium, the machine readable storage medium storing machine executable instructions, when invoked and executed by a processor, the machine executable instructions causing the processor to implement the method steps of the first aspect or the second aspect.
[0021] As can be seen from the above, when the scheme provided by the embodiments of the present application is applied to process information, after the first logic chip of the control board receives the target information sent by the second logic chip, the first CPU obtains the running information of the service board according to the target information. Since the second logic chip of the service board actively sends the target information to the first logic chip of the control board, and the first CPU obtains the running information of the service board according to the target information, compared with the prior art, the CPU of the control board does not need to access the service board regularly, and the consumption of the CPU resources of the control board is reduced.
[0022] In addition, since the chip hardware channel is a hardware channel between the first logic chip and the second logic chip, the first CPU of the control board does not need to participate in the process in which the first logic chip receives the target information through the chip hardware channel, thereby further reducing the consumption of the CPU resource of the control board.
[0023] Of course, practicing any of the products or methods of the present application does not necessarily achieve all of the advantages described above. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description only constitute some embodiments of the present application, and other embodiments can also be obtained by those skilled in the art based on these drawings.
[0025] Figure 1 A structural schematic diagram of a network device provided by an embodiment of the present application is shown in FIG. 1.
[0026] Figure 2 A flowchart of a first information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 2.
[0027] Figure 3a A flowchart of a second information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 3.
[0028] Figure 3b A flowchart of a third information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 4.
[0029] Figure 4 A flowchart of a fourth information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 5.
[0030] Figure 5a A flowchart of a fifth information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 6.
[0031] Figure 5b A flowchart of a sixth information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 7.
[0032] Figure 6 A flowchart of a seventh information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 8.
[0033] Figure 7a A flowchart of an eighth information processing method applied to a control board provided by an embodiment of the present application is shown in FIG. 9.
[0034] Figure 7bA flowchart of a ninth information processing method applied to a control board according to an embodiment of the present application is shown in FIG. 9;
[0035] Figure 7c A flowchart of a tenth information processing method applied to a control board according to an embodiment of the present application is shown in FIG. 10;
[0036] Figure 8 A flowchart of a first information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 11;
[0037] Figure 9 A flowchart of a second information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 12;
[0038] Figure 10a A flowchart of a third information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 13;
[0039] Figure 10b A flowchart of a service board restart stage according to an embodiment of the present application is shown in FIG. 14;
[0040] Figure 11 A flowchart of a fourth information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 15;
[0041] Figure 12a A flowchart of a fifth information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 16;
[0042] Figure 12b A flowchart of a sixth information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 17;
[0043] Figure 12c A flowchart of a seventh information processing method applied to a service board according to an embodiment of the present application is shown in FIG. 18;
[0044] Figure 13 A signaling diagram of an information processing method according to an embodiment of the present application is shown in FIG. 19;
[0045] Figure 14 A structural diagram of a control board according to an embodiment of the present application is shown in FIG. 20;
[0046] Figure 15 A structural diagram of a service board according to an embodiment of the present application is shown in FIG. 21;
[0047] Figure 16 A structural diagram of a network device according to an embodiment of the present application is shown in FIG. 22. DETAILED DESCRIPTION
[0048] With reference to the accompanying drawings, the technical solutions in the embodiments of the present application will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art based on the present application shall fall within the scope of the present application.
[0049] First, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Figure 1 The network device provided by the embodiments of the present application will be described.
[0050] Figure 1 The structural schematic diagram of the network device provided by the embodiments of the present application is shown in FIG. 1. The network device can be a router, a switch, etc.
[0051] The network device includes a control board and a service board. When the network device includes multiple service boards, the multiple service boards can be deployed in the network device based on a distributed architecture, and such a network device is referred to as a distributed device.
[0052] The control board includes a first logic chip and a first CPU, and the service board includes a second logic chip and a second CPU.
[0053] The logic chip is used for logical processing according to a preset logical processing task. Specifically, the logic code of the logic chip can be preset, and the logic chip performs logical processing based on the logic code; and the CPU is used for processing data, etc.
[0054] The first logic chip and the second logic chip perform information interaction through a chip hardware channel. The chip hardware channel can be a bidirectional channel, so that information can be transmitted from the first logic chip to the second logic chip, or transmitted from the second logic chip to the first logic chip. Based on this, the chip hardware channel includes at least two signal lines.
[0055] The information processing method provided by the embodiments of the present application will be described below.
[0056] Referring to FIG. 2, Figure 2 Figure 2 The flowchart of the first information processing method applied to the control board provided by the embodiments of the present application is shown in FIG. 2, which is applied to the control board in the network device, and the method includes the following steps S201-S203.
[0057] Step S201: The first logic chip receives target information sent by the second logic chip through the chip hardware channel.
[0058] The target information can be information reflecting the running information of the service board.
[0059] The chip hardware channel is a hardware channel between the first logic chip and the second logic chip. In the process of transmitting data through the chip hardware channel, only the logic chip is needed to participate, and the first CPU is not needed to participate, thereby reducing the consumption of CPU resources.
[0060] Step S202: The first CPU obtains target information provided by the first logic chip.
[0061] In an implementation, after receiving the target information, the first logic chip can directly send the received target information to the first CPU, and the first CPU thereby obtains the target information.
[0062] Step S203: The first CPU obtains running information of the service board according to the target information.
[0063] The running information of the service board is information reflecting the running of the service board. The running information of the service board can include running information of the service board as a whole, running information of devices in the service board, and the like.
[0064] For example, the running information of the service board as a whole can include restart information of the service board, resource occupation information, and the like; and the running information of the devices in the service board can include temperature information of key devices in the service board, rotation speed information of fans, and the like.
[0065] In an implementation, the target information can be parsed to obtain the running information of the service board contained in the target information.
[0066] As can be seen from the above, when the scheme provided in the embodiment is applied to process information, after the first logic chip of the control board receives the target information sent by the second logic chip through the chip hardware channel, the first CPU obtains the running information of the service board according to the target information. Since the second logic chip of the service board actively sends the target information to the first logic chip of the control board, and the first CPU obtains the running information of the service board according to the target information, compared with the prior art, the CPU of the control board does not need to access the service board regularly, thereby reducing the consumption of CPU resources of the control board.
[0067] In addition, since the chip hardware channel is a hardware channel between the first logic chip and the second logic chip, the first CPU of the control board does not need to participate in the process in which the first logic chip receives the target information through the chip hardware channel, thereby further reducing the consumption of CPU resources of the control board.
[0068] Referring to Figure 3a , Figure 3a The flowchart of the second information processing method applied to the control board provided in the embodiment is shown in Figure 2 On the basis of the embodiment shown in the figure, step S202 can be implemented according to steps S2021-S2022.
[0069] Step S201: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0070] Step S2021: After receiving the target information, the first logic chip sends an interrupt signal to the first CPU.
[0071] The interrupt signal is used to instruct the first CPU to interrupt the currently executed task and obtain the running information of the service board.
[0072] Specifically, the condition that the first logic chip receives the target information sent by the second logic chip through the chip hardware channel can be preset as the trigger condition for sending the interrupt signal to the first CPU. In this way, when the first logic chip receives the target information, the first logic chip sends the interrupt signal to the first CPU due to the satisfaction of the preset trigger condition.
[0073] Step S2022: After receiving the interrupt signal, the first CPU interrupts the currently executed task and obtains the target information from the first logic chip.
[0074] In an implementation, the first CPU can send an information acquisition request to the first logic chip, the first logic chip sends the target information to the first CPU after receiving the information acquisition request, and the first CPU can thus obtain the target information.
[0075] Step S203: The first CPU obtains the running information of the service board according to the target information.
[0076] As can be seen from the above, since the first logic chip actively sends the interrupt signal to the first CPU, the first CPU obtains the target information after receiving the interrupt signal, and further obtains the running information of the service board. In this process, the first CPU only needs to obtain the target information after receiving the interrupt signal, and does not involve other additional interactions, thereby saving the consumption of CPU resources of the control board.
[0077] Moreover, since the first logic chip sends the interrupt signal to the first CPU, the first CPU interrupts the currently executed task and thus obtains the running information of the service board, instead of obtaining the running information of the service board after the first CPU completes the processing of the currently executed task, thereby improving the efficiency of the control board in obtaining the running information of the service board.
[0078] Referring to Figure 3b , Figure 3b The flowchart of the third information processing method applied to the control board provided by the embodiment of the present application is based on the above Figure 2 mentioned embodiment, and the above step S202 can also be implemented according to steps S2023-S2025.
[0079] Step S201: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0080] When the first logic chip receives the target information for the first time, the first logic chip can store the received target information; when the first logic chip receives the target information for the second time, the third time, etc., the first logic chip stores the currently received target information in a manner of covering the target information received last time.
[0081] It can be seen that the target information stored in the first logic chip is the target information newly sent by the second logic chip and reflecting the current running information of the service board.
[0082] Step S2023: The first CPU sends an information query request to the first logic chip at a preset time interval.
[0083] The preset time interval can be 5s, 10s, etc.
[0084] The information query request is used to request the first logic chip to query whether the information sent by the second logic chip is received.
[0085] In an embodiment, the first CPU can send the information query request to the first logic chip through the information interaction channel at a preset time interval.
[0086] The information interaction channel is a hardware channel between the first CPU and the first logic chip. The information interaction channel includes at least two signal lines.
[0087] Step S2024: After receiving the query request, the first logic chip queries whether the target information is received, and sends the target information to the first CPU if the query is positive.
[0088] In an embodiment, the first logic chip can query whether the local records log information reflecting that the target information is received. If yes, it indicates that the first logic chip receives the target information, and if no, it indicates that the first logic chip does not receive the target information.
[0089] Based on the above description in step S2021, when the first logic chip queries that the target information is received, it indicates that the target information received by the first logic chip is the target information newly sent by the second logic chip and reflecting the current running information of the service board. In this way, after the first logic chip queries that the target information is received, the first logic chip sends the target information to the first CPU, so that the first CPU can receive the target information newly sent by the second logic chip and reflecting the current running information of the service board.
[0090] Step S2025: The first CPU receives the target information sent by the first logic chip.
[0091] In one implementation, the first CPU can obtain the target information sent by the first logic chip through the information interaction channel.
[0092] Step S203: The first CPU obtains the running information of the service board according to the target information.
[0093] As can be seen from the above, since the first CPU sends the information query request to the first logic chip at the preset time interval to obtain the target information, that is, the first CPU maintains a high frequency of obtaining the target information from the first logic chip, thereby reducing the risk of loss of the target information.
[0094] Referring to Figure 4 , Figure 4 The flowchart of the fourth information processing method applied to the control board provided by the embodiment of the present application is shown. Based on the embodiment shown in any of the above Figures 2-3b , the step S203 can be implemented according to steps S2031-S2032.
[0095] Step S201: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0096] Step S202: The first CPU obtains the target information provided by the first logic chip.
[0097] Step S2031: The first CPU parses the target information to obtain the parameter item identifier of the service board running parameter item contained in the target information.
[0098] When the target information contains the parameter item identifier of the service board running parameter item, it can be indicated that the target information contains the running information reflecting the service board running parameter item.
[0099] In one embodiment of the present application, the service board running parameter item can include at least one of the following parameter items: a restart information item, a device temperature item, and a fan speed item.
[0100] The parameter item identifier can be preset. Based on this, in one implementation, it can be determined whether the target information contains the same identifier as the preset parameter item identifier, and if so, the parameter item identifier of the service board running parameter item contained in the target information is determined.
[0101] For example, the parameter item identifier of the preset restart information item is A, the parameter item identifier of the device temperature item is B, and the parameter item identifier of the fan speed item is C. The target information contains C, and the first CPU can thus determine that the target information contains the parameter item identifier of the fan speed item.
[0102] Step S2032: The first CPU obtains the running information of the service board according to the parameter item identifier.
[0103] In an implementation, after determining the parameter item identifier, the first CPU obtains the value of the service board running parameter item from the target information, and determines the running information of the service board based on the obtained value.
[0104] Specifically, the running information of the service board can be determined based on the relationship between the value of the service board running parameter item and a preset parameter item threshold.
[0105] Taking the parameter item identifier of the service board running parameter item as the device temperature item as an example, the first CPU obtains the temperature value of the device temperature item from the target information. If the temperature value is greater than a preset temperature value, it indicates that the device temperature in the service board is abnormal; if the temperature value is less than or equal to the preset temperature value, it indicates that the device temperature in the service board is normal.
[0106] Taking the parameter item identifier of the service board running parameter item as the fan speed item as an example, the first CPU obtains the speed value of the fan speed item from the target information. If the speed value is greater than a preset speed value, it indicates that the fan speed in the service board is abnormal; if the speed value is less than or equal to the preset speed value, it indicates that the fan speed in the service board is normal.
[0107] As can be seen from the above, since the parameter item identifier of the service board running parameter item is determined first, when the target information contains the parameter item identifier, it indicates that the target information contains the running information reflecting the running parameter item identified by the parameter item identifier, and then according to the parameter item identifier, the running information of the service board can be obtained more accurately.
[0108] Referring to Figure 5a , Figure 5a The flowchart of the fifth information processing method applied to the control board provided by the embodiment of the present application is shown in the figure. When the service board running parameter item includes the restart information item, in Figure 4 On the basis of the embodiment shown in the figure, the above step S2032 can be implemented according to step S20321.
[0109] Step S201: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0110] Step S202: The first CPU obtains the target information provided by the first logic chip.
[0111] Step S2031: The first CPU parses the target information to obtain the parameter item identifier of the service board running parameter item contained in the target information.
[0112] Step S20321: When the first CPU determines that the parameter item identifier is the identifier of the restart information item, the first CPU determines whether the service board has been restarted according to the restart information of the service board recorded by the control board. If yes, the first CPU obtains the running information of the service board including information indicating that the service board has been abnormally restarted. If no, the first CPU obtains the running information of the service board including information indicating that the service board has been normally restarted.
[0113] When the first CPU determines that the parameter item identifier in the target information is the identifier of the restart information item, it indicates that the service board has been restarted. The restart type is further divided into abnormal restart and normal restart, and the first CPU can further determine whether the service board has been abnormally restarted.
[0114] The restart information of the service board reflects whether the service board has been restarted. Since the control board is used to control and manage the service board, the control board locally records the restart information of the service board.
[0115] When it is determined that the service board has been restarted, the obtained running information of the service board includes information indicating that the service board has been abnormally restarted. The running information can further include the number of abnormal restarts of the service board, the abnormal restart time, and the like.
[0116] When it is determined that the service board has not been restarted, the obtained running information of the service board includes information indicating that the service board has been normally restarted. The running information can further include the number of restarts of the service board, the restart time, and the like.
[0117] The restart information can include the number of restarts of the service board, the time of each restart, the duration of each restart, and the like. Based on this, in an embodiment, the number of restarts and the time of each restart recorded in the restart information can be used to determine whether the service board has been restarted.
[0118] Specifically, when the number of restarts is empty, it indicates that the service board has not been restarted. When the number of restarts is not empty, it is further determined whether the duration between the time of each restart and the current time is greater than a first preset duration. If yes, it is determined that the service board has not been restarted. If no, it is determined that the service board has been restarted.
[0119] The first preset duration is the duration between two adjacent normal restarts of the service board. The preset duration can be 24 hours, 48 hours, or the like.
[0120] In this way, on the one hand, when the service board has been restarted, it indicates that the current restart of the service board is not the first restart. Since the service board is more likely to be restarted due to abnormal network environment, abnormal network equipment, or the like after having been restarted, when it is determined that the service board has been restarted, it is more likely that the current restart of the service board is an abnormal restart.
[0121] On the other hand, when the service board has not been restarted, it indicates that the current restart of the service board is the first restart, and since the first restart of the service board is more likely to be a normal restart, when it is determined that the service board has not been restarted, it is determined that the current restart of the service board is more likely to be a normal restart.
[0122] From the above analysis, it can be seen that the accuracy of determining whether the current restart of the service board is an abnormal restart by judging whether the service board has been restarted is high, thereby improving the accuracy of determining the running information of the service board.
[0123] Referring to Figure 5b , Figure 5b The flowchart of the sixth information processing method applied to the control board provided by the embodiment of the application is shown in the figure, when the service board running parameter item includes the restart information item, in Figure 4 On the basis of the embodiment shown in the figure, the step S2032 can be implemented according to the step S20322.
[0124] Step S201: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0125] Step S202: The first CPU obtains the target information provided by the first logic chip.
[0126] Step S2031: The first CPU parses the target information to obtain the parameter item identifier of the service board running parameter item contained in the target information.
[0127] Step S20322: When the first CPU determines that the parameter item identifier is the identifier of the restart information item, it judges whether the control board has sent a restart instruction to the service board, if not, obtains the running information of the service board including the information indicating that the abnormal restart occurs, if yes, obtains the running information of the service board including the information indicating that the normal restart occurs.
[0128] When it is determined that the control board has not sent a restart instruction to the service board, the obtained running information of the service board includes the information that the service board has an abnormal restart, and the above running information can further include the information such as the number of abnormal restarts of the service board, the abnormal restart time, etc.
[0129] When it is determined that the control board has sent a restart instruction to the service board, the obtained running information of the service board includes the information that the service board has a normal restart, and the above running information can further include the information such as the number of restarts of the service board, the restart time, etc.
[0130] The control board records log information of restart commands sent from the control board to the service board. This log information includes the time the restart command was sent and the number of times it was sent. Based on this, in one implementation, the first CPU can determine whether the control board has sent a restart command to the service board based on the log information recorded locally on the control board.
[0131] Specifically, the control board can determine whether it has sent a restart command to the service board based on the time between the time the restart command was sent in the log information and the current time.
[0132] For example: when the duration between the most recent transmission time and the current time is less than the second preset duration, it means that the control board has sent a restart command to the service board; when the duration between the most recent transmission time and the current time is greater than or equal to the second preset duration, it means that the control board has not sent a restart command to the service board.
[0133] The system can also determine whether the control board has sent a restart command to the service board based on the time when the restart command was sent and the information reflecting whether the service board responded to the restart command in the log information.
[0134] For example: if the time between the most recent transmission time and the current time is less than the second preset time and the service board has not responded to the restart command sent at the most recent transmission time, it means that the control board has not sent a restart command to the service board; if the time between the most recent transmission time and the current time is less than the second preset time and the service board has responded to the restart command sent at the most recent transmission time, it means that the control board has sent a restart command to the service board.
[0135] As can be seen from the above, after the control board sends a restart command to the service board, the service board will respond to the restart command and perform a restart operation. If it is determined that the control board has sent a restart command to the service board, it means that the current restart of the service board is very likely caused by responding to the restart command sent by the control board. In this case, the restart of the service board is likely to be a normal restart. If it is determined that the control board has sent a restart command to the service board, it means that the current restart of the service board is very likely caused by an abnormal situation. In this case, the restart of the service board is likely to be an abnormal restart. Therefore, determining whether the current restart of the service board is abnormal by judging whether the control board has sent a restart command to the service board has high accuracy, thereby improving the accuracy of determining the operating information of the service board.
[0136] In one embodiment of the present invention, when the control board determines that a service board has experienced an abnormal restart, if the abnormally restarted service board has a corresponding backup service board, the control board can switch the services provided by the abnormally restarted service board to the backup service board. If the abnormally restarted service board does not have a corresponding backup service board, the control board can reallocate the services provided by the abnormally restarted service board to other service boards based on the current load of other normally functioning service boards.
[0137] See Figure 6 , Figure 6 This is a flowchart illustrating the seventh information processing method applied to a control board according to an embodiment of the present invention. Figures 2-5b Based on the embodiments shown in any of the accompanying drawings, the above method may further include steps S204-S205.
[0138] Step S204: The first CPU sends a service board control instruction to the first logic chip.
[0139] The aforementioned service board control instructions are used to instruct the service board to execute instructions, thereby enabling the control board to control the service board.
[0140] The aforementioned service board control commands can be control commands for anomalies represented by the service board's operating information.
[0141] In one embodiment, control instructions for various anomalies are pre-set. The first CPU determines the control instruction corresponding to the anomaly represented by the obtained operating information according to the pre-set correspondence, and sends the service board control instruction to the first logic chip.
[0142] For example, the pre-defined correspondence includes: the control instruction for an abnormal restart of the service board is a service information backup instruction; the control instruction for excessively high device temperature in the service board is a service board fan speed increase instruction. If the abnormality represented by the service board's operating information obtained by the first CPU is an abnormal restart of the service board, the first CPU can send the control instruction for the abnormal restart of the service board, that is, the service information backup instruction, to the first logic chip.
[0143] Step S205: The first logic chip sends a service board control instruction to the second logic chip through the chip hardware channel, so that after the second logic chip sends the service board control instruction to the second CPU, the second CPU responds to the service board control instruction.
[0144] After receiving the service board control command, the second logic chip sends the service board control command to the second CPU, and the second CPU responds to the service board control command to realize the control board's control over the service board.
[0145] As can be seen from the above, when the control board sends service board control commands to the service board, the first logic chip still sends them to the second logic chip through the chip hardware channel, without the need for the control board's CPU to participate, thus reducing the consumption of the control board's CPU resources.
[0146] The following describes the embodiments of the present invention in detail, using the following business board operating parameters as restart information, device temperature, and fan speed.
[0147] See Figure 7a , Figure 7a This is a flowchart illustrating an eighth information processing method applied to a control board according to an embodiment of the present invention. The method includes steps S711-S718.
[0148] Step S711: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0149] Step S712: After receiving the target information, the first logic chip sends an interrupt signal to the first CPU.
[0150] Step S713: After receiving the interrupt signal, the first CPU interrupts the currently executing task and obtains the target information from the first logic chip.
[0151] Step S714: The first CPU parses the target information and determines whether the target information contains an identifier for a restart information item. If yes, proceed to step S715 or step S716; if no, end the process.
[0152] Step S715: Based on the restart information of the service board recorded on the control board, determine whether the service board has been restarted. If yes, obtain the operating information of the service board including information indicating an abnormal restart, and execute step S717; if no, obtain the operating information of the service board including information indicating a normal restart.
[0153] Step S716: Determine whether the control board has sent a restart command to the service board. If no, obtain the service board's operating information, including information indicating an abnormal restart, and execute step S717. If yes, obtain the service board's operating information, including information indicating a normal restart.
[0154] Step S717: The first CPU sends a control command to the first logic chip for the abnormal restart of the service board.
[0155] Step S718: The first logic chip sends the above control command to the second logic chip through the chip hardware channel.
[0156] See Figure 7b , Figure 7bThis is a flowchart illustrating a ninth information processing method applied to a control board according to an embodiment of the present invention. The method includes steps S721-S727.
[0157] Step S721: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0158] Step S722: After receiving the target information, the first logic chip sends an interrupt signal to the first CPU.
[0159] Step S723: After receiving the interrupt signal, the first CPU interrupts the currently executing task and obtains the target information from the first logic chip.
[0160] Step S724: The first CPU parses the target information and determines whether the target information contains an identifier for the temperature information item. If yes, proceed to step S725; otherwise, end the process.
[0161] Step S725: Determine whether the temperature value of the temperature information item in the target information is greater than the preset temperature value. If yes, obtain the operating information of the service board including information indicating that a temperature abnormality has occurred, and execute step S726; if no, obtain the operating information of the service board including information indicating that the temperature is normal.
[0162] Step S726: The first CPU sends a control command to the first logic chip for the abnormal temperature of the service board.
[0163] Step S727: The first logic chip sends the above control command to the second logic chip through the chip hardware channel.
[0164] See Figure 7c , Figure 7c This is a flowchart illustrating a tenth information processing method applied to a control board according to an embodiment of the present invention. The method includes steps S731-S737.
[0165] Step S731: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0166] Step S732: After receiving the target information, the first logic chip sends an interrupt signal to the first CPU.
[0167] Step S733: After receiving the interrupt signal, the first CPU interrupts the currently executing task and obtains the target information from the first logic chip.
[0168] Step S734: The first CPU parses the target information and determines whether the target information contains an identifier for the fan speed item. If yes, proceed to step S735; otherwise, end the process.
[0169] Step S735: Determine whether the fan speed value in the target information is greater than the preset speed value. If yes, obtain the operating information of the service board including information indicating abnormal fan speed, and execute step S736; if no, obtain the operating information of the service board including information indicating normal fan speed.
[0170] Step S736: The first CPU sends a control command to the first logic chip to address the abnormal fan speed of the service board.
[0171] Step S737: The first logic chip sends the above control command to the second logic chip through the chip hardware channel.
[0172] Corresponding to the information processing method applied to the control board, this embodiment of the invention also provides an information processing method applied to the service board.
[0173] See Figure 8 , Figure 8 This is a flowchart illustrating a first information processing method applied to a service board according to an embodiment of the present invention, which is applied to a service board in a network device. The method includes the following steps S801-S803.
[0174] Step S801: The second CPU sends a trigger signal to the second logic chip.
[0175] The aforementioned trigger signal is used to instruct the second logic chip to generate target information reflecting the operation information of the service board and to send the target information to the first logic chip.
[0176] In one implementation, when the second CPU detects an anomaly on the service board, it sends a trigger signal to the second logic chip.
[0177] For example, when the second CPU detects an anomaly such as a restart of the service board, excessively high device temperature, or excessively high fan speed, it sends a trigger signal to the second logic chip.
[0178] In another implementation, the second CPU can send trigger signals to the second logic chip at preset time intervals. The preset time interval can be 1 second, 5 seconds, etc.
[0179] Step S802: After receiving the trigger signal, the second logic chip generates target information to reflect the operation information of the service board.
[0180] In one embodiment, the trigger signal may include the parameter item identifier and value of the service board operation parameter item. After receiving the trigger signal, the second logic chip parses the trigger signal and generates target information containing the parameter item identifier and value of the service board operation parameter item.
[0181] In one embodiment of the present invention, the service board operating parameters include at least one of the following parameters: restart information, device temperature, and fan speed.
[0182] For example, the trigger signal contains the temperature value of the device temperature item and the parameter item identifier. After receiving the trigger signal, the second logic chip generates target information containing the parameter item identifier and temperature value of the device temperature item.
[0183] Step S803: The second logic chip sends the target information to the first logic chip through the chip hardware channel.
[0184] As can be seen from the above, when processing information using the solution provided in this embodiment, the second logic chip of the service board sends target information to the first logic chip through the chip hardware channel, enabling the first CPU to obtain the service board's operating information based on the target information. Since the second logic chip actively sends the target information to the first logic chip, and the first CPU then obtains the service board's operating information based on the target information, compared to the prior art, the control board's CPU does not need to periodically access the service board, reducing the consumption of the control board's CPU resources.
[0185] In addition, since the chip hardware channel is a hardware channel between the first logic chip and the second logic chip, the second CPU of the service board does not need to participate in the process of sending target information through the chip hardware channel via the second logic chip, thus reducing the consumption of CPU resources of the service board.
[0186] See Figure 9 , Figure 9 This is a flowchart illustrating a second information processing method applied to a service board according to an embodiment of the present invention. Figure 8 Based on the embodiment shown, step S802 above can be implemented according to steps S8021-S8022.
[0187] Step S801: The second CPU sends a trigger signal to the second logic chip.
[0188] The aforementioned trigger signal is used to instruct the second logic chip to generate target information reflecting the restart of the service board, and to send the target information to the first logic chip.
[0189] Step S8021: After receiving the trigger signal, the second logic chip obtains the parameter item identifier of the restart information item.
[0190] The parameter identifier of the restart information item can be preset. Based on this, the second logic chip can obtain the preset parameter identifier of the restart information item. For example, if the parameter identifier of the restart information item is preset to A, the second logic chip obtains the parameter identifier of the restart information item as A.
[0191] Step S8022: The second logic chip generates target information that includes a parameter item identifier containing restart information.
[0192] The parameter identifier of the target information containing the restart information item indicates that the target information reflects that the business board is currently restarting.
[0193] In one implementation, the parameter identifier of the restart information item can be encapsulated to obtain the target information.
[0194] Step S803: The second logic chip sends the target information to the first logic chip through the chip hardware channel.
[0195] As can be seen from the above, since the target information contains the parameter item identifier of the restart information item, the target information can reflect the current restart information of the service board. After the second logic chip sends the target information to the first logic chip, the CPU of the control board can know that the service board has restarted.
[0196] See Figure 10a , Figure 10a This is a flowchart illustrating a third information processing method applied to a service board according to an embodiment of the present invention. Figure 9 Based on the embodiment shown, step S803 above can be implemented according to step S8031.
[0197] Step S801: The second CPU sends a trigger signal to the second logic chip.
[0198] Step S8021: After receiving the trigger signal, the second logic chip obtains the parameter item identifier of the restart information item.
[0199] Step S8022: The second logic chip generates target information that includes a parameter item identifier containing restart information.
[0200] Step S8031: When the service board starts restarting during the BOOT phase, the second logic chip sends target information to the first logic chip through the chip hardware channel.
[0201] The restart of the business board includes five phases, such as... Figure 10b As shown, Figure 10b The schematic diagram of a service board restart stage provided in an embodiment of the present invention is as follows: 1. Powering on or resetting the board, 2. BOOT stage, 3. Software loading, 4. Software loading completed and the board starts up, 5. Startup complete.
[0202] The time required from the BOOT stage to the software loading process is 1 minute; the time required from the software loading process to the board startup process is 1-2 minutes; and the time required from the board startup process to the startup completion process is 3-10 minutes.
[0203] During the single-board power-on or reset phase, the service board is powered on or reset; during the BOOT phase, the service board performs data initialization and other operations; during the software loading phase, the service board loads software; during the software loading and single-board startup phase, the service board begins startup; and during the service board startup completion phase, the service board completes startup. It can be seen that the BOOT phase is one of the earliest phases when the service board begins its restart process.
[0204] In one implementation, the second logic chip monitors the stage the service board is in when it starts restarting. When it detects that the service board is in the BOOT stage, it sends target information to the first logic chip through the chip hardware channel.
[0205] As can be seen from the above, since the second logic chip sends target information to the first logic chip through the chip hardware channel during the BOOT phase when the service board starts to restart, and since the BOOT phase is an earlier phase when the service board starts to restart, the first logic chip can obtain the restart information of the service board at an earlier stage when the service board starts to restart.
[0206] See Figure 11 , Figure 11 This is a flowchart illustrating the fourth information processing method applied to a service board according to an embodiment of the present invention. Figures 8-10a Based on any of the embodiments shown in the figure, the above method may further include steps S804-S805.
[0207] Step S801: The second CPU sends a trigger signal to the second logic chip.
[0208] Step S802: After receiving the trigger signal, the second logic chip generates target information to reflect the operation information of the service board.
[0209] Step S803: The second logic chip sends the target information to the first logic chip through the chip hardware channel.
[0210] Step S804: The second logic chip receives the service board control command sent by the first logic chip through the chip hardware channel; and sends the service board control command to the second CPU.
[0211] The aforementioned service board control instructions are used to instruct the service board to execute instructions, thereby enabling the control board to control the service board.
[0212] The aforementioned service board control commands can be control commands for anomalies represented by the service board's operating information.
[0213] In one embodiment, the second logic chip can send service board control commands to the second CPU through an information interaction channel. The information interaction channel is an interaction channel between the second logic chip and the second CPU, and the information interaction channel consists of at least two signal lines.
[0214] Step S805: After receiving the service board control command, the second CPU responds to the service board control command.
[0215] In one implementation, the second CPU can parse the service board control instructions and execute the tasks in the service board control instructions.
[0216] For example: when the task contained in the service board control instruction is: back up the service information generated by the service board, the second CPU will back up the service information generated by the service board when it parses the service board control instruction to obtain the above task; when the task contained in the service board control instruction is: increase the fan speed of the service board, the second CPU will increase the fan speed of the service board when it parses the service board control instruction to obtain the above task.
[0217] As can be seen from the above, since the second logic chip receives the service board control instructions sent by the first logic chip through the chip hardware channel, the participation of the first CPU and the second CPU is not required in this process, thus reducing the consumption of CPU resources.
[0218] The following describes the embodiments of the present invention in detail, using the following business board operating parameters as restart information, device temperature, and fan speed.
[0219] See Figure 12a , Figure 12a This is a flowchart illustrating a fifth information processing method applied to a service board according to an embodiment of the present invention. The method includes the following steps S1211-S1217.
[0220] Step S1211: The second CPU sends a trigger signal to the second logic chip.
[0221] The trigger signal is used to instruct the second logic chip to generate target information reflecting the restart of the service board, and to send the target information to the first logic chip.
[0222] Step S1212: After receiving the trigger signal, the second logic chip obtains the parameter item identifier of the restart information item.
[0223] Step S1213: The second logic chip generates target information containing parameter item identifiers of restart information items.
[0224] Step S1214: When the service board starts restarting during the BOOT phase, the second logic chip sends target information to the first logic chip through the chip hardware channel.
[0225] Step S1215: The second logic chip receives the service board control command sent by the first logic chip through the chip hardware channel.
[0226] The above-mentioned service board control commands are for control commands in response to abnormal restarts of the service board.
[0227] Step S1216: The second logic chip sends a service board control command to the second CPU.
[0228] Step S1217: After receiving the service board control command, the second CPU responds to the service board control command.
[0229] See Figure 12b , Figure 12b This is a flowchart illustrating a sixth information processing method applied to a service board according to an embodiment of the present invention. The method includes the following steps S1221-S1227.
[0230] Step S1221: The second CPU sends a trigger signal to the second logic chip.
[0231] The aforementioned trigger signal is used to instruct the second logic chip to generate target information reflecting the temperature information of the service board devices, and to send the aforementioned target information to the second logic chip.
[0232] The trigger signal may include the temperature value of the target device in the service board, such as a second CPU, a memory chip, or other devices.
[0233] Step S1222: After receiving the trigger signal, the second logic chip obtains the temperature value of the target device in the service board.
[0234] The second logic chip can analyze the trigger signal to obtain the temperature value of the target device contained in the trigger signal.
[0235] Step S1223: The second logic chip generates target information including the temperature value of the device temperature item and the parameter item identifier of the device temperature item.
[0236] Step S1224: The second logic chip sends the target information to the first logic chip through the chip hardware channel.
[0237] Step S1225: The second logic chip receives the service board control command sent by the first logic chip through the chip hardware channel.
[0238] The aforementioned service board control commands can be control commands for service board devices that experience abnormal temperatures.
[0239] Step S1226: The second logic chip sends a service board control command to the second CPU.
[0240] Step S1227: After receiving the service board control command, the second CPU responds to the service board control command.
[0241] See Figure 12c , Figure 12c This is a flowchart illustrating a seventh information processing method applied to a service board according to an embodiment of the present invention. The method includes the following steps S1231-S1237.
[0242] Step S1231: The second CPU sends a trigger signal to the second logic chip.
[0243] The aforementioned trigger signal is used to instruct the second logic chip to generate target information reflecting the fan speed information of the service board, and to send the target information to the first logic chip.
[0244] The trigger signal mentioned above may include the rotational speed of the service board fan.
[0245] Step S1232: After receiving the trigger signal, the second logic chip obtains the fan speed value of the service board.
[0246] The second logic chip can parse the trigger signal to obtain the fan speed value contained in the trigger signal.
[0247] Step S1233: The second logic chip generates target information including the fan speed value and the parameter identifier of the fan speed item.
[0248] Step S1234: The second logic chip sends the target information to the first logic chip through the chip hardware channel.
[0249] Step S1235: The second logic chip receives the service board control command sent by the first logic chip through the chip hardware channel.
[0250] The aforementioned service board control commands can be used to control abnormal fan speeds on the service board.
[0251] Step S1236: The second logic chip sends a service board control command to the second CPU.
[0252] Step S1237: After receiving the service board control command, the second CPU responds to the service board control command.
[0253] The following combination Figure 13 The information processing method provided in the embodiments of the present invention will be fully described.
[0254] Figure 13 This is a signaling diagram illustrating an information processing method provided in an embodiment of the present invention. Figure 13The system includes a control board and a service board. The control board includes a first logic chip and a first CPU, and the service board includes a second logic chip and a second CPU. The first logic chip and the second logic chip interact with each other through a chip hardware channel. The above method includes the following steps S1301-S130.
[0255] Step S1301: The second CPU sends a trigger signal to the second logic chip.
[0256] Step S1302: After receiving the trigger signal, the second logic chip generates target information to reflect the operation information of the service board.
[0257] Step S1303: The second logic chip sends the target information to the first logic chip through the chip hardware channel.
[0258] Step S1304: The first logic chip receives the target information sent by the second logic chip through the chip hardware channel.
[0259] Step S1305: The first CPU obtains the target information provided by the first logic chip.
[0260] Step S1306: The first CPU obtains the operating information of the service board based on the target information.
[0261] Step S1307: The first CPU sends a service board control instruction to the first logic chip.
[0262] Step S1308: The first logic chip sends a service board control command to the second logic chip through the chip hardware channel.
[0263] Step S1309: The second logic chip receives the service board control command sent by the first logic chip through the chip hardware channel.
[0264] Step S1310: The second logic chip sends a service board control command to the second CPU.
[0265] Step S1311: After receiving the service board control command, the second CPU responds to the service board control command.
[0266] Corresponding to the information processing method described above, this embodiment of the invention also provides a control board.
[0267] See Figure 14 , Figure 14 This is a schematic diagram of a control board according to an embodiment of the present invention. The control board includes a first logic chip 1401 and a first CPU 1402. The control board is configured in a network device, and the network device is configured with a service board. The service board includes a second logic chip and a second CPU.
[0268] The first logic chip 1401 is used to receive target information sent by the second logic chip through a chip hardware channel;
[0269] The first CPU 1402 is used to obtain the target information provided by the first logic chip 1401; and to obtain the operation information of the service board based on the target information.
[0270] As can be seen from the above, when processing information using the solution provided in this embodiment, after the first logic chip of the control board receives the target information sent by the second logic chip through the chip hardware channel, the first CPU obtains the operating information of the service board based on the target information. Since the second logic chip of the service board actively sends the target information to the first logic chip of the control board, and the first CPU then obtains the operating information of the service board based on the target information, compared with the prior art, the CPU of the control board does not need to periodically access the service board, thus reducing the consumption of CPU resources of the control board.
[0271] In addition, since the chip hardware channel is a hardware channel between the first logic chip and the second logic chip, the first logic chip does not need to participate in the first CPU of the control board when receiving target information through the chip hardware channel, thereby further reducing the consumption of CPU resources of the control board.
[0272] In one embodiment of the present invention, the first logic chip 1401 is specifically used to send an interrupt signal to the first CPU 1402 after receiving the target information;
[0273] The first CPU 1402 is specifically used to interrupt the currently executing task after receiving the interrupt signal and obtain the target information from the first logic chip 1401.
[0274] As can be seen from the above, since the first logic chip actively sends an interrupt signal to the first CPU, the first CPU obtains the target information and then the operating information of the service board after receiving the interrupt signal. In this process, the first CPU only needs to obtain the target information after receiving the interrupt signal, without involving any other additional interactions, thus saving the CPU resources consumed by the control board.
[0275] Furthermore, since the first logic chip sends an interrupt signal to the first CPU, the first CPU interrupts the currently executing task to obtain the operating information of the service board, rather than obtaining the operating information of the service board after the first CPU has finished processing the currently executing task, the efficiency of the control board in obtaining the operating information of the service board is improved.
[0276] In one embodiment of the present invention, the first CPU 1402 is specifically used to send information query requests to the first logic chip 1401 at preset time intervals.
[0277] The first logic chip 1401 is specifically used to, after receiving the query request, query whether the target information has been received; if so, send the target information to the first CPU 1402.
[0278] The first CPU 1402 is specifically used to receive the target information sent by the first logic chip 1401.
[0279] As can be seen from the above, since the first CPU sends information query requests to the first logic chip at preset time intervals to obtain target information, that is, the first CPU obtains target information from the first logic chip at a high frequency, thereby reducing the risk of target information loss.
[0280] In one embodiment of the present invention, the first CPU 1402 is specifically used to parse the target information to obtain the parameter item identifier of the service board operation parameter item contained in the target information; and to obtain the operation information of the service board based on the parameter item identifier.
[0281] As can be seen from the above, since the parameter item identifier of the service board's operating parameter item is determined first, when the target information contains the parameter item identifier, it means that the target information contains operating information reflecting the operating parameter item identified as the parameter item identifier. Therefore, based on the parameter item identifier, the operating information of the service board can be obtained more accurately.
[0282] In one embodiment of the present invention, if the service board operating parameter item includes the restart information item,
[0283] The first CPU 1402 is specifically used to determine whether the service board has been restarted based on the restart information of the service board recorded by the control board when the parameter item identifier is determined to be the identifier of the restart information item. If yes, it obtains the operation information of the service board including information indicating an abnormal restart. If no, it obtains the operation information of the service board including information indicating a normal restart.
[0284] Thus, on the one hand, if the service board has been restarted, it means that the current restart of the service board is not the first restart. On the other hand, since the restart of the service board after it has been restarted is more likely to be due to abnormalities such as abnormal network environment or abnormal network equipment, if it is determined that the service board has been restarted, it is more likely that the current restart of the service board is an abnormal restart.
[0285] On the other hand, if the business board has not been restarted, it means that the current restart of the business board is the first restart. Since the first restart of the business board is very likely to be a normal restart, if it is determined that the business board has not been restarted, it is more likely that the current restart of the business board is a normal restart.
[0286] Based on the analysis in the two paragraphs above, it can be seen that determining whether a current restart of a business board is abnormal by judging whether the business board has been restarted is highly accurate, thereby improving the accuracy of determining the operational information of the business board.
[0287] In one embodiment of the present invention, if the service board operating parameter item includes the restart information item,
[0288] The first CPU 1402 is specifically used to determine whether the control board has sent a restart command to the service board when the parameter item identifier is determined to be the identifier of the restart information item. If no, it obtains the operation information of the service board including information indicating an abnormal restart. If yes, it obtains the operation information of the service board including information indicating a normal restart.
[0289] After the control board sends a restart command to the service board, the service board will respond and execute a restart operation. If it is determined that the control board has sent a restart command to the service board, the current restart of the service board is very likely caused by responding to the restart command sent by the control board. In this case, the restart of the service board is likely a normal restart. If it is determined that the control board has sent a restart command to the service board, the current restart of the service board is very likely caused by an abnormal situation. In this case, the restart of the service board is likely an abnormal restart. Therefore, determining whether the current restart of the service board is abnormal by judging whether the control board has sent a restart command to the service board has high accuracy, thereby improving the accuracy of determining the operation information of the service board.
[0290] In one embodiment of the present invention, the first CPU 1402 is further configured to send service board control instructions to the first logic chip 1401.
[0291] The first logic chip 1401 is further configured to send the service board control instruction to the second logic chip through the chip hardware channel, so that after the second logic chip sends the service board control instruction to the second CPU, the second CPU responds to the service board control instruction.
[0292] As can be seen from the above, when the control board sends service board control commands to the service board, the first logic chip still sends them to the second logic chip through the chip hardware channel, without the need for the control board's CPU to participate, thus reducing the consumption of the control board's CPU resources.
[0293] Corresponding to the above information processing method, this embodiment of the invention also provides a service board.
[0294] See Figure 15 , Figure 15This is a schematic diagram of a service board structure provided in an embodiment of the present invention. The control board includes a second logic chip 1501 and a second CPU 1502. The service board is configured in a network device, and the network device also includes a control board, which includes a first logic chip and a first CPU.
[0295] The second CPU 1502 is used to send a trigger signal to the second logic chip 1501;
[0296] The second logic chip 1501 is used to generate target information reflecting the operation information of the service board after receiving the trigger signal;
[0297] The second logic chip 1501 is also used to send the target information to the first logic chip through a chip hardware channel.
[0298] As can be seen from the above, when processing information using the solution provided in this embodiment, the second logic chip of the service board sends target information to the first logic chip through the chip hardware channel, enabling the first CPU to obtain the service board's operating information based on the target information. Since the second logic chip actively sends the target information to the first logic chip, and the first CPU then obtains the service board's operating information based on the target information, compared to the prior art, the control board's CPU does not need to periodically access the service board, reducing the consumption of the control board's CPU resources.
[0299] In addition, since the chip hardware channel is a hardware channel between the first logic chip and the second logic chip, the second CPU of the service board does not need to participate in the process of sending target information through the chip hardware channel via the second logic chip, thus reducing the consumption of CPU resources of the service board.
[0300] In one embodiment of the present invention, the trigger signal is used to instruct the second logic chip 1501 to send target information reflecting a restart of the service board.
[0301] The second logic chip 1501 is specifically used to obtain the parameter item identifier of the restart information item after receiving the trigger signal; and to generate target information containing the parameter item identifier of the restart information item.
[0302] As can be seen from the above, since the target information contains the parameter item identifier of the restart information item, the target information can reflect the current restart information of the service board. After the second logic chip sends the target information to the first logic chip, the CPU of the control board can know that the service board has restarted.
[0303] In one embodiment of the present invention, the target information includes an identifier for a restart information item.
[0304] The second logic chip 1501 is specifically used to send the target information to the first logic chip through the chip hardware channel when the service board starts restarting during the BOOT phase.
[0305] As can be seen from the above, since the second logic chip sends target information to the first logic chip through the chip hardware channel during the BOOT phase when the service board starts to restart, and since the BOOT phase is an earlier phase when the service board starts to restart, the first logic chip can obtain the restart information of the service board at an earlier stage when the service board starts to restart.
[0306] In one embodiment of the present invention, the second logic chip 1501 is further configured to receive service board control instructions sent by the first logic chip through the chip hardware channel; and send the service board control instructions to the second CPU 1502;
[0307] The second CPU 1502 is also used to respond to the service board control command after receiving it.
[0308] As can be seen from the above, since the second logic chip receives the service board control instructions sent by the first logic chip through the chip hardware channel, the participation of the first CPU and the second CPU is not required in this process, thus reducing the consumption of CPU resources.
[0309] Corresponding to the above information processing method, this embodiment of the invention also provides a network device.
[0310] See Figure 16 , Figure 16 This is a schematic diagram of the structure of a network device provided in an embodiment of the present invention. The network device includes a control board 1601 and a service board 1602. The control board 1601 executes an information processing method, and the service board 1602 executes an information processing method.
[0311] In another embodiment of the present invention, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the information processing method provided in the embodiments of the present invention.
[0312] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to implement the information processing method provided in the embodiments of the present invention.
[0313] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0314] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0315] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments for control boards, service boards, network devices, and computer-readable storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0316] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. An information processing method, characterized in that, A control board used in a network device, the control board including a first logic chip and a first CPU, the network device also including a service board, the service board including a second logic chip and a second CPU, the method including: During the BOOT phase when the service board starts restarting, the first logic chip receives target information sent by the second logic chip through a chip hardware channel; wherein, the target information is generated by the second logic chip after receiving a trigger signal sent by the second CPU; the trigger signal is sent by the second CPU to the second logic chip when it detects an anomaly in the service board; or, the second CPU sends it to the second logic chip at a preset time interval; After receiving the target information, the first logic chip sends an interrupt signal to the first CPU; Upon receiving the interrupt signal, the first CPU interrupts the currently executing task and obtains the target information from the first logic chip. The first CPU parses the target information to obtain the parameter item identifier of the service board operation parameter item contained in the target information; When the first CPU determines that the parameter item identifier is the identifier of the restart information item, it determines whether the service board has been restarted based on the restart information of the service board recorded by the control board. If yes, it obtains the operation information of the service board including information indicating an abnormal restart; if no, it obtains the operation information of the service board including information indicating a normal restart. or, When the first CPU determines that the parameter item identifier is the identifier of the restart information item, it determines whether the control board has sent a restart command to the service board. If not, it obtains the service board's operating information, which includes information indicating an abnormal restart. If yes, it obtains the service board's operating information, which includes information indicating a normal restart.
2. The method according to claim 1, characterized in that, The method further includes: The first CPU sends a service board control command to the first logic chip; The first logic chip sends the service board control instruction to the second logic chip through the chip hardware channel, so that after the second logic chip sends the service board control instruction to the second CPU, the second CPU responds to the service board control instruction.
3. An information processing method, characterized in that, A service board applied in a network device, the service board including a second logic chip and a second CPU, the network device also including a control board, the control board including a first logic chip and a first CPU, the method including: The second CPU sends a trigger signal to the second logic chip; wherein, the trigger signal is: sent by the second CPU to the second logic chip when it detects an anomaly in the service board; or, sent by the second CPU to the second logic chip at a preset time interval; the trigger signal is used to instruct the second logic chip to generate target information reflecting a restart of the service board; After receiving the trigger signal, the second logic chip obtains the parameter item identifier of the restart information item; The second logic chip generates target information that includes the parameter item identifier of the restart information item; During the BOOT phase when the service board begins to restart, the second logic chip sends the target information to the first logic chip through a chip hardware channel, so that the first logic chip receives the target information through the chip hardware channel. After receiving the target information, the first logic chip sends an interrupt signal to the first CPU. After receiving the interrupt signal, the first CPU interrupts the currently executing task and obtains the target information from the first logic chip. The first CPU parses the target information to obtain the parameter item identifier of the service board running parameter item contained in the target information. When the first CPU determines that the parameter item identifier is the identifier of the restart information item, it determines whether the service board has been restarted according to the restart information of the service board recorded by the control board. If yes, it obtains the service board running information including information indicating an abnormal restart; if no, it obtains the service board running information including information indicating a normal restart. Alternatively, when the first CPU determines that the parameter item identifier is the identifier of the restart information item, it determines whether the control board has sent a restart command to the service board. If no, it obtains the service board running information including information indicating an abnormal restart; if yes, it obtains the service board running information including information indicating a normal restart.
4. The method according to claim 3, characterized in that, The method further includes: The second logic chip receives the service board control command sent by the first logic chip through the chip hardware channel; and sends the service board control command to the second CPU. After receiving the control command from the service board, the second CPU responds to the control command from the service board.
5. A control board, characterized in that, The control board includes a first logic chip and a first CPU. The control board is configured in a network device. The network device is also configured with a service board, which includes a second logic chip and a second CPU, wherein: The first logic chip is used to execute the information processing method according to any one of claims 1-2; the first CPU is used to execute the information processing method according to any one of claims 1-2.
6. A service board, characterized in that, The service board includes a second logic chip and a second CPU. The service board is configured in a network device. The network device also includes a control board, which includes a first logic chip and a first CPU, wherein: The second CPU is used to execute the information processing method according to any one of claims 3-4; The second logic chip is used to execute the information processing method according to any one of claims 3-4.
7. A network device, characterized in that, The network device includes: the control board as described in claim 5 and the service board as described in claim 6.
8. A machine-readable storage medium, characterized in that, The device stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the method described in any one of claims 1-2 or 3-4.
Citation Information
Patent Citations
Interrupt reporting method and network appliance
CN101247275A
Data processing method and device
CN106326173A
Over-temperature power-down protection method, logic device, service board and network system
CN109871692A