Single board and data transmission fault online recovery method thereof
By performing CRC fault detection and threshold setting on the single board, the problem of easy failure of network device external cache HBM is solved, online recovery of data transmission is achieved, and data packet loss and high-cost fault location problems are avoided.
Patent Information
- Application Number
- CN202410705030.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-24
AI Technical Summary
The plug-in cache HBM of network equipment is prone to cyclic redundancy detection failures, resulting in interruption of data transmission, making fault location difficult and costly.
Execute the cyclic redundancy check CRC fault detection task on the single board. After detecting the fault, the threshold value of the on-chip cache is set to zero, the transmission path of the congested message is cut off, and the congested message is cached in the inter-chip cache area. , to achieve online recovery of data transmission.
Timely detect and cut off the transmission of congested messages between the on-chip cache and the plug-in cache to avoid data packet loss and realize online recovery of data transmission failures in the plug-in cache.
Smart Images

Figure CN118689696A
Abstract
Description
Technical Field
[0001] The present application relates to communication technology, and in particular to a method for online recovery of a single board and data transmission failure thereof. Background Art
[0002] The competitive advantage of network equipment is reflected in large storage, fast forwarding, low cost, etc. The messages received by the switching chip of the single board (such as interface board, service board) of the network equipment from the network card are stored in the OCB (On Chip Buffer) of the switching chip of the single board. When there is no congestion in the queues of each port in the OCB, the messages that need to be forwarded across boards are sent to the network board by the OCB.
[0003] However, the storage capacity of the OCB of the switching chip is limited by the size of the switching chip. When any port queue of the OCB is congested, the OCB caches the messages of the congested queue to the external cache HBM (High Bandwidth Memory) of the interface board, preventing the congestion of individual ports from affecting the forwarding of other ports.
[0004] However, due to the limited quality and performance of HBM, it is easy to have software and hardware failures, which can make the board unusable. The most common HBM failure is the CRC (Cyclic Redundancy Check), which causes packet loss and error. This kind of failure is difficult to locate and is costly. Summary of the invention
[0005] The purpose of the present application is to provide a method for online recovery of a single board and its data transmission failure, so as to timely eliminate the cyclic redundancy detection of the external cache of the communication equipment single board.
[0006] To achieve the above-mentioned purpose, the present application provides a method for online recovery of data transmission failure of a single board, the method comprising: executing a cyclic redundancy check (CRC) fault detection task for an external cache arranged on the single board; detecting that a CRC failure task occurs in the external cache; setting a threshold value of an inter-chip cache area of an on-chip cache arranged on the single board and connected to the external cache to zero; and scheduling the on-chip cache to cache congested messages in the inter-chip cache area.
[0007] To achieve the above-mentioned purpose, the present application also provides a single board, which includes at least a processor, a processor, a switching chip, an on-chip cache and an external cache; the memory stores processor executable instructions; the processor executes the instructions to perform the following operations: perform a cyclic redundancy check (CRC) fault detection task for the external cache set on the single board; detect that a CRC fault task occurs in the external cache, and notify the switching chip; the switching chip sets the threshold value of the inter-chip cache area of the on-chip cache set on the single board and connected to the external cache to zero; and schedules the on-chip cache to cache congested messages in the inter-chip cache area.
[0008] The beneficial effect of the present application is that the cyclic redundancy detection failure of the external cache of the communication equipment board is detected in time, and the congested message transmission between the on-chip cache and the off-chip cache is cut off, so as to restore the data transmission failure of the external cache online. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flow chart of an embodiment of a method for online recovery of data transmission failure of a single board provided in the present application;
[0010] Figure 2 A schematic diagram of a cyclic redundancy check failure of an external cache of an online recovery board provided by the present application;
[0011] Figure 3 for Figure 2 The process of cyclic redundancy check fault detection of the external cache of the single board;
[0012] Figure 4 A schematic diagram of a board for online recovery of data transmission failures provided in the present application. DETAILED DESCRIPTION
[0013] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present application. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.
[0014] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.
[0015] Figure 1 In the embodiment of the method for online recovery of data transmission failure of a single board provided by the present application, the method comprises the following steps:
[0016] Step 101, performing an HBM CRC fault detection task for an external cache provided on a single board;
[0017] Step 102, a task in which a CRC failure occurs in the external cache is detected;
[0018] Step 103, setting the threshold value of the inter-chip cache area of the on-chip cache that is set on the single board and connected to the external cache to zero;
[0019] Step 104 : Schedule the on-chip cache to cache the congested message in the inter-chip cache area.
[0020] The beneficial effect of the present application is that the cyclic redundancy detection failure of the external cache of the communication equipment board is detected in time, and the congested message transmission between the on-chip cache and the off-chip cache is cut off, so as to restore the data transmission failure of the external cache online.
[0021] Figure 2 A schematic diagram of online recovery of a cyclic redundancy check failure of an external cache of a single board provided in the present application.
[0022] The CPU 24 executes the single board initialization code, and then starts executing the HBM CRC fault detection task after the single board 20, so as to detect whether a CRC fault occurs in the external cache 22.
[0023] Figure 2 In the example, the scheduling module of the switching chip 23 schedules the data messages of each queue of the on-chip cache 21 to be sent to the network board. When the queue of any port of the on-chip cache 21 is blocked, the scheduling module of the switching chip 23 caches the message of the blocked queue in the inter-chip cache area 211; the on-chip cache 21 then sends the message in the inter-chip cache area 211 to the external cache 22; and the external cache 22 is scheduled to send the message from the on-chip cache 21 to the network board through the channel between the on-chip cache 21 and the network board.
[0024] Figure 3 In the process, the CPU 24 performs the HBM CRC fault detection task to detect whether a CRC fault occurs in the external cache 22; the CPU 24 performs the HBM CRC fault detection task including the following steps:
[0025] Step 301, start executing the HBM CRC fault detection task;
[0026] Step 302, is the HBM CRC fault flag on the switch chip set? If so, execute step 303; if not, execute step 304?
[0027] CPU24 periodically sends an HBM CRC fault flag read signal to the fault register (not shown) of the switching chip 23. The read signal carries the register address or identifier of the flag to be read. The fault register of the switching chip 23 sends the value of the HBM CRC fault flag to CPU24 via the bus.
[0028] CPU24 receives and stores the value of the HBM CRC fault flag bit, and determines whether a CRC fault occurs in the external cache 22. When the value of the HBM CRC fault flag bit received by CPU24 indicates that a CRC fault does not occur in the external cache 22, CPU24 waits for the next reading of the flag bit. When the value of the HBM CRC fault flag bit received by CPU24 indicates that a CRC fault occurs in the external cache 22, CPU24 needs to determine whether the external cache 22 continues to generate CRC messages.
[0029] Step 303, counting the number of CRC messages in the external cache;
[0030] The CPU 24 reads the count value of the HBM CRC counter on the switch chip 23 and counts the number of CRC messages in the external cache 22 .
[0031] Step 304 , determining whether the count value continues to increase within a preset time; if so, executing step 305 ; if not, returning to step 302 .
[0032] The CPU 24 determines whether the number of CRC messages of the external cache 22 continues to increase based on the number of CRC messages counted in the external cache 22. If the number of CRC messages of the external cache 22 continues to increase over a period of time, it indicates that a CRC failure has occurred in the external cache 22, resulting in the continuous generation of CRC messages. If the external cache 22 only generates a small number of CRC messages over a period of time, it indicates that the external cache 22 has no CRC failure.
[0033] Step 305: A CRC failure occurs in the HBM.
[0034] After the CPU 24 detects a CRC failure in the external cache 22 , it notifies the switch chip 23 .
[0035] The switching chip 23 cuts off the forwarding path of the congested message between the on-chip cache 21 and the external cache 22, sets the threshold value of the inter-chip cache area 211 of the on-chip cache 21 to zero, prohibits the on-chip cache 21 from caching the congested message to the external cache 22, and blocks the channel between the on-chip cache 21 and the external cache 22. The switching chip 23 schedules the on-chip cache 21 to cache the congested message in the inter-chip cache area 211, schedules the on-chip cache 21, the inter-chip cache area 211, sends messages to the network board, and schedules the external cache 22 to send the cached congested message to the network board connected to the single board; in this way, although the cache space of the congested message of the on-chip cache 21 will be temporarily reduced, the congested message is avoided from being directly discarded to a certain extent, ensuring the online training of the external cache 22, thereby online recovering the data transmission failure caused by the external cache 22 on the single board.
[0036] The switch chip 23 sends after the external cache 22 sends all the cached congestion messages, and notifies the CPU 24. The CPU 24 performs online training for the external cache 22, and when the online training of the external cache 22 is completed, it notifies the external cache 22 to perform built-in test (Built-in Test, Bits).
[0037] The external cache 22 reads the training parameters stored therein, tests whether the training parameters match the characteristic functions of the external cache 22, and whether there is an HBM channel fault.
[0038] The switch chip 23 can monitor whether the built-in self-test of the training parameters by the external cache 22 is successful by interrupting or reading a flag bit.
[0039] When the switch chip 23 monitors that the built-in self-test of the external cache for the first online training is successful, the training parameters of the external cache 22 are written into the flash memory 241 (Flash) of the CPU 24. In this way, when the CPU starts the single board next time, the written training parameters are loaded from the flash memory 241 to start the external cache. The switch chip 23 also sets a training success flag in the external cache training table in the memory 25.
[0040] When the switch chip 23 monitors that the built-in self-test of the first online training of the external cache fails, a training failure flag is set in the external cache training table of the memory 25; and the CPU 24 is notified of the HBM online training failure result.
[0041] The CPU 24 performs a second online training for the external cache 22 , and when the second online training is completed, the CPU 24 notifies the external cache 22 to perform a built-in self-test.
[0042] The external cache 22 re-reads the training parameters stored therein, and tests whether the training parameters match the characteristic functions of the external cache 22 and whether there is an HBM channel fault.
[0043] The switching chip 23 monitors that the built-in self-test of the second online training of the external cache 22 is successful, writes the training parameters of the external cache 22 into the flash memory 241 of the CPU 24, and modifies the training failure flag previously written into the external cache training table of the memory 25 into a training success flag.
[0044] After the online training of the external cache 22 is successful, the switch chip 23 restores the threshold value of the inter-chip cache area; and schedules the on-chip cache 21 to cache the congested message in the external cache 22 .
[0045] The switch chip 23 monitors that the built-in self-test of the online training of the plug-in cache 22 fails again, and notifies the CPU 24. The CPU 24 determines that the online training of the plug-in cache 22 has failed repeatedly, and calls the driver ( Figure 2 (not shown), print out the HBM training failure notification information or display the online training failure information through the display interface of the remote device; notify the operation and maintenance personnel to troubleshoot the fault.
[0046] Figure 4 A schematic diagram of a single board for online recovery of data transmission failure provided by the present application. Single board 40 includes at least a processor 41, a memory 42, a switching chip 43, an on-chip cache 44 and an external cache 45; the memory 42 stores processor executable instructions.
[0047] The processor 41 executes instructions to perform the following operations: perform a cyclic redundancy check (CRC) fault detection task for the external cache 45 set on the single board 40; detects that a CRC fault task occurs in the external cache 45 and notifies the switching chip 43; the switching chip 43 sets the threshold value of the inter-chip cache area of the on-chip cache 44 to zero; and schedules the on-chip cache 44 to cache congested messages in its inter-chip cache area.
[0048] The switching chip 43 is used to schedule the external cache 45 to send cache messages to the network board connected to the single board; monitor the completion of the cache message sending of the external cache 45, and notify the processor 41; the processor 42 executes instructions and also performs the following operations to perform external cache online training for the external cache 45. When the online training of the external cache 45 is completed, the external cache 45 is notified to perform a built-in self-test.
[0049] The switch chip 43 is used to monitor whether the external cache 45 successfully performs the built-in self-test based on the external cache online training parameters, configure the external cache based on the training parameters of the external cache 45 online training, store the training parameters of the external cache 45 online training as the training parameters of the external cache for the next single board startup in the built-in flash memory of the processor 41; and set the training success flag in the external cache training table of the memory 42. The switch chip 43 is also used to restore the threshold value of the inter-chip cache area; and schedule the on-chip cache 44 to cache the congested message in the external cache 45.
[0050] The switching chip 43 is used to monitor the external cache 45 and to set a training failure flag in the external cache training table of the memory 42 if the built-in self-test is unsuccessful based on the external cache online training parameters; and to notify the processor;
[0051] The processor 41 executes the instruction and further performs the following operations: performing new online training of the plug-in cache for the plug-in cache 45, and when the new online training of the plug-in cache is completed, notifying the plug-in cache 45 to perform a built-in self-test.
[0052] The switch chip 43 is used to monitor the external cache 45 to perform built-in self-test based on the new online training parameters of the external cache, configure the external cache based on the training parameters of the new online training of the external cache, store the training parameters of the new online training of the external cache as the training parameters of the external cache when the single board starts the next time, and modify the training failure mark to the training success mark. The switch chip 43 is also used to restore the threshold value of the inter-chip cache area; schedule the on-chip cache 44 to cache the congested message in the external cache 45.
[0053] The switching chip 43 is used to monitor the external cache and notify the processor 41 if the built-in self-test is unsuccessful based on the online training parameters of the external cache; the processor 41 executes the instruction and further performs the following operations to output HBM training failure notification information.
[0054] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for online recovery of data transmission failure of a single board, characterized in that: The method comprises, Perform cyclic redundancy check (CRC) fault detection tasks for external caches installed on the single board; Detecting that a CRC failure occurs in the external cache; Setting a threshold value of an inter-chip cache area of an on-chip cache provided on the single board and connected to the external cache to zero; The on-chip cache is scheduled to cache the congested message in the inter-chip cache area.
2. The method according to claim 1, characterized in that The method further comprises, Scheduling the external cache to send cache messages to the network board connected to the single board; Monitoring the sending of cache messages of the external cache and performing online training of the external cache; When the online training of the external cache is completed, the external cache is notified to perform a built-in self-test.
3. The method according to claim 2, characterized in that The method further comprises, When the built-in self-test succeeds, the external cache is configured based on the training parameters of the external cache online training, the training parameters of the external cache online training are stored as the training parameters of the external cache for next board startup, and a training success flag is set.
4. The method according to claim 2, characterized in that: The method further comprises, When the built-in self-test fails, setting a training failure flag; Execute new online training with external cache; When the new online training of the external cache is completed, the external cache is notified to perform a built-in self-test.
5. The method according to claim 4, characterized in that The method further comprises, When the built-in self-test succeeds, the external cache is configured based on the training parameters of the new online training of the external cache, the training parameters of the new online training of the external cache are stored as the training parameters of the external cache for the next single board startup, and the training failure mark is modified to a training success mark.
6. The method according to claim 4, characterized in that The method further comprises, When the built-in self-test succeeds, HBM training failure notification information is output.
7. The method according to claim 3 or 5, characterized in that: The method further comprises, Restoring the threshold value of the inter-chip cache area; The on-chip cache is scheduled to cache the congested messages in the external cache.
8. A single board, characterized in that: The single board at least includes a processor, a memory, a switching chip, an on-chip cache and an external cache; the memory stores processor executable instructions; The processor executes the instructions to perform the following operations: performing a cyclic redundancy check (CRC) fault detection task for an external cache disposed on a single board; detecting a CRC fault task occurring in the external cache, and notifying the switching chip; The switching chip sets the threshold value of the inter-chip cache area of the on-chip cache that is arranged on the single board and connected to the external cache to zero; and schedules the on-chip cache to cache the congested message in the inter-chip cache area.
9. The single board according to claim 8, characterized in that The switching chip is used to schedule the external cache to send cache messages to the network board connected to the single board; monitor the completion of sending the cache message of the external cache, and notify the processor; The processor further executes the following operations when executing the instruction: performs online training of the external cache for the external cache, and when the online training of the external cache is completed, notifies the external cache to perform a built-in self-test.
10. The single board according to claim 8, characterized in that The switching chip is used to monitor whether the external cache successfully performs a built-in self-test based on the external cache online training parameters, configure the external cache based on the training parameters of the external cache online training, and store the training parameters of the external cache online training as the training parameters of the external cache for the next single board startup in the built-in flash memory of the processor; A training success flag is set in the external cache training table of the memory.
11. The single board according to claim 9, characterized in that The switching chip is used to monitor that the external cache fails to perform a built-in self-test based on the online training parameters of the external cache, and set a training failure flag in the external cache training table of the memory; notifying the processor; The processor further executes the following operations when executing the instruction: performing new online training of the external cache for the external cache, and when the new online training of the external cache is completed, notifying the external cache to perform a built-in self-test.
12. The single board according to claim 10, characterized in that The switching chip is used to monitor the external cache and perform built-in self-test based on the new online training parameters of the external cache, configure the external cache based on the new online training parameters of the external cache, store the new online training parameters of the external cache as the training parameters for the next single board startup of the external cache, and modify the training failure mark to a training success mark.
13. The single board according to claim 10, characterized in that The switching chip is used to monitor that the external cache fails to perform a built-in self-test based on the online training parameters of the external cache, and notify the processor; The processor executes the instruction and further performs the following operation to output HBM training failure notification information.
14. The single board according to claim 10 or 12, characterized in that: The switching chip is further used to restore the threshold value of the inter-chip cache area; and schedule the on-chip cache to cache the congested message in the external cache.
