[go: up one dir, main page]

CN118842766A - Government cloud multi-source data transmission detection system and method - Google Patents

Government cloud multi-source data transmission detection system and method Download PDF

Info

Publication number
CN118842766A
CN118842766A CN202411029635.4A CN202411029635A CN118842766A CN 118842766 A CN118842766 A CN 118842766A CN 202411029635 A CN202411029635 A CN 202411029635A CN 118842766 A CN118842766 A CN 118842766A
Authority
CN
China
Prior art keywords
data
transmitted
data packet
delay
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411029635.4A
Other languages
Chinese (zh)
Inventor
朱家养
杨逸
朱清女
郑经楷
杨德斌
陈孝波
杨宗毅
郑阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Qingda Technology Co ltd
Original Assignee
Zhejiang Qingda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Qingda Technology Co ltd filed Critical Zhejiang Qingda Technology Co ltd
Priority to CN202411029635.4A priority Critical patent/CN118842766A/en
Publication of CN118842766A publication Critical patent/CN118842766A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/43Assembling or disassembling of packets, e.g. segmentation and reassembly [SAR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of data transmission, and discloses a government cloud multisource data transmission detection system and method, wherein the system comprises the following steps: a data transmitting end and a data receiving end; the data transmitting terminal comprises: a to-be-transmitted database for storing all to-be-transmitted data; a segmentation module for segmenting the data to be transmitted and endowing the segmented data with a check code; a queue module for determining transmission priority and retransmitting data packets; determining a verification module needing to resend the missing data packet according to the missing form; the data receiving terminal comprises: a verification module for confirming the missing data packet and generating a missing form; and the feedback module is used for sending the missing form and the recombination module is used for recombining the missing form into complete data. The invention obviously improves the reliability, efficiency and safety of data transmission and the integrity of the data in the transmission process by comprehensively applying the policies of data segmentation, verification, priority adjustment, compression policy, missing data packet management and the like.

Description

一种政务云多源数据传输检测系统及方法A government cloud multi-source data transmission detection system and method

技术领域Technical Field

本发明涉及数据传输技术领域,具体而言,涉及一种政务云多源数据传输检测系统及方法。The present invention relates to the field of data transmission technology, and in particular to a government cloud multi-source data transmission detection system and method.

背景技术Background Art

政务云多源数据传输是指在政务云环境中,不同来源的数据通过网络进行传输和整合,以便实现数据共享和协同应用的过程。政务云是相关部门和机构基于云计算技术构建的信息化平台,用于集中管理和共享各类政务数据。多源数据传输涉及若干个数据来源之间的数据交换与集成。Government cloud multi-source data transmission refers to the process of transmitting and integrating data from different sources through the network in the government cloud environment to achieve data sharing and collaborative application. The government cloud is an information platform built by relevant departments and institutions based on cloud computing technology to centrally manage and share various government data. Multi-source data transmission involves data exchange and integration between several data sources.

政务云中的多源数据传输主要依赖于传统的传输协议和方法,虽然能够实现数据的基本传输功能,但只能对数据包进行简单的校验,难以全面保证数据在传输过程中的完整性以及传输过程的精确控制。一旦数据包丢失或损坏,现有的机制无法及时发现并进行有效处理。The multi-source data transmission in the government cloud mainly relies on traditional transmission protocols and methods. Although they can realize the basic data transmission function, they can only perform simple verification of data packets, making it difficult to fully guarantee the integrity of data during transmission and accurately control the transmission process. Once a data packet is lost or damaged, the existing mechanism cannot detect it in time and handle it effectively.

因此,设计一种保障数据完整性的政务云多源数据传输检测系统或方法尤为重要。Therefore, it is particularly important to design a government cloud multi-source data transmission detection system or method to ensure data integrity.

发明内容Summary of the invention

鉴于此,本发明提出了一种政务云多源数据传输检测系统及方法,旨在解决当前技术中难以保证政务云多源数据传输的数据完整性的问题。In view of this, the present invention proposes a government cloud multi-source data transmission detection system and method, aiming to solve the problem that it is difficult to ensure the data integrity of government cloud multi-source data transmission in current technology.

一方面,本发明提出的一种政务云多源数据传输检测系统,包括:数据发送端与数据接收端;On the one hand, the present invention proposes a government cloud multi-source data transmission detection system, including: a data sending end and a data receiving end;

所述数据发送端包括:The data sending end comprises:

待传数据库,被配置为接收并存储所有待传输数据;A to-be-transmitted database, configured to receive and store all to-be-transmitted data;

分段模块,被配置为获取所述待传数据库中的所述待传输数据,将所述待传输数据分段为若干个数据包,并为每个所述数据包捆绑校验码;A segmentation module is configured to obtain the data to be transmitted in the database to be transmitted, segment the data to be transmitted into a plurality of data packets, and bundle a check code for each of the data packets;

队列模块,被配置为根据吞吐量与所述数据发送端数据包的排队时延对所述数据包进行传输优先级的排序,根据所述传输优先级发送所述数据包以及包含数据包和数据包所捆绑校验码的确认表单;所述队列模块还被配置为重新发送缺失数据包;A queue module is configured to sort the data packets according to the transmission priority according to the throughput and the queuing delay of the data packets at the data sending end, and send the data packets and a confirmation form including the data packets and the check code bundled with the data packets according to the transmission priority; the queue module is also configured to resend the missing data packets;

验证模块,被配置为所述数据包成功发送后,对所述数据接收端要求发送缺失表单,根据所述缺失表单确定需重新发送的缺失数据包;所述缺失表单包括缺失数据包的名称以及对应的校验码;The verification module is configured to request the data receiving end to send a missing form after the data packet is successfully sent, and determine the missing data packet to be resent according to the missing form; the missing form includes the name of the missing data packet and the corresponding check code;

所述数据接收端包括:The data receiving end comprises:

核验模块,被配置为接收所述数据包与校验码,确认所述缺失数据包并生成所述缺失表单;A verification module, configured to receive the data packet and the check code, confirm the missing data packet and generate the missing form;

反馈模块,被配置为将所述缺失表单发送至所述数据发送端;A feedback module, configured to send the missing form to the data sending end;

重组模块,被配置为将接收到的所述数据包按原始顺序重组为完整数据。The reassembly module is configured to reassemble the received data packets into complete data in original order.

进一步的,所述待传数据库接收并存储所有待传输数据时,包括:Furthermore, when the database to be transmitted receives and stores all the data to be transmitted, it includes:

获取接收到的所述待传输数据并记录接收时间,预先设定待传输数据的字符数阈值,将待传输数据的实际字符数与字符数阈值进行比对;当实际字符数小于字符数阈值时,不对所述待传输数据进行处理,当实际字符数大于等于字符数阈值时,对所述待传输数据加入压缩列表并依次判断是否进行压缩;Acquire the received data to be transmitted and record the receiving time, pre-set a character number threshold for the data to be transmitted, and compare the actual number of characters of the data to be transmitted with the character number threshold; when the actual number of characters is less than the character number threshold, do not process the data to be transmitted; when the actual number of characters is greater than or equal to the character number threshold, add the data to be transmitted to a compression list and determine whether to compress it in turn;

通过计算机实时的CPU使用率获取CPU空闲率,计算所述压缩列表中每个所述待传输数据的CPU占用率,当CPU空闲率大于所述待传输数据的CPU占用率时,对所述待传输数据保留备份并开始压缩,当CPU空闲率小于等于所述待传输数据的CPU占用率时,将所述待传输数据在所述压缩列表中后退一个次序。The CPU idle rate is obtained through the real-time CPU usage rate of the computer, and the CPU occupancy rate of each data to be transmitted in the compression list is calculated. When the CPU idle rate is greater than the CPU occupancy rate of the data to be transmitted, the data to be transmitted is backed up and compression is started. When the CPU idle rate is less than or equal to the CPU occupancy rate of the data to be transmitted, the data to be transmitted is moved back one order in the compression list.

进一步的,所述待传数据库接收并存储所有待传输数据时,还包括:Furthermore, when the database to be transmitted receives and stores all the data to be transmitted, it also includes:

预先设定待传数据库的处理时间阈值,并根据实时时间与接收时间的差值计算所述实时处理时间,当所述实时处理时间大于等于所述处理时间阈值时,判断所述待传输数据是否完成压缩;若判断结果为是,则将压缩完成后的所述待传输数据传输至所述分段模块,若判断结果为否,则终止压缩并将所述备份传输至所述分段模块。A processing time threshold of the database to be transmitted is pre-set, and the real-time processing time is calculated based on the difference between the real-time time and the receiving time. When the real-time processing time is greater than or equal to the processing time threshold, it is determined whether the data to be transmitted has completed compression; if the judgment result is yes, the compressed data to be transmitted is transmitted to the segmentation module; if the judgment result is no, the compression is terminated and the backup is transmitted to the segmentation module.

进一步的,将所述待传输数据分段为若干个数据包,并为每个所述数据包捆绑校验码,包括:Further, the data to be transmitted is segmented into a plurality of data packets, and a check code is bundled with each of the data packets, including:

根据网络带宽、网络延迟、丢包率以及单个所述待传输数据的大小计算将单个所述待传输数据分成的数据包数量,所述数据包数量满足以下关系:The number of data packets into which the single data to be transmitted is divided is calculated according to the network bandwidth, network delay, packet loss rate and the size of the single data to be transmitted, and the number of data packets satisfies the following relationship:

;

其中,N为将单个所述待传输数据分成的数据包数量,S为单个所述待传输数据的大小,wB为网络带宽影响系数,wL为网络延迟影响系数,wR为丢包率影响系数,表示对结合进行向上取整;Wherein, N is the number of data packets into which the single data to be transmitted is divided, S is the size of the single data to be transmitted, w B is the network bandwidth influence coefficient, w L is the network delay influence coefficient, w R is the packet loss rate influence coefficient, Indicates that the combination is rounded up;

当确定将单个所述待传输数据分成的数据包数量后,对所述待传输数据进行分段;分段完成后基于SHA-256校验算法生成所述数据包的校验码。After determining the number of data packets into which the single data to be transmitted is divided, the data to be transmitted is segmented; after the segmentation is completed, a check code of the data packet is generated based on the SHA-256 check algorithm.

进一步的,基于SHA-256校验算法生成所述数据包的校验码,包括:Further, generating a checksum of the data packet based on the SHA-256 checksum algorithm includes:

读取分段后的所述数据包中的数据内容,将所述数据内容输入SHA-256校验算法并生成一个固定长度的哈希值作为所述校验码,将生成的所述校验码附加到所述数据包的元数据部分,所述元数据部分包括数据包序号、数据包大小以及校验码,所述数据包序号用于重组数据包时的顺序信息,所述数据包大小用于验证在传输过程中是否出现丢失或损坏。Read the data content in the segmented data packet, input the data content into the SHA-256 verification algorithm and generate a hash value of a fixed length as the verification code, and attach the generated verification code to the metadata part of the data packet, the metadata part includes a data packet sequence number, a data packet size and a verification code, the data packet sequence number is used for sequence information when reassembling the data packet, and the data packet size is used to verify whether it is lost or damaged during transmission.

进一步的,所述网络带宽影响系数通过以下方法确定:Furthermore, the network bandwidth impact coefficient is determined by the following method:

通过测量获取当前网络的实际带宽,通过历史网络带宽获取最大带宽,计算所述实际带宽与最大带宽的比值并作为所述网络带宽影响系数;The actual bandwidth of the current network is obtained by measuring, the maximum bandwidth is obtained by historical network bandwidth, and the ratio of the actual bandwidth to the maximum bandwidth is calculated and used as the network bandwidth influence coefficient;

所述网络延迟影响系数通过以下方法确定:The network delay impact coefficient is determined by the following method:

测量网络的实际延迟,通过历史网络延迟获取最小延迟,计算所述实际延迟与最小延迟的比值,测量基于延迟抖动测量工具获取实际延迟抖动和历史记录的最小延迟抖动;根据所述实际延迟与最小延迟的比值以及实际延迟抖动与最小延迟抖动的比值的乘积,确定网络延迟影响系数,所述网络延迟影响系数满足以下关系:Measure the actual delay of the network, obtain the minimum delay through the historical network delay, calculate the ratio of the actual delay to the minimum delay, and measure the minimum delay jitter based on the actual delay jitter obtained by the delay jitter measurement tool and the historical record; determine the network delay impact coefficient according to the ratio of the actual delay to the minimum delay and the product of the ratio of the actual delay jitter to the minimum delay jitter, and the network delay impact coefficient satisfies the following relationship:

;

所述丢包率影响系数通过以下公式确定:The packet loss rate influence coefficient is determined by the following formula:

;

其中,为所述实际延迟,为所述最小延迟,为所述实际延迟抖动,为所述最小延迟抖动;R为丢包率,且0≤R≤1。in, is the actual delay, is the minimum delay, is the actual delay jitter, is the minimum delay jitter; R is the packet loss rate, and 0≤R≤1.

进一步的,根据吞吐量与所述数据发送端数据包的排队时延对所述数据包进行传输优先级的排序,包括:Further, the data packets are sorted according to the transmission priority according to the throughput and the queuing delay of the data packets at the data sending end, including:

获取所述数据接收端、数据发送端的吞吐量并分别记为接收吞吐量以及发送吞吐量,根据所述接收吞吐量与发送吞吐量的大小关系确定实际吞吐量;Obtaining the throughputs of the data receiving end and the data sending end and recording them as receiving throughput and sending throughput respectively, and determining the actual throughput according to the relationship between the receiving throughput and the sending throughput;

获取每个所述数据包的排队时延,并根据排队时延由小到大对对应的所述数据包进行传输优先级的排序;Obtaining the queuing delay of each of the data packets, and sorting the corresponding data packets according to the queuing delay from small to large in terms of transmission priority;

完成排序后,判断所述实际吞吐量以及所述数据包大小的关系,当所述实际吞吐量大于所述数据包大小时,将所述数据包的传输优先级后退一名次。After the sorting is completed, the relationship between the actual throughput and the size of the data packet is determined. When the actual throughput is greater than the size of the data packet, the transmission priority of the data packet is relegated one place.

进一步的,预先设定排队时延阈值,根据当前的排队时延与所述排队时延阈值的大小关系,判断是否停止对所述数据包的传输优先级后退一名次;Further, a queuing delay threshold is preset, and according to the magnitude relationship between the current queuing delay and the queuing delay threshold, it is determined whether to stop the transmission priority of the data packet and retreat one position;

当排队时延大于等于排队时延阈值时,停止对所述数据包的传输优先级调整;当排队时延小于排队时延阈值时,继续对所述数据包的传输优先级后退一名次。When the queuing delay is greater than or equal to the queuing delay threshold, the transmission priority adjustment of the data packet is stopped; when the queuing delay is less than the queuing delay threshold, the transmission priority of the data packet continues to be relegated one place.

进一步的,所述数据包大小用于验证在传输过程中是否出现丢失或损坏,包括:Furthermore, the data packet size is used to verify whether loss or damage occurs during transmission, including:

所述数据接收端根据接收到的数据包大小与元数据中的记录进行比较,若接收到的所述数据包大小与所述元数据中记录不同,则判断所述数据包在传输过程中出现丢失或损坏,所述数据发送端重新发送出现缺失或损坏的数据包。The data receiving end compares the size of the received data packet with the record in the metadata. If the size of the received data packet is different from the record in the metadata, it is determined that the data packet is lost or damaged during transmission, and the data sending end resends the missing or damaged data packet.

另一方面,本发明还提出了一种应用于上述政务云多源数据传输检测系统的方法,所述方法包括:On the other hand, the present invention also proposes a method applied to the above-mentioned government cloud multi-source data transmission detection system, the method comprising:

S1:接收并存储所有待传输数据;S1: Receive and store all data to be transmitted;

S2:获取所述待传数据库中的所述待传输数据,将所述待传输数据分段为若干个数据包,并为每个所述数据包捆绑校验码;S2: Acquire the data to be transmitted in the database to be transmitted, segment the data to be transmitted into a plurality of data packets, and bundle a check code for each data packet;

S3:根据吞吐量与所述数据发送端数据包的排队时延对所述数据包进行传输优先级的排序,根据所述传输优先级发送所述数据包以及包含数据包和数据包所捆绑校验码的确认表单;当数据包在传输过程中出现丢失或损坏时,重新发送所述数据包;S3: sorting the data packets according to the throughput and the queuing delay of the data packets at the data sending end according to the transmission priority, sending the data packets and a confirmation form including the data packets and the checksum bundled with the data packets according to the transmission priority; when the data packets are lost or damaged during the transmission process, resending the data packets;

S4:所述数据包成功发送后,对所述数据接收端要求发送缺失表单,根据所述缺失表单确定需重新发送的缺失数据包;所述缺失表单包括缺失数据包的名称以及对应的校验码;S4: After the data packet is successfully sent, the data receiving end is requested to send a missing list, and the missing data packet to be resent is determined according to the missing list; the missing list includes the name of the missing data packet and the corresponding check code;

S5:接收所述数据包与校验码,确认所述缺失数据包并生成所述缺失表单;S5: receiving the data packet and the check code, confirming the missing data packet and generating the missing table;

S6:将所述缺失表单发送至所述数据发送端;S6: Sending the missing form to the data sending end;

S7:将接收到的所述数据包按原始顺序重组为完整数据。S7: Reassemble the received data packets into complete data in the original order.

与现有技术相比,本发明的有益效果在于:Compared with the prior art, the present invention has the following beneficial effects:

通过在数据发送端对数据进行分段,并为每个数据包附加校验码,确保了在传输过程中可以检测到数据包的丢失、损坏或篡改,保证数据的完整性和准确性。系统能够实时检测数据包的丢失和损坏情况,并通过队列模块及时重新发送缺失的数据包,减少数据丢失对业务的影响。分段模块结合网络带宽、延迟和丢包率等因素计算数据包数量,实现了对待传输数据的合理分段,提高了数据传输的效率和稳定性。队列模块根据数据包的排队时延和吞吐量调整数据包的传输优先级,优化了数据包的传输顺序,提高了系统的传输效率。待传数据库通过计算机实时的CPU使用率来决定是否对待传输数据进行压缩,合理利用系统资源,提高了数据处理的效率。数据接收端能够自动生成缺失表单,并将其发送至数据发送端,确保缺失数据包的准确识别和快速重新发送。数据接收端的重组模块能够将接收到的分段数据包按原始顺序重组为完整的数据,保证数据的完整性和顺序准确。By segmenting the data at the data sending end and adding a checksum to each data packet, it is ensured that the loss, damage or tampering of the data packet can be detected during the transmission process, ensuring the integrity and accuracy of the data. The system can detect the loss and damage of data packets in real time, and resend the missing data packets in time through the queue module to reduce the impact of data loss on the business. The segmentation module calculates the number of data packets based on factors such as network bandwidth, delay and packet loss rate, realizes the reasonable segmentation of the data to be transmitted, and improves the efficiency and stability of data transmission. The queue module adjusts the transmission priority of the data packet according to the queuing delay and throughput of the data packet, optimizes the transmission order of the data packet, and improves the transmission efficiency of the system. The database to be transmitted determines whether to compress the data to be transmitted through the real-time CPU usage of the computer, reasonably utilizes system resources, and improves the efficiency of data processing. The data receiving end can automatically generate a missing form and send it to the data sending end to ensure the accurate identification and rapid resending of the missing data packets. The reorganization module at the data receiving end can reorganize the received segmented data packets into complete data in the original order to ensure the integrity and accuracy of the data sequence.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

图1为本发明实施例一种政务云多源数据传输检测系统的功能框架图;FIG1 is a functional framework diagram of a multi-source data transmission detection system for a government cloud according to an embodiment of the present invention;

图2为本发明实施例一种政务云多源数据传输检测方法的流程图。FIG2 is a flow chart of a method for detecting multi-source data transmission in a government cloud according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整地传达给本领域的技术人员。需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

如图1所示,本发明实施例提供了一种政务云多源数据传输检测系统,包括:数据发送端与数据接收端;As shown in FIG1 , an embodiment of the present invention provides a government cloud multi-source data transmission detection system, including: a data sending end and a data receiving end;

数据发送端包括:The data sending end includes:

待传数据库,被配置为接收并存储所有待传输数据;A to-be-transmitted database, configured to receive and store all to-be-transmitted data;

分段模块,被配置为获取待传数据库中的待传输数据,将待传输数据分段为若干个数据包,并为每个数据包捆绑校验码;A segmentation module is configured to obtain the data to be transmitted in the database to be transmitted, segment the data to be transmitted into a plurality of data packets, and bundle a checksum for each data packet;

队列模块,被配置为根据吞吐量与数据发送端数据包的排队时延对数据包进行传输优先级的排序,根据传输优先级发送数据包以及包含数据包和数据包所捆绑校验码的确认表单;队列模块还被配置为重新发送缺失数据包;A queue module is configured to sort the data packets according to the throughput and the queuing delay of the data packets at the data transmission end, and send the data packets and the confirmation form containing the data packets and the checksums bundled with the data packets according to the transmission priority; the queue module is also configured to resend the missing data packets;

验证模块,被配置为数据包成功发送后,对数据接收端要求发送缺失表单,根据缺失表单确定需重新发送的缺失数据包;缺失表单包括缺失数据包的名称以及对应的校验码;The verification module is configured to request the data receiving end to send a missing form after the data packet is successfully sent, and determine the missing data packet to be resent according to the missing form; the missing form includes the name of the missing data packet and the corresponding check code;

数据接收端包括:The data receiving end includes:

核验模块,被配置为接收数据包与校验码,确认缺失数据包并生成缺失表单;A verification module is configured to receive a data packet and a check code, confirm a missing data packet and generate a missing form;

反馈模块,被配置为将缺失表单发送至数据发送端;a feedback module configured to send the missing form to a data sending end;

重组模块,被配置为将接收到的数据包按原始顺序重组为完整数据。The reassembly module is configured to reassemble the received data packets into complete data in original order.

需要说明的是,待传数据库是系统中的数据存储模块,负责接收并存储所有待传输的数据。它确保所有待传数据在传输过程中都能得到有效管理。待传数据库为系统提供数据存储的基础,确保所有待传数据的完整性和可访问性,为数据的后续处理和传输奠定基础。分段模块从待传数据库中获取待传输的数据,将其分段成若干个数据包,并为每个数据包生成并附加校验码。校验码使用SHA-256等哈希算法生成,确保数据的完整性。将大数据块分割成适合网络传输的小数据包,有效提高数据传输效率。校验码用于在接收端验证数据的完整性,防止数据在传输过程中被篡改或损坏。队列模块根据吞吐量和数据包的排队时延对数据包进行优先级排序。它根据计算出的优先级发送数据包,并附带确认表单。队列模块还负责重新发送在传输过程中丢失的数据包。队列模块可优化数据包的传输顺序,提高网络利用效率。确保优先处理重要的数据包,同时通过重新发送机制处理丢失的数据包,保证数据传输的可靠性。验证模块在数据包成功发送后,验证模块请求数据接收端发送缺失表单。缺失表单包含缺失数据包的名称和校验码,用于确认需要重新发送的数据包。其在数据包传输过程中检测丢失情况,并要求接收端报告缺失数据,确保所有数据包都能最终被成功接收。数据接收端中核验模块接收数据包和校验码,检查数据包的完整性,并生成缺失表单。缺失表单记录丢失或损坏的数据包信息。对接收到的数据包进行完整性验证,生成缺失表单报告传输问题,确保任何数据缺失都能被及时发现和处理。反馈模块将缺失表单发送回数据发送端,通知其需要重新发送的数据包。将缺失数据的信息反馈给数据发送端,启动数据包的重新发送流程,确保数据的完整接收。重组模块按照原始数据的顺序将接收到的数据包重新组装成完整的数据。作用是将接收到的分段数据按顺序整合成原始数据,确保最终数据的完整性和正确性。It should be noted that the database to be transmitted is a data storage module in the system, which is responsible for receiving and storing all data to be transmitted. It ensures that all data to be transmitted can be effectively managed during the transmission process. The database to be transmitted provides the system with a data storage basis, ensures the integrity and accessibility of all data to be transmitted, and lays the foundation for the subsequent processing and transmission of data. The segmentation module obtains the data to be transmitted from the database to be transmitted, segments it into several data packets, and generates and attaches a checksum to each data packet. The checksum is generated using a hash algorithm such as SHA-256 to ensure the integrity of the data. The large data block is divided into small data packets suitable for network transmission, which effectively improves the efficiency of data transmission. The checksum is used to verify the integrity of the data at the receiving end to prevent the data from being tampered with or damaged during transmission. The queue module prioritizes the data packets according to the throughput and the queuing delay of the data packets. It sends the data packets according to the calculated priority and comes with a confirmation form. The queue module is also responsible for resending the data packets lost during the transmission process. The queue module can optimize the transmission order of data packets and improve the efficiency of network utilization. It ensures that important data packets are processed first, and at the same time, the lost data packets are processed through the resending mechanism to ensure the reliability of data transmission. After the data packet is successfully sent, the verification module requests the data receiving end to send a missing form. The missing form contains the name and check code of the missing data packet, which is used to confirm the data packet that needs to be resent. It detects the loss during the data packet transmission process and requires the receiving end to report the missing data to ensure that all data packets can be successfully received in the end. The verification module in the data receiving end receives the data packet and the check code, checks the integrity of the data packet, and generates a missing form. The missing form records the information of the lost or damaged data packet. The integrity of the received data packet is verified, and a missing form is generated to report the transmission problem to ensure that any data loss can be discovered and processed in time. The feedback module sends the missing form back to the data sending end to notify it of the data packet that needs to be resent. The information of the missing data is fed back to the data sending end, and the data packet resending process is started to ensure the complete reception of the data. The reassembly module reassembles the received data packets into complete data in the order of the original data. The function is to integrate the received segmented data into the original data in order to ensure the integrity and correctness of the final data.

本发明实施例通过以下方式实现政务云数据传输的高效性和可靠性:The embodiment of the present invention achieves high efficiency and reliability of government cloud data transmission through the following methods:

数据分段和校验:通过将数据分段并附加校验码,确保数据在传输过程中不被篡改,能够有效应对数据丢失和损坏问题。动态优先级调整:通过对数据包优先级的排序和调整,提高了数据传输的效率和网络资源的利用率。自动化的缺失数据处理:通过自动生成缺失表单并反馈缺失数据,确保在数据传输过程中丢失的数据能够被及时重新发送。完整数据重组:将接收到的数据包按顺序重组,确保最终数据的完整性和准确性。Data segmentation and verification: By segmenting the data and adding a verification code, it is ensured that the data is not tampered with during the transmission process, which can effectively deal with the problem of data loss and damage. Dynamic priority adjustment: By sorting and adjusting the priority of data packets, the efficiency of data transmission and the utilization of network resources are improved. Automated missing data processing: By automatically generating missing forms and feedback missing data, it is ensured that the data lost during the data transmission process can be resent in time. Complete data reorganization: The received data packets are reorganized in order to ensure the integrity and accuracy of the final data.

在本申请的一些实施例中,待传数据库接收并存储所有待传输数据时,包括:In some embodiments of the present application, when the to-be-transmitted database receives and stores all the data to be transmitted, it includes:

获取接收到的待传输数据并记录接收时间,预先设定待传输数据的字符数阈值,将待传输数据的实际字符数与字符数阈值进行比对;当实际字符数小于字符数阈值时,不对待传输数据进行处理,当实际字符数大于等于字符数阈值时,对待传输数据加入压缩列表并依次判断是否进行压缩;The received data to be transmitted is obtained and the receiving time is recorded, a character number threshold of the data to be transmitted is pre-set, and the actual number of characters of the data to be transmitted is compared with the character number threshold; when the actual number of characters is less than the character number threshold, the data to be transmitted is not processed; when the actual number of characters is greater than or equal to the character number threshold, the data to be transmitted is added to a compression list and it is determined in turn whether to compress it;

通过计算机实时的CPU使用率获取CPU空闲率,计算压缩列表中每个待传输数据的CPU占用率,当CPU空闲率大于待传输数据的CPU占用率时,对待传输数据保留备份并开始压缩,当CPU空闲率小于等于待传输数据的CPU占用率时,将待传输数据的在压缩列表中后退一个次序。The CPU idle rate is obtained through the real-time CPU usage of the computer, and the CPU occupancy rate of each data to be transmitted in the compression list is calculated. When the CPU idle rate is greater than the CPU occupancy rate of the data to be transmitted, the data to be transmitted is backed up and compression is started. When the CPU idle rate is less than or equal to the CPU occupancy rate of the data to be transmitted, the data to be transmitted is moved back one order in the compression list.

需要说明的是,待传数据库确保每条待传输数据的接收时间被记录,便于后续根据数据的接收时间进行处理和调度。对于字符数阈值比对:系统预先设定一个字符数阈值,用于判断数据的大小。系统对待传输数据的实际字符数与该阈值进行比对。当实际字符数小于阈值时,该数据不进行处理;当实际字符数大于或等于阈值时,数据将被加入压缩列表。避免对小于阈值的数据进行不必要的压缩处理,从而节省系统资源和提高处理效率。只有较大的数据才会被考虑进行压缩,以减少系统负担。同时,系统实时监控计算机的CPU使用率,计算CPU的空闲率。根据压缩列表中每个待传输数据的CPU占用率,决定是否进行数据压缩。具体做法是:当CPU的空闲率高于待传输数据的CPU占用率时,开始压缩数据并保留其备份;当CPU空闲率低于或等于数据的CPU占用率时,将该数据在压缩列表中后推一个次序,等待系统资源更加充裕时再进行处理。动态调整数据压缩的时机,确保在系统资源充足时进行压缩处理,避免在资源紧张时占用过多的CPU资源。这样可以在不影响系统性能的情况下,优化数据的压缩过程,提高数据处理的效率。It should be noted that the database to be transmitted ensures that the receiving time of each data to be transmitted is recorded, so as to facilitate the subsequent processing and scheduling according to the receiving time of the data. For the comparison of the character number threshold: the system pre-sets a character number threshold to determine the size of the data. The system compares the actual number of characters of the data to be transmitted with the threshold. When the actual number of characters is less than the threshold, the data is not processed; when the actual number of characters is greater than or equal to the threshold, the data will be added to the compression list. Avoid unnecessary compression processing of data less than the threshold, thereby saving system resources and improving processing efficiency. Only larger data will be considered for compression to reduce the burden on the system. At the same time, the system monitors the CPU usage of the computer in real time and calculates the CPU idle rate. According to the CPU occupancy rate of each data to be transmitted in the compression list, decide whether to compress the data. The specific approach is: when the CPU idle rate is higher than the CPU occupancy rate of the data to be transmitted, start compressing the data and keep its backup; when the CPU idle rate is lower than or equal to the CPU occupancy rate of the data, push the data back one order in the compression list and wait for the system resources to be more abundant before processing. Dynamically adjust the timing of data compression to ensure that compression is performed when system resources are sufficient and avoid taking up too much CPU resources when resources are tight. This can optimize the data compression process and improve data processing efficiency without affecting system performance.

这一处理过程通过以下方式优化了待传数据的压缩策略:This process optimizes the compression strategy of the transmitted data in the following ways:

数据筛选:通过设定字符数阈值,只对较大的数据进行压缩,避免了对小数据进行不必要的处理,节省了系统资源。动态资源管理:利用实时的CPU使用率和空闲率,动态调整数据压缩的时机。确保系统在资源充足时进行压缩,避免了资源紧张时对系统性能的影响。优化数据处理:通过在压缩列表中调整数据的处理顺序,实现了在不同系统负荷情况下的灵活处理,提高了数据处理的效率和系统的整体性能。Data screening: By setting the character count threshold, only large data is compressed, avoiding unnecessary processing of small data and saving system resources. Dynamic resource management: Using real-time CPU usage and idle rate, dynamically adjust the timing of data compression. Ensure that the system compresses when resources are sufficient, avoiding the impact on system performance when resources are tight. Optimize data processing: By adjusting the processing order of data in the compression list, flexible processing is achieved under different system load conditions, improving data processing efficiency and overall system performance.

在本申请的一些实施例中,待传数据库接收并存储所有待传输数据时,还包括:In some embodiments of the present application, when the to-be-transmitted database receives and stores all the data to be transmitted, it also includes:

预先设定待传数据库的处理时间阈值,并根据实时时间与接收时间的差值计算实时处理时间,当实时处理时间大于等于处理时间阈值时,判断待传输数据是否完成压缩;若判断结果为是,则将压缩完成后的待传输数据传输至分段模块,若判断结果为否,则终止压缩并将备份传输至分段模块。The processing time threshold of the database to be transmitted is set in advance, and the real-time processing time is calculated based on the difference between the real-time time and the receiving time. When the real-time processing time is greater than or equal to the processing time threshold, it is determined whether the data to be transmitted has been compressed; if the judgment result is yes, the compressed data to be transmitted is transmitted to the segmentation module; if the judgment result is no, the compression is terminated and the backup is transmitted to the segmentation module.

需要说明的是,系统预先设定一个处理时间阈值,用于决定数据压缩的时间限制。该阈值定义了从数据接收到数据处理(包括压缩)完成的最大允许时间。设定处理时间阈值帮助管理数据处理的时效性,确保在规定的时间范围内完成数据的压缩或其他处理操作,以满足系统性能和响应时间的要求。系统根据当前时间与数据接收时间之间的差值计算实时处理时间。这一过程确定了从数据接收至当前时刻的时间间隔。实时处理时间的计算用于监控数据处理的进度,确保数据处理操作在设定的时间范围内完成。将实时处理时间与预设的处理时间阈值进行比对。当实时处理时间大于等于处理时间阈值时,系统判断是否已完成数据压缩。如果数据压缩已经完成,则将压缩后的数据传输至分段模块;如果数据压缩未完成,则终止压缩过程,并将备份数据传输至分段模块。确保即使在压缩过程中遇到时间限制,系统也能将数据及时传输至分段模块。终止压缩并传输备份数据是为了避免因压缩延迟而影响整体数据传输过程,从而保持系统的高效性和稳定性。It should be noted that the system pre-sets a processing time threshold to determine the time limit for data compression. This threshold defines the maximum allowed time from data reception to data processing (including compression). Setting a processing time threshold helps manage the timeliness of data processing and ensures that data compression or other processing operations are completed within the specified time range to meet system performance and response time requirements. The system calculates the real-time processing time based on the difference between the current time and the data reception time. This process determines the time interval from data reception to the current moment. The calculation of the real-time processing time is used to monitor the progress of data processing and ensure that the data processing operation is completed within the set time range. The real-time processing time is compared with the preset processing time threshold. When the real-time processing time is greater than or equal to the processing time threshold, the system determines whether data compression has been completed. If data compression has been completed, the compressed data is transmitted to the segmentation module; if data compression has not been completed, the compression process is terminated and the backup data is transmitted to the segmentation module. This ensures that the system can transmit the data to the segmentation module in a timely manner even if time limits are encountered during the compression process. Terminating compression and transmitting backup data is to avoid affecting the overall data transmission process due to compression delays, thereby maintaining the efficiency and stability of the system.

这一处理过程通过以下方式优化了待传数据的处理流程:This process optimizes the flow of data to be transmitted by:

时间管理:通过预设的处理时间阈值和实时处理时间的计算,系统能够有效监控和管理数据处理进度,确保数据处理在合理时间内完成。Time management: Through the preset processing time threshold and real-time processing time calculation, the system can effectively monitor and manage the data processing progress to ensure that data processing is completed within a reasonable time.

灵活处理:在处理时间超出阈值时,系统能够灵活调整数据处理策略,避免因压缩未完成而导致的数据传输延迟。通过终止压缩并传输备份数据,保持了数据传输的连续性和及时性。Flexible processing: When the processing time exceeds the threshold, the system can flexibly adjust the data processing strategy to avoid data transmission delays caused by incomplete compression. By terminating compression and transmitting backup data, the continuity and timeliness of data transmission are maintained.

提升效率:确保数据在规定时间内进行处理和传输,减少了由于数据处理延迟可能带来的性能瓶颈,提升了整体系统的效率和响应速度。Improve efficiency: Ensure that data is processed and transmitted within the specified time, reduce performance bottlenecks that may be caused by data processing delays, and improve the efficiency and response speed of the overall system.

在本申请的一些实施例中,将待传输数据分段为若干个数据包,并为每个数据包捆绑校验码,包括:In some embodiments of the present application, the data to be transmitted is segmented into a plurality of data packets, and a check code is bundled with each data packet, including:

根据网络带宽、网络延迟、丢包率以及单个待传输数据的大小计算将单个待传输数据分成的数据包数量,数据包数量满足以下关系:The number of data packets into which a single data to be transmitted is divided is calculated based on the network bandwidth, network delay, packet loss rate, and the size of a single data to be transmitted. The number of data packets satisfies the following relationship:

;

其中,N为将单个待传输数据分成的数据包数量,S为单个待传输数据的大小,wB为网络带宽影响系数,wL为网络延迟影响系数,wR为丢包率影响系数,表示对结合进行向上取整;Among them, N is the number of data packets into which a single data to be transmitted is divided, S is the size of a single data to be transmitted, w B is the network bandwidth influence coefficient, w L is the network delay influence coefficient, w R is the packet loss rate influence coefficient, Indicates that the combination is rounded up;

当确定将单个待传输数据分成的数据包数量后,对待传输数据进行分段;分段完成后基于SHA-256校验算法生成数据包的校验码。After determining the number of data packets into which a single data to be transmitted is divided, the data to be transmitted is segmented; after the segmentation is completed, a checksum of the data packet is generated based on the SHA-256 checksum algorithm.

需要说明的是,通过考虑网络带宽、网络延迟和丢包率等因素,合理确定数据包的数量,从而优化数据传输的效率,减少数据在传输过程中的丢失或延迟。It should be noted that by considering factors such as network bandwidth, network delay and packet loss rate, the number of data packets can be reasonably determined to optimize the efficiency of data transmission and reduce data loss or delay during transmission.

在确定了数据包的数量后,将待传输数据分段为若干个数据包。每个数据包的大小和数量根据之前计算的结果进行调整,以适应网络条件。将大数据块分割成适合网络传输的小数据包,确保每个数据包的大小适中,有效提高网络传输效率,并减少因单个大数据包导致的网络拥堵问题。After determining the number of data packets, the data to be transmitted is segmented into several data packets. The size and number of each data packet are adjusted based on the results of the previous calculation to adapt to the network conditions. Dividing large data blocks into small data packets suitable for network transmission ensures that the size of each data packet is moderate, effectively improving network transmission efficiency and reducing network congestion caused by a single large data packet.

使用SHA-256校验算法生成每个数据包的校验码。具体过程包括读取分段后的数据包内容,将数据内容输入SHA-256算法,生成固定长度的哈希值作为校验码。然后将生成的校验码附加到数据包的元数据部分。校验码用于在数据接收端验证数据包的完整性,确保数据在传输过程中没有被篡改或损坏。SHA-256算法提供了高强度的校验码,能有效防止数据篡改和错误检测。The SHA-256 checksum algorithm is used to generate a checksum for each data packet. The specific process includes reading the segmented data packet content, inputting the data content into the SHA-256 algorithm, and generating a fixed-length hash value as the checksum. The generated checksum is then attached to the metadata portion of the data packet. The checksum is used to verify the integrity of the data packet at the data receiving end to ensure that the data has not been tampered with or damaged during transmission. The SHA-256 algorithm provides a high-strength checksum that can effectively prevent data tampering and error detection.

本申请实施例通过以下方式实现了高效的数据传输和验证:The present application embodiment achieves efficient data transmission and verification through the following methods:

网络条件优化:通过综合考虑网络带宽、网络延迟和丢包率等因素来计算数据包数量,使得数据分段策略更加符合实际网络条件,提高了数据传输的可靠性。Optimize network conditions: By comprehensively considering factors such as network bandwidth, network delay and packet loss rate to calculate the number of data packets, the data segmentation strategy is more in line with the actual network conditions, improving the reliability of data transmission.

分段处理:将大数据块合理分段,以优化网络传输效率和减少网络拥堵,同时确保数据的顺利传输。Segment processing: Reasonably segment large data blocks to optimize network transmission efficiency and reduce network congestion while ensuring smooth data transmission.

强校验保障:使用SHA-256算法生成校验码,确保每个数据包的完整性和准确性,防止数据在传输过程中出现错误或被篡改。Strong verification protection: Use the SHA-256 algorithm to generate a verification code to ensure the integrity and accuracy of each data packet and prevent data errors or tampering during transmission.

在本申请的一些实施例中,基于SHA-256校验算法生成数据包的校验码,包括:In some embodiments of the present application, generating a checksum of a data packet based on a SHA-256 checksum algorithm includes:

读取分段后的数据包中的数据内容,将数据内容输入SHA-256校验算法并生成一个固定长度的哈希值作为校验码,将生成的校验码附加到数据包的元数据部分,元数据部分包括数据包序号、数据包大小以及校验码,数据包序号用于重组数据包时的顺序信息,数据包大小用于验证在传输过程中是否出现丢失或损坏。Read the data content in the segmented data packet, input the data content into the SHA-256 verification algorithm and generate a fixed-length hash value as a verification code, and attach the generated verification code to the metadata part of the data packet. The metadata part includes the data packet sequence number, data packet size and verification code. The data packet sequence number is used for the sequence information when reassembling the data packet, and the data packet size is used to verify whether it is lost or damaged during transmission.

可以说明的是,从分段后的数据包中读取数据内容。每个数据包包含其自身的数据内容,该内容在分段过程中已从原始待传输数据中提取出来。获取数据包的实际内容,为后续生成校验码提供必要的输入数据。It can be explained that the data content is read from the segmented data packets. Each data packet contains its own data content, which has been extracted from the original data to be transmitted during the segmentation process. The actual content of the data packet is obtained to provide the necessary input data for the subsequent generation of the checksum.

将读取到的数据内容输入SHA-256校验算法中。SHA-256是一种加密哈希函数,其输入任意长度的数据并生成一个固定长度的256位(32字节)哈希值。生成数据内容的唯一哈希值(即校验码),用于验证数据在传输过程中的完整性。Input the read data content into the SHA-256 verification algorithm. SHA-256 is a cryptographic hash function that inputs data of any length and generates a fixed-length 256-bit (32-byte) hash value. Generate a unique hash value (i.e., verification code) for the data content to verify the integrity of the data during transmission.

SHA-256算法输出一个固定长度的256位哈希值。这一哈希值作为数据包的校验码附加到数据包的元数据部分。固定长度的哈希值确保数据内容在校验时的一致性和可靠性,使得接收端可以使用相同的校验算法验证数据包的完整性。The SHA-256 algorithm outputs a fixed-length 256-bit hash value. This hash value is attached to the metadata part of the data packet as the checksum of the data packet. The fixed-length hash value ensures the consistency and reliability of the data content during verification, so that the receiving end can use the same verification algorithm to verify the integrity of the data packet.

将生成的SHA-256校验码附加到数据包的元数据部分。元数据部分包含:数据包序号:标识数据包在整个数据传输中的顺序。数据包大小:记录数据包的实际大小。校验码:由SHA-256算法生成的固定长度哈希值。作用:元数据部分提供了必要的信息用于数据包的顺序重组和完整性验证。数据包序号用于重组数据包的顺序,数据包大小用于检查在传输过程中是否出现数据丢失或损坏,而校验码则用于验证数据的完整性。完整性验证:通过SHA-256生成的校验码能够有效检测数据包在传输过程中是否被篡改或损坏。接收端可以使用相同的SHA-256算法对收到的数据包进行校验,以确保数据的完整性。顺序管理:数据包序号使得接收端可以正确地将数据包按顺序重组,确保数据的正确顺序。数据验证:数据包大小用于验证传输过程中是否存在数据丢失或损坏的问题。例如,如果接收到的数据包大小与元数据中的记录不匹配,说明数据包可能在传输过程中出现了问题。通过上述处理过程,本申请的实施例实现了对数据包的高效完整性验证和顺序管理。SHA-256校验算法提供了强有力的数据完整性保障,确保数据在传输过程中不会被篡改或损坏。附加的元数据部分不仅帮助重组数据包,还用于检查数据的大小和验证传输过程中的完整性,从而提升了数据传输系统的可靠性和准确性。The generated SHA-256 checksum is attached to the metadata part of the data packet. The metadata part contains: Data packet sequence number: identifies the order of the data packet in the entire data transmission. Data packet size: records the actual size of the data packet. Checksum: a fixed-length hash value generated by the SHA-256 algorithm. Function: The metadata part provides the necessary information for the sequence reorganization and integrity verification of the data packet. The data packet sequence number is used to reorganize the order of the data packet, the data packet size is used to check whether data loss or damage occurs during the transmission process, and the checksum is used to verify the integrity of the data. Integrity verification: The checksum generated by SHA-256 can effectively detect whether the data packet has been tampered with or damaged during the transmission process. The receiving end can use the same SHA-256 algorithm to verify the received data packet to ensure the integrity of the data. Sequence management: The data packet sequence number enables the receiving end to correctly reorganize the data packet in sequence to ensure the correct order of the data. Data verification: The data packet size is used to verify whether there is a problem with data loss or damage during the transmission process. For example, if the size of the received data packet does not match the record in the metadata, it means that the data packet may have a problem during the transmission process. Through the above processing process, the embodiment of the present application realizes efficient integrity verification and sequence management of the data packet. The SHA-256 checksum algorithm provides strong data integrity protection, ensuring that data is not tampered with or damaged during transmission. The additional metadata section not only helps reassemble the data packet, but is also used to check the size of the data and verify the integrity of the transmission process, thereby improving the reliability and accuracy of the data transmission system.

在本申请的一些实施例中,网络带宽影响系数通过以下方法确定:In some embodiments of the present application, the network bandwidth impact coefficient is determined by the following method:

通过测量获取当前网络的实际带宽,通过历史网络带宽获取最大带宽,计算实际带宽与最大带宽的比值并作为网络带宽影响系数;The actual bandwidth of the current network is obtained through measurement, the maximum bandwidth is obtained through historical network bandwidth, and the ratio of the actual bandwidth to the maximum bandwidth is calculated and used as the network bandwidth impact coefficient;

网络延迟影响系数通过以下方法确定:The network delay impact factor is determined by the following method:

测量网络的实际延迟,通过历史网络延迟获取最小延迟,计算实际延迟与最小延迟的比值,测量基于延迟抖动测量工具获取实际延迟抖动和历史记录的最小延迟抖动;根据实际延迟与最小延迟的比值以及实际延迟抖动与最小延迟抖动的比值的乘积,确定网络延迟影响系数,网络延迟影响系数满足以下关系:Measure the actual delay of the network, obtain the minimum delay through the historical network delay, calculate the ratio of the actual delay to the minimum delay, and measure the minimum delay jitter based on the actual delay jitter obtained by the delay jitter measurement tool and the historical record; determine the network delay impact coefficient based on the ratio of the actual delay to the minimum delay and the product of the ratio of the actual delay jitter to the minimum delay jitter. The network delay impact coefficient satisfies the following relationship:

;

丢包率影响系数通过以下公式确定:The packet loss rate impact coefficient is determined by the following formula:

;

其中,为实际延迟,为最小延迟,为实际延迟抖动,为最小延迟抖动;R为丢包率,且0≤R≤1。in, is the actual delay, For minimum delay, is the actual delay jitter, is the minimum delay jitter; R is the packet loss rate, and 0≤R≤1.

在本申请的一些实施例中,根据吞吐量与数据发送端数据包的排队时延对数据包进行传输优先级的排序,包括:In some embodiments of the present application, the data packets are sorted according to the transmission priority according to the throughput and the queuing delay of the data packets at the data sending end, including:

获取数据接收端、数据发送端的吞吐量并分别记为接收吞吐量以及发送吞吐量,根据接收吞吐量与发送吞吐量的大小关系确定实际吞吐量;Obtain the throughput of the data receiving end and the data sending end and record them as the receiving throughput and the sending throughput respectively, and determine the actual throughput according to the relationship between the receiving throughput and the sending throughput;

获取每个数据包的排队时延,并根据排队时延由小到大对对应的数据包进行传输优先级的排序;Obtain the queuing delay of each data packet, and sort the corresponding data packets according to the queuing delay from small to large.

完成排序后,判断实际吞吐量以及数据包大小的关系,当实际吞吐量大于数据包大小时,将数据包的传输优先级后退一名次。After the sorting is completed, the relationship between the actual throughput and the packet size is determined. When the actual throughput is greater than the packet size, the transmission priority of the packet is relegated one place.

需要说明的是,网络带宽影响系数的确定方法:获取当前网络的实际带宽,通常使用网络带宽测试工具进行测量。获取历史网络带宽的最大带宽:通过对网络历史数据的分析,获取在过去记录中网络的最大带宽。计算带宽影响系数:根据实际带宽与最大带宽的比值来确定网络带宽影响系数。具体计算方法如下:网络带宽影响系数反映了当前网络带宽相对于历史最大带宽的占比,帮助调整数据传输的策略以适应网络带宽的实际情况。It should be noted that the method for determining the network bandwidth impact coefficient is: obtain the actual bandwidth of the current network, usually measured using a network bandwidth test tool. Obtain the maximum bandwidth of the historical network bandwidth: obtain the maximum bandwidth of the network in the past records by analyzing the historical network data. Calculate the bandwidth impact coefficient: determine the network bandwidth impact coefficient based on the ratio of the actual bandwidth to the maximum bandwidth. The specific calculation method is as follows: The network bandwidth impact coefficient reflects the proportion of the current network bandwidth relative to the historical maximum bandwidth, helping to adjust the data transmission strategy to adapt to the actual situation of the network bandwidth.

网络延迟影响系数的确定方法:获取当前网络的实际延迟,通常使用网络延迟测试工具进行测量。获取历史网络延迟的最小延迟:通过对网络历史数据的分析,获取在过去记录中的最小延迟。测量实际延迟抖动:获取实际的延迟抖动,这反映了网络延迟的不稳定性。获取历史延迟抖动的最小值:通过对网络历史数据的分析,获取历史记录中的最小延迟抖动。该系数反映了网络的延迟和延迟波动对数据传输的影响。Method for determining the network delay impact coefficient: Get the actual delay of the current network, usually measured using a network delay test tool. Get the minimum delay of historical network delay: Get the minimum delay in past records by analyzing historical network data. Measure actual delay jitter: Get the actual delay jitter, which reflects the instability of network delay. Get the minimum value of historical delay jitter: Get the minimum delay jitter in historical records by analyzing historical network data. This coefficient reflects the impact of network delay and delay fluctuation on data transmission.

丢包率影响系数的确定方法:丢包率通常是指在传输过程中丢失的数据包占总发送数据包的比例,范围在0到1之间。该系数直接等于丢包率R,因为丢包率本身已经直接反映了网络中数据包丢失的程度。Method for determining the packet loss rate impact coefficient: The packet loss rate usually refers to the ratio of data packets lost during transmission to the total number of sent data packets, ranging from 0 to 1. This coefficient is directly equal to the packet loss rate R, because the packet loss rate itself directly reflects the degree of data packet loss in the network.

网络带宽影响系数:通过当前带宽与最大带宽的比值反映网络带宽的利用情况。网络延迟影响系数:综合实际延迟、最小延迟、实际延迟抖动和最小延迟抖动,评估网络延迟及其波动对数据传输的影响。丢包率影响系数:直接使用丢包率来表示网络的丢包情况。Network bandwidth impact coefficient: The ratio of current bandwidth to maximum bandwidth reflects the utilization of network bandwidth. Network delay impact coefficient: The actual delay, minimum delay, actual delay jitter, and minimum delay jitter are combined to evaluate the impact of network delay and its fluctuation on data transmission. Packet loss rate impact coefficient: The packet loss rate is directly used to indicate the packet loss of the network.

在本申请的一些实施例中,预先设定排队时延阈值,根据当前的排队时延与排队时延阈值的大小关系,判断是否停止对数据包的传输优先级后退一名次;In some embodiments of the present application, a queuing delay threshold is preset, and according to the magnitude relationship between the current queuing delay and the queuing delay threshold, it is determined whether to stop the transmission priority of the data packet and retreat one position;

当排队时延大于等于排队时延阈值时,停止对数据包的传输优先级调整;当排队时延小于排队时延阈值时,继续对数据包的传输优先级后退一名次。When the queuing delay is greater than or equal to the queuing delay threshold, the transmission priority adjustment of the data packet is stopped; when the queuing delay is less than the queuing delay threshold, the transmission priority of the data packet continues to be relegated one place.

需要说明的是,测量数据接收端的实际吞吐量,即单位时间内能够成功接收的数据量。此数据通常通过网络监控工具获得。获取数据发送端的吞吐量:测量数据发送端的实际吞吐量,即单位时间内能够成功发送的数据量。此数据同样通过网络监控工具获得。实际吞吐量取决于接收端和发送端中较低的吞吐量,这反映了数据传输的瓶颈。It should be noted that the actual throughput of the data receiving end is measured, that is, the amount of data that can be successfully received per unit time. This data is usually obtained through network monitoring tools. Get the throughput of the data sending end: measure the actual throughput of the data sending end, that is, the amount of data that can be successfully sent per unit time. This data is also obtained through network monitoring tools. The actual throughput depends on the lower throughput of the receiving end and the sending end, which reflects the bottleneck of data transmission.

排队时延排序:排队时延是指数据包在发送端等待传输的时间。这个值可以通过监控工具或在数据发送端记录。根据每个数据包的排队时延,从小到大对数据包进行排序。这意味着排队时延较小的数据包会被优先处理。Queuing delay sorting: Queuing delay refers to the time a data packet waits for transmission at the sender. This value can be recorded through monitoring tools or at the data sender. According to the queuing delay of each data packet, the data packets are sorted from small to large. This means that the data packets with smaller queuing delay will be processed first.

调整传输优先级:基于排队时延对数据包完成初步的优先级排序,将排队时延较小的数据包优先发送。判断实际吞吐量与数据包大小的关系:数据包大小:每个数据包的实际大小。调整优先级:若实际吞吐量大于数据包大小(即当前网络能够处理的吞吐量足够大于数据包的大小),则将数据包的优先级后退一名次。这样做的原因是,当网络吞吐量较大时,数据包可能能够快速传输,因此对排队时延的影响较小。Adjust transmission priority: Perform preliminary priority sorting of data packets based on queuing delay, and send data packets with smaller queuing delay first. Determine the relationship between actual throughput and data packet size: Data packet size: the actual size of each data packet. Adjust priority: If the actual throughput is greater than the data packet size (that is, the throughput that the current network can handle is greater than the size of the data packet), the priority of the data packet is moved down one place. The reason for this is that when the network throughput is large, the data packet may be able to be transmitted quickly, so the impact on the queuing delay is small.

示例流程Example Process

测量吞吐量Measuring Throughput

接收吞吐量:500 MB/s;发送吞吐量:450 MB/s;实际吞吐量:450 MB/s(最小值)Receive throughput: 500 MB/s; Send throughput: 450 MB/s; Actual throughput: 450 MB/s (minimum)

计算数据包的排队时延Calculate the queuing delay of packets

数据包 A:2 ms;数据包 B:5 ms;数据包 C:1 msPacket A: 2 ms; Packet B: 5 ms; Packet C: 1 ms

初步排序Preliminary sorting

排队时延最小的数据包(数据包 C)优先。数据包 A 次之。数据包 B 最后。The packet with the smallest queuing delay (packet C) takes priority. Packet A takes second place. Packet B takes last place.

优先级调整Priority Adjustment

假设数据包大小小于实际吞吐量(例如数据包大小为100 KB,实际吞吐量为450MB/s)。因为实际吞吐量远大于数据包大小,因此所有数据包的优先级不需要调整。Assume that the packet size is smaller than the actual throughput (for example, the packet size is 100 KB and the actual throughput is 450MB/s). Because the actual throughput is much larger than the packet size, the priority of all packets does not need to be adjusted.

这种优先级排序方法通过综合考虑吞吐量和排队时延,旨在实现以下效果:优化数据传输效率:通过优先发送排队时延较小的数据包,提高传输效率。适应网络条件:根据实际吞吐量动态调整优先级,适应不同网络条件下的数据传输需求。减少传输延迟:优化排序可以减少数据包的传输延迟,提高整体数据传输性能。This prioritization method aims to achieve the following effects by comprehensively considering throughput and queuing delay: Optimize data transmission efficiency: Improve transmission efficiency by giving priority to sending packets with smaller queuing delay. Adapt to network conditions: Dynamically adjust the priority according to the actual throughput to adapt to data transmission requirements under different network conditions. Reduce transmission delay: Optimizing the sorting can reduce the transmission delay of data packets and improve the overall data transmission performance.

在本申请的一些实施例中,数据包大小用于验证在传输过程中是否出现丢失或损坏,包括:In some embodiments of the present application, the data packet size is used to verify whether loss or damage occurs during transmission, including:

数据接收端根据接收到的数据包大小与元数据中的记录进行比较,若接收到的数据包大小与元数据中记录不同,则判断数据包在传输过程中出现丢失或损坏,数据发送端重新发送出现缺失或损坏的数据包。The data receiving end compares the size of the received data packet with the record in the metadata. If the size of the received data packet is different from the record in the metadata, it is determined that the data packet is lost or damaged during transmission, and the data sending end resends the missing or damaged data packet.

需要说明的是,数据包大小验证过程It should be noted that the packet size verification process

接收数据包的大小记录:每个数据包在发送时都会附加元数据,元数据中记录了数据包的大小、序号以及校验码等信息。数据接收端在接收数据包时,会检查数据包中的元数据,以确认其正确性和完整性。Size record of received data packets: Each data packet is attached with metadata when it is sent. The metadata records the size, sequence number, checksum, etc. of the data packet. When receiving a data packet, the data receiving end will check the metadata in the data packet to confirm its correctness and integrity.

接收数据包大小的比较:在数据接收端,实际接收到的数据包大小会被记录。将实际接收到的数据包大小与数据包的元数据中记录的大小进行比较。Comparison of received data packet sizes: At the data receiving end, the actual received data packet size is recorded. The actual received data packet size is compared with the size recorded in the metadata of the data packet.

判断丢失或损坏:若实际接收到的数据包大小与元数据中的记录不同,则判断该数据包在传输过程中可能出现了丢失或损坏。数据包丢失:如果接收到的数据包大小为0或极小,可能表示该数据包丢失了。数据包损坏:如果数据包的实际大小与预期的大小差异较大,可能表示数据包在传输过程中受到了损坏。记录缺失或损坏的情况:将缺失或损坏的数据包的详细信息(如数据包序号、预期大小等)记录在缺失表单中。Determine loss or damage: If the size of the actual received data packet is different from the record in the metadata, it is determined that the data packet may have been lost or damaged during transmission. Packet loss: If the size of the received data packet is 0 or very small, it may mean that the data packet is lost. Packet damage: If the actual size of the data packet is significantly different from the expected size, it may mean that the data packet has been damaged during transmission. Record missing or damaged situations: Record the detailed information of the missing or damaged data packet (such as the data packet sequence number, expected size, etc.) in the missing form.

重新发送缺失或损坏的数据包:To resend missing or corrupted packets:

生成缺失表单:数据接收端生成一个缺失表单,记录需要重新发送的数据包的序号和其他相关信息。反馈至数据发送端:将缺失表单发送到数据发送端。数据发送端重新发送:数据发送端根据缺失表单的信息重新发送缺失或损坏的数据包。Generate missing form: The data receiving end generates a missing form to record the sequence number and other relevant information of the data packets that need to be resent. Feedback to the data sending end: Send the missing form to the data sending end. Data sending end resends: The data sending end resends the missing or damaged data packets according to the information in the missing form.

此机制通过比较数据包的实际大小与预期大小,能够有效检测数据在传输过程中是否出现了丢失或损坏。通过自动生成缺失表单并重新发送数据包,系统可以确保数据传输的完整性和准确性,从而提高整体数据传输的可靠性。This mechanism can effectively detect whether data is lost or damaged during transmission by comparing the actual size of the data packet with the expected size. By automatically generating a missing table and resending the data packet, the system can ensure the integrity and accuracy of data transmission, thereby improving the reliability of overall data transmission.

如图2所示,本发明实施例还提供了一种政务云多源数据传输检测方法,应用于上述政务云多源数据传输检测系统中,该方法包括:As shown in FIG2 , an embodiment of the present invention further provides a method for detecting multi-source data transmission in a government cloud, which is applied to the above-mentioned multi-source data transmission detection system in a government cloud. The method includes:

S1:接收并存储所有待传输数据;S1: Receive and store all data to be transmitted;

S2:获取待传数据库中的待传输数据,将待传输数据分段为若干个数据包,并为每个数据包捆绑校验码;S2: Obtain the data to be transmitted in the database to be transmitted, segment the data to be transmitted into several data packets, and bundle a checksum for each data packet;

S3:根据吞吐量与数据发送端数据包的排队时延对数据包进行传输优先级的排序,根据传输优先级发送数据包以及包含数据包和数据包所捆绑校验码的确认表单;当数据包在传输过程中出现丢失或损坏时,重新发送数据包;S3: sorting the data packets according to the throughput and the queuing delay of the data packets at the data sending end, sending the data packets and the confirmation form containing the data packets and the checksum bundled with the data packets according to the transmission priority; resending the data packets when the data packets are lost or damaged during the transmission process;

S4:数据包成功发送后,对数据接收端要求发送缺失表单,根据缺失表单确定需重新发送的缺失数据包;缺失表单包括缺失数据包的名称以及对应的校验码;S4: After the data packet is successfully sent, the data receiving end is requested to send a missing form, and the missing data packet to be resent is determined according to the missing form; the missing form includes the name of the missing data packet and the corresponding check code;

S5:接收数据包与校验码,确认缺失数据包并生成缺失表单;S5: receiving the data packet and the checksum, confirming the missing data packet and generating a missing form;

S6:将缺失表单发送至数据发送端;S6: Send the missing form to the data sending end;

S7:将接收到的数据包按原始顺序重组为完整数据。S7: Reassemble the received data packets into complete data in the original order.

最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制,尽管参照上述实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解:依然可以对本发明的具体实施方式进行修改或者等同替换,而未脱离本发明精神和范围的任何修改或者等同替换,其均应涵盖在本发明的权利要求保护范围之内。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims (10)

1. A government cloud multisource data transmission detection system, the system comprising: a data transmitting end and a data receiving end;
The data transmitting terminal comprises:
a to-be-transmitted database configured to receive and store all data to be transmitted;
the segmentation module is configured to acquire the data to be transmitted in the data base to be transmitted, segment the data to be transmitted into a plurality of data packets, and bind a check code for each data packet;
The queue module is configured to sort transmission priorities of the data packets according to throughput and queuing delay of the data packets of the data transmitting end, and transmit the data packets and a confirmation form containing the data packets and the check codes bundled by the data packets according to the transmission priorities; the queue module is further configured to retransmit the missing data packet;
The verification module is configured to request to send a missing form to the data receiving end after the data packet is successfully sent, and determine the missing data packet to be retransmitted according to the missing form; the missing form comprises the name of the missing data packet and a corresponding check code;
The data receiving terminal comprises:
A verification module configured to receive the data packet and a check code, confirm the missing data packet, and generate the missing form;
the feedback module is configured to send the missing form to the data sending end;
And the reorganization module is configured to reorganize the received data packets into complete data according to an original sequence.
2. The government cloud multi-source data transmission detection system according to claim 1, wherein when the waiting database receives and stores all the data to be transmitted, the system comprises:
acquiring the received data to be transmitted, recording the receiving time, presetting a character number threshold of the data to be transmitted, and comparing the actual character number of the data to be transmitted with the character number threshold; when the actual character number is smaller than the character number threshold, not processing the data to be transmitted, and when the actual character number is larger than or equal to the character number threshold, adding a compression list into the data to be transmitted and sequentially judging whether to compress or not;
And acquiring CPU idle rate through the CPU utilization rate in real time of a computer, calculating the CPU occupancy rate of each data to be transmitted in the compression list, when the CPU idle rate is larger than the CPU occupancy rate of the data to be transmitted, reserving backup for the data to be transmitted and starting compression, and when the CPU idle rate is smaller than or equal to the CPU occupancy rate of the data to be transmitted, reversing the data to be transmitted in the compression list by one order.
3. The government cloud multi-source data transmission and detection system according to claim 2, wherein when the waiting database receives and stores all the data to be transmitted, the system further comprises:
Presetting a processing time threshold of a to-be-transmitted database, calculating the real-time processing time according to the difference value between the real-time and the receiving time, and judging whether the to-be-transmitted data is compressed or not when the real-time processing time is greater than or equal to the processing time threshold; and if the judgment result is yes, transmitting the data to be transmitted after the compression is completed to the segmentation module, and if the judgment result is no, terminating the compression and transmitting the backup to the segmentation module.
4. The government cloud multi-source data transmission detection system according to claim 2, wherein the segmenting the data to be transmitted into a plurality of data packets and binding check codes for each data packet comprises:
Calculating the number of data packets dividing the single data to be transmitted according to the network bandwidth, the network delay, the packet loss rate and the size of the single data to be transmitted, wherein the number of the data packets satisfies the following relation:
Wherein N is the number of data packets dividing single data to be transmitted, S is the size of single data to be transmitted, w B is the network bandwidth influence coefficient, w L is the network delay influence coefficient, w R is the packet loss rate influence coefficient, Representing rounding up the bond;
After determining the number of data packets dividing the single data to be transmitted, segmenting the data to be transmitted; and generating a check code of the data packet based on an SHA-256 check algorithm after segmentation is completed.
5. The government cloud multi-source data transmission and detection system according to claim 4, wherein generating the check code of the data packet based on SHA-256 check algorithm comprises:
Reading the data content in the segmented data packet, inputting the data content into an SHA-256 verification algorithm, generating a hash value with a fixed length as the verification code, and attaching the generated verification code to a metadata part of the data packet, wherein the metadata part comprises a data packet sequence number, a data packet size and the verification code, the data packet sequence number is used for recombining sequence information of the data packet, and the data packet size is used for verifying whether the data packet is lost or damaged in the transmission process.
6. The government cloud multi-source data transmission and detection system according to claim 4, wherein the network bandwidth influence coefficient is determined by the following method:
Acquiring the actual bandwidth of the current network through measurement, acquiring the maximum bandwidth through historical network bandwidth, and calculating the ratio of the actual bandwidth to the maximum bandwidth to be used as the network bandwidth influence coefficient;
The network delay influence coefficient is determined by the following method:
Measuring the actual delay of a network, acquiring the minimum delay through the delay of a historical network, calculating the ratio of the actual delay to the minimum delay, and measuring the minimum delay jitter based on the actual delay jitter and the historical record acquired by a delay jitter measuring tool; determining a network delay influence coefficient according to the product of the ratio of the actual delay to the minimum delay and the ratio of the actual delay jitter to the minimum delay jitter, wherein the network delay influence coefficient meets the following relation:
The packet loss rate influence coefficient is determined by the following formula:
wherein, For the actual delay to be mentioned,In order for the minimum delay to be a function of the minimum delay,For the actual delay jitter to be mentioned,Is the minimum delay jitter; r is packet loss rate, and R is more than or equal to 0 and less than or equal to 1.
7. The government cloud multi-source data transmission detection system according to claim 5, wherein the sequencing of transmission priorities of the data packets according to throughput and queuing delay of the data packets at the data transmitting end comprises:
The throughput of the data receiving end and the data transmitting end is obtained and respectively recorded as receiving throughput and transmitting throughput, and the actual throughput is determined according to the magnitude relation between the receiving throughput and the transmitting throughput;
The queuing time delay of each data packet is obtained, and the corresponding data packets are sequenced according to the queuing time delay from small to large;
And after the sorting is finished, judging the relation between the actual throughput and the size of the data packet, and when the actual throughput is larger than the size of the data packet, reversing the transmission priority of the data packet by one ranking.
8. The government cloud multi-source data transmission detection system according to claim 7, wherein a queuing delay threshold is preset, and whether to stop the transmission priority of the data packet to back by one ranking is judged according to the size relation between the current queuing delay and the queuing delay threshold;
Stopping the transmission priority adjustment of the data packet when the queuing delay is greater than or equal to a queuing delay threshold; and when the queuing delay is smaller than the queuing delay threshold, continuing to back the transmission priority of the data packet by one ranking.
9. The government cloud multi-source data transmission and detection system of claim 8, wherein the data packet size is used to verify whether loss or damage occurs during transmission, comprising:
And the data receiving end compares the size of the received data packet with the record in the metadata, if the size of the received data packet is different from the record in the metadata, the data receiving end judges that the data packet is lost or damaged in the transmission process, and the data transmitting end resends the data packet with the loss or damage.
10. The government cloud multisource data transmission detection method applied to the government cloud multisource data transmission detection system according to any one of claims 1 to 9, wherein the method comprises the following steps:
S1: receiving and storing all data to be transmitted;
S2: acquiring the data to be transmitted in the data to be transmitted, segmenting the data to be transmitted into a plurality of data packets, and binding a check code for each data packet;
S3: sequencing the transmission priority of the data packets according to throughput and queuing delay of the data packets of the data transmitting end, and transmitting the data packets and a confirmation form containing the data packets and the verification codes bundled by the data packets according to the transmission priority; retransmitting the data packet when the data packet is lost or damaged in the transmission process;
s4: after the data packet is successfully transmitted, a missing form is required to be transmitted to the data receiving end, and the missing data packet to be retransmitted is determined according to the missing form; the missing form comprises the name of the missing data packet and a corresponding check code;
S5: receiving the data packet and the check code, confirming the missing data packet and generating the missing form;
S6: transmitting the missing form to the data transmitting end;
s7: and reorganizing the received data packets into complete data according to the original sequence.
CN202411029635.4A 2024-07-30 2024-07-30 Government cloud multi-source data transmission detection system and method Pending CN118842766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411029635.4A CN118842766A (en) 2024-07-30 2024-07-30 Government cloud multi-source data transmission detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411029635.4A CN118842766A (en) 2024-07-30 2024-07-30 Government cloud multi-source data transmission detection system and method

Publications (1)

Publication Number Publication Date
CN118842766A true CN118842766A (en) 2024-10-25

Family

ID=93145551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411029635.4A Pending CN118842766A (en) 2024-07-30 2024-07-30 Government cloud multi-source data transmission detection system and method

Country Status (1)

Country Link
CN (1) CN118842766A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119854396A (en) * 2025-03-21 2025-04-18 北京中关村智连安全科学研究院有限公司 Satellite data packet analysis method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6711137B1 (en) * 1999-03-12 2004-03-23 International Business Machines Corporation System and method for analyzing and tuning a communications network
CN114363260A (en) * 2021-11-09 2022-04-15 天津大学 A data flow scheduling method for data center network
CN116185657A (en) * 2022-12-30 2023-05-30 度小满科技(北京)有限公司 Data transmission method, device, equipment and medium based on database storage system
CN117176594A (en) * 2023-09-05 2023-12-05 阳江海上风电实验室 High-speed data transmission system and transmission method
CN117499331A (en) * 2023-11-29 2024-02-02 开封大学 Data security management system and method based on Internet of things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6711137B1 (en) * 1999-03-12 2004-03-23 International Business Machines Corporation System and method for analyzing and tuning a communications network
CN114363260A (en) * 2021-11-09 2022-04-15 天津大学 A data flow scheduling method for data center network
CN116185657A (en) * 2022-12-30 2023-05-30 度小满科技(北京)有限公司 Data transmission method, device, equipment and medium based on database storage system
CN117176594A (en) * 2023-09-05 2023-12-05 阳江海上风电实验室 High-speed data transmission system and transmission method
CN117499331A (en) * 2023-11-29 2024-02-02 开封大学 Data security management system and method based on Internet of things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119854396A (en) * 2025-03-21 2025-04-18 北京中关村智连安全科学研究院有限公司 Satellite data packet analysis method and system

Similar Documents

Publication Publication Date Title
Marx et al. Same standards, different decisions: A study of QUIC and HTTP/3 implementation diversity
CN104539739B (en) A kind of system, method and device that file uploads
US6321269B1 (en) Optimized performance for transaction-oriented communications using stream-based network protocols
CN118842766A (en) Government cloud multi-source data transmission detection system and method
CN107682311B (en) Hardware-implemented multi-link TCP data reconstruction system
CN111404872A (en) Message processing method, device and system
CN110138809A (en) A kind of TCP message splicing system and method towards ethernet controller receives link
CN115037700A (en) Complex network data packet transmission method, system, terminal and storage medium
CN113824760A (en) File concurrent block uploading method and device, electronic equipment and storage medium
CN116566921B (en) Congestion control method, system and storage medium for remote direct memory access reading
WO2023115678A1 (en) Data communication methods and apparatuses, electronic device and storage medium
CN119155294B (en) A dynamic file transmission optimization method and transmission system
CN120358232A (en) File uploading method, device, storage medium, electronic equipment and program product
CN112511507A (en) Data processing device and data processing method
CN112395296A (en) Big data archiving method, device, equipment and storage medium
CN118713795A (en) A data transmission method, device and medium based on network card system
CN116866643A (en) Video secure transmission method and system based on multiple transit paths
CN116389455A (en) File transmission method, system and electronic equipment
KR102082484B1 (en) Apparatus for transmitting and receiving data
CN117993909B (en) An intelligent mobile payment system
CN120498604B (en) A red-blue collaborative fountain code communication method and device based on rail transit system
CN119788930B (en) Image transmission method, device and system combining satellite and public network
CN119382828B (en) A data transmission method and system based on digital communication
CN118890660A (en) High-speed comprehensive inspection train inspection data transmission flow control method and device
KR101243502B1 (en) Data receiving method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination