A method and device for transmitting data
By confirming the data transmission status of other business boards in distributed network devices, setting the waiting times and time, and dispersing the data transmission time points, the network impact problem when sending evidence for obtaining materials on the distributed firewall is solved, and the data effectiveness is achieved and rational use of network resources.
Patent Information
- Application Number
- CN202210865807.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-07-22
AI Technical Summary
When a distributed firewall sends evidence forensic materials to the cloud platform, it occupies a lot of network resources to cause network impact, especially the playback of packet capture files has a great impact on bandwidth, and encryption processing is a challenge to CPU performance.
In distributed network devices, when each business board needs to send data to the cloud platform, it first confirms whether other business boards are sending data. If it exists, wait for other business boards to send data before sending it, and set the waiting times and Waiting time. When the number of wait times or time reaches the set value, continue to confirm and finally send data to the cloud platform to disperse the time point of the data and alleviate the network impact.
By dispersing the time point of data transmission, the impact of network resources is reduced, network pressure caused by multiple service boards is avoided, and data timeliness and effectiveness is ensured.
Smart Images

Figure CN115460287B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data sending method and device. Background Art
[0002] Firewall devices achieve network security by analyzing and checking network traffic. However, actions such as blocking and resetting network traffic also require comprehensive evidence collection and backtracking to allow network managers to better understand network conditions and attack behaviors. Currently, there are many ways to collect evidence for attacks, such as logging and packet capture, among which packet capture is the most direct and effective way to collect evidence.
[0003] As cloud networks become more and more common, firewall devices will also upload evidence materials to cloud platforms so that network administrators can better manage firewall devices through cloud platforms. In order to upload evidence materials, the "upload address" and "upload time" are usually configured in the firewall device so that the firewall device can send evidence materials to the cloud platform regularly. When the firewall device uses a distributed firewall, in the distributed firewall scenario, the evidence materials of each device in the distributed firewall are often stored locally, and when uploading, each device uploads it independently.
[0004] However, when the distributed firewall sends evidence materials to the cloud platform, it will also occupy a considerable amount of network resources, causing a certain impact on the network. In particular, sending the captured packet files is equivalent to a playback of the attack traffic, which has a greater impact on the bandwidth; in addition, in today's advocacy of zero trust in the network, the sending of evidence materials often needs to be encrypted, which is also a challenge to the CPU performance of the distributed firewall.
[0005] Therefore, one of the technical issues worth considering is how to reduce the network impact caused by a large amount of forensic materials occupying more network resources when uploading them. Summary of the invention
[0006] In view of this, the present application provides a data sending method and device, which are used to reduce the network impact caused by a large amount of forensic materials occupying more network resources when uploading forensic materials.
[0007] Specifically, the present application is implemented through the following technical solutions:
[0008] According to a first aspect of the present application, a data transmission method is provided, which is applied to a distributed network device, wherein the distributed network device includes at least one service board; the method includes:
[0009] When each business board needs to send target data to the cloud platform, it confirms whether there are other business boards currently sending data;
[0010] If not, sending the target data to the cloud platform;
[0011] If it exists, confirm whether the number of waiting times is not greater than the set number;
[0012] If it is less than the set number, wait for the set time;
[0013] When the waiting time reaches the set time, continue to execute the step of confirming whether there is another service board currently sending data;
[0014] If the number of waiting times is equal to the set number of times, and the waiting time when the number of waiting times is equal to the set number of times reaches the set time, the target data is sent to the cloud platform.
[0015] According to a second aspect of the present application, there is provided a data sending device, which is arranged in a distributed network device, wherein the distributed network device includes at least one service board; the device includes:
[0016] The first judgment module is used to confirm whether there are other business boards currently sending data when each business board needs to send target data to the cloud platform this time;
[0017] A sending module, configured to send the target data to the cloud platform if the judgment result of the first judgment module is that the target data does not exist;
[0018] A second judgment module, configured to confirm whether the number of waiting times is not greater than a set number of times if the judgment result of the first judgment module is yes;
[0019] A processing module, configured to wait for a set time if the judgment result of the second judgment module is less than the set number of times;
[0020] The first judgment module is further configured to continue executing the step of confirming whether there are other service boards currently sending data when the waiting time of the processing module reaches the set time;
[0021] The sending module is also used to send the target data to the cloud platform if the judgment result of the second judgment module is that the waiting number is equal to the set number, and the waiting time when the waiting number confirmed by the processing module is equal to the set number reaches the set time.
[0022] According to the third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing a computer program that can be executed by the processor, and the processor is prompted by the computer program to execute the method provided in the first aspect of the embodiment of the present application.
[0023] According to the fourth aspect of the present application, a machine-readable storage medium is provided, which stores a computer program. When called and executed by a processor, the computer program prompts the processor to execute the method provided in the first aspect of the embodiment of the present application.
[0024] Beneficial effects of the embodiments of the present application:
[0025] In the data transmission method and device provided by the embodiment of the present application, when each business board in the distributed network device needs to upload the target data, it will first confirm whether there are other business boards that are currently uploading data. If there are other business boards, the business board will not send the target data first, and wait for the other business boards to finish sending the data before sending it, that is, the time points of the above-mentioned data of each business board are dispersed, and the network impact caused by a large number of business boards sending data at the same time is alleviated. However, in order to avoid the validity of the data to be uploaded by each business board, the application sets a set number of times and a set time for this purpose. When the waiting number does not reach the set number of times, it can continue to wait, and when the waiting number is equal to the set number of times, it will continue to wait for the set time before sending the target data to the cloud platform; and when the waiting number is greater than the set number of times, in order to ensure the validity and timeliness of the target data, the business board will also send the target data to the cloud platform. Since other business boards may have reached the end of sending data at this time, the business board can also alleviate the impact of network resources by sending the target data at this time. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flowchart of a data sending method provided in an embodiment of the present application;
[0027] Figure 2 It is a structural schematic diagram of a data sending device provided in an embodiment of the present application;
[0028] Figure 3 It is a hardware structure diagram of an electronic device for implementing a data sending method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.
[0030] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.
[0031] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0032] The data sending method provided by the present application is described in detail below.
[0033] See also Figure 1 , Figure 1 This is a flow chart of a data transmission method provided by the present application. The method can be applied to a distributed network device, which includes at least one service board. In practical applications, the distributed network device can be, but is not limited to, a distributed firewall device. When the above-mentioned distributed network device implements the method, it can include the following steps:
[0034] S101. When each business board needs to send target data to the cloud platform, it confirms whether there are other business boards currently sending data; if so, execute step S102; if not, execute step S104.
[0035] In this step, when each business board needs to upload target data, in order to avoid the data occupying more network resources due to the business board directly uploading data when other business boards are currently uploading data, this implementation proposes that the business board will first confirm whether there are other business boards currently uploading data. If so, the business board can wait for other business boards to finish uploading data before executing the target data upload. However, the target data of the business board is also up-to-date and it is impossible to wait forever. Therefore, this embodiment proposes to set a number threshold for the business board, that is, set the number of times, and then determine whether the waiting number of the business board is not greater than the set number, that is, execute step S102.
[0036] However, when the business board confirms that there is no other business board sending data at present, the business board can directly send the above target data to the cloud platform.
[0037] In this way, the present application allows as few service boards as possible to send the data acquired by the service boards in the same time period, thereby minimizing the network resources occupied by the sent data and alleviating the impact of the sent data on the network resources.
[0038] S102, confirm whether the waiting times are not greater than the set times; if less than the set times, execute step S103; if equal to the set times, execute step S105; if greater than the set times, continue to execute step S104.
[0039] In this step, when the business board needs to upload the target data, it will start the counter, and then when it is confirmed that there are other business boards that are currently sending data, it can check the counter. If the value of the counter is not greater than the value of the set number of times, it can wait for a while, which means that it can be delayed for a while before sending. If the number of waiting times is equal to the set number of times, it means that it has been delayed several times. In order to avoid the problem of data freshness caused by the target data of this business board being sent too late, this application proposes that when the number of waiting times reaches the set number of times, step S105 is executed. When the number of waiting times is greater than the set number of times, it means that the tolerance upper limit of the target data has been reached, and at this time the business board can directly send the above target data to the cloud platform.
[0040] It should be noted that the setting times corresponding to different service boards can be the same or different, which can be determined according to actual conditions.
[0041] S103, waiting for a set time. When the waiting time reaches the set time, continue to execute the step of confirming whether there are other service boards currently sending data in step S101.
[0042] In this step, when the number of waiting times is less than the set number of times, it indicates that there is still a period of time to wait. This embodiment will set a set time for the service board and configure a first timer for the service board, that is, each time it waits, it waits for the set time. When the waiting time recorded by the first timer reaches the set time, the step of confirming whether there are other service boards currently sending data in step S101 will continue to be executed to better avoid excessive network resource consumption caused by too many service boards sending data at the same time.
[0043] It should be noted that the setting time corresponding to different service boards can be the same or different, and can be configured according to actual conditions.
[0044] S104: Send the target data to the cloud platform.
[0045] In this step, when the business board confirms that there is no other business board sending data at present, the business board can directly send the target data to be uploaded to the cloud platform.
[0046] S105. When the waiting time when the number of waiting times is equal to the set number of times reaches the set time, the target data is sent to the cloud platform.
[0047] In this step, when the waiting time is equal to the set number of times, the business board still has to wait for the set number of times. Only when it is greater than the set number of times, the business board can directly send the target data to the cloud platform; therefore, when the waiting number of times of the business board is equal to the set number of times, the business board will continue to wait, and when the waiting time reaches the set time, it will send the above target data to the cloud platform. In this way, by waiting for a period of time, it avoids competing for network resources with other business boards sending data, so that other business boards have enough network resources to upload their own data during this time, thereby avoiding impact on network resources.
[0048] It should be noted that the above target data may be, but is not limited to, forensic material data, that is, data related to determining whether the business board is attacked.
[0049] By implementing the data sending method provided by the present application, when each business board needs to upload target data, it will first confirm whether there are other business boards that are currently uploading data. If there are other business boards, the business board will not send the target data first, and wait for other business boards to finish sending data before sending, that is, the time points of the above-mentioned data of each business board are dispersed, which alleviates the network impact caused by a large number of business boards sending data at the same time. However, in order to avoid the validity of the data to be uploaded by each business board, the present application sets a set number of times and a set time for this purpose. When the waiting number does not reach the set number of times, it can continue to wait, and when the waiting number is equal to the set number of times, it will continue to wait for the set time before sending the target data to the cloud platform; and when the waiting number is greater than the set number of times, in order to avoid delaying too many times to affect the sending of data, that is, in order to ensure the validity and timeliness of the target data, the business board will also send the target data to the cloud platform. Since other business boards may have reached the end of sending data at this time, the business board can also alleviate the impact of network resources by sending target data at this time.
[0050] It should be noted that after the target data is sent up this time, the counter used for counting the number of times and the first timer used for timing are cleared.
[0051] Optionally, based on any of the above embodiments, the business board can confirm that it needs to send target data to the cloud platform according to the following process: the business board confirms whether the grace period has arrived; when confirming that the grace period has arrived, it confirms that the business board needs to send target data to the cloud platform.
[0052] Specifically, in order to further prevent network resources from being impacted by data upload, a grace period will be set for each business board, so that each business board can upload data in a dispersed manner within the upload time period where the start upload time and the end time are located according to their respective grace periods. On this basis, when the upload time of the target data arrives, the business board will not immediately execute the upload process, but will enable the timing of the grace period, and then determine whether the timing time has reached the grace period. When the grace period is reached, it indicates that the time when the grace period is reached is recorded as the upload time of the business board, that is, it is confirmed that the target data needs to be sent to the cloud platform; if the timing time does not reach the grace period, it indicates that it is necessary to continue waiting until the grace period is reached. After the grace period is reached, the second timer for timing the business board is reset.
[0053] Optionally, the grace period of each service board can be confirmed according to the following method: determine the starting time for starting to upload data and the deadline for stopping to upload data; determine the time difference between the deadline and the starting time; determine the grace period based on the random number function and the time difference.
[0054] Specifically, the distributed network device will set a unified upload time period, during which each service board will upload data to the cloud platform. The upload time period consists of a start time and a deadline, where the start time is earlier than the deadline. The start time is the time when the distributed network device starts to upload data to the cloud platform, and the deadline is the end time of data upload. On this basis, the grace period of each service board can be calculated so that each service board can upload data in a dispersed manner within the upload time period where the start upload time and the deadline are located according to their respective grace periods.
[0055] When calculating the grace period, the calculation method can be flexibly selected, as long as the grace period of each service board is as uniform as possible. For ease of understanding, this embodiment provides a method for calculating the grace period, namely: determining the time difference between the end time and the start time, and then determining the grace period based on the random number function and the time difference.
[0056] Furthermore, when determining the grace period according to the random number function and the time difference, it can be implemented according to the following process: performing a remainder calculation on the random value generated by the random number function this time and the time difference to obtain the grace period.
[0057] Specifically, the grace period can be calculated according to the following formula: Grace period = Rand()% (end time - start time). On this basis, when the start time arrives, it can be determined whether each service board can determine whether its own grace period has arrived. When it arrives, the process of steps S101 to S105 is executed again. In order to better understand this embodiment, the start time is 01:00 and the end time is 01:40. The grace period of each service board can be calculated through the above grace period formula, as shown in Table 1:
[0058] Table 1
[0059] Start time 01:00 Board 1 upload time 01:05 Grace period 5 minutes Board 2 upload time 01:10 Grace period 10 minutes Board 3 upload time 01:15 Grace period 15 minutes …… …… …… Deadline 01:40
[0060] It should be noted that the above-mentioned grace period calculation method is only an example and does not constitute a limitation on the grace period calculation method. In actual applications, other methods of calculating the grace period can also be used to ensure that each business board can be evenly distributed at a time point within the upload time period, and that there is a gap between the upload times of adjacent business boards.
[0061] As an example, in order to better understand the data transmission method provided by this embodiment, the setting number of times is 3 times, the setting time is 1 minute and combined with Table 1 as an example for explanation. On this basis, the user will pre-issue the configuration on the distributed network device, such as: the start time of data upload is 01:00, the end time is 01:40, the waiting time is 1 minute, that is, the extension time is 1 minute each time; the waiting number of times is 3 times, that is, the extension time limit is 3 times. After the configuration is completed, the distributed network device starts to execute the data transmission method provided by any of the above embodiments of this application.
[0062] Take business board 1 as an example. The grace period calculated by the business board is 5 minutes. On this basis, the data sending process implemented by business board 1 is roughly as follows:
[0063] Step 1: When the grace period of service board 1 arrives, concurrent detection is performed to confirm whether other service boards are currently sending data. The following two situations are detected:
[0064] Case 1: If the concurrent detection result of business board 1 is "no concurrency", the forensic material data of business board 1 is directly uploaded to the cloud platform, and the upload process of business board 1 is completed.
[0065] Case 2: If the concurrent detection result of business board 1 is "concurrent", it will wait for 1 minute, that is, the first postponement will be performed, and the next trigger time will be 01:06.
[0066] Step 2: If service board 1 confirms that the first extension time has arrived, it will continue to perform concurrent detection to confirm whether there are other service boards currently sending data. At this time, the following two situations will be detected:
[0067] Case 1: If business board 1 confirms that the concurrent detection result is "no concurrency", it will upload the forensic material data to the cloud platform, and the upload process of business board 1 is completed.
[0068] Case 2: If business board 1 confirms that the concurrent detection result is "concurrent", it will wait for 1 minute, that is, perform the second postponement, and the next trigger time will be 01:07.
[0069] Step 3: If service board 1 confirms that the second extension time has arrived, it will continue to perform concurrent detection to confirm whether there are other service boards currently sending data. At this time, the following two situations will be detected:
[0070] Case 1: If business board 1 confirms that the concurrent detection result is "no concurrency", business board 1 uploads the forensic material data to the cloud platform, and the upload process of business board 1 ends.
[0071] Case 2: If business board 1 confirms that the concurrent detection result is "concurrent", it waits for 1 minute, that is, performs the third postponement, and the next trigger time is 01:08.
[0072] Step 4: If business board 1 confirms that the third postponement time has arrived, and because the number of waiting times has reached 3, that is, the postponement limit has been reached, business board 1 will no longer perform concurrent detection and directly upload the forensic material data to the cloud platform, and the upload process of business board 1 ends.
[0073] In this way, in the process of sending forensic data on distributed network devices, the time points for sending forensic data by each business board in the distributed network device are dispersed by setting a grace period, setting a number of times and setting a time, that is, each business board sends its own forensic data in a dispersed manner, thereby avoiding the network impact caused by the simultaneous sending of forensic data by each business board.
[0074] Based on the same inventive concept, the present application also provides a data sending device corresponding to the above data sending method. The implementation of the data sending device can refer to the above description of the data sending method, which will not be discussed here one by one.
[0075] See also Figure 2 , Figure 2 A data sending device provided by an exemplary embodiment of the present application is provided in a distributed network device, wherein the distributed network device includes at least one service board; the device includes:
[0076] The first judgment module 201 is used to confirm whether there are other business boards currently sending data when each business board needs to send target data to the cloud platform this time;
[0077] A sending module 202, configured to send the target data to the cloud platform if the judgment result of the first judgment module 201 is that the target data does not exist;
[0078] A second judgment module 203 is used to confirm whether the waiting times are not greater than a set times if the judgment result of the first judgment module 201 is existence;
[0079] A processing module 204 is configured to wait for a set time if the determination result of the second determination module 203 is less than the set number of times;
[0080] The first judgment module 201 is further configured to continue executing the step of confirming whether there are other service boards currently sending data when the waiting time of the processing module 204 reaches the set time;
[0081] The sending module 202 is also used to send the target data to the cloud platform if the judgment result of the second judgment module 203 is that the waiting number is equal to the set number, and the waiting time when the waiting number confirmed by the processing module 204 is equal to the set number reaches the set time.
[0082] Optionally, based on the above embodiment, in this embodiment, the above first judgment module 201 is specifically used to confirm whether the current grace period has arrived; when confirming that the current grace period has arrived, confirm that the business board needs to send target data to the cloud platform.
[0083] Optionally, based on the above embodiment, the data sending device provided in this embodiment may further include:
[0084] A determination module (not shown in the figure) is used to confirm the grace period of each business board according to the following method: determine the starting time for starting to upload data and the deadline for stopping to upload data; determine the time difference between the deadline and the starting time; determine the grace period based on the random number function and the time difference.
[0085] Optionally, the above-mentioned determination module (not shown in the figure) is specifically used to calculate the remainder of the random value generated by the random number function this time and the time difference to obtain the grace period.
[0086] Optionally, based on any of the above embodiments, in this embodiment, the sending module 202 is further used to send the target data to the cloud platform if the judgment result of the second judgment module 203 is that the waiting times are greater than the set times.
[0087] By implementing the data sending device provided by any of the above embodiments of the present application, each business board in the distributed network device will first confirm whether there are other business boards that are currently uploading data when it needs to upload target data. If there are other business boards, the business board will not send the target data first, waiting for other business boards to finish sending data before sending, that is, the time points of the above data of each business board are dispersed, alleviating the network impact caused by a large number of business boards sending data at the same time. However, in order to avoid the validity of the data to be uploaded by each business board, the present application sets a set number of times and a set time for this purpose. When the waiting number does not reach the set number of times, it can continue to wait, and when the waiting number is equal to the set number of times, it will continue to wait for the set time before sending the target data to the cloud platform; and when the waiting number is greater than the set number of times, in order to ensure the validity and timeliness of the target data, the business board will also send the target data to the cloud platform. Since other business boards may have reached the end of sending data at this time, the business board can also alleviate the impact of network resources by sending target data at this time.
[0088] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which may be, but is not limited to, the above-mentioned distributed network device. Figure 3 As shown, the electronic device includes a processor 300, at least one business board 301 and a machine-readable storage medium 302, the machine-readable storage medium 302 stores a computer program that can be executed by the business board 301, and the business board 301 is prompted by the computer program to execute the data sending method provided in any embodiment of the present application. In addition, the electronic device also includes a communication interface 303 and a communication bus 304, wherein the processor 300, at least one business board 301, the communication interface 303, and the machine-readable storage medium 302 communicate with each other through the communication bus 304.
[0089] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0090] The communication interface is used for communication between the above electronic device and other devices.
[0091] The machine-readable storage medium 302 may be a memory, which may include a random access memory (RAM), a DDR SRAM (Double Data Rate Synchronous Dynamic Random Access Memory), or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.
[0092] The above-mentioned processor 300 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0093] As for the electronic device and machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0094] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0095] The implementation process of the functions and effects of each unit / module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0096] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units / modules described as separate components may or may not be physically separated, and the components displayed as units / modules may or may not be physical units / modules, that is, they may be located in one place, or they may be distributed on multiple network units / modules. Some or all of the units / modules may be selected according to actual needs to achieve the purpose of the present application. A person of ordinary skill in the art can understand and implement it without creative work.
[0097] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A data transmission method, characterized in that: Applied in a distributed network device, the distributed network device includes at least one service board; the method includes: When each business board needs to send target data to the cloud platform, it confirms whether there are other business boards currently sending data; If not, sending the target data to the cloud platform; If it exists, confirm whether the number of waiting times is not greater than the set number; If it is less than the set number, wait for the set time; When the waiting time reaches the set time, continue to execute the step of confirming whether there is another service board currently sending data; If the number of waiting times is equal to the set number of times, and the waiting time when the number of waiting times is equal to the set number of times reaches the set time, the target data is sent to the cloud platform; Confirm that the business board needs to send target data to the cloud platform in accordance with the following method: the business board confirms whether the current grace period has arrived; when confirming that the current grace period has arrived, confirm that the business board needs to send target data to the cloud platform.
2. The method according to claim 1, characterized in that Determine the grace period for each service board as follows: Determine the start time and end time of data upload; Determining a time difference between the end time and the start time; The grace period is determined according to a random number function and the time difference.
3. The method according to claim 2, characterized in that Determining the grace period according to the random number function and the time difference includes: The grace period is obtained by performing a remainder calculation on the random value generated by the random number function this time and the time difference.
4. The method according to claim 1, characterized in that: Also includes: When the waiting times are greater than the set times, the target data is sent to the cloud platform.
5. A data sending device, characterized in that: The device is provided in a distributed network device, wherein the distributed network device includes at least one service board; the device includes: The first judgment module is used to confirm whether there are other business boards currently sending data when each business board needs to send target data to the cloud platform this time; A sending module, configured to send the target data to the cloud platform if the judgment result of the first judgment module is that the target data does not exist; A second judgment module, configured to confirm whether the number of waiting times is not greater than a set number of times if the judgment result of the first judgment module is yes; A processing module, configured to wait for a set time if the judgment result of the second judgment module is less than the set number of times; The first judgment module is further configured to continue executing the step of confirming whether there are other service boards currently sending data when the waiting time of the processing module reaches the set time; The sending module is further configured to send the target data to the cloud platform if the judgment result of the second judgment module is that the number of waiting times is equal to the set number of times, and the waiting time when the number of waiting times confirmed by the processing module is equal to the set number of times reaches the set time; The first judgment module is specifically used to confirm whether the current grace period has arrived; when confirming that the current grace period has arrived, confirm that the business board needs to send target data to the cloud platform.
6. The device according to claim 5, characterized in that Also includes: A determination module is used to determine the grace period of each service board according to the following method: determine the start time of starting to send data and the end time of stopping sending data; Determine a time difference between the deadline and the start time; and determine the grace period according to a random number function and the time difference.
7. The device according to claim 6, characterized in that The determination module is specifically used to calculate the remainder of the random value generated by the random number function this time and the time difference to obtain the grace period.
8. The device according to claim 5, characterized in that The sending module is further used to send the target data to the cloud platform if the judgment result of the second judgment module is that the waiting times are greater than the set times.
