Processing method for guaranteeing integrity of network transmission data and electronic equipment

By using the combination method of time sliding window and data volume sliding window on the server, the problem of incomplete network transmission data caused by insufficient packet collection during the server cycle is solved, and the integrity and efficiency of data transmission are achieved.

CN119996325APending Publication Date: 2025-05-13SHENZHEN RUIHAN MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510049286.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the amount of packets collected during the server cycle is insufficient, resulting in the problem of incomplete network transmission data.

Method used

The combination method of time sliding window and data quantity sliding window is adopted, and the sliding window algorithm is used to determine whether the packet collection amount of the server meets the transmission efficiency. If it is not satisfied, the insufficient amount of data packets will be compensated through the data quantity sliding window.

Benefits of technology

It ensures that the amount of packets received during the server cycle meets the needs of complete data transmission and optimizes the integrity of network transmission data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996325A_ABST
    Figure CN119996325A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of data transmission, and provides a processing method and electronic equipment for guaranteeing the integrity of network transmission data, and the method comprises the following steps: S1, establishing network connection between a server and a client, and starting network input monitoring; s2, initializing a time sliding window and a data volume sliding window, and receiving continuous transmission of client data; s3, sliding the time sliding window and the data volume sliding window at the same time, starting packet receiving amount counting detection at the same time, when a timestamp reaches the right boundary of the time sliding window, judging whether the current packet receiving amount meets the data transmission frequency or not, if not, executing S4, and if yes, executing S5; s4, continuously sliding the left boundary of the data volume sliding window to the right boundary to compensate the insufficient amount of the data packets, continuously detecting the packet receiving amount count, and executing S5 when the packet receiving amount reaches the number of data transmission frequencies; and S5, checking whether the current data transmission is finished or not, if not, returning to S3, continuing to carry out data receiving processing, and if so, ending the data receiving processing.
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 processing method and electronic equipment for ensuring the integrity of network transmission data. Background Art

[0002] In the development of network communication software, there is such a usage scenario: after the client and the server shake hands to establish a network connection and perform communication authentication, the client (sender) will continue to send a large amount of (multi-device signal source medium and high frequency) data to the server (receiver). When the communication between the two parties is normal, the server does not need to respond (similar to UDP communication) message feedback during data transmission communication. Only when the connection times out or the transmission data delay exceeds the set range will the server send a specific message to the client for processing.

[0003] In the above applications, the calculation of network transmission rate usually refers to the number of data packets received and processed by the server within a period (such as 1 second). For example, in surface electromyography software, the data transmission rate is defined as the device signal frequency, and the period is measured in seconds. The client device is required to collect data and send it losslessly to the server for reception and processing. In the current software scenario, under the premise of time synchronization between the client and the server, there will be a certain deviation in the server reception, because the transmission process from the client to the server and the server receiving data both take a certain amount of time, especially for some medium and high frequency signal data transmission, the time consumption here cannot be ignored, so the server receives insufficient packets within the period, and the network transmission data is incomplete.

[0004] The technical problem to be solved by this application is: how to solve the problem that in the existing data transmission process, the server receives insufficient packets within a period, resulting in incomplete network transmission data. Summary of the invention

[0005] In order to overcome the deficiencies of the prior art, an object of the present invention is to provide a processing method and electronic device for ensuring the integrity of network transmission data, which can ensure the integrity of data received by the server.

[0006] The technical solution adopted by the present invention is: a processing method for ensuring the integrity of network transmission data, applied to the server, comprising the following steps:

[0007] S1: Establish a network connection between the server and the client, and start network input monitoring;

[0008] S2: Initialize the time sliding window and the data volume sliding window, and receive the client data for continuous transmission;

[0009] S3: The time sliding window and the data volume sliding window start sliding at the same time, that is, the left boundary of the time sliding window and the data volume sliding window are moved to the right boundary, and the packet quantity counting detection is started at the same time. When the timestamp reaches the right boundary of the time sliding window, it is determined whether the current packet quantity meets the data transmission frequency. If not, S4 is executed. If yes, S5 is executed.

[0010] S4: The left boundary of the data volume sliding window continues to slide to the right boundary to compensate for the shortage of the current data packet, and the packet receiving amount counting detection continues. When the packet receiving amount has reached the number of data transmission frequencies, S5 is executed;

[0011] S5: Check whether the current data transmission has ended. If not, return to S3 to perform the next set of data reception processing. If yes, end the current data reception processing.

[0012] In some implementations, the server and the client perform data transmission via TCP protocol Socket technology.

[0013] In some implementations, step S1 further includes: defining the size of the time sliding window and the data volume sliding window, that is, defining the left and right boundaries of the time sliding window and the data volume sliding window.

[0014] In some implementations, the time sliding window is a sliding window that uses a time dimension to define an interval of a server receiving period.

[0015] In some implementations, the data volume sliding window is a sliding window that uses a fixed number to define the amount of packets received within a period of the server.

[0016] In some embodiments, the frequency of data transmission is medium to high frequency or high frequency.

[0017] In some embodiments, the range of the medium and high frequencies is 2000-4000 Hz, and the range of the high frequencies is ≥4000 Hz.

[0018] In some implementations, the received packet count detection is performed by a count detection module.

[0019] An electronic device includes a memory and a processor, wherein the processor is used to implement the steps of the processing method for ensuring the integrity of network transmission data when executing a computer management program stored in the memory.

[0020] A computer-readable storage medium stores a computer management program, which, when executed by a processor, implements the steps of the above-mentioned processing method for ensuring the integrity of network transmission data.

[0021] The processing method and electronic device for ensuring the integrity of network transmission data of the present invention use a time sliding window and a data volume sliding window to ensure that the amount of packets received by the server within a period meets the requirements for complete data transmission. During the process of receiving data transmission at the server, it is preferentially determined whether the amount of packets received by the server meets the transmission efficiency within the period of the time sliding window. If not, the data volume sliding window continues to slide to compensate for the insufficient amount of data packets, thereby ensuring the integrity of network transmission data. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a processing method for ensuring the integrity of network transmission data according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. When the number of an element is referred to as "plurality", it may be any number of two or more. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and are not intended to be the only implementation method.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0026] like Figure 1 The figure is a flow chart of a processing method for ensuring the integrity of network transmission data provided by an embodiment of the present invention. The first aspect of the present invention provides a processing method for ensuring the integrity of network transmission data, which is applied to a server and includes the following steps:

[0027] S1: Establish a network connection between the server and the client, and start network input monitoring;

[0028] S2: Initialize the time sliding window and the data volume sliding window, and receive the client data for continuous transmission;

[0029] S3: The time sliding window and the data volume sliding window start sliding at the same time, that is, the left boundary of the time sliding window and the data volume sliding window are moved to the right boundary, and the packet quantity counting detection is started at the same time. When the timestamp reaches the right boundary of the time sliding window, it is determined whether the current packet quantity meets the data transmission frequency. If not, S4 is executed. If yes, S5 is executed.

[0030] S4: The left boundary of the data volume sliding window continues to slide to the right boundary to compensate for the shortage of the current data packet, and the packet receiving amount counting detection continues. When the packet receiving amount has reached the number of data transmission frequencies, S5 is executed;

[0031] S5: Check whether the current data transmission has ended. If not, return to S3 to perform the next set of data reception processing. If yes, end the current data reception processing.

[0032] In this embodiment, the server and the client perform data transmission via TCP Socket technology. The sliding window algorithm is a method designed to ensure the integrity of TCP network communications. In simple terms, the sender and the receiver use a sliding window to coordinate data transmission. The sliding window specifies the amount of data that the sender can send and the amount of data that the receiver can receive. The sender adjusts the size of the sliding window based on the receiver's confirmation to ensure that data is transmitted without exceeding the receiver's processing capacity. The present invention mainly uses the sliding window algorithm for the server (receiver) and does not consider the client (sender).

[0033] The network input monitoring in step S1 is an inherent function of the server. The network input monitoring is a management tool for monitoring the network status, data flow and information transmission on the network, and can intercept information about the data received by the server.

[0034] The data transmission frequency in the present invention refers specifically to the definition in the field of data transmission, and refers to the rate of data transmission, that is, the amount of data transmitted per unit time.

[0035] It should be noted that the processing method of the present invention is mainly applicable to the situation where the network transmission rate is clearly defined, and the client performance and network configuration are satisfied as a prerequisite, that is, the frequency of data transmission is clearly known before operation, and the network connection between the server and the client is in a stable connection, and the bandwidth of the network configuration can meet the transmission frequency of the data.

[0036] Furthermore, step S1 also includes: defining the size of the time sliding window and the data volume sliding window, that is, the left and right boundaries of the time sliding window and the data volume sliding window. Specifically, the time sliding window is a sliding window that uses the time dimension to define the interval of the server's receiving cycle (that is, the time length within the cycle), and the data volume sliding window is a sliding window that uses a fixed number to define the amount of packets received within the server cycle. It should be noted that the size of the time sliding window and the data volume sliding window is determined according to the specific parameters of the frequency of data transmission received by the server.

[0037] In the present invention, the frequency of data transmission is medium-high frequency or high frequency, and the higher the frequency of data transmission, the more significant the function. Preferably, the medium-high frequency range is 2000-4000HZ, and the high frequency range is ≥4000HZ.

[0038] In this example, in steps S3 and S4, the packet receiving quantity counting detection is performed by a counting detection module.

[0039] The second aspect of the present invention is to provide an electronic device, including a memory and a processor, wherein the processor is used to implement the steps of the above-mentioned processing method for ensuring the integrity of network transmission data when executing a computer management program stored in the memory.

[0040] The third aspect of the present invention is to provide a computer-readable storage medium on which a computer management program is stored. When the computer management program is executed by a processor, the steps of the processing method for ensuring the integrity of network transmission data as described above are implemented.

[0041] The processing method and electronic device for ensuring the integrity of network transmission data of the present invention use a "double sliding window" of a time sliding window and a data volume sliding window to achieve that the amount of packets received within a server period meets the requirements for complete data transmission. During the process of receiving data transmission at the server, it is preferentially determined whether the amount of packets received at the server meets the transmission efficiency within the period of the time sliding window. If not, the data volume sliding window continues to slide to compensate for the insufficient amount of data packets, thereby ensuring the integrity of network transmission data.

[0042] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A processing method for ensuring the integrity of network transmission data, applied to a server, characterized in that: The steps include: S1: Establish a network connection between the server and the client, and start network input monitoring; S2: Initialize the time sliding window and the data volume sliding window, and receive the client data for continuous transmission; S3: The time sliding window and the data volume sliding window start sliding at the same time, that is, the left boundary of the time sliding window and the data volume sliding window are moved to the right boundary, and the packet quantity counting detection is started at the same time. When the timestamp reaches the right boundary of the time sliding window, it is determined whether the current packet quantity meets the data transmission frequency. If not, S4 is executed. If yes, S5 is executed. S4: The left boundary of the data volume sliding window continues to slide to the right boundary to compensate for the shortage of the current data packet, and the packet receiving amount counting detection continues. When the packet receiving amount has reached the number of data transmission frequencies, S5 is executed; S5: Check whether the current data transmission has ended. If not, return to S3 and continue the data receiving process. If so, end the current data receiving process.

2. The method for ensuring the integrity of network transmission data according to claim 1, characterized in that: The server and the client perform data transmission via TCP protocol Socket technology.

3. The method for ensuring the integrity of network transmission data according to claim 1, characterized in that: The step S1 also includes: defining the size of the time sliding window and the data volume sliding window, that is, the left and right boundaries of the time sliding window and the data volume sliding window.

4. The method for ensuring the integrity of network transmission data according to claim 1, characterized in that: The time sliding window is a sliding window that uses a time dimension to define an interval of a server receiving cycle.

5. The method for ensuring the integrity of network transmission data according to claim 1, characterized in that: The data volume sliding window is a sliding window that uses a fixed number to define the amount of packets received within a period of the server.

6. The method for ensuring the integrity of network transmission data according to claim 1, characterized in that: The frequency of data transmission is medium-high frequency or high frequency.

7. The method for ensuring the integrity of network transmission data according to claim 6, characterized in that: The range of the medium and high frequencies is 2000-4000 Hz, and the range of the high frequencies is ≥4000 Hz.

8. The method for ensuring the integrity of network transmission data according to claim 1, characterized in that: The received packet quantity counting detection is performed by a counting detection module.

9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the processor is used to implement the steps of the processing method for ensuring the integrity of network transmission data as described in any one of claims 1 to 8 when executing a computer management program stored in the memory.

10. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the processing method for ensuring the integrity of network transmission data as described in any one of claims 1 to 8 are implemented.