Data compensation sending method and device and storage medium

By adjusting the length and starting position of the sliding window and optimizing data transmission based on the operation data, the problem of not considering the processing capabilities of downstream nodes in the existing technology is solved, and efficient data compensation transmission is achieved, which avoids downstream system load and data backlog, has a wide range of application and reduces costs.

CN120238504APending Publication Date: 2025-07-01NETSUNION CLEARING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311873310.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

The existing data compensation sending method does not take into account the specific processing capabilities of downstream nodes when sending data, resulting in excessive load on downstream systems or complex logic and high cost for the sending module, and limited scope of application.

Method used

By adjusting the length and starting position of the sliding window, optimizing data transmission based on the operation data, considering the processing capabilities of downstream nodes, avoiding data backlogs and system loads, and reducing implementation costs.

Benefits of technology

It realizes that without modifying the downstream system, it avoids excessive load on downstream systems and backlog of data from sending modules, and has a wide range of application and reduces implementation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238504A_ABST
    Figure CN120238504A_ABST
Patent Text Reader

Abstract

The invention discloses a data compensation sending method and device and a storage medium, and the method comprises the steps: determining the length and the initial position of a sliding window, and extracting to-be-sent data from a data set based on the length and the initial position of the sliding window; sending the to-be-sent data, and obtaining operation data in a data sending process; and in response to completion of sending of the to-be-sent data, adjusting the length and the initial position of the sliding window according to a preset rule based on the operation data, and repeating the above steps until sending of the data in the data set is completed. According to the invention, the length of the sliding window is adjusted according to the operation data, the specific processing capability of the downstream node is considered, the overhigh load of the downstream system and the data backlog of the sending module are avoided, the downstream system does not need to be transformed, the implementation cost is reduced, and the application range is wide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data compensation transmission, and in particular, to a data compensation transmission method, apparatus, and storage medium. Background Art

[0002] During the process of handling business peaks, in order to avoid impacting downstream systems, some non-core data in the system needs to be temporarily stored locally and then data synchronization is completed through a data compensation mechanism after the peak time point.

[0003] In the prior art, data compensation transmission is mainly carried out through the following three schemes:

[0004] Scheme 1, a fixed speed control scheme, which sends data to other systems at a fixed speed;

[0005] Scheme 2, an adaptive speed control scheme, which controls its own sending speed according to the processing results and time consumption of other systems to maximize the processing capacity;

[0006] Scheme 3, a downstream system feedback scheme, which sends data to the downstream system, and the downstream system feeds back the target speed after completing data processing, and controls its own sending speed according to the feedback result of the downstream system.

[0007] However, in the above Scheme 1, when sending data, the specific processing capacity of downstream nodes is not considered, which may lead to an excessive load on the downstream system; Scheme 2 will make the processing logic of the sending module more complex, and due to the uncertainty of the speed control function, a large amount of data may accumulate in the sending module; in Scheme 3, when sending data, all downstream systems need to be transformed to obtain the feedback results of the downstream systems, resulting in a high implementation cost and a limited scope of application. Summary of the Invention

[0008] The present disclosure provides a data compensation transmission method, apparatus, and storage medium, which adjust the length of a sliding window according to running data, consider the specific processing capacity of downstream nodes, avoid an excessive load on the downstream system and data backlog in the sending module, and do not require transformation of the downstream system, reducing the implementation cost and having a wide scope of application.

[0009] According to one aspect of the present disclosure, there is provided a data compensation transmission method, including:

[0010] Determine the length and starting position of a sliding window, and extract data to be sent from a data set based on the length and starting position of the sliding window;

[0011] Send the data to be sent, and obtain running data during the process of sending the data;

[0012] In response to the completion of the transmission of the data to be sent, based on the operation data, adjust the length and starting position of the sliding window according to a preset rule, and repeat the above steps until the data in the dataset is completely sent.

[0013] Optionally, the operation data includes:

[0014] Data transmission speed;

[0015] Data transmission time consumption;

[0016] Device success rate;

[0017] Service success rate;

[0018] Device exception rate.

[0019] Optionally, the adjusting the length and starting position of the sliding window based on the operation data according to a preset rule includes:

[0020] Update the starting position of the sliding window to the sum of the starting position of the previous sliding window and the window length;

[0021] Based on the data transmission time consumption, the device success rate, the service success rate, the device exception rate and the data transmission speed, adjust the length of the sliding window according to a preset rule.

[0022] Optionally, the adjusting the length of the sliding window based on the data transmission time consumption, the device success rate, the service success rate, the device exception rate and the data transmission speed according to a preset rule includes:

[0023] Judge whether the data transmission time consumption, the device success rate, the service success rate and the device exception rate are all within the corresponding preset ranges;

[0024] If the data transmission time consumption, the device success rate, the service success rate and the device exception rate are all within the corresponding preset ranges, adjust the length of the sliding window according to the data transmission speed;

[0025] If any one of the data transmission time consumption, the device success rate, the service success rate and the device exception rate is not within the corresponding preset range, reduce the length of the sliding window to a first preset ratio of the length of the previous sliding window.

[0026] Optionally, the adjusting the length of the sliding window according to the data transmission speed includes:

[0027] If the data sending speed is less than the initial sending speed, and the percentage difference between the data sending speed and the initial sending speed is greater than a preset value, then expand the length of the sliding window to a second preset ratio of the length of the previous sliding window;

[0028] If the data sending speed is less than the initial sending speed, and the percentage difference between the data sending speed and the initial sending speed is not greater than the preset value, then do not adjust the length of the sliding window.

[0029] Optionally, extracting the data to be sent from the data set based on the length and starting position of the sliding window includes:

[0030] Based on the length and starting position of the sliding window, use a preloading mechanism to quickly read the data to be sent from the data set.

[0031] According to another aspect of the present disclosure, there is provided a data compensation sending device, characterized in that the device includes:

[0032] A data extraction module, configured to determine the length and starting position of a sliding window, and extract the data to be sent from the data set based on the length and starting position of the sliding window;

[0033] A data sending module, configured to send the data to be sent and obtain the running data during the data sending process;

[0034] A data analysis module, configured to, in response to completing the sending of the data to be sent, based on the running data, adjust the length and starting position of the sliding window according to a preset rule, and repeat the above steps until the data in the data set is sent out.

[0035] According to another aspect of the present disclosure, there is provided an electronic device, including:

[0036] At least one processor; and

[0037] A memory communicatively connected to the at least one processor; wherein,

[0038] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of the foregoing aspects.

[0039] According to another aspect of the present disclosure, there is provided a computer storage medium storing computer instructions, wherein the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the method according to any one of the foregoing aspects can be implemented.

[0040] The data compensation sending method and device according to the embodiments of the present disclosure adjust the length of the sliding window according to the running data, take into account the specific processing capabilities of downstream nodes, avoid overloading of downstream systems and data backlog in the sending module, and do not require modification of downstream systems, reducing the implementation cost and having a wide range of applications.

[0041] Additional aspects and advantages of the present disclosure will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The above and / or additional aspects and advantages of the present disclosure will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0043] Figure 1 is a flowchart of the data compensation sending method according to the embodiments of the present disclosure;

[0044] Figure 2 is a structural diagram of the data compensation sending device according to the embodiments of the present disclosure;

[0045] Figure 3 is a block diagram of an electronic device for implementing the data compensation sending method according to the embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0046] It should be noted that, without conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0047] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without making creative efforts shall fall within the protection scope of the present disclosure.

[0048] The data compensation sending method and device according to the embodiments of the present disclosure will be described below with reference to the accompanying drawings.

[0049] Figure 1 is a flowchart of the data compensation sending method according to the embodiments of the present disclosure.

[0050] As Figure 1 shown, the data compensation sending method includes:

[0051] S101, determining the length and starting position of the sliding window, and extracting the data to be sent from the data set based on the length and starting position of the sliding window;

[0052] Among them, it should be noted that the execution subject of the above data compensation sending method is a data compensation sending device, which can be implemented in software and / or hardware, and the data compensation sending device in this embodiment can be configured in an electronic device.

[0053] Among them, in this exemplary embodiment, the electronic device may include devices such as a terminal device and a server, and this embodiment does not limit the electronic device.

[0054] In an embodiment of the present disclosure, the data in the above dataset is the data to be sent.

[0055] Among them, in an embodiment of the present disclosure, when the above method is first executed, both the length and the starting position of the sliding window have initial values. Specifically, in an embodiment of the present disclosure, the initial value of the starting position of the sliding window is 0, and the initial value of the length of the sliding window is set according to the data sending rate.

[0056] Moreover, in an embodiment of the present disclosure, after determining the length and the starting position of the sliding window, a preloading mechanism can be adopted to quickly read the data to be sent from the dataset based on the length and the starting position of the sliding window, so as to improve the data extraction efficiency.

[0057] S102, send the data to be sent and obtain the running data during the data sending process;

[0058] Among them, in an embodiment of the present disclosure, after extracting the data to be sent through the above steps, the data to be sent can be sent in a speed control manner, and the running data during the data sending process can be obtained.

[0059] Moreover, in an embodiment of the present disclosure, the above running data may include data sending speed, data sending time consumption, device success rate, service success rate, and device exception rate.

[0060] S103, in response to the completion of the sending of the data to be sent, based on the running data, adjust the length and the starting position of the sliding window according to the preset rules, and repeat the above steps until the data in the dataset is sent out.

[0061] In an embodiment of the present disclosure, after the sending of the data to be sent is completed, the current running situation of the downstream system can be obtained based on the running data, and the length of the sliding window can be adjusted according to the preset rules based on the running data, so as to avoid excessive load on the downstream system and data backlog in the sending module.

[0062] Specifically, in an embodiment of the present disclosure, the method of adjusting the length and starting position of the sliding window based on the running data according to the preset rules may include: updating the starting position of the sliding window to the sum of the starting position of the previous sliding window and the window length; adjusting the length of the sliding window according to the preset rules based on the data sending time consumption, device success rate, service success rate, device exception rate, and data sending speed.

[0063] Among them, in an embodiment of the present disclosure, the method of adjusting the length of the sliding window according to the preset rules based on the data sending time consumption, device success rate, service success rate, device exception rate, and data sending speed may include the following steps:

[0064] Step 1, determine whether the data sending time consumption, device success rate, service success rate, and device exception rate are all within the corresponding preset ranges;

[0065] Step 2, if the data sending time consumption, device success rate, service success rate, and device exception rate are all within the corresponding preset ranges, adjust the length of the sliding window according to the data sending speed;

[0066] Among them, in an embodiment of the present disclosure, the method of adjusting the length of the sliding window according to the data sending speed may include: if the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is greater than the preset value, adjust the length of the sliding window to a second preset ratio of the length of the previous sliding window; if the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is not greater than the preset value, do not adjust the length of the sliding window.

[0067] In an embodiment of the present disclosure, if the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is greater than the preset value, indicating that the downstream system load is low and the length of the sliding window can be expanded, then expand the length of the sliding window to a second preset ratio of the length of the previous sliding window. Among them, the second preset ratio may be the ratio of the initial sending speed to the data sending speed. For example, assuming the data sending speed is v1, the initial sending speed is v2, and the length of the previous sliding window is len, the above second preset ratio is v2 / v1, and the length of the sliding window is expanded to (v2 / v1)×len.

[0068] And, in an embodiment of the present disclosure, if the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is not greater than the preset value, it indicates that the downstream system is operating normally, and the length of the sliding window is not adjusted.

[0069] Further, in an embodiment of the present disclosure, the preset value can be set as needed. For example, the preset value can be 5%.

[0070] Step 3: If any one of the data sending time consumption, device success rate, service success rate, and device exception rate is not within the corresponding preset range, reduce the length of the sliding window to a first preset ratio of the length of the previous sliding window.

[0071] In an embodiment of the present disclosure, if any one of the data sending time consumption, device success rate, service success rate, and device exception rate is not within the corresponding preset range, it indicates that the downstream system is operating abnormally and the length of the sliding window needs to be reduced. Then, reduce the length of the sliding window to a first preset ratio of the length of the previous sliding window. Among them, in an embodiment of the present disclosure, the above first preset ratio can be set as needed. By way of example, the above first preset ratio can be 90%.

[0072] In one or more embodiments of the present disclosure, determine the length and starting position of the sliding window, extract the data to be sent from the data set based on the length and starting position of the sliding window, then send the data to be sent, and obtain the running data during the data sending process. In response to completing the sending of the data to be sent, based on the running data, adjust the length and starting position of the sliding window according to the preset rules, and repeat the above steps until all the data in the data set is sent. Thus, adjusting the length of the sliding window according to the running data takes into account the specific processing capabilities of the downstream nodes, avoids overloading the downstream system and data backlog in the sending module, and does not require modification of the downstream system, reducing the implementation cost and having a wide range of applications.

[0073] The following is an embodiment of the apparatus of the present disclosure, which can be used to execute the method embodiment of the present disclosure. For the details not disclosed in the embodiment of the apparatus of the present disclosure, please refer to the method embodiment of the present disclosure.

[0074] Please refer to Figure 2 , which shows a schematic structural diagram of a data compensation sending apparatus provided in an embodiment of the present disclosure. The data compensation sending apparatus 10 includes a data extraction module 100, a data sending module 200, and a data analysis module 300, where:

[0075] The data extraction module 100 is configured to determine the length and starting position of the sliding window, and extract the data to be sent from the data set based on the length and starting position of the sliding window;

[0076] The data sending module 200 is configured to send the data to be sent and obtain the running data during the data sending process;

[0077] The data analysis module 300 is configured to, in response to the completion of the transmission of the data to be sent, adjust the length and starting position of the sliding window based on the operation data according to a preset rule, and repeat the above steps until the data in the dataset is completely sent.

[0078] Optionally, in an actual example of the present disclosure, the above operation data includes:

[0079] Data transmission speed;

[0080] Data transmission time consumption;

[0081] Device success rate;

[0082] Service success rate;

[0083] Device abnormality rate.

[0084] Optionally, in an embodiment of the present disclosure, the above data analysis module is specifically configured to:

[0085] Update the starting position of the sliding window to the sum of the starting position of the previous sliding window and the window length;

[0086] Adjust the length of the sliding window based on the data transmission time consumption, device success rate, service success rate, device abnormality rate, and data transmission speed according to a preset rule.

[0087] Optionally, in an embodiment of the present disclosure, the above data analysis module is further configured to:

[0088] Determine whether the data transmission time consumption, device success rate, service success rate, and device abnormality rate are all within the corresponding preset ranges;

[0089] If the data transmission time consumption, device success rate, service success rate, and device abnormality rate are all within the corresponding preset ranges, adjust the length of the sliding window according to the data transmission speed;

[0090] If any one of the data transmission time consumption, device success rate, service success rate, and device abnormality rate is not within the corresponding preset range, reduce the length of the sliding window to a first preset ratio of the length of the previous sliding window.

[0091] Optionally, in an embodiment of the present disclosure, the above data analysis module is further configured to:

[0092] If the data transmission speed is less than the initial transmission speed and the percentage difference between the data transmission speed and the initial transmission speed is greater than a preset value, expand the length of the sliding window to a second preset ratio of the length of the previous sliding window;

[0093] If the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is not greater than a preset value, the length of the sliding window is not adjusted.

[0094] Optionally, in an embodiment of the present disclosure, the above data extraction module is specifically configured to:

[0095] Based on the length and starting position of the sliding window, quickly read the data to be sent from the dataset by using a preloading mechanism.

[0096] In one or more embodiments of the present disclosure, the length and starting position of the sliding window are determined, the data to be sent is extracted from the dataset based on the length and starting position of the sliding window, then the data to be sent is sent, and the running data during the data sending process is obtained. In response to the completion of the sending of the data to be sent, based on the running data, the length and starting position of the sliding window are adjusted according to a preset rule, and the above steps are repeated until the data in the dataset is sent completely. Thus, adjusting the length of the sliding window according to the running data takes into account the specific processing capabilities of the downstream nodes, avoids overloading of the downstream system and data backlog in the sending module, and does not require modification of the downstream system, reducing the implementation cost and having a wide range of applications.

[0097] In the technical solution of the present disclosure, the acquisition, storage, and application of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0098] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a computer storage medium.

[0099] Figure 3 FIG. shows a schematic block diagram of an exemplary electronic device 300 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable electronic device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0100] As Figure 3As shown, the electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to computer programs stored in a read-only memory (ROM) 302 or computer programs loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0101] Multiple components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a magnetic disk, an optical disc, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other electronic devices via a computer network such as the Internet and / or various telecommunication networks.

[0102] The computing unit 301 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 301 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 301 executes the various methods and processes described above, such as the data compensation sending method. For example, in some embodiments, the data compensation sending method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 308. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the data compensation sending method described above can be executed. Alternatively, in other embodiments, the computing unit 301 can be configured to execute the data compensation sending method in any other appropriate manner (e.g., by means of firmware).

[0103] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0104] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.

[0105] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the 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 acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), the Internet, and blockchain networks.

[0108] A computer system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The relationship between the client and the server is generated 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 a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services ("Virtual Private Server", or simply "VPS"). The server can also be a server of a distributed system, or a server combined with blockchain.

[0109] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.

[0110] The above specific embodiments do not constitute a limitation on the protection scope of the present disclosure. 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 principle of the present disclosure shall be included within the protection scope of the present disclosure.

Claims

1. A data compensation sending method, characterized in that, The method includes: Determine the length and starting position of a sliding window, and extract the data to be sent from the dataset based on the length and starting position of the sliding window; Send the data to be sent, and obtain the running data during the data sending process; In response to completing the sending of the data to be sent, based on the running data, adjust the length and starting position of the sliding window according to a preset rule, and repeat the above steps until all the data in the dataset is sent.

2. The method according to claim 1, characterized in that, The running data includes: Data sending speed; Data sending time consumption; Device success rate; Service success rate; Device exception rate.

3. The method according to claim 2, wherein The adjusting the length and starting position of the sliding window according to a preset rule based on the running data includes: Update the starting position of the sliding window to the sum of the starting position of the previous sliding window and the window length; Based on the data sending time consumption, the device success rate, the service success rate, the device exception rate, and the data sending speed, adjust the length of the sliding window according to a preset rule.

4. The method according to claim 3, wherein The adjusting the length of the sliding window according to a preset rule based on the data sending time consumption, the device success rate, the service success rate, the device exception rate, and the data sending speed includes: Judge whether the data sending time consumption, the device success rate, the service success rate, and the device exception rate are all within the corresponding preset ranges; If the data sending time consumption, the device success rate, the service success rate, and the device exception rate are all within the corresponding preset ranges, adjust the length of the sliding window according to the data sending speed; If any one of the data sending time consumption, the device success rate, the service success rate, and the device exception rate is not within the corresponding preset range, reduce the length of the sliding window to a first preset ratio of the length of the previous sliding window.

5. The method according to claim 4, wherein The adjusting the length of the sliding window according to the data sending speed includes: If the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is greater than a preset value, expand the length of the sliding window to a second preset ratio of the length of the previous sliding window; If the data sending speed is less than the initial sending speed and the percentage difference between the data sending speed and the initial sending speed is not greater than the preset value, do not adjust the length of the sliding window.

6. The method according to claim 1, wherein The extracting the data to be sent from the dataset based on the length and starting position of the sliding window includes: Based on the length and starting position of the sliding window, quickly read the data to be sent from the dataset by using a preloading mechanism.

7. A data compensation transmission device, characterized in that, The device includes: A data extraction module, configured to determine the length and starting position of a sliding window, and extract the data to be sent from the dataset based on the length and starting position of the sliding window; A data sending module, configured to send the data to be sent, and obtain the running data during the data sending process; A data analysis module, which is configured to, in response to the completion of the sending of the data to be sent, adjust the length and starting position of the sliding window based on the operation data according to a preset rule, and repeat the above steps until the data in the dataset is completely sent.

8. The device according to claim 7, characterized in that, The operation data includes: Data sending speed; Data sending time consumption; Device success rate; Service success rate; Device exception rate.

9. An electronic device, comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-6.

10. A computer storage medium, wherein, The computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the method according to any one of claims 1-6 can be implemented.