A queue-level automatic answering method, device, equipment and storage medium
By using a queue-level fault automatic response method, the queue status is monitored and an automatic response is generated, which solves the problem of GPU chip link failure affecting the operation of other chips and achieves high reliability and high availability of the AI training system.
Patent Information
- Application Number
- CN202510594604.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-05-09
AI Technical Summary
In large-scale AI training clusters, when a single GPU chip link fails, it affects the normal operation of other chips. How can we ensure the high reliability and high availability of the AI training system?
By using a queue-level automatic fault response method, queue status information is monitored, automatic response is generated, faulty queues are isolated, and the operation of normal queues is ensured, thereby achieving fault convergence and isolation.
This improves the reliability and availability of the system, ensures the normal operation of other chips connected to the nearby chip, and avoids the impact of a single queue failure on the operation of the entire system.
Smart Images

Figure CN120508619B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a queue-level automatic response method, apparatus, device, and storage medium. Background Technology
[0002] In large-scale AI training clusters, there are numerous GPU chip computing cards, reaching the level of 100k. Each GPU chip computing card is interconnected with other GPU chip computing cards in the server rack through 16 expansion ports, with as many as 1600k interconnection cables. Furthermore, as the system scale and complexity increase, the number of faulty GPU links increases significantly per unit time.
[0003] Currently, when a single chip in an AI training system fails, it usually affects the normal operation of other chips. However, AI training systems typically require high reliability and high availability. Therefore, when a single chip in an AI system fails, how to ensure the convergence and isolation of the fault in the AI training system in order to maintain the normal operation of the AI training system is an urgent problem to be solved. Summary of the Invention
[0004] This invention provides an automatic response method for queue-level faults, which enables automatic response to queue-level faults when a queue sent by a near-end chip requester fails.
[0005] According to a first aspect of the present invention, a queue-level fault automatic response method is provided, comprising: monitoring a queue sent by a near-end chip requester to a remote chip based on distributed memory semantic communication, and recording the acquired queue status information into a queue status record table, wherein the queue status information includes a queue timestamp and a flight count;
[0006] The queue status record table is polled by the queue automatic response state machine, and the running status of each queue is determined according to the queue status information, wherein the running status includes fault timeout or normal.
[0007] The queue identifier with the running status of fault timeout is recorded in the timeout queue record table, and an automatic response is generated for the fault timeout queue and fed back to the near-end chip requester.
[0008] When the actual response is received from the remote chip and the timeout queue record table is consulted to determine that the actual response corresponds to the fault timeout queue, the actual response is filtered and discarded.
[0009] According to another aspect of the present invention, a queue-level fault automatic response device is provided, comprising: a queue monitoring module, used to monitor the queue sent by the near-end chip requester to the far-end chip based on distributed memory semantic communication, and to record the acquired queue status information in a queue status record table, wherein the queue status information includes a queue timestamp and the number of flights;
[0010] The running status determination module is used to poll the queue status record table through the queue automatic response state machine, and determine the running status of each queue according to the queue status information, wherein the running status includes fault timeout or normal.
[0011] An automatic response module is used to record the queue identifier with the running status of fault timeout to the timeout queue record table, and generate an automatic response for the fault timeout queue and feed it back to the near-end chip requester.
[0012] The actual response discarding module is used to filter and discard the actual response when it receives the actual response from the remote chip and determines, with reference to the timeout queue record table, that the actual response corresponds to a fault timeout queue.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] At least one processor; and
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method described in any embodiment of the present invention.
[0018] The technical solution of this invention addresses the issue that when a request sent to a remote chip by a near-end chip experiences a queue failure due to a port fault, an automatic response is generated for the fault queue and fed back to the near-end chip requester. Furthermore, the fault queue does not interfere with other normal queues. Therefore, network failures do not affect the normal operation of the near-end chip, achieving fault convergence and isolation. The automatic response also keeps the near-end chip alive, ensuring the normal operation of other chips connected to the near-end chip and thus improving the overall system's reliability and availability.
[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of an automatic response method for queue-level faults provided in Embodiment 1 of the present invention;
[0022] Figure 2 This is a schematic diagram of fault types in a network system according to Embodiment 1 of the present invention;
[0023] Figure 3 This is a schematic diagram of the application framework provided according to Embodiment 1 of the present invention;
[0024] Figure 4 This is a flowchart of another queue-level fault automatic response method provided according to an embodiment of the present invention;
[0025] Figure 5 This is a flowchart of a queue-level fault automatic response method provided in Embodiment 2 of the present invention;
[0026] Figure 6 This is a schematic diagram of the structure of a queue-level fault automatic response device provided in Embodiment 3 of the present invention;
[0027] Figure 7 This is a schematic diagram of the structure of the electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] Example 1
[0031] Figure 1 This is a flowchart of a queue-level fault automatic response method provided in Embodiment 1 of the present invention. This embodiment is applicable to automatically responding to queues of request transmission faults of near-end chips. This method can be executed by a queue-level fault automatic response device, which can be implemented in hardware and / or software. Figure 1 As shown, the method includes:
[0032] Step S101: Monitor the queue sent by the near-end chip requester to the remote chip based on distributed memory semantic communication, and record the obtained queue status information in the queue status record table.
[0033] Specifically, this application mainly addresses the situation where chips located in the same system communicate via RDMA in the form of queue pairs (QPs) in a Remote Direct Memory Access (RDMA) scenario, such as... Figure 2 The diagram illustrates the fault types of a network system. Solid lines represent physical circuit connections, while dashed lines represent queue pairs (QP) logical connections. Therefore, the fault types of a network system mainly include port faults and QP faults. When a port in the entire system experiences a connection loss, all QPs cannot function properly. Conversely, when a port is functioning normally, but a QP experiences a connection anomaly, in a network scenario, a port fault will inevitably trigger QP faults in other logical connection chips. The queue faults mentioned in this application primarily refer to QP faults.
[0034] Optionally, the queues sent by the near-end chip requester to the remote chip based on distributed memory semantic communication are monitored, and the acquired queue status information is recorded in the queue pair status record table. This includes: real-time monitoring of queue pairs transmitted by the near-end chip requester to the remote chip through the data transmission path based on distributed memory semantic communication, wherein each queue pair is marked with a queue identifier; obtaining the queue identifier and detection timestamp of each queue pair, and determining the target queue based on the queue identifier; updating the queue timestamp of the target queue in the queue pair status record table based on the detection timestamp, and incrementally updating the flight count of the target queue in the queue pair status record table based on the number of queue pairs belonging to the target queue.
[0035] Among them, such as Figure 3 The diagram illustrates the application framework involved in this embodiment. This application framework can specifically be a structure located within a chip. For example, when this structure is located in the near-end chip, if the near-end chip fails to send a request message in the form of a queue to the far-end chip, this structure can automatically respond within the near-end chip to prevent it from failing due to the inability to receive a response from the far-end chip caused by the request message failure. Figure 3 As shown, the application framework mainly includes a queue pair state record table, a queue pair automatic response state machine, a multi-queue first-in-first-out component, a timeout queue record table, and a response filter. Of course, this embodiment is merely an example and does not limit the specific content included in the application framework. In this embodiment, when the near-end chip and the far-end chip transmit data based on distributed memory semantic communication, the near-end chip sends requests to the far-end chip in the form of a queue. Furthermore, when the near-end chip sends the request data stream to the cloud chip through the data transmission path... Figure 3The application framework shown monitors queue pairs in real time along the data transmission path. Each queue pair is marked with a queue identifier. Therefore, queue pairs with the same queue identifier belong to the same queue request data. In this embodiment, the specific number of queues included in the request data sent from the near-end chip to the far-end chip is not limited. The application framework monitors and obtains the queue identifiers and detection timestamps of each queue pair flowing through the data transmission path. Based on the queue identifier, it determines the target queue to which the queue pair belongs, and updates the queue timestamp of the target queue recorded in the queue pair status record table according to the detection timestamp. For example, when it is determined that the queue identifier of the latest queue pair 'a' flowing through the data transmission path is 1, and the detection time is T1, the queue timestamp (TimeStamp) of queue 1 is updated to T1 in the queue pair status record table, and the outstanding counter for the number of flights of queue 1 is incremented by 1. The number of flights refers to the number of unfinished tasks where the near-end chip sent a request to the far-end chip but did not receive a response from the far-end chip. Therefore, the queue timestamp and the number of flights for each queue are specifically recorded in the queue pair status record table, and these values continuously change during the monitoring period. Table 1 below shows an example of the queue pair status record table at time t:
[0036] Table 1
[0037] queue Queue timestamp Flight count Queue 1 1:1:1:00 2 Queue 2 1:1:1:10 1 Queue 3 1:1:1:04 4 … … …
[0038] Table 1 specifies the number of queues, and the status record table shown in Table 1 is continuously updated over time.
[0039] Optionally, after recording the acquired queue status information into the queue pair status record table, the method further includes: acquiring the key information and queue identifier of the queue pair; and saving the correspondence between the key information and the queue identifier to the multi-queue first-in-first-out component.
[0040] Specifically, in this embodiment, after recording the acquired queue status information into the queue pair status record, the application framework also acquires key information of each queue pair, such as meta, and queue identifier, and saves the correspondence between the key information and the queue identifier into the multi-queue FIFO component. The multi-queue FIFO component in this embodiment can realize a logically multi-queue system, sharing a Static Random Access Memory (SRAM) buffer, and recording the order of each element in the multi-queue system to realize the FIFO function by queue. Since a queue can include multiple queue pairs, the multi-queue FIFO component records all the key information contained in each queue on a queue-by-queue basis.
[0041] In one specific implementation, the queue pair status record table already records the queue timestamp of queue 1 as 1:1:1:00 and the number of flights as 2; the queue timestamp of queue 2 as 1:1:1:10 and the number of flights as 1; and the queue timestamp of queue 3 as 1:1:1:04 and the number of flights as 4. When queue pair b, marked as queue 1, is detected passing through the data transmission path at the detection time 1:1:1:10, the queue timestamp of queue 1 is updated to 1:1:1:10 and the number of flights is updated to 3 in the queue pair status record table accordingly. In addition, after the queue pair status record table is updated, the key information contained in queue pair b will be extracted and saved to queue 1 of the multi-queue FIFO component. Of course, this embodiment only describes the update method of the queue pair status record table and the multi-queue FIFO component when the data path flows through queue pair a. When the data path flows through other queue pairs, the update method of the corresponding queue pair status record table and the multi-queue FIFO component is roughly the same, and will not be described in detail in this embodiment.
[0042] Step S102: The queue status record table is polled by the queue automatic response state machine, and the running status of each queue is determined according to the queue status information.
[0043] Optionally, the queue status record table is polled by the queue auto-responder state machine, and the operating status of each queue is determined according to the queue status information. This includes: obtaining the queue status information of each queue by polling the queue status record table by the queue auto-responder state machine; determining whether the number of flights in the queue status information is 0 for each queue. If so, the operating status of the currently polled queue is directly determined to be normal. Otherwise, the operating status of the currently polled queue is determined according to the current polling time and the queue timestamp in the queue status information.
[0044] Optionally, the running status of the currently polled queue can be determined based on the current polling time and the queue timestamp in the queue status information, including: obtaining a pre-configured time threshold and the time difference between the current polling time and the queue timestamp; determining whether the time difference is greater than the time threshold, if so, determining that the running status of the currently polled queue is fault timeout, otherwise, determining that the running status of the currently polled queue is normal.
[0045] Specifically, in this embodiment, while the application framework updates the queue pair status record table based on the monitoring of the data transmission path, the queue pair automatic response status machine polls the acquired queue pair status record table and obtains the queue status information of each queue recorded in the queue pair status record table. Based on the status information of each queue obtained through polling, the operating status of each queue is determined, where the operating status includes fault timeout or normal. For example, when it is determined that the number of flights included in the status information of queue 1 is 0, it indicates that the request information sent by the near-end chip requester to the far-end chip, i.e., all queue pairs in queue 1, has received a response from the far-end chip. In this case, the operating status of queue 1 is directly determined to be normal. When the number of flights contained in the running status information of queue 2 is determined to be non-zero, such as 2, the running status of queue 2 will be further determined based on the queue timestamp in the status information. When the pre-configured time threshold is determined to be 1 millisecond, the current polling time is 1:1:2:20, and the queue timestamp of queue 2 is 1:1:1:05, it is determined by calculation that the time difference between the current polling time and the queue timestamp is greater than the time threshold of 1 millisecond. That is, after the near-end chip sends the request for queue 2 to the far-end chip, it has not received a response from the far-end chip. At this time, the running status of the currently polled queue 2 is determined to be fault timeout. Only when the time difference is less than the threshold can the running status of queue 2 be determined to be normal. Of course, this embodiment is only used as an example to illustrate the method of obtaining the running status of queue 2. The method of obtaining the running status of other queues is roughly the same, and will not be described in detail in this embodiment.
[0046] Step S103: Record the queue identifier with the running status of fault timeout to the timeout queue record table, and generate an automatic response for the fault timeout queue and send it back to the near-end chip requester.
[0047] Optionally, before generating an automatic response for the queue that has timed out due to a fault and sending it back to the requesting chip at the near end, the process may include: obtaining the queue identifier marked on the queue pair that passed through the data transmission path; querying the timeout queue record table based on the queue identifier; and if it is determined that the same queue identifier is contained in the timeout queue record table, filtering and discarding the queue pair that was transmitted to the remote chip and triggering the start of the automatic response procedure.
[0048] Optionally, an automatic response is generated for the fault-timed queue and fed back to the near-end chip requester, including: generating an automatic response based on key information of the fault-timed queue according to the automatic response program; adding an interrupt flag to the automatic response and feeding back the automatic response with the interrupt flag to the near-end chip requester.
[0049] Specifically, in this embodiment, after determining the operating status of each queue in the automatic response state, the queue identifier with the operating status determined to be fault timeout is recorded in the timeout queue record table. Since the queue status record table is updated in real time during the process of the near-end chip requesting data to the far-end chip, the corresponding timeout queue record table is also updated in real time. Table 2 below shows an example of the timeout queue record table obtained at time t:
[0050] Table 2
[0051] queue Operational failure Queue 2 Fault timeout Queue 3 Fault timeout Queue 6 Fault timeout … …
[0052] Table 2 limits the number of queues, and the timeout queue record table shown in Table 2 is continuously updated over time. When the timeout queue record table is updated, if queue pair 'a' sent from the near-end chip to the far-end chip flows through the data transmission path, the timeout queue record table needs to be queried. If queue pair 'a' is identified as queue 2, and queue 2 is present in the timeout queue record table, then queue 2 to which queue pair 'a' belongs has failed. Therefore, queue pair 'a' is filtered out and discarded, triggering the automatic execution program. In this embodiment, by filtering out and discarding faulty queue pairs, isolation between the near-end chip's internal network and the external network is achieved.
[0053] It should be noted that when the automatic response program is activated, the queue will generate an automatic response for queue 2 (which has timed out due to a fault) and send it back to the requesting near-end chip. This is because if queue 2 fails and is filtered out, the near-end chip will remain in a waiting state if it doesn't receive a response from the remote chip. Other chips relying on the near-end chip's execution results will also be unable to operate normally. Since the execution result of a single queue has little impact on the overall execution result of the near-end chip, an automatic response is generated for the single faulty queue. Furthermore, generating an automatic response for a faulty queue does not affect the acquisition of responses from the remote chip for normal queues. Normal queues can still be accessed normally, allowing the near-end chip to obtain execution results based on the responses from all queues. This keeps the near-end chip in a keep-alive state, preventing the entire chip or even the entire system from being interrupted due to a single queue failure within the near-end chip, thus isolating internal chip faults from the external network. Furthermore, when the queue pair auto-responder state machine determines that the faulty queue is queue 2 and the auto-responder program is initiated, it retrieves the key information associated with queue 2 from the multi-queue first-in-first-out component. Since queue 2 can include multiple queue pairs, the number of key information pieces retrieved can be multiple. After retrieving all the key information for queue 2, the auto-responder program generates an auto-responder response for queue 2 based on all the key information. To facilitate the distinction between the auto-responder response and the actual response from the remote chip, an interrupt flag is added to the auto-responder response, and this interrupt-flagged auto-responder response is fed back to the near-end chip requester. Therefore, in this embodiment, when a normally functioning chip experiences a sudden port failure, the computing core's access to the port will not cause program errors. The auto-responder can automatically respond to every access, including abnormal interrupts, ensuring the normal operation of the chip's internal components and programs.
[0054] Step S104: When the actual response is received from the remote chip and the timeout queue record table is used to determine that the actual response corresponds to the fault timeout queue, the actual response is filtered and discarded.
[0055] Optionally, when an actual response is received from the remote chip and the timeout queue record table is consulted to determine that the actual response corresponds to a fault-timeout queue, the actual response is filtered and discarded. This includes: receiving the actual response from the remote chip through a response filter, wherein the actual response is marked with a queue identifier; querying the timeout queue record table based on the queue identifier marked in the actual response; and when it is determined that a queue identifier identical to the actual response is found in the timeout queue record table, it is determined that the actual response corresponds to a fault-timeout queue, and the actual response corresponding to the fault-timeout queue is filtered and discarded.
[0056] Specifically, such as Figure 4 The diagram shows a flowchart of another queue-level fault automatic response method. Figure 4 Step S104 will be explained in detail, mainly including the following steps:
[0057] Step S1041: Receive the actual response from the remote chip via the response filter.
[0058] Specifically, the application framework also includes a response filter. In this embodiment, the actual response fed back by the remote chip is received through the response filter. The actual response is marked with a queue identifier, and the actual response corresponds to a queue pair.
[0059] Step S1042: Query the timeout queue record table according to the queue identifier marked in the actual response.
[0060] Specifically, in this embodiment, after obtaining the actual response, a query is performed on the timeout queue record table based on the queue identifier. Specifically, it checks if the same queue identifier exists in the timeout queue record table; this embodiment does not limit the query result. Furthermore, in this embodiment, the actual response corresponds to a queue pair. The actual response may correspond to a queue pair in a normal queue or a normal queue pair in a faulty queue. For example, if it is determined that queue 1 contains queue pair a and queue pair b, when the near-end chip requests queue pair a, queue 1 is still in a normal state and successfully sends queue pair a as a remote request to the remote chip. However, when queue pair b is sent, the state of queue 1 changes to fault timeout. In this case, the remote chip will still generate a remote response for queue pair a and send it back to the near-end chip.
[0061] Step S1043: When it is determined that a queue identifier with the same name as the actual response is found in the timeout queue record table, it is determined that the actual response corresponds to the fault timeout queue, and the actual response corresponding to the fault timeout queue is filtered and discarded.
[0062] Specifically, when it is determined that the queue identifier that is the same as the actual response is found in the timeout queue record table, for example, the actual response is the response to queue pair a mentioned above, and queue 1 is marked. If queue 1 is also included in the timeout queue record table, then it is determined that the actual response corresponds to the fault timeout queue. Since queue 1 has already been identified as the fault timeout queue when transmitting queue pair b, and an automatic response has already been generated for queue 1 and fed back to the near-end chip requester, in order to avoid the repeated transmission of the response to queue 1, the currently obtained actual response will be filtered and discarded through the response filter.
[0063] In this embodiment, when the requester of the near-end chip experiences a queue failure due to a port fault, an automatic response is generated for the fault queue and fed back to the requester of the near-end chip. Furthermore, the fault queue does not interfere with other normal queues. Therefore, network failures do not affect the normal operation of the near-end chip, achieving fault convergence and isolation. Moreover, the near-end chip is kept alive through automatic response, ensuring the normal operation of other chips connected to the near-end chip, thereby achieving the normal operation of the entire system and improving the reliability and availability of the system.
[0064] Example 2
[0065] Figure 5 The flowchart of a queue-level fault automatic response method provided in Embodiment 2 of the present invention is based on the above embodiments. After querying the timeout queue record table according to the queue identifier marked in the actual response, the method further includes: when it is determined that no queue identifier identical to the actual response is found in the timeout queue record table, the processing procedure for the actual response is specifically described, such as... Figure 5 As shown, the method includes steps S201-S209. Steps S201-S207 have been specifically described in the above embodiments and will not be repeated in this embodiment.
[0066] Step S201: Monitor the queue sent by the near-end chip requester to the remote chip based on distributed memory semantic communication, and record the obtained queue status information in the queue status record table.
[0067] Optionally, the queues sent by the near-end chip requester to the remote chip based on distributed memory semantic communication are monitored, and the acquired queue status information is recorded in the queue pair status record table. This includes: real-time monitoring of queue pairs transmitted by the near-end chip requester to the remote chip through the data transmission path based on distributed memory semantic communication, wherein each queue pair is marked with a queue identifier; obtaining the queue identifier and detection timestamp of each queue pair, and determining the target queue based on the queue identifier; updating the queue timestamp of the target queue in the queue pair status record table based on the detection timestamp, and incrementally updating the flight count of the target queue in the queue pair status record table based on the number of queue pairs belonging to the target queue.
[0068] Optionally, after recording the acquired queue status information into the queue pair status record table, the method further includes: acquiring the key information and queue identifier of the queue pair; and saving the correspondence between the key information and the queue identifier to the multi-queue first-in-first-out component.
[0069] Step S202: The queue status record table is polled by the queue automatic response state machine, and the running status of each queue is determined according to the queue status information.
[0070] Optionally, the queue status record table is polled by the queue auto-responder state machine, and the operating status of each queue is determined according to the queue status information. This includes: obtaining the queue status information of each queue by polling the queue status record table by the queue auto-responder state machine; determining whether the number of flights in the queue status information is 0 for each queue. If so, the operating status of the currently polled queue is directly determined to be normal. Otherwise, the operating status of the currently polled queue is determined according to the current polling time and the queue timestamp in the queue status information.
[0071] Optionally, the running status of the currently polled queue can be determined based on the current polling time and the queue timestamp in the queue status information, including: obtaining a pre-configured time threshold and the time difference between the current polling time and the queue timestamp; determining whether the time difference is greater than the time threshold, if so, determining that the running status of the currently polled queue is fault timeout, otherwise, determining that the running status of the currently polled queue is normal.
[0072] Step S203: Record the queue identifier with the running status of fault timeout to the timeout queue record table, and generate an automatic response for the fault timeout queue and send it back to the near-end chip requester.
[0073] Optionally, before generating an automatic response for the queue that has timed out due to a fault and sending it back to the requesting chip at the near end, the process may include: obtaining the queue identifier marked on the queue pair that passed through the data transmission path; querying the timeout queue record table based on the queue identifier; and if it is determined that the same queue identifier is contained in the timeout queue record table, filtering and discarding the queue pair that was transmitted to the remote chip and triggering the start of the automatic response procedure.
[0074] Optionally, an automatic response is generated for the fault-timed queue and fed back to the near-end chip requester, including: generating an automatic response based on key information of the fault-timed queue according to the automatic response program; adding an interrupt flag to the automatic response and feeding back the automatic response with the interrupt flag to the near-end chip requester.
[0075] Step S204: Receive the actual response from the remote chip via the response filter.
[0076] Step S205: Query the timeout queue record table according to the queue identifier marked in the actual response.
[0077] Step S206: Determine whether the queue identifier that matches the actual response is found in the timeout queue record table. If yes, proceed to step S207; otherwise, proceed to step S208.
[0078] Step S207: Determine that the actual response corresponds to the fault timeout queue, and filter and discard the actual response corresponding to the fault timeout queue.
[0079] Step S208: Determine that the actual response corresponds to a normal queue, and send the actual response to the queue pair automatic response state machine through the response filter.
[0080] Specifically, if no queue identifier matching the actual response is found in the timeout queue record table, it means that the actual response queue is a normal queue and corresponds to a queue pair within the normal queue. In this case, the response filter will not filter and discard the actual response, but will instead send the actual response to the queue pair's automatic response state machine.
[0081] Step S209: The actual response is sent to the near-end chip requester via the automatic response state machine, and the queue status record table is updated according to the actual response.
[0082] Optionally, the automatic response state machine sends the actual response to the near-end chip requester, and updates the queue status record table according to the actual response, including: deleting key information matching the queue identifier marked in the actual response from the multi-queue FIFO component through the automatic response state machine; sending the actual response to the near-end chip requester through the multi-queue FIFO component after the key information deletion; determining the status information matching the queue identifier marked in the actual response in the queue status record table through the automatic response state machine, and updating the number of flights contained in the matching status information by decrement.
[0083] The automatic response state machine, upon receiving an actual response marked as queue 1, performs two main actions. First, it decrements the flight count corresponding to queue 1 in Table 1. For example, it updates the flight count (2) for queue 1 to 1. Since the flight count refers to the number of unfinished tasks where the near-end chip sent a request to the far-end chip but did not receive a response, a response for a request indicates a completed task, thus reducing the number of unfinished tasks. Second, it removes key information matching queue 1 from the multi-queue FIFO component to reduce storage pressure. After key information removal, the multi-queue FIFO component sends the actual response from the far-end chip to the near-end chip requester.
[0084] It should be noted that in this embodiment, in the multi-queue pair FIFO component, key information of each queue pair is stored sequentially for each queue. When the queue is in a normal state, each time an actual response is received from a remote chip for a queue pair in the queue, the key information of the queue pair corresponding to the actual response is deleted from the multi-queue pair FIFO component. When the queue is updated to a fault timeout state, the queue pair automatic response state machine generates an automatic response based on the remaining key information of the fault timeout queue in the multi-queue pair FIFO component. For example, queue 1 includes queue pairs a, b, and c. When the near-end chip requester transmits queue pair a to the far-end chip, it extracts the key information 1 corresponding to a and saves it under the queue 1 identifier in the multi-queue pair FIFO component. It also determines that queue 1 is in a normal state. Therefore, when it receives the actual response 1 from the far-end chip and sends the actual response back to the near-end chip requester, it also deletes the key information 1 under the queue 1 identifier in the multi-queue FIFO component. When the near-end chip requester transmits queue pair b to the far-end chip, it extracts the key information 2 corresponding to b and saves it under the queue 1 identifier in the multi-queue pair FIFO component. It also determines that queue 2 has been updated to a fault timeout state. Since queue pair b is filtered and discarded after passing through the data transmission path and is not sent to the far-end chip, the queue pair automatic response status machine generates an automatic response for queue 1 based on the key information 2 under the queue identifier 1 in the multi-queue FIFO component and sends it back to the near-end chip requester. Of course, this embodiment only illustrates the case where queue 1 contains two queue pairs. The automatic response method for other queues is roughly the same, and will not be described in detail in this embodiment.
[0085] In this embodiment, when the requester of the near-end chip experiences a queue failure due to a port fault, an automatic response is generated for the fault queue and fed back to the requester of the near-end chip. Furthermore, the fault queue does not interfere with other normal queues. Therefore, network failures do not affect the normal operation of the near-end chip, achieving fault convergence and isolation. Moreover, the near-end chip is kept alive through automatic response, ensuring the normal operation of other chips connected to the near-end chip, thereby achieving the normal operation of the entire system and improving the reliability and availability of the system.
[0086] Example 4
[0087] Figure 6 A schematic diagram of a queue-level fault automatic response device provided in Embodiment 4 of the present invention is shown. Figure 6 As shown, the device includes: a queue monitoring module 310, an operating status determination module 320, an automatic response module 330, and an actual response discard module 340.
[0088] The queue monitoring module 310 is used to monitor the queue sent by the near-end chip requester to the far-end chip based on distributed memory semantic communication, and to record the obtained queue status information in the queue status record table. The queue status information includes the queue timestamp and the number of flights.
[0089] The running status determination module 320 is used to poll the queue status record table through the queue automatic response state machine and determine the running status of each queue based on the queue status information. The running status includes fault timeout or normal.
[0090] The automatic response module 330 is used to record the queue identifier with the running status of fault timeout to the timeout queue record table, and generate an automatic response for the fault timeout queue and send it back to the near-end chip requester.
[0091] The actual response discarding module 340 is used to filter and discard the actual response when it receives the actual response from the remote chip and determines, by referring to the timeout queue record table, that the actual response should correspond to the fault timeout queue.
[0092] Optionally, the device also includes a key information storage module for acquiring key information and queue identifiers of queue pairs;
[0093] Save the correspondence between key information and queue identifiers to the multi-queue first-in-first-out component.
[0094] Optionally, an automatic response module is used to generate an automatic response based on key information of the queue that has timed out due to a fault, according to the automatic response program.
[0095] Add an interrupt flag to the auto-response and send the auto-response with the interrupt flag back to the requesting chip at the near end.
[0096] Optionally, a queue monitoring module is used to monitor in real time the queue pairs that are transmitted from the near-end chip requester to the remote chip through the data transmission path based on distributed memory semantic communication, wherein each queue pair is marked with a queue identifier.
[0097] Obtain the queue identifier and detection timestamp of each queue pair, and determine the target queue based on the queue identifier;
[0098] The queue timestamp of the target queue in the queue pair status record table is updated based on the detection timestamp, and the number of flights of the target queue in the queue pair status record table is incrementally updated based on the number of queue pairs belonging to the target queue.
[0099] Optionally, the device also includes an automatic response procedure initiation module for obtaining the queue identifier marked on the queue pair through the data transmission path;
[0100] The system queries the timeout queue record table based on the queue identifier. If the same queue identifier is found in the timeout queue record table, the queue pair to be transmitted to the remote chip is filtered and discarded, and the automatic response procedure is triggered.
[0101] Optionally, a running status determination module is used to obtain the queue status information of each queue by polling the queue status record table through the queue automatic response state machine.
[0102] For each queue, check if the number of flights in the queue status information is 0. If it is, determine that the current queue is running normally. Otherwise, determine the current queue's running status based on the current polling time and the queue timestamp in the queue status information.
[0103] Optionally, the running status determination module is also used to obtain a pre-configured time threshold and the time difference between the current polling time and the queue timestamp;
[0104] Determine if the time difference is greater than the time threshold. If it is, determine that the current polling queue is in a fault timeout state. Otherwise, determine that the current polling queue is in a normal state.
[0105] Optionally, an actual response discarding module is used to receive the actual response fed back by the remote chip through a response filter, wherein the actual response is marked with a queue identifier;
[0106] The timeout queue record table is queried based on the queue identifier marked in the actual response.
[0107] When a queue identifier matching the actual response is found in the timeout queue record table, it is determined that the actual response corresponds to the fault timeout queue, and the actual response corresponding to the fault timeout queue is filtered and discarded.
[0108] Optionally, the device also includes a queue status record table update module, which determines that the actual response corresponds to a normal queue when it is determined that no queue identifier matching the actual response is found in the timeout queue record table.
[0109] The actual response is sent to the queue pair automatic response state machine via a response filter;
[0110] The automatic response state machine sends the actual response to the requesting chip at the near end and updates the queue status record table based on the actual response.
[0111] Optionally, the queue status record table update module is also used to delete key information that matches the queue identifier marked in the actual response from the multi-queue first-in-first-out component through the automatic response state machine;
[0112] The multi-queue first-in-first-out component, which completes the deletion of key information, sends the actual response to the near-end chip requester.
[0113] The automatic response state machine determines the state information that matches the queue identifier marked in the actual response in the queue status record table, and updates the number of flights contained in the matching state information by decrementing.
[0114] The queue-level fault automatic response device provided in the embodiments of the present invention can execute the queue-level fault automatic response method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0115] Example 5
[0116] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement embodiments of the present invention is provided. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0117] like Figure 7 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer programs stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0118] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0119] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as queue-level fault automatic response methods.
[0120] In some embodiments, the queue-level fault automatic response method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the queue-level fault automatic response method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the queue-level fault automatic response method by any other suitable means (e.g., by means of firmware).
[0121] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0122] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0123] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0124] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0125] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0126] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0127] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0128] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A queue-level fault automatic response method, characterized in that, include: The queue sent by the near-end chip requester to the far-end chip based on distributed memory semantic communication is monitored, and the obtained queue status information is recorded in the queue status record table, wherein the queue status information includes the queue timestamp and the number of flights. The queue status record table is polled by the queue automatic response state machine, and the running status of each queue is determined according to the queue status information, wherein the running status includes fault timeout or normal. The queue identifier with the running status of fault timeout is recorded in the timeout queue record table, and an automatic response is generated for the fault timeout queue and fed back to the near-end chip requester. When the actual response is received from the remote chip and it is determined from the timeout queue record table that the actual response corresponds to the fault timeout queue, the actual response is filtered and discarded. The step of polling the queue status record table through the queue pair automatic response state machine and determining the operating status of each queue based on the queue status information includes: obtaining the queue status information of each queue by polling the queue pair status record table through the queue pair automatic response state machine; determining whether the number of flights in the queue status information is 0 for each queue; if so, directly determining that the operating status of the currently polled queue is normal; otherwise, determining the operating status of the currently polled queue based on the current polling time and the queue timestamp in the queue status information. The step of determining the running status of the currently polled queue based on the current polling time and the queue timestamp in the queue status information includes: obtaining a pre-configured time threshold and the time difference between the current polling time and the queue timestamp; determining whether the time difference is greater than the time threshold; if so, determining that the running status of the currently polled queue is fault timeout; otherwise, determining that the running status of the currently polled queue is normal.
2. The method according to claim 1, characterized in that, After recording the acquired queue status information into the queue status record table, the method further includes: Obtain key information and queue identifiers for queue pairs; The correspondence between the key information and the queue identifier is saved to the multi-queue first-in-first-out component.
3. The method according to claim 2, characterized in that, The automatic response generation for fault timeouts and its feedback to the near-end chip requester includes: Based on the automatic response program, an automatic response is generated for queues that have timed out due to faults, referring to the aforementioned key information. An interrupt flag is added to the automatic response, and the automatic response with the interrupt flag is fed back to the near-end chip requester.
4. The method according to claim 3, characterized in that, The monitoring of the queue sent by the near-end chip requester to the remote chip based on distributed memory semantic communication, and the recording of the acquired queue status information in the queue status record table, includes: The queue pairs that the near-end chip requester transmits to the far-end chip through the data transmission path based on distributed memory semantic communication are monitored in real time, wherein each queue pair is marked with a queue identifier. Obtain the queue identifier and detection timestamp of each queue pair, and determine the target queue based on the queue identifier; The queue timestamp of the target queue in the queue pair status record table is updated according to the detection timestamp, and the number of flights of the target queue in the queue pair status record table is incrementally updated according to the number of queue pairs belonging to the target queue.
5. The method according to claim 4, characterized in that, Before the automatic response for fault timeout is generated and fed back to the near-end chip requester, the process also includes: Obtain the queue identifier marked on the queue pair through the data transmission path; The timeout queue record table is queried based on the queue identifier. When it is determined that the same queue identifier is contained in the timeout queue record table, the queue pair transmitted to the remote chip is filtered and discarded, and the automatic response program is triggered.
6. The method according to claim 2, characterized in that, When the actual response is received from the remote chip and the timeout queue record table is consulted to determine that the actual response corresponds to a fault timeout queue, the actual response is filtered and discarded, including: The actual response fed back by the remote chip is received through a response filter, wherein the actual response is marked with a queue identifier; The timeout queue record table is queried based on the queue identifier marked in the actual response. When it is determined that a queue identifier identical to the actual response is found in the timeout queue record table, it is determined that the actual response corresponds to the fault timeout queue, and the actual response corresponding to the fault timeout queue is filtered and discarded.
7. The method according to claim 6, characterized in that, After querying the timeout queue record table based on the queue identifier marked in the actual response, the method further includes: If it is determined that no queue identifier matching the actual response is found in the timeout queue record table, then it is determined that the actual response corresponds to a normal queue. The actual response is sent to the queue pair automatic response state machine through the response filter; The automatic response state machine sends the actual response to the near-end chip requester and updates the queue status record table based on the actual response.
8. The method according to claim 7, characterized in that, The step of sending the actual response to the near-end chip requester via the automatic response state machine, and updating the queue status record table based on the actual response, includes: The automatic response state machine deletes key information from the multi-queue first-in-first-out component that matches the queue identifier marked in the actual response; The multi-queue first-in-first-out component, after deleting key information, sends the actual response to the near-end chip requester. The automatic response state machine determines the status information that matches the queue identifier marked in the actual response in the queue status record table, and updates the number of flights contained in the matched status information by decreasing it.
9. A queue-level fault automatic response device, characterized in that, include: The queue monitoring module is used to monitor the queue sent by the near-end chip requester to the remote chip based on distributed memory semantic communication, and to record the acquired queue status information in the queue status record table, wherein the queue status information includes the queue timestamp and the number of flights. The operation status determination module is used to poll the queue status record table of the queue pair through the queue pair automatic response state machine to obtain the queue status information of each queue. For each queue, it determines whether the number of flights in the queue status information is 0. If so, it directly determines that the operation status of the currently polled queue is normal. Otherwise, it determines the operation status of the currently polled queue based on the current polling time and the queue timestamp in the queue status information. The operation status includes fault timeout or normal. An automatic response module is used to record the queue identifier with the running status of fault timeout to the timeout queue record table, and generate an automatic response for the fault timeout queue and feed it back to the near-end chip requester. The actual response discarding module is used to filter and discard the actual response when it receives the actual response from the remote chip and determines that the actual response corresponds to a fault timeout queue by referring to the timeout queue record table. The running status determination module is further configured to: obtain a pre-configured time threshold and the time difference between the current polling time and the queue timestamp; determine whether the time difference is greater than the time threshold; if so, determine that the running status of the currently polled queue is fault timeout; otherwise, determine that the running status of the currently polled queue is normal.
10. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that is executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to perform the method of any one of claims 1-8.
Citation Information
Patent Citations
Memory behavior determinacy replay system and method in FPGA (Field Programmable Gate Array) acceleration simulation
CN117556757A
Queue storage management system under RDMA network
CN119690880A
