Method and device for executing transmission task

By generating and managing transmission task sequences and optimizing the utilization of DMA resources, the problem of DMA resource blocking is solved, data transmission efficiency and error processing capabilities are improved, and system stability and response speed are ensured.

CN119066003APending Publication Date: 2024-12-03SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411059809.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

During data transmission, DMA resources need to wait for the CPU to interrupt processing after a transmission task is completed, resulting in the resource being blocked and the efficiency is low.

Method used

Automatically generate and manage transmission task sequences through preset configuration information, execute current transmission tasks and store results in the buffer pool, reduce CPU participation processing time, prioritize high-priority tasks, and perform configuration corrections and repeated execution when errors are detected , to improve transmission efficiency and stability.

Benefits of technology

It improves the execution efficiency and response speed of data transmission, reduces CPU processing time, enhances error processing capabilities and system robustness, and avoids the risk of data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066003A_ABST
    Figure CN119066003A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, and discloses a method and device for executing a transmission task. The method comprises the following steps: receiving a plurality of data transmission requests; based on preset configuration information, transmission tasks corresponding to the data transmission requests are generated, and a transmission task sequence is obtained; executing a current transmission task in the transmission task sequence to obtain a first transmission result of the current transmission task; storing the first transmission result in a buffer pool; and acquiring a next transmission task in the transmission task sequence, taking the next transmission task as the current transmission task, and skipping to execute the current transmission task in the transmission task sequence. The transmission task sequence is automatically generated through the preset configuration information, the current transmission task of the transmission task sequence is executed, then the transmission result of the current transmission task is obtained, the transmission result is stored in the buffer pool, the next transmission task can be started to be executed, the processing participation time of the central processing unit is shortened, and the processing efficiency is improved. And the execution efficiency of the transmission task is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a method, an apparatus, a computer device and a storage medium for executing a transmission task. Background Art

[0002] In modern computer systems and digital devices, high-speed and efficient data transmission has become a key factor in improving system performance. With the rapid growth of data volume and the improvement of real-time requirements, the traditional data transmission method dominated by the central processing unit (CPU) has gradually shown its limitations. In this context, direct memory access (DMA) technology has emerged and has become an important solution for achieving high-speed data transmission.

[0003] DMA technology is a data transmission method that allows data to be exchanged directly between peripherals or memories without the intervention of the CPU. Its basic principle is to manage the data transmission process through a dedicated DMA controller (DMAC), thereby reducing the burden on the CPU and improving the speed and efficiency of data transmission.

[0004] At present, the DMA controller, as the core component of the entire system, is responsible for controlling the transmission task of data transmission. Through the transmission task, data can be directly transferred from the peripheral to the memory, or from the memory to the peripheral without the real-time participation of the CPU. This mechanism greatly improves the efficiency of data transmission and the overall performance of the system.

[0005] However, after a transmission task is completed, it is necessary to wait for the CPU to interrupt the transmission task and then reconfigure the next transmission task. During this process, DMA resources are blocked and the efficiency is low. Summary of the invention

[0006] In view of this, the present invention provides a method, apparatus, computer equipment and storage medium for executing transmission tasks to solve the problem that after a transmission task is completed, it is necessary to wait for the CPU to interrupt the transmission task and then reconfigure the next transmission task. During this process, DMA resources are blocked and the efficiency is low.

[0007] In a first aspect, the present invention provides a method for executing a transmission task, the method comprising: receiving multiple data transmission requests; generating transmission tasks corresponding to each data transmission request based on preset configuration information to obtain a transmission task sequence; executing the current transmission task in the transmission task sequence to obtain a first transmission result of the current transmission task; storing the first transmission result in a buffer pool; obtaining the next transmission task in the transmission task sequence, taking the next transmission task as the current transmission task, and jumping to executing the current transmission task in the transmission task sequence.

[0008] The method for executing a transmission task provided in this embodiment automatically generates and manages the entire transmission task sequence through preset configuration information, then executes the current transmission task of the transmission task sequence, then obtains the first transmission result of the current transmission task, and stores the first transmission result in a buffer pool. The first transmission result in the buffer pool can wait for further processing by the central processing unit, and then the next transmission task can be started and a new data transfer process can be performed, thereby reducing the time that the central processing unit participates in processing, thereby improving the execution efficiency of the transmission task.

[0009] In an optional embodiment, executing the current transmission task in the transmission task sequence includes: sorting the priorities of each data transmission request based on a preset priority order to obtain a sorting result; based on the sorting result, executing the current transmission task in the transmission task sequence in order from high to low priority.

[0010] The method for executing the transmission task provided by the present embodiment can ensure that the critical or urgent data transmission request is responded and processed in time by giving priority to the task of high priority, thereby improving the response speed and execution efficiency of the whole data transmission system. And for the tasks of low priority, although they may need to wait for the high priority task to be completed before execution, on the whole, because the high priority task is processed in time, the average waiting time of the whole task queue may be reduced. In addition, the low priority task can also carry out necessary pre-processing or optimization during the waiting period to reduce the overhead during the subsequent execution.

[0011] In an optional embodiment, the method also includes: detecting whether the first transmission result indicates a transmission error; if the first transmission result indicates a transmission error, detecting whether the first identifier flag corresponding to the next transmission task in the transmission task sequence satisfies a preset state; if the first identifier flag satisfies the preset state, correcting the configuration information according to the preset configuration modification information to obtain the modified configuration information; based on the modified configuration information, updating the next transmission task in the transmission task sequence.

[0012] The method for executing a transmission task provided in this embodiment can detect whether the first transmission result indicates a transmission error, so that the system can timely discover and respond to problems in the transmission process. When an error is found, instead of simply stopping or failing, an attempt is made to make a further response by checking the configuration information of the next transmission task and then modifying the configuration information by using preset configuration modification information, thereby enhancing the error handling capability and recovery capability, making it more flexible and robust when facing errors.

[0013] In an optional embodiment, the configuration information includes at least: multiple initial codes, an initial source address, an initial target address, an initial data transmission length and an initial data transmission type; the preset configuration modification information includes: multiple preset codes, a preset source address, a preset target address, a preset data transmission length and a preset data transmission type; the configuration information is modified according to the preset configuration modification information to obtain the modified configuration information, including: matching the initial code and the preset code, and based on the matching result, performing at least one of the following: determining the preset source address corresponding to the initial source address, and correcting the initial source address according to the preset source address; determining the preset target address corresponding to the initial target address, and correcting the initial target address according to the preset target address; determining the preset data transmission length corresponding to the initial data transmission length, and correcting the initial data transmission length according to the preset data transmission length; determining the preset data transmission type corresponding to the initial data transmission type, and correcting the initial data transmission type according to the preset data transmission type to obtain the target configuration information.

[0014] The method for executing a transmission task provided in this embodiment can accurately correct the next transmission task corresponding to the current transmission task with the error based on the preset configuration modification information when a transmission error is detected, that is, by matching the initial code and the preset code, the configuration information that needs to be corrected can be accurately found and corrected accordingly. This precise error handling mechanism reduces the possibility of erroneous correction and improves the stability and reliability of executing the transmission task. In addition, by optimizing at least one of the initial source address, the initial target address, the initial data transmission length, and the initial data transmission type, network resources can be more effectively utilized to improve the efficiency of executing the transmission task.

[0015] In an optional embodiment, the above method also includes: if the first transmission result indicates a transmission error, repeatedly executing the current transmission task in the transmission task sequence until the first transmission result indicates that the transmission is correct or the number of repeated executions reaches a preset number, and storing the first transmission result in the buffer pool.

[0016] The method for executing a transmission task provided in this embodiment can correct the failure of executing a transmission task caused by temporary network fluctuations, equipment failure, etc. by repeatedly executing the current transmission task with an error, thereby reducing the need to restart the entire task sequence due to a single failure.

[0017] In an optional embodiment, the current transmission task includes multiple segmented transmission tasks; the above method also includes: if the first transmission result indicates a transmission error, determining at least one target transmission task from each segmented transmission task; wherein the target transmission task is a transmission task with an error; repeatedly executing the target transmission task until the target transmission result corresponding to the obtained target transmission task is correct or the number of repeated executions of the target transmission task reaches a preset number, and storing the first transmission result in the buffer pool.

[0018] The method for executing a transmission task provided in this embodiment subdivides the current transmission task into multiple segments, and can independently control and manage each segment. Then, by repeating instructions for the erroneous segmented transmission task, there is no need to wait for the entire task sequence to be re-executed, thereby shortening the time from the occurrence of an error to the resumption of normal transmission.

[0019] In an optional embodiment, before obtaining the next transmission task in the transmission task sequence, the above method also includes: detecting whether the buffer pool is in an overflow state; if the buffer pool is not in an overflow state, executing the next transmission task in the transmission task sequence; if the buffer pool is in an overflow state, stopping the execution of the next transmission task in the transmission task sequence until the buffer pool is not in an overflow state.

[0020] In the method for executing a transmission task provided by this embodiment, when the buffer pool is full, continuing to store new transmission results may cause old data to be overwritten or lost. By detecting the buffer pool status and stopping acquiring new tasks when it is full, the security and integrity of existing data can be ensured, avoiding the risk of data loss.

[0021] In a second aspect, the present invention provides a device for executing a transmission task, the device comprising: a receiving module for receiving multiple data transmission requests; a generating module for generating transmission tasks corresponding to each data transmission request based on preset configuration information, and obtaining a transmission task sequence; a first execution module for executing a current transmission task in the transmission task sequence, and obtaining a first transmission result of the current transmission task; a storage module for storing the first transmission result in a buffer pool; and a second execution module for obtaining a next transmission task in the transmission task sequence, taking the next transmission task as the current transmission task, and jumping to executing the current transmission task in the transmission task sequence.

[0022] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the method for executing a transmission task according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0023] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for performing a transmission task according to the first aspect or any corresponding embodiment thereof.

[0024] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for executing a transmission task according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 It is a schematic diagram of DMA interaction of Duohe chip in related technology.

[0027] Figure 2 is a schematic diagram of the structure of a system for performing a transmission task provided according to an embodiment of the present invention

[0028] Figure 3 is a flow chart of a method for executing a transmission task according to an embodiment of the present invention;

[0029] Figure 4 is a flow chart of a method for executing a transmission task according to an embodiment of the present invention;

[0030] Figure 5 is a flow chart of a method for executing a transmission task according to an embodiment of the present invention;

[0031] Figure 6 is a schematic diagram of configuration information modification in a method for executing a transmission task according to an embodiment of the present invention;

[0032] Figure 7 is a comparison diagram of the effect between the method for executing a transmission task according to an embodiment of the present invention and the traditional method for executing a transmission task;

[0033] Figure 8is a structural block diagram of an apparatus for performing a transmission task according to an embodiment of the present invention;

[0034] Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0036] Based on the relevant technology, DMA (Direct Memory Access) is a technology for high-speed data transmission in digital systems. It copies data from one address space to another address space through the DMAC (Direct Memory Access Controller) controller, providing high-speed data transmission between peripherals and memory and between memory and memory. The DMA data transmission process does not require the participation of the CPU. When DMA is performing data transmission, the CPU can perform other calculations and control tasks, avoiding taking up too much CPU time on data scheduling and movement. However, it does not mean that the CPU is completely non-participatory in the entire DMA process. The configuration before data transmission and the interrupt processing after data transmission still rely on the interaction between the CPU or MCU and DMA to help DMA complete a series of complex data streams to achieve scenarios and functional requirements. In multi-core chips, DMA interactions such as Figure 1 shown.

[0037] In the entire data transmission process, the CPU core first needs to configure the address and configuration information of the data transmission through the on-chip interconnect bus. After the configuration information of the data transmission is configured, the DMA starts working under the trigger of software or hardware, and then the DMA starts to execute the data transmission process that does not require the participation of the CPU at all. After the end, the transmission result (such as error interrupt or completion interrupt) is generated. Through the interrupt processing system, it waits for the CPU to respond to the interrupt and execute the interrupt processing process before initiating or performing the next data transmission. Once the DMA interrupt request is responded to, the CPU will stop the execution of the current main program and execute the interrupt service program instead, thereby completing the processing work after the DMA data transmission is completed. After the entire DMA operation is completed, it is necessary to wait for the CPU to handle the interrupt and then reconfigure the configuration information of the next transmission task. In this process, the DMA resources are blocked and the efficiency is low. In addition, in a multi-core system, the amount of messages that the CPU needs to process increases dramatically, and it is also necessary to release the DMA in time to efficiently process the data transmission work.

[0038] Based on this, the present invention provides a method for executing a transmission task, which automatically generates and manages the entire transmission task sequence through preset configuration information, then executes the current transmission task of the transmission task sequence, then obtains the first transmission result of the current transmission task, and stores the first transmission result in a buffer pool. The first transmission result in the buffer pool can wait for further processing by a central processing unit, and then the next transmission task can be started and a new data transfer process can be performed, thereby reducing the time the central processing unit participates in processing, thereby improving the execution efficiency of the transmission task.

[0039] Figure 2 is a schematic diagram of the structure of a system for performing a transmission task according to an embodiment of the present invention, Figure 2 As shown, the system includes: a slave (Slave, SLV) port, a transmission control module, a multiple spanning tree (Multiple Spanning Tree, MST) interface, a peripheral interaction module, an arbitration module and a cache module. Among them, the transmission control module includes: a state machine, multiple transmission channels (CH xn), a register module and a buffer pool.

[0040] Specifically, the SLV port may be a port for the CPU to transmit configuration information to a slave device, wherein the SLV port may be an Advanced High-performance Bus (AHB) port or an Advanced eXtensible Interface (AXI) port.

[0041] The MST interface refers to a data transmission path used for high-speed data transfer and can support various high-speed bus protocols.

[0042] Peripheral interaction module: When performing high-speed transmission between external devices and memory, the external devices and memory interact through the peripheral interaction module and the state machine, so that the external device can initiate data transmission requests and receive transmission result feedback. In order to avoid conflicts, during the execution of the transmission task, different data transmission requests will only serve a single transmission channel as a source request or a target request at the same time, that is, when a data transmission request requires transmission between the peripheral and the memory, the external device and the transmission control module must interact through handshake signals. At this time, regardless of whether the peripheral is the source address or the target address, this set of handshake signals is only for a certain transmission channel, and this set of handshake signals will not serve two transmission channels at the same time.

[0043] The arbitration module refers to the arbitration module that arbitrates the control rights of DMA and related transmission channels for different data transmission requests initiated by the CPU or external devices. Specifically, for different transmission channels, it can support arbitration methods of fixed priority arbitration or polling arbitration, and it can also set channel priority related registers in the register module of the transmission control unit to achieve configurable channel priority.

[0044] The register module may include a series of transmission configuration registers, wherein the transmission configuration registers may pre-store configuration information of the CPU configuration, wherein the configuration information may include: source address, target address, transmission size, transmission mode, etc.

[0045] The register module may also include: an associated identifier configuration register. Specifically, when the CPU or an external device initiates data transmission, if a series of state-related tasks need to continuously initiate data transmission requests, the identifier flag bit can be enabled while performing data transmission, so that the identifier flag bit is 1, thereby obtaining reconstruction information for the next associated task, and then reconstructing the configuration information of the next transmission task according to the transmission state change of the current transmission task; and controlling the next transmission task to start participating in arbitration.

[0046] The cache module is used to cache important information for tasks that have entered the interrupt pool and preprocessed the interrupt, but have not received the corresponding CPU response, such as the source address, destination address, transmission length and transmission-related configuration of this task, as well as the storage of some key register information. After the corresponding interrupt in the interrupt pool is processed, the corresponding cache of this task in this cache module can be cleared.

[0047] The state machine can be used to implement the above-mentioned method for executing task transmission. More specifically, in combination with Figure 2 and Figure 3As shown, when the state machine receives a data transmission request sent by the peripheral interaction module, it can control the transmission channel corresponding to the data transmission request to enable, enter the arbitration stage, arbitrate the transmission channel according to the priority of each data transmission request and start executing the transmission task with the highest priority. Specifically, after obtaining the control of the bus, the transmission task with the highest priority can be started. If a transmission error occurs during the execution of the transmission task, the corresponding data transmission channel can generate an error interrupt request and enter the buffer pool, terminate the execution of the current transmission task, release resources, start arbitration for the next transmission task, and identify the identifier flag of the next transmission task at the same time. If the identifier flag is 1, and there is configuration information about error retransmission in the associated identifier register, the data transmission channel corresponding to the next transmission task is enabled, and the corresponding configuration information is rewritten according to the preset configuration modification information in the associated identifier register, and the next arbitration response is waited for to start executing the next transmission task.

[0048] If there is no error in the current transmission task, the completion result can be directly sent to the buffer pool, or after completing all the transmission tasks indicated by the linked list and descriptor, the identifier flag of the current transmission task can be identified. When the identifier flag is valid, the corresponding configuration information is rewritten according to the identifier register, and the next associated transmission channel is enabled. After waiting for the arbitration response, the next transmission task is started. According to the relevant configuration, a completion interrupt can be generated after the current transmission task is completed to enter the buffer pool, or a completion interrupt can be generated after waiting for all task transmissions to be completed.

[0049] During the entire working process, when the buffer pool is not empty, the dma_int interrupt will be output. After the interrupt is output, the transmission task will stop. After the processor handles the response interrupt, the corresponding interrupt in the buffer pool is eliminated, and the relevant information cached in the cache module is cleared. When the CPU does not handle the interrupt for a long time and the buffer pool is full, the arbitration module will no longer perform a new round of arbitration, and wait for the CPU to handle the corresponding interrupt before transmitting the new task. The interrupt priority can be set in the buffer pool, and the error interrupt that needs to be handled urgently can be reported to the CPU for processing earlier than the completion interrupt, which improves the processing efficiency of the whole machine in complex scenarios.

[0050] According to an embodiment of the present invention, a method embodiment for performing a transmission task is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable signals, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0051] In this embodiment, a method for executing a transmission task is provided, which can be used in the above-mentioned transmission control module. Figure 4FIG. 1 is a flow chart of a method for executing a transmission task according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0052] Step S101: receiving multiple data transmission requests.

[0053] A data transmission request may be an instruction or message requesting a data transmission operation. Among them, a data transmission request may include: various types of data, such as files, database records, real-time data streams, etc., and instructions on how to transmit these data (such as target address, transmission mode, priority, etc.), which are not specifically limited here. Specifically, data transmission requests from different sources (such as users, other systems, databases, etc.) can be received through a request transmission interface (such as an API interface, a network interface, etc.), and multiple data transmission requests can also be received through other methods, which are not specifically limited here and can be implemented by technical personnel in this field. For example: an e-commerce system needs to synchronize its order data to a financial system, and sends a data transmission request containing order data; for another example: a user uploads a file to a cloud storage service through the World Wide Web (Web) interface, generating a data transmission request.

[0054] Step S102: Generate transmission tasks corresponding to respective data transmission requests based on preset configuration information to obtain a transmission task sequence.

[0055] The preset configuration information may be predefined rules and parameters for data transmission, which are used to guide how to convert requests into tasks and the execution order and method of tasks. The preset configuration information may include: source address, destination address, data transmission length, data transmission method, etc. of data transmission, which are not specifically limited here. Specifically, each received data transmission request may be converted into a specific transmission task according to the predefined configuration information. The transmission tasks are organized into a sequence according to a certain logic (such as priority, receiving order, etc.) for subsequent execution.

[0056] The source address refers to the IP address of the source of the data packet sent in network communication. In the TCP / IP protocol, each data packet contains the source address and the destination address to provide the destination and source information required for the data packet to be transmitted in the network.

[0057] The destination address is the IP address of the destination that the data packet wants to reach when it is transmitted in the network. It is the end point of the data packet routing in the network.

[0058] Data transmission length usually refers to the length of the payload in a data packet or data frame, that is, the amount of data actually transmitted. The data transmission length can vary depending on different network protocols and transport layer protocols.

[0059] The data transmission mode refers to the technology or protocol used when data is transmitted in the network. The data transmission mode may include serial transmission, parallel transmission, wireless transmission, optical fiber transmission, etc., which are not specifically limited here.

[0060] Step S103, executing the current transmission task in the transmission task sequence to obtain a first transmission result of the current transmission task.

[0061] The current transmission task may be a transmission task being executed. Specifically, the current transmission task in the transmission task sequence may be executed to obtain a first transmission result of the current transmission task. The first transmission result may be the result of the current transmission task. The first transmission result may be that the current transmission task is transmitted correctly or that the current transmission task is transmitted incorrectly. For example, an e-commerce system synchronizes order data to a financial system. If the data is written successfully, a transmission result containing a successful status is generated; if the writing fails, a transmission result containing error information is generated.

[0062] Step S104: store the first transmission result in a buffer pool.

[0063] The buffer pool may refer to a temporary storage area for storing data waiting for further processing or response. Specifically, for subsequent processing or response to the client, the transmission result needs to be temporarily stored in the buffer pool so that the transmission result stored in the buffer pool can be responded to by the CPU.

[0064] Step S105, obtaining the next transmission task in the transmission task sequence, taking the next transmission task as the current transmission task, and jumping to execute the current transmission task in the transmission task sequence.

[0065] The next transmission task can be used to represent the next transmission task in the transmission task sequence arranged in the order of the current transmission task, or it can be the transmission task with the highest priority next to the current transmission task, etc., which is not specifically limited here. After the transmission result of the current transmission task is stored in the buffer pool, the next transmission task can be used as the current transmission task, and then the current transmission task can be continued to be executed, that is, once the current transmission task is completed and stored in the buffer pool, the next transmission task can be obtained from the transmission task sequence and executed as the new current task. This process will continue until all transmission tasks in the transmission task sequence are executed.

[0066] The method for executing a transmission task provided in this embodiment automatically generates and manages the entire transmission task sequence through preset configuration information, then executes the current transmission task of the transmission task sequence, then obtains the first transmission result of the current transmission task, and stores the first transmission result in a buffer pool. The first transmission result in the buffer pool can wait for further processing by the central processing unit, and then the next transmission task can be started and a new data transfer process can be performed, thereby reducing the time that the central processing unit participates in processing, thereby improving the execution efficiency of the transmission task.

[0067] In this embodiment, a method for executing a transmission task is provided, which can be used in the above-mentioned transmission control module, etc. Figure 5 FIG. 1 is a flow chart of a method for executing a transmission task according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0068] Step S201: Receive multiple data transmission requests. Figure 4 Step S101 of the illustrated embodiment will not be described in detail here.

[0069] Step S202: Generate transmission tasks corresponding to each data transmission request based on the preset configuration information to obtain a transmission task sequence. Figure 4 Step S102 of the illustrated embodiment will not be described in detail here.

[0070] Step S203, executing the current transmission task in the transmission task sequence to obtain a first transmission result of the current transmission task.

[0071] Specifically, the above step S203 includes:

[0072] Step S2031, sorting the priorities of the various data transmission requests based on a preset priority order to obtain a sorting result.

[0073] The preset priority order can be a set of priority evaluation rules or strategies predefined in the transmission control module, which are used to guide how to prioritize data transmission requests. The sorting result can be a list or sequence of data transmission requests arranged in priority order. For example: sorting from high to low priority, sorting from low to high priority, etc. Specifically, a priority queue can be maintained in the memory, and whenever a new data transmission request is received, it is added to the queue, and its position in the queue is adjusted according to the preset priority rule. A custom sorting algorithm can also be written to sort the received requests. The sorting algorithm can consider a variety of factors, such as the urgency of the request, the importance of the data, the authority of the client, etc., which are not specifically limited here and can be implemented by those skilled in the art. For example: an e-commerce system sets the priority of data transmission requests according to the payment status of the order. The priority of the paid order data synchronization request is higher than that of the unpaid order to ensure that the paid order can be processed as soon as possible; for another example: a medical system sets the priority of data transmission requests according to the urgency of the patient's condition. Data transmission requests for urgent conditions will be given a higher priority so that the patient's medical information can be transmitted to the doctor in time for treatment.

[0074] Step S2032: Based on the sorting result, the current transmission task in the transmission task sequence is executed in descending order of priority to obtain a first transmission result of the current transmission task.

[0075] According to the sorting result obtained in step S2031, the transmission tasks in the transmission task sequence are executed in sequence. Since the transmission tasks have been sorted according to the priority, the task with the highest priority is executed first, and then the tasks with lower priorities are executed in sequence.

[0076] Step S204: store the first transmission result in a buffer pool. Figure 4 Step S104 of the illustrated embodiment will not be described in detail here.

[0077] Step S205, obtain the next transmission task in the transmission task sequence, take the next transmission task as the current transmission task, and jump to execute the current transmission task in the transmission task sequence. Figure 4 Step S105 of the illustrated embodiment will not be described in detail here.

[0078] The method for executing the transmission task provided by the present embodiment can ensure that the critical or urgent data transmission request is responded and processed in time by giving priority to the task of high priority, thereby improving the response speed and execution efficiency of the whole data transmission system. And for the tasks of low priority, although they may need to wait for the high priority task to be completed before execution, on the whole, because the high priority task is processed in time, the average waiting time of the whole task queue may be reduced. In addition, the low priority task can also carry out necessary pre-processing or optimization during the waiting period to reduce the overhead during the subsequent execution.

[0079] In an optional embodiment, the above method further includes:

[0080] Step a1, detecting whether the first transmission result indicates a transmission error.

[0081] The first transmission result refers to the result status after the first transmission task is completed. Among them, the first transmission result can refer to a transmission error, or it can indicate that the transmission is correct, etc. A transmission error can be any abnormal situation that occurs during the data transmission process that causes the data to be unable to be transmitted correctly and completely. Specifically, whether an error has occurred is determined by checking the status code returned by the transmission task. The status code is usually defined by the protocol to indicate the success or failure of the operation. An exception capture mechanism can also be added during the execution of the transmission task. When an exception is captured, it is considered that a transmission error has occurred, etc., which is not specifically limited here and can be implemented by those skilled in the art. For example: During a file transfer process, if it is detected that the file size does not meet expectations, or the target address of the file transfer cannot receive the file, it can be considered that a transmission error has occurred.

[0082] Step a2: if the first transmission result indicates a transmission error, detecting whether a first identifier flag corresponding to a next transmission task in the transmission task sequence satisfies a preset state.

[0083] Each transmission task can be configured with an associated identifier. Among them, the first identifier flag is used to control the execution process of the transmission task. For example: if the first identifier flag is in a preset state (such as "true" or "1"), it means that the configuration information can be modified. If the first identifier flag is in a preset state (such as "wrong" or "0"), there is no need to modify the configuration information. Specifically, if the first transmission result of the current transmission task indicates a transmission error, then it can be detected whether the first identifier flag corresponding to the next transmission task is ("true" or "1"). For example: in a video stream transmission system, if a video clip fails to be transmitted due to insufficient storage space at the target address, check whether the flag of the next video clip is ("true" or "1").

[0084] Step a3: if the first identifier flag satisfies a preset state, the configuration information is modified according to preset configuration modification information to obtain modified configuration information.

[0085] The preset configuration modification information may be a set of rules or instructions for guiding how to modify the configuration information. If the first identifier flag corresponding to the next transmission task is ("true" or "1"), the configuration information needs to be modified by the preset configuration modification information to obtain the modified configuration information. In the file transfer system, if a transmission error caused by network delay is detected, the timeout of the next transmission task may be automatically increased or a more reliable transmission protocol may be enabled according to the preset configuration modification information.

[0086] Specifically, the configuration information includes at least: multiple initial codes, initial source addresses, initial target addresses, initial data transmission lengths and initial data transmission types; the preset configuration modification information includes: multiple preset codes, preset source addresses, preset target addresses, preset data transmission lengths and preset data transmission types.

[0087] Wherein, the above step a3 includes:

[0088] Step a31, matching the initial code with the preset code, and executing at least one of the following based on the matching result.

[0089] Figure 6 FIG. 1 is a schematic diagram of modifying configuration information in a method for executing a transmission task according to an embodiment of the present invention. Figure 6 As shown, the transmission configuration register in the transmission control module sets the flag bit of the associated identifier. Taking the first transmission result as an example, the flag bit of the corresponding associated identifier can be the first identifier flag bit. When the first identifier flag bit is 1, it indicates that there is a valid associated transmission task (i.e. Figure 6 When the first identifier flag is 0, it means that there is no valid associated transmission task (that is, Figure 6 In the example, if the first transmission result of the current transmission task indicates a transmission error, then the reconstruction condition can be determined to determine whether reconstruction is required, that is, whether the first transmission result of the current transmission task indicates a transmission error. If the first transmission result indicates a transmission error, then the next transmission task needs to be reconstructed, and the reconstruction information can be preset configuration modification information. The configuration information at least includes: multiple initial codes, initial source addresses, initial target addresses, initial data transmission lengths, and initial data transmission types; the preset configuration modification information includes: multiple preset codes, preset source addresses, preset target addresses, preset data transmission lengths, and preset data transmission types.

[0090] Step a32, determining a preset source address corresponding to the initial source address, and modifying the initial source address according to the preset source address.

[0091] Find the preset source address corresponding to the initial source address, and replace or modify the initial source address with the preset source address, that is, dynamically change the location of the data source during the transmission process. For example: in a file synchronization task, if the initial source address points to a temporary storage location, and the preset source address points to a permanent storage location, the initial source address may be replaced with the preset source address before transmission.

[0092] Step a33, determining a preset target address corresponding to the initial target address, and modifying the initial target address according to the preset target address.

[0093] Find a preset target address corresponding to the initial target address, and replace or modify the initial target address with the preset target address.

[0094] Step a34, determining a preset data transmission length corresponding to the initial data transmission length, and correcting the initial data transmission length according to the preset data transmission length.

[0095] Find the preset data transmission length corresponding to the initial data transmission length, and replace the initial data transmission length with the preset data transmission length. That is, by comparing the initial data transmission length with the preset data transmission length, it can be determined whether to split the data packet, merge the data packets, or keep them as they are. For example, in the case of limited network bandwidth, a larger initial data transmission length can be split into multiple smaller data packets for transmission to avoid network congestion.

[0096] Step a35, determining a preset data transmission type corresponding to the initial data transmission type, and modifying the initial data transmission type according to the preset data transmission type to obtain target configuration information.

[0097] Find a preset data transmission type corresponding to the initial data transmission type, and replace the initial data transmission type with the preset data transmission type to change the transmission mode of the next transmission task.

[0098] Step a4: updating the next transmission task in the transmission task sequence based on the modified configuration information.

[0099] According to the modified configuration information, the next transmission task in the transmission task sequence is updated accordingly, wherein the update content may include adjusting the execution parameters of the task, changing the target or condition of the task, etc., to ensure that the transmission task can be correctly executed under the new configuration information.

[0100] The method for executing a transmission task provided in this embodiment can detect whether the first transmission result indicates a transmission error, so that the system can timely discover and respond to problems in the transmission process. When an error is found, instead of simply stopping or failing, an attempt is made to make a further response by checking the configuration information of the next transmission task and then modifying the configuration information by using preset configuration modification information, thereby enhancing the error handling capability and recovery capability, making it more flexible and robust when facing errors.

[0101] In addition, when a transmission error is detected, the next transmission task corresponding to the current transmission task with the error can be accurately corrected based on the preset configuration modification information, that is, by matching the initial code and the preset code, the configuration information that needs to be corrected can be accurately found and corrected accordingly. This precise error handling mechanism reduces the possibility of miscorrection and improves the stability and reliability of executing the transmission task. Moreover, by optimizing at least one of the initial source address, the initial target address, the initial data transmission length, and the initial data transmission type, network resources can be more effectively utilized and the efficiency of executing the transmission task can be improved.

[0102] In an optional embodiment, the above method further includes:

[0103] Step b1, capturing key information of the transmission task and obtaining historical fault data.

[0104] Collect various key information of DMA transfer tasks in real time or periodically, including but not limited to the start time, end time, amount of data transferred, error codes generated during the process, and final fault type, etc.

[0105] Step b2: marking the historical fault data.

[0106] Label the collected historical fault data to clarify the type, occurrence time and impact range of each fault. The labeling process requires matching these labels with corresponding key information (such as start time, end time, transmission data volume, error code, etc.) to form a structured data set.

[0107] Step b3: Use the labeled data set to train machine learning models, such as random forest models, support vector machine models, neural network models, etc.

[0108] The choice of model depends on the requirements of the specific task and the characteristics of the data. For example, if the amount of data is not large but the features are complex, you can choose a support vector machine (SVM) or a random forest model; if the amount of data is large and nonlinear relationships need to be processed, you can choose a neural network model. During the training process, the machine learning model will learn the mapping relationship from input data (monitoring data) to output data (fault type).

[0109] Step b4, obtaining the first transmission result of the current transmission task.

[0110] The first transmission result of the currently ongoing transmission task is captured. The first transmission result may include the amount of partially transmitted data, preliminary error codes, and some performance indicators during the transmission process, and is passed to the fault prediction model as input data.

[0111] Step b5, using a pre-trained fault prediction model to process the first transmission result and predict whether the remaining transmission tasks will fail.

[0112] The fault prediction model will receive the first transmission result of the current transmission task as input and make predictions based on the data patterns and rules learned internally. The model will output a prediction result indicating whether the remaining transmission tasks are likely to fail. This prediction result can be used to guide subsequent decisions and operations.

[0113] The method for executing a transmission task provided in this embodiment ensures the comprehensiveness and accuracy of data by capturing key information such as the start time, end time, amount of data transmitted, error code, and fault type. In addition, fault prediction can be automatically performed on new transmission tasks without manual intervention, thereby improving work efficiency and reducing the possibility of human error.

[0114] In an optional embodiment, the above method also includes: if the first transmission result indicates a transmission error, repeatedly executing the current transmission task in the transmission task sequence until the first transmission result indicates that the transmission is correct or the number of repeated executions reaches a preset number, and storing the first transmission result in the buffer pool.

[0115] If the first transmission result indicates a transmission error, in order to avoid failure of the transmission task due to temporary network fluctuations, equipment failures, etc., the first transmission result can be re-executed, that is, the current transmission task can be re-executed multiple times. When the transmission result corresponding to a certain current transmission task indicates that the transmission is correct during the execution of multiple current transmission tasks, the repetitive execution is stopped, and the result of the correct transmission is stored in the buffer pool. If the current transmission task is executed multiple times and the number of executions reaches the preset number, the repetitive execution is stopped, and the result of the correct transmission is stored in the buffer pool.

[0116] Optionally, the preset number of times may be 3 times, 5 times, etc., which is not specifically limited here.

[0117] The method for executing a transmission task provided in this embodiment can correct the failure of executing a transmission task caused by temporary network fluctuations, equipment failure, etc. by repeatedly executing the current transmission task with an error, thereby reducing the need to restart the entire task sequence due to a single failure.

[0118] In an optional implementation, the current transmission task includes a plurality of segment transmission tasks; wherein the method further includes:

[0119] Step c1: if the first transmission result indicates a transmission error, determine at least one target transmission task from each segmented transmission task; wherein the target transmission task is a transmission task with an error.

[0120] When the current transmission task requires a subdivided transmission granularity due to cross-border or bus requirements, the current transmission task can be divided into multiple segmented transmission tasks, each segmented transmission task executes a part of the current transmission task, and if the first transmission result indicates a transmission error, the target transmission task with the error can be identified from the segmented transmission task. Specifically, the identification of the target transmission task can be achieved at least in the following ways. Among them, a status code can be returned after each segmented transmission task is completed, and the status code indicates the success or failure of the transmission task. The system can traverse the status codes of all segmented transmission tasks and mark the tasks whose status codes indicate failure as target transmission tasks. It is also possible to capture possible errors during the execution of the transmission task through an exception handling mechanism. When an exception is captured, the corresponding transmission task is marked as a target transmission task, which is not specifically limited here and can be implemented by those skilled in the art.

[0121] Step c2, repeatedly executing the target transmission task until the target transmission result corresponding to the target transmission task is correct or the number of repeated executions of the target transmission task reaches a preset number, and storing the first transmission result in the buffer pool.

[0122] In order to avoid the failure of transmission tasks due to temporary network fluctuations, equipment failures, etc., the target transmission task can be re-executed, that is, the target transmission task can be re-executed multiple times. When the transmission result corresponding to a target transmission task indicates that the transmission is correct during the execution of multiple target transmission tasks, the repetitive execution is stopped, and the correct transmission result is stored in the buffer pool. If the target transmission task is executed multiple times and the number of executions reaches the preset number, the repetitive execution is stopped, and the correct transmission result is stored in the buffer pool.

[0123] The method for executing a transmission task provided in this embodiment subdivides the current transmission task into multiple segments, and can independently control and manage each segment. Then, by repeating instructions for the erroneous segmented transmission task, there is no need to wait for the entire task sequence to be re-executed, thereby shortening the time from the occurrence of an error to the resumption of normal transmission.

[0124] In an optional embodiment, the above method further includes:

[0125] Step d1, detecting whether the buffer pool is in an overflow state.

[0126] The overflow state is the state when the amount of data stored in the buffer pool reaches the maximum capacity. Before executing the next transmission task, it is necessary to detect whether the buffer pool is in the overflow state, that is, whether the amount of data currently stored in the buffer pool has reached the maximum capacity.

[0127] Step d2: If the buffer pool is not in an overflow state, execute and obtain the next transmission task in the transmission task sequence.

[0128] If the amount of data currently stored in the buffer pool has not reached the maximum capacity, the next transfer task can be executed.

[0129] Step d3: if the buffer pool is in an overflow state, stop executing the next transmission task in the transmission task sequence until the buffer pool is no longer in an overflow state.

[0130] If the amount of data currently stored in the buffer pool reaches the maximum capacity, executing the next transmission task may cause the next transmission task to be unable to be stored in the buffer pool, thereby causing other subsequent transmission tasks to be unable to be executed. In this case, you can stop obtaining the next transmission task in the transmission task sequence, and report it to the CPU for processing. After the CPU responds to the transmission result and processes it to release part of the buffer pool's capacity, you can execute the next transmission task in the transmission task sequence.

[0131] In the method for executing a transmission task provided by this embodiment, when the buffer pool is full, continuing to store new transmission results may cause old data to be overwritten or lost. By detecting the buffer pool status and stopping acquiring new tasks when it is full, the security and integrity of existing data can be ensured, avoiding the risk of data loss.

[0132] Figure 7 2 is a diagram comparing the effects of the method for executing a transmission task according to an embodiment of the present invention and the traditional method for executing a transmission task. Figure 7 As shown, the workflow of the traditional method for executing a transmission task is that the CPU configures the corresponding configuration information, starts the corresponding data transmission process after the transmission channel is enabled, generates a completion or error interrupt (that is, the above-mentioned transmission result) after the transmission is completed, waits for the CPU to process the interrupt and send an interrupt clear signal, and then releases the transmission result, and the next transmission can start.

[0133] The method for executing a transmission task of the present invention generates a completion or error interrupt (i.e., the above-mentioned transmission result) after the data transmission is completed, and then stores the interrupt in a buffer pool, which controls the interrupt output state. At the same time, the resources can be directly released, and the next transmission can be started directly. At the same time, due to the control of the buffer pool and the storage of the cache module, the interrupt state is guaranteed not to be lost, and the CPU can also be received for processing, and the corresponding resources in the buffer pool and the cache module can be released after processing. That is, the transmission result can be released in advance in each execution of a transmission task, saving Δt time and improving the efficiency of the transmission task. Especially in a multi-core system with a surge in data volume, the utilization efficiency of the transmission task can be greatly improved, and there is a large application space.

[0134] In the present embodiment, a device for performing a transmission task is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0135] This embodiment provides a device for performing a transmission task, such as Figure 8 As shown, it includes: a receiving module 801, used for receiving multiple data transmission requests; a generating module 802, used for generating transmission tasks corresponding to each data transmission request based on preset configuration information, and obtaining a transmission task sequence; a first execution module 803, used for executing the current transmission task in the transmission task sequence, and obtaining a first transmission result of the current transmission task; a storage module 804, used for storing the first transmission result in a buffer pool; a second execution module 805, used for obtaining the next transmission task in the transmission task sequence, taking the next transmission task as the current transmission task, and jumping to executing the current transmission task in the transmission task sequence.

[0136] In some optional embodiments, the first execution module 803 includes: a sorting unit, used to sort the priorities of each data transmission request based on a preset priority order to obtain a sorting result; an execution unit, used to execute the current transmission task in the transmission task sequence in order of priority from high to low based on the sorting result.

[0137] In some optional embodiments, the above-mentioned device also includes: a first detection module, used to detect whether the first transmission result indicates a transmission error; a second detection module, used to detect whether the first identifier flag corresponding to the next transmission task in the transmission task sequence satisfies a preset state if the first transmission result indicates a transmission error; a correction module, used to modify the configuration information according to preset configuration modification information to obtain the modified configuration information if the first identifier flag satisfies the preset state; and an update module, used to update the next transmission task in the transmission task sequence based on the modified configuration information.

[0138] In some optional embodiments, the configuration information includes at least: multiple initial codes, initial source addresses, initial target addresses, initial data transmission lengths and initial data transmission types; the preset configuration modification information includes: multiple preset codes, preset source addresses, preset target addresses, preset data transmission lengths and preset data transmission types; wherein the correction module includes: a matching unit, used to match the initial code and the preset code, based on the matching result; a first correction unit, used to determine the preset source address corresponding to the initial source address, and correct the initial source address according to the preset source address; a second correction unit, used to determine the preset target address corresponding to the initial target address, and correct the initial target address according to the preset target address; a third correction unit, used to determine the preset data transmission length corresponding to the initial data transmission length, and correct the initial data transmission length according to the preset data transmission length; a fourth correction unit, used to determine the preset data transmission type corresponding to the initial data transmission type, and correct the initial data transmission type according to the preset data transmission type to obtain the target configuration information.

[0139] In some optional embodiments, the above-mentioned device also includes: a first repeated execution module, which is used to repeatedly execute the current transmission task in the transmission task sequence if the first transmission result indicates a transmission error, until the first transmission result indicates that the transmission is correct or the number of repeated executions reaches a preset number, and then store the first transmission result in a buffer pool.

[0140] In some optional embodiments, the current transmission task includes multiple segmented transmission tasks; wherein the above-mentioned device also includes: a target transmission task determination module, which is used to determine at least one target transmission task from each segmented transmission task if the first transmission result indicates a transmission error; wherein the target transmission task is a transmission task with errors; a second repeated execution module, which is used to repeatedly execute the target transmission task until the target transmission result corresponding to the obtained target transmission task is correct or the number of repeated executions of the target transmission task reaches a preset number, and the first transmission result is stored in the buffer pool.

[0141] In some optional embodiments, the above-mentioned device also includes: a third detection module, used to detect whether the buffer pool is in an overflow state; a third execution module, used to execute the next transmission task in the transmission task sequence if the buffer pool is not in an overflow state; and a stop execution module, used to stop executing the next transmission task in the transmission task sequence if the buffer pool is in an overflow state until the buffer pool is not in an overflow state.

[0142] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0143] The device for performing the transmission task in this embodiment is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0144] The embodiment of the present invention also provides a computer device having the above Figure 8 The device shown performs the transmission task.

[0145] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.

[0146] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0147] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0148] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0149] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0150] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0151] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0152] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0153] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for performing a transmission task, characterized in that: The method comprises: receiving a plurality of data transmission requests; Based on the preset configuration information, generating transmission tasks corresponding to each of the data transmission requests, and obtaining a transmission task sequence; Execute the current transmission task in the transmission task sequence to obtain a first transmission result of the current transmission task; storing the first transmission result in a buffer pool; The next transmission task in the transmission task sequence is obtained, the next transmission task is used as the current transmission task, and the execution of the current transmission task in the transmission task sequence is jumped to.

2. The method for executing a transmission task according to claim 1, characterized in that: The executing the current transmission task in the transmission task sequence includes: Sorting the priorities of the data transmission requests based on a preset priority order to obtain a sorting result; Based on the sorting result, the current transmission task in the transmission task sequence is executed in order of priority from high to low.

3. The method for executing a transmission task according to claim 1, characterized in that: The method further comprises: detecting whether the first transmission result indicates a transmission error; If the first transmission result indicates a transmission error, detecting whether a first identifier flag bit corresponding to a next transmission task in the transmission task sequence satisfies a preset state; If the first identifier flag satisfies a preset state, modifying the configuration information according to preset configuration modification information to obtain modified configuration information; Based on the modified configuration information, the next transmission task in the transmission task sequence is updated.

4. The method for executing a transmission task according to claim 3, characterized in that: The configuration information at least includes: a plurality of initial codes, an initial source address, an initial target address, an initial data transmission length and an initial data transmission type; The preset configuration modification information includes: a plurality of preset codes, a preset source address, a preset target address, a preset data transmission length and a preset data transmission type; The step of modifying the configuration information according to the preset configuration modification information to obtain the modified configuration information includes: The initial code and the preset code are matched, and based on the matching result, at least one of the following is performed: Determine a preset source address corresponding to the initial source address, and modify the initial source address according to the preset source address; Determine a preset target address corresponding to the initial target address, and modify the initial target address according to the preset target address; Determine a preset data transmission length corresponding to the initial data transmission length, and modify the initial data transmission length according to the preset data transmission length; A preset data transmission type corresponding to the initial data transmission type is determined, and the initial data transmission type is modified according to the preset data transmission type to obtain the target configuration information.

5. The method for executing a transmission task according to claim 1, characterized in that: The method further comprises: If the first transmission result indicates a transmission error, repeat the execution of the current transmission task in the transmission task sequence until the first transmission result indicates that the transmission is correct or the number of repeated executions reaches a preset number, and then perform the storage of the first transmission result in the buffer pool.

6. The method for executing a transmission task according to claim 1, characterized in that: The current transmission task includes a plurality of segment transmission tasks; The method further comprises: If the first transmission result indicates a transmission error, determining at least one target transmission task from each of the segmented transmission tasks; wherein the target transmission task is a transmission task with an error; Repeat the target transmission task until the target transmission result corresponding to the target transmission task is correct or the number of repeated executions of the target transmission task reaches a preset number, and store the first transmission result in a buffer pool.

7. The method for executing a transmission task according to claim 1, characterized in that: Before acquiring the next transmission task in the transmission task sequence, the method further includes: Check whether the buffer pool is overflowing; If the buffer pool is not in the overflow state, executing the acquisition of the next transmission task in the transmission task sequence; If the buffer pool is in the overflow state, the acquisition of the next transmission task in the transmission task sequence is stopped until the buffer pool is no longer in the overflow state.

8. A device for performing a transmission task, characterized in that: The device comprises: A receiving module, used for receiving multiple data transmission requests; A generation module, used to generate transmission tasks corresponding to each of the data transmission requests based on preset configuration information to obtain a transmission task sequence; A first execution module, used for executing a current transmission task in the transmission task sequence to obtain a first transmission result of the current transmission task; A storage module, used for storing the first transmission result in a buffer pool; The second execution module is used to obtain the next transmission task in the transmission task sequence, take the next transmission task as the current transmission task, and jump to execute the current transmission task in the transmission task sequence.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for executing a transmission task as described in any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for executing a transmission task according to any one of claims 1 to 7.

Citation Information

Cited By

  • Data storage method and device, data loading method and device, electronic equipment and medium

    CN119987661A