High-speed network file reorganization method under system memory limitation of satellite
By combining DPDK+F-Stack kernel bypass technology and Direct I/O+io_uring, line-speed capture of 10Gbps+ network data streams and bit-level lossless file reconstruction in spaceborne systems were achieved, solving the problems of memory overflow and dirty data pollution in spaceborne systems and adapting to the stringent resource constraints of spaceborne systems.
Patent Information
- Application Number
- CN202611081893.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-21
- Publication Date
- 2026-11-20
AI Technical Summary
Under the limited memory conditions of onboard computers, it is impossible to achieve line-speed capture of network data streams of 10Gbps+ and bit-level lossless file reconstruction. Existing technologies suffer from problems such as out-of-order delivery, memory overflow, and dirty data pollution.
The system employs DPDK+F-Stack kernel bypass technology for line-speed UDP packet reception, uses a lock-free circular queue to pass addresses, performs local sorting and disk persistence to generate locally ordered sequences, combines Direct I/O+io_uring for high-speed disk persistence, and utilizes min-heap merging to achieve a globally ordered data stream.
The system achieved line-rate data capture of 10Gbps+ and bit-level lossless file reconstruction, reducing memory usage and CPU overhead, extending the lifespan of solid-state drives, and ensuring data integrity and consistency.
Smart Images

Figure CN123145336A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of high-speed network data processing and storage technology, and in particular to a method for high-speed network large file reorganization under limited memory conditions in a spaceborne system. Background Technology
[0002] With the rapid development of modern low-Earth orbit satellite constellations and deep space exploration, the amount of data generated by onboard communication payloads (such as synthetic aperture radar SAR data downlink and massive data aggregation via inter-satellite links) is growing exponentially, with file sizes for a single communication service reaching tens to hundreds of gigabytes. Onboard communication systems not only need to achieve linear-speed acquisition of network data streams at 10Gbps+, but more critically, they must deliver ordered, complete, and bit-level clean data files to onboard processing applications (such as real-time on-orbit imaging computation).
[0003] Due to limitations in power consumption and size, the physical memory capacity of onboard computers may be less than the total data volume of a single received ultra-large file, making it impossible to complete the global reorganization and sorting of the entire file data through full memory buffering. Under this rigid constraint of the "memory wall," achieving both 10Gbps+ line-speed throughput and ensuring the orderly and complete output files has become a core technical challenge that urgently needs to be addressed in high-speed onboard communication systems. The technological evolution and evaluation analysis for this scenario are as follows:
[0004] 1. Based on kernel-mode protocol stack and standard buffered I / O
[0005] In traditional Linux operating system architectures, network data reception and persistence heavily rely on the kernel-mode protocol stack and standard POSIX I / O interfaces (portable operating system I / O interfaces). High-speed data streams continuously trigger hardware interrupts upon arrival at the network card. After the data frames are parsed by the kernel-mode protocol stack, a cross-mode memory copy from kernel space to user space needs to be completed via system calls. This involves frequent user-mode / kernel-mode context switching, resulting in huge computational overhead. At speeds of 10Gbps+, network card queue overflow and packet loss are highly likely, making it impossible to maintain line-speed reception.
[0006] Furthermore, the data write-to-disk phase uses standard buffer interfaces such as fwrite / fread. These interfaces not only rely on the kernel page cache but also maintain independent user-space buffers. Therefore, data is copied multiple times between the kernel network card buffer, the C library user-space buffer, the application-defined buffer, and the kernel page cache, increasing memory bandwidth usage. In high-speed scenarios of 10Gbps+, this can easily lead to memory resource exhaustion, making it difficult to adapt to the constraints of small onboard memory hardware.
[0007] 2. Based on DPDK kernel bypass and F-Stack user-space protocol stack
[0008] To avoid the overhead of cross-space copying of the kernel protocol stack, the industry commonly adopts the DPDK (Data Plane Development Kit) kernel bypass technology. This technology uses DMA (Direct Memory Access) to directly transfer network interface card (NIC) data frames to user space memory with zero copying, thereby significantly improving network throughput. To address the lack of L3 / L4 protocol parsing capabilities in the native DPDK, it is typically combined with user-space protocol stack technologies such as F-Stack. This involves porting a mature TCP / IP protocol stack to user space, ensuring compatibility with the POSIX standard socket interface, and enabling line-rate parsing and distribution of high-speed UDP data frames.
[0009] However, this solution only optimizes the front-end packet receiving performance and cannot solve the core problem of out-of-order data frames caused by UDP transmission. Traditional processing logic requires caching all fragments in memory to complete global sorting, which may lead to memory overflow when dealing with large files. If the data is frequently written to disk in batches, the writing of out-of-order small blocks will generate a large amount of write amplification (i.e., a single network data frame only occupies a small segment of space within the flash erase block (e.g., several thousand bytes in size); if the frame is written directly, the entire erase block (e.g., 4MB in size) must first be read into memory, the data frame content at the corresponding offset position must be updated in memory, and then the entire erase block must be rewritten into flash memory, which will generate a large amount of redundant read and write), blocking the front-end packet receiving pipeline, destroying the 10Gbps+ line-speed throughput capability, and there is no corresponding mechanism to clean up the dirty data padded at the end of fixed-length network packets, which cannot guarantee the bit-level integrity of the file.
[0010] 3. High-speed asynchronous disk I / O based on Direct I / O and io_uring
[0011] Direct I / O is a low-level I / O access mode in Linux that bypasses the operating system's page cache. Its core advantage is that data transfer can be completed directly between the user-space buffer and the NVMe SSD, eliminating the additional memory copy overhead between the kernel and user space. During the data write-to-disk phase, to match network bandwidth of 10Gbps+, Direct I / O is typically used in conjunction with Linux's latest asynchronous system call io_uring to directly write data to the NVMe SSD, bypassing the operating system's page cache, thereby eliminating memory copy overhead and reducing the frequency of system calls.
[0012] This solution only optimizes disk write throughput and has three major drawbacks that make it unsuitable for spaceborne scenarios: First, due to Direct I / O's forced storage block alignment, the application layer actively fills in invalid placeholder bytes when writing fragmented pieces, generating dirty data at the end, destroying the original file boundaries, and causing hash verification to fail; second, it lacks fragmented ordered aggregation logic, and can only write unordered small blocks directly, causing severe read-modify-write and write amplification of the underlying solid-state drive, shortening storage life; third, it lacks the ability to sort outside segments and accurately truncate files, making it impossible to complete globally ordered file reorganization under limited memory, and making it difficult to output lossless complete business files.
[0013] Current technologies generally use a combination architecture of DPDK+F-Stack with Direct I / O+io_uring to achieve high-speed data transmission and reception to disk. This architecture only alleviates the computing power overhead of traditional kernel protocol stacks, but it still cannot adapt to the multiple stringent constraints of spaceborne systems and has the aforementioned technical defects.
[0014] Based on the preceding analysis, it is clear that although existing technologies have improved the local performance of network transmission or storage in different dimensions, in the context of spaceborne applications, facing the triple constraints of "ultra-high throughput," "extremely limited onboard memory," and "bit-level consistent and complete delivery," the aforementioned conventional technology combinations still have irreconcilable contradictions and inherent defects:
[0015] (1) Conventional operating system kernel-mode transmission mechanisms have computational and I / O bottlenecks.
[0016] When handling network throughput of 10Gbps+, if data transmission and reception are handled by relying on the operating system kernel network stack, frequent interrupt storms and numerous "user-mode to kernel-mode" context switches will quickly exhaust the already scarce CPU computing power onboard. On the one hand, the system struggles to maintain line-speed capture under high-speed traffic, easily causing backpressure overflow in the network card receive queue and large-scale packet loss; on the other hand, the multi-layer memory copying caused by regular system calls continuously increases the power consumption and transmission latency of onboard equipment.
[0017] (2) High-speed connectionless protocols suffer from out-of-order problems and memory wall limitations.
[0018] While using the UDP connectionless protocol with DPDK and F-Stack user-space protocol stack can achieve kernel bypass, eliminate interrupt latency through PMD polling, and complete zero-copy transfer from hardware to user space using DMA and large blocks of memory, it inevitably leads to severe packet out-of-order and traffic jitter problems. Traditional network reorganization schemes require caching the entire file in memory for global reordering, but single-download files such as spaceborne SAR images can reach tens of gigabytes, far exceeding the available RAM of the device. Directly sorting globally in memory can easily cause memory overflow and system crashes; if frequent batch writes to disk are performed, complex storage I / O scheduling will block the receiving thread in reverse, resulting in the loss of 10Gbps+ line-speed receiving capability.
[0019] (3) The inherent conflict between storage hardware alignment constraints and dirty data pollution
[0020] To ensure line-speed disk writing, the system needs to use Direct I / O to bypass the kernel page cache. This mode mandates that the write block size, memory start address, and file write offset must all be integer multiples of the hard disk logical sector (typically 512B or 4KB). In actual spaceborne transmission scenarios, business files often contain data fragments (invalid padding data) at the end; simultaneously, the network side often uses fixed-length data packet transmission, with the tail packet containing bytes padded due to fixed-length encapsulation. To meet the requirements of the underlying hardware I / O, existing technologies can only write the padded zeros and invalid padding payload to the disk along with the valid data. Ultimately, the file is mixed with a large amount of irrelevant dirty data, corrupting the original business data boundaries, causing MD5 / SHA256 hash verification failures, and failing to provide reliable data files with bit-level consistency to upper-layer applications. Summary of the Invention
[0021] The purpose of this invention is to provide a high-speed network large file reconstruction method under limited memory conditions in spaceborne systems. It aims to solve the core problems faced by 10Gbps+ high-speed downlink communication under extremely limited spaceborne computing resources (computing power, memory): severe out-of-order processing caused by DPDK+UDP, memory overflow caused by global memory sorting, and backpressure of front-end reception caused by the disk writing rate not keeping up with the packet receiving rate. It also solves the problem of dirty data pollution at the end of the file caused by strong alignment constraints of high-speed direct I / O, thereby achieving line-speed data capture and bit-level lossless reconstruction in unreliable network environments.
[0022] In a first aspect, this application provides a file reassembly method based on a spaceborne system, comprising: receiving a first data packet, the first data packet carrying a global identifier and a service payload; generating a first structure including a global identifier and a service payload address, and storing the address of the first structure in a first queue; obtaining the addresses of multiple first structures from the first queue, and locally sorting the service payload addresses according to the global identifier; aggregating the service payloads corresponding to the sorted multiple service payload addresses to generate a locally ordered sequence; and merging the service payloads in the multiple locally ordered sequences to generate a globally ordered data stream.
[0023] This technical solution employs DPDK+F-Stack kernel bypass to achieve line-speed UDP packet reception, transmitting only addresses. The front end performs a single payload copy to isolate the mbuf lifecycle; the back end performs local sorting and disk persistence to generate a locally ordered sequence, and then merges it using a min-heap to obtain a globally ordered data stream. This avoids memory overflow caused by full memory sorting and reduces disk read / write overhead by relying on Direct I / O+io_uring, adapting to the high-speed traffic of 10Gbps+ onboard networks and limited memory constraints. In addition, pipelined asynchronous processing naturally has traffic shaping capabilities, ensuring no packet loss in the face of sudden massive data downlinks from satellites.
[0024] In some embodiments, the generated global ordered data stream is delivered in at least one of the following ways: (1) the generated global ordered data stream is aggregated into a global ordered sequence and stored in a non-volatile memory; (2) the service payload address in the global ordered data stream is pushed to the onboard application.
[0025] A dual-track delivery channel is set up: Track 1 persistently writes data to disk for storage and forwarding, while Track 2 provides zero-copy shared memory push addresses for on-orbit real-time computing. One system is compatible with both storage and real-time processing scenarios for spaceborne services.
[0026] In some embodiments, the first processor uses a DPDK+F-Stack kernel bypass architecture to receive the first data packet and generate the first structure, including: receiving the first data packet from the network card, writing the global identifier and service payload of the first data packet into the mbuf; copying the service payload to the first flexible array through the mbuf address; generating the first structure including the global identifier and the service payload address, wherein the service payload address is the memory address of the first flexible array; and storing the address of the first structure in a lockless circular queue.
[0027] The front-end and back-end CPU core binding pipelines are decoupled, and only the payload address is passed. The front-end copies the payload once and isolates the mbuf lifecycle, which greatly reduces memory bandwidth and CPU usage and avoids back-end I / O blocking the front-end packet receiving.
[0028] In some embodiments, the second processor obtains the addresses of multiple first structures from a lock-free circular queue, locally sorts the service payload addresses according to the global identifier, aggregates the service payloads to generate a locally ordered string, and stores the locally ordered string in non-volatile memory in Direct I / O mode.
[0029] The backend retrieves the SN and address to complete local sorting, aggregates the payload to generate a locally ordered sequence, uses a 4MB large block base address as the io_uring write base address, and writes to the NVMe solid-state drive through Direct I / O to reduce solid-state drive write amplification.
[0030] In some embodiments, merging service loads in multiple locally ordered sequences includes: allocating an independent read buffer for each locally ordered sequence to implement multi-way concurrent pre-reading; supplying the service load with the smallest current global identifier in each locally ordered sequence to the min-heap merging engine to generate a globally ordered data stream; and aggregating the globally ordered data stream into a globally ordered sequence in the write buffer.
[0031] It employs asymmetric double-buffered concurrent pre-reading of locally ordered sequences and continuously outputs the payload corresponding to the minimum SN to supply the minimum heap merging engine, completing large-scale sorting with only a small amount of fixed memory.
[0032] In some embodiments, the global identifier indicates that the service payload belongs to one of the following three cases: (1) the service payload is invalid padding data; (2) the service payload is the exact total length of bytes in the original file; (3) the service payload is the actual service payload data, and the order of the global identifier indicates the order of the corresponding service payload in the original file.
[0033] In some embodiments, the first data packet is a UDP data frame. The UDP payload field of the UDP data frame includes a feature metadata header and a service payload area. The feature metadata header stores a global identifier and is located at the beginning of the UDP payload field. The service payload area is located after the feature metadata header and is used to store the service payload.
[0034] The UDP payload header contains built-in global identifier metadata. When SN=1, it stores the total length of the original file in bytes; when SN>1, it stores business data. The file boundary scale can be obtained from the first packet alone, providing baseline metadata for subsequent accurate truncation. In addition, invalid padding packets can be considered as SN=0.
[0035] In some embodiments, after generating and storing the globally ordered string, the underlying truncation interface is called to complete the logical boundary calibration using the precise total byte length of the original file carried by the data packet, and the bytes padded by the fixed-length encapsulation at the end of the UDP tail packet corresponding to the end of the original file are removed.
[0036] Extract the original file length of the first packet metadata, call the underlying truncation interface to calibrate the file logical boundaries, remove invalid padding bytes from the UDP tail packet, ensure the bit-level correctness of the output file, and prevent business data from being contaminated by the fixed-length encapsulation of UDP data frames.
[0037] In some embodiments, when merging service loads, invalid padding data generated by hardware alignment is intercepted and discarded to ensure that the globally ordered data streams participating in the aggregation have no hardware alignment redundancy.
[0038] When generating the globally ordered string, it is necessary to check the 4MB block of the locally ordered string to determine whether the subsequent part is an "invalid padding packet." This is indicated by the global identifier being stored at position 0. In other valid service payloads, the global identifier is a positive integer greater than or equal to 1. However, the padding portion generated by Direct I / O hardware alignment is all 0, and the corresponding global identifier is at position 0. Therefore, this portion can be considered an invalid padding packet with SN=0.
[0039] In a second aspect, this application provides a computer system including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the embodiments of this application.
[0040] This invention proposes a collaborative architecture of "online local sorting and disk persistence + offline global merging and reorganization," which can complete high-speed network large file reorganization in scenarios where the computing power and memory of the spaceborne system are limited. While occupying only a small amount of running memory and without blocking the front-end network card pipeline, it achieves line-speed capture of 10Gbps+ high-speed out-of-order data streams and bit-level lossless restoration of redundant dirty data, providing an efficient and reliable engineering solution for the persistence of massive amounts of data in extreme environments such as high-resolution payload downlink from low-Earth orbit satellites and deep space exploration. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0042] Figure 1 This paper illustrates a flowchart of the high-performance packet reception, local address sorting, and high-speed disk writing using Direct I / O and io_uring in an embodiment of this application.
[0043] Figure 2A schematic diagram of the macroscopic data reassembly based on asymmetric double buffering and multi-way merging in an embodiment of this application is shown;
[0044] Figure 3 This application illustrates a schematic diagram of the overall process of the three stages in an embodiment; and
[0045] Figure 4 A schematic diagram of the custom data frame format used in the embodiments of this application is shown. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description, in conjunction with the accompanying drawings and specific embodiments, further illustrates this application. It should be understood that the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0047] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0048] During their research on a spaceborne 10Gbps+ high-speed network communication and massive data persistence system, the inventors discovered that existing high-speed network receiving and storage architectures have fatal limitations in extreme spaceborne environments. The main reason is as follows:
[0049] The traditional network reordering mechanism relies heavily on the traditional kernel network stack and large memory capacity for global buffering and reorganization. This mechanism excessively depends on massive amounts of RAM to reorder extremely large files. However, in resource-constrained spaceborne systems, this approach is highly susceptible to severe memory overflows, leading to system crashes. Furthermore, relying on the traditional kernel-mode network stack for data transmission and reception results in frequent hardware interrupts and context switching, which quickly depletes the spaceborne CPU's computing power, making it unable to handle 10Gbps+ line-rate traffic.
[0050] The storage I / O mechanism fails to effectively integrate with the physical characteristics of the underlying hardware: current partial caching disk write solutions mostly adopt a simple "write when buffer is full" strategy, without co-optimizing for high-speed out-of-order data streams and the physical characteristics of onboard NVMe SSDs. Especially when memory is insufficient and forced to write to disk frequently, the disordered writing of massive small fragments can easily cause severe read-to-write effects and write amplification in the underlying storage, which not only significantly shortens the disk's lifespan but also causes I / O blocking, which in turn drags down the front-end network packet reception performance.
[0051] In summary, for extreme operating conditions where onboard computing power and memory resources are extremely limited, and the system needs to handle 10Gbps+ high-speed downlink network traffic, the existing combination of DPDK+F-Stack user-space packet reception and Direct I / O+io_uring high-speed disk persistence still has several inherent technical defects. This existing solution struggles to resolve the out-of-order delivery problem of DPDK+UDP, its reliance on traditional global sorting easily leads to memory overflow, and the imbalance between network transmit / receive and storage I / O rates causes backpressure in the transmit / receive pipeline. Furthermore, the hardware alignment characteristics of Direct I / O cause dirty data contamination, making it impossible to simultaneously meet the requirements of onboard systems for line-rate throughput, limited memory operation, and bit-level lossless delivery.
[0052] To overcome the aforementioned shortcomings, the inventors, through in-depth research, proposed a high-speed network large file reassembly method under the limited memory of a spaceborne system. This mechanism integrates kernel bypass, lock-free circular queues, Direct I / O, and io_uring technologies, and achieves line-speed capture and reliable disk writing of high-speed data streams on spaceborne systems through the following scheme.
[0053] In terms of pipeline decoupling and local address ordering design, the inventors realized that to maintain a 10Gbps+ receive line rate with limited memory, it is necessary to physically isolate network packet reception from the computationally intensive out-of-order reordering process. To this end, a pipelined architecture based on strict core binding was designed. The front-end core relies solely on kernel bypass technology for extremely fast packet reception, transmitting the address of the structure containing the encapsulated service payload address and global identifier (SN) to the back-end processing core via a lock-free circular queue. The back-end core performs local ordering based on the global identifier (SN) within limited memory and writes the data to disk. Existing technical solutions struggle to coordinate high-frequency cross-core address transmission at ultra-high throughput of 10Gbps+ while simultaneously shielding the CPU latency caused by the ordering algorithm, ensuring no backpressure and no packet loss in the front-end network card receive queue.
[0054] Regarding the implementation of 4MB block aggregation and zero-copy local disk writing, to address the resource consumption issues caused by traditional fragmented disk writing, the inventors proposed generating 4MB contiguous physical blocks by aggregating data packet payloads according to ordered address sequences within a local memory pool, and then quickly writing them to the disk using Direct I / O and the high-performance asynchronous engine io_uring. The design challenge lies in precisely matching the 4MB erase block characteristic standard of NVMe SSDs, eliminating the "read-modify-write" effect caused by small-block fragmented writing at the application layer, and bringing the write amplification rate close to 1.0, thus significantly extending the lifespan of the onboard SSD while ensuring line-speed throughput.
[0055] Regarding global external sorting and asymmetric double-buffering architecture, to output ordered, bit-level consistent complete files to onboard applications or ground stations, the system introduces a customized global multi-path merging mechanism to complete the final physical reorganization of a large number of locally ordered sequences stored in NVMe solid-state drives. Addressing hardware bottlenecks such as fragmented random reads, PCIe channel congestion, and read / write overhead inherent in traditional external sorting, this invention innovatively proposes an "asymmetric double-buffering" scheduling architecture. The read end employs a pre-read mechanism to convert concurrent fragmented random reads into efficient sequential streams; the write end forces 4MB block alignment through large-block aggregation, completely avoiding operating system cache breakdown. This architecture can losslessly complete the physical reordering and hash verification of hundreds of GB of out-of-order data, ultimately pushing globally aligned 4MB ordered data blocks in a high-throughput streaming manner to on-orbit applications for real-time processing, or persistently storing and distributing them to ground receiving stations.
[0056] Through the aforementioned innovative design, this invention overcomes the shortcomings of traditional network reordering mechanisms in spaceborne memory wall scenarios, constructing a local-to-global multi-level sorting and disk-based mechanism adapted to 10Gbps+ high-speed scenarios. This mechanism can significantly reduce CPU overhead and physical wear and tear on solid-state drives, enabling stable line-speed reception and highly reliable data delivery in resource-constrained aerospace hardware environments, meeting the stringent requirements of massive data transmission for future low-Earth orbit constellations and deep space exploration.
[0057] To this end, the present invention proposes a high-speed network large file reorganization method under limited memory of a spaceborne system, which mainly includes the following three parts.
[0058] Part 1: Front-end line-speed packet reception, micro-level local sorting, and ultra-fast asynchronous disk write-to-disk.
[0059] This section primarily addresses issues such as high-speed data capture under extreme network throughput, memory overflow caused by traditional global sorting, and backpressure problems in the transmit / receive pipeline due to storage I / O rate mismatch.
[0060] Figure 1This document illustrates a flowchart (i.e., Part 1) of the high-performance packet reception, local address sorting, and ultra-fast disk write-to-disk operation using Direct I / O and io_uring in an embodiment of this application. Figure 1 As shown, the system is divided into the bottom-up hardware layer, the user-space large memory pool (data plane), and the user-space computing scheduling layer (control plane).
[0061] The sending end transmits a global identifier and service payload to the system via UDP data frames. The service payload includes two cases: one is the global identifier and the exact total byte length of the original file; the other is the global identifier and the actual service payload data. When the global identifier is 1, the service payload area stores the exact total byte length of the original file; when the global identifier is greater than or equal to 2, the service payload area stores the actual service payload data (such as a fragment of image data). For example, an original image file with a total length of 25616 bytes can be sent via such UDP data frames, with each UDP data frame sending a fixed 256-byte fragment of image data (i.e., fixed frame length). The first data frame sent is SN=1, which also contains the exact total length of the original file in bytes, i.e., 25616. The second data frame sent is SN=2, which also contains the actual service payload data from byte 0 to byte 255. The second to last data frame sent is SN=101, which also contains the actual service payload data from byte 25344 to byte 25599. The last data frame sent is SN=102, which also contains the remaining actual service payload data from byte 25600 to byte 25615. The remaining 240 bytes are padding bytes due to fixed-length encapsulation, and the padding bytes are located at the end of the UDP tail packet service payload of the original file.
[0062] The underlying hardware layer's onboard network interface card (NIC) receives discrete network data frames as described above and achieves multi-queue traffic balancing through RSS (Receiver Scaling) hardware stream distribution. After receiving a data frame, the NIC uses a DMA zero-copy mechanism to directly write the data frame into a DPDK mbuf within the user-space large memory pool. A linked list of mbufs carries a single complete data frame. Depending on the data frame length, a single linked list of mbufs can contain one or more mbufs. For example, for SAR image slice service data, a 1400-byte ordinary data frame can be stored using only one mbuf, while an 8900-byte jumbo frame requires 3-5 mbufs to be concatenated for storage. Since the service payload of data packets (i.e., data frames) received at line speed is actually stored in mbuf, but mbuf is internal management memory of the protocol stack, upper-layer services cannot directly read, write, or hold the data inside mbuf for a long time. Therefore, the storage location of the service payload in mbuf can be obtained first through the mbuf address, and then the service payload is copied from user space to user space to the flexible array storage area. A structure containing a global identifier and the service payload address (i.e., the flexible array address) is then constructed for subsequent data transfer between the front-end and back-end. After the network card DMA writes the data frame to mbuf with zero copy, the hardware updates the RX queue descriptor to mark that the current data frame has been received successfully.
[0063] This application uses flexible arrays from the C99 standard to temporarily store the service payload. If an array with an unspecified length is defined as the last member at the end of the structure, that array member is a flexible array member. Flexible arrays can allocate memory according to the length of the data packet's service payload, avoiding the redundancy in buffer size caused by fixed lengths. Simultaneously, the structure header field and the service payload reside in the same contiguous physical memory region, facilitating high-speed disk write-to-disk processing.
[0064] The front-end CPU cores (Core 0 to Core 2 in the diagram) run F-Stack instances and continuously poll the RX queue descriptor based on PMD (polling mode driven). When a data frame is detected being written to the mbuf, the mbuf address is directly obtained. F-Stack is a high-performance network protocol stack with full user space data plane and kernel bypass, capable of independently completing the server's complete data frame transmission and reception. It adopts a multi-threaded isolated architecture, with each F-Stack instance (i.e., thread) bound to a dedicated CPU core and network card queue. Cross-core communication between threads relies on DPDK lock-free circular queues (such as rte_ring provided by DPDK) to complete message exchange. After obtaining the mbuf address (as shown by the three F-Stack instances in the diagram), the F-Stack instance can parse the data frame in parallel and extract the global identifier, then push the address of the structure containing the global identifier and the service payload address to the cross-core lock-free circular queue, thereby achieving 10Gbps+ front-end line-speed packet reception.
[0065] After the backend CPU core (Core 3 in the figure) obtains the structure address from the circular queue, it parses it to obtain the global identifier and the service payload address. Within the limited local memory, the global identifier is used as the sorting criterion, and only the service payload address is subjected to micro-local sorting. That is, only the service payload addresses are batch rearranged within the L1 cache, completely eliminating cache jitter caused by service payload movement. After sorting, the addresses sorted in ascending order by the global identifier are traversed, and the service payloads of each frame are extracted and assembled. A 4MB physically aligned contiguous block is aggregated in user-space memory and stored in the large memory pool on the data plane. This 4MB block is a locally ordered sequence formed by continuously splicing multiple ordered data frames sorted by the global identifier.
[0066] It is important to note that the service payload with a global identifier of 1 can be obtained during sorting, which represents the exact total byte length of the original file. This service payload does not need to be aggregated with other service payloads because it does not contain actual service payload data (such as image data). However, its length can be used to determine the exact total byte length of the original file, which can be used to remove the bytes padded at the end of the UDP tail packet service payload due to fixed-length encapsulation.
[0067] On the control plane, the high-performance asynchronous I / O engine io_uring, based on the kernel polling mechanism (SQPOLL), completes the asynchronous I / O task construction and SQE submission. The starting address of the 4MB block is used as the memory input base address for the io_uring write task. On the data plane, the system adopts Direct I / O mode, using DMA to write the partially ordered 4MB block of data to the NVMe SSD at high speed. Besides the bytes padded by the fixed-length encapsulation of the UDP tail packet generated by the upstream sender, hardware alignment redundancy arises due to Direct I / O hardware alignment. This results in a continuous padding region with all bits set to 0 after the partially ordered sequence within the 4MB block. Therefore, this can be considered as using an invalid padding packet with SN=0 to pad the 4MB block for hardware alignment. These two types of redundancy will be removed in subsequent steps; otherwise, they may affect the actual content of the reconstructed original file.
[0068] The system operates by decoupling the front-end and back-end pipelines, making the entire writing process unblockable. This can significantly reduce the write amplification problem caused by the read-modify-write operations required for partial overwrite of the underlying SSD (i.e., reading the complete erase block, updating the local load, and writing back to the flash memory). At the same time, it avoids the reverse blocking of the front-end packet receiving pipeline by disk I / O and eliminates back pressure during transmission and reception.
[0069] In summary, the receiving end employs kernel bypass and a user-space protocol stack to achieve high-performance packet reception of 10Gbps+. It transmits only the packet address through a cross-core lock-free queue. Within an independent backend CPU core, addresses are lightweightly sorted based on global identifiers, aggregating the payload into a 4MB memory pool. High-speed disk writing is then achieved through io_uring combined with Direct I / O, ensuring the disk write rate matches the packet reception rate. This mechanism reduces global absolute out-of-order delivery to micro-ordering within a 4MB physically aligned block. It avoids the memory overflow risk associated with full memory sorting, optimizes CPU cache utilization, and shields the sorting computational latency, ensuring zero backpressure and zero packet loss in the 10Gbps+ frontend packet reception pipeline.
[0070] In addition, the original file length metadata in the first packet (SN=1) is extracted separately by the backend processor and saved to the control plane (such as memory variables or file headers) for use in the third-stage file truncation.
[0071] Part Two: Macroscopic Multipath Merging and Dual-Track Delivery Based on Asymmetric Double Buffering
[0072] This section takes multiple locally ordered sequences written to the NVMe SSD in the first part as input. It abandons the high-overhead method of loading the entire file into memory for global sorting. Instead, it constructs a small-range sequential pre-read mechanism combined with a min-heap multi-way merge algorithm and an asymmetric double-buffering scheduling strategy. With extremely low fixed memory overhead, it completes the step-by-step merging and reorganization of all data frames in multiple locally ordered large blocks. Finally, it outputs a complete linear data stream with strictly increasing global identifiers, effectively solving the pain points of high memory overhead and insufficient onboard memory resources in traditional global sorting.
[0073] Figure 2 This illustration shows a flowchart of macroscopic data reassembly based on asymmetric double buffering and multi-way merging in an embodiment of this application. Figure 2 As shown, the system reads multiple locally ordered sequences of scattered storage generated in the first part from the source data disk and uses them as input to the multi-way concurrent pre-read pool.
[0074] On the data plane, the complete business data is aggregated into N scattered, locally ordered sequences after the first part, which are persistently stored on solid-state drives. The system independently configures a read buffer (512KB) for each locally ordered sequence to achieve concurrent pre-reading of multiple data streams. It continuously reads the data frame with the smallest current global identifier in each sequence, and then merges and sorts them into a stable, globally ordered data stream. After this, there are two processing methods: Track 1 corresponds to directly generating a globally ordered sequence and writing it to disk, while Track 2 corresponds to not directly generating a globally ordered sequence and writing it to disk, but instead achieving globally ordered use of data frames by providing base address pointers.
[0075] For Orbit 1, the data plane continuously stores the merged ordered data frames into a single-path large-block aggregation pool. In user space, data regularization and physical alignment are completed, accumulating data frames until a specified data block size (e.g., 4MB) is reached, forming a complete globally ordered large data block. This 4MB block is a globally ordered sequence formed by continuously splicing the service payloads of multiple ordered data frames sorted by global identifiers. Subsequently, this 4MB block is sent to the global aggregation write buffer to complete disk storage for the dual-track data delivery layer. Simultaneously, the single-path large-block aggregation pool continuously receives the service payloads of newly merged data frames, achieving seamless pipelined continuation processing. Through this user-space asymmetric dual-buffering mechanism, efficient caching, regularization, and continuous merging processing of multiple locally ordered sequences are achieved without loading the full file data, significantly reducing onboard memory usage.
[0076] On the control plane, the min-heap merging engine collects the serial numbers (SNs) of data frames output from the N-way read buffers in real time and performs rapid comparison and filtering. It extracts the service payloads of the data frames according to a strictly increasing SN order, generating a globally ordered data stream. This stream can then be pushed to the single-way large-block aggregation pool on track 1 for aggregation. Since the first part ensures that the service payloads within each locally ordered sequence are completely sorted according to SN, the service payload with the smallest SN currently read from each buffer is the service payload with the smallest SN among the globally unaggregated service payloads. Therefore, accurate and error-free multi-way selective merging can be achieved. This method does not require a large amount of memory to cache the entire data; it only relies on a fixed number of buffers and a min-heap to complete iterative merging, reconstructing a globally strictly increasing complete linear data stream with minimal memory overhead, making it suitable for scenarios with limited onboard resources.
[0077] After a single globally ordered data block is constructed, the global aggregate write buffer bypasses the system kernel cache through io_uring and the DirectI / O mechanism, enabling extremely fast data persistence to disk and writing to the NVMe hard drive of the dual-track data delivery layer. When all locally ordered sequences have been merged and reassembled, a single bit-level globally ordered large file is finally formed on the hard drive.
[0078] For Orbit 2, the min-heap merging engine extracts data strictly in ascending order of SN, thus enabling the direct extraction of globally ordered base address pointers (e.g., obtaining the addresses of service payloads corresponding to SN=2, SN=3, SN=4, etc.) without directly generating globally ordered sequential serialization and disk partitioning. The user-space computation scheduling layer, through a zero-copy shared memory (IPC) mechanism, can push the memory addresses of streaming data with no I / O overhead to the onboard real-time computing applications of the dual-track data delivery layer in real time, such as the on-orbit application of SAR real-time imaging algorithms, without requiring actual global sorting and disk partitioning of the globally ordered data.
[0079] Based on the above architecture, this system constructs a dual-track parallel data delivery capability at the output end to adapt to onboard business scenarios: First, in terms of storage and forwarding, globally ordered data streams are aggregated into 4MB physically aligned blocks in user space, and forced disk write-to-disk is completed using a high-speed I / O mechanism to meet the business requirements of persistent data storage and subsequent forwarding; Second, in terms of real-time computing, zero-copy shared memory is used to stream data memory addresses to onboard applications, eliminating the need for disk write-to-disk and achieving ultra-fast direct delivery, adapting to onboard real-time computing business scenarios. This dual-track delivery mode flexibly accommodates both storage and computing as core scenarios, ensuring large file reconstruction accuracy, high-speed throughput performance, and on-orbit business real-time performance under extremely limited onboard resources.
[0080] In summary, during the offline data restoration phase, the N locally ordered physically aligned large blocks stored on the disk are treated as independent ordered sequences. A min-heap algorithm is used to complete multi-way merging, establishing a user-space asymmetric double-buffering mechanism of "small block concurrent pre-read + large block aggregation write-back". This mechanism can reassemble tens of gigabytes of fragmented data from the solid-state drive using only a small-scale memory buffer, effectively solving the I / O channel congestion and disk thrashing problems caused by externally ordered concurrent random reads.
[0081] Part Three: Feature Metadata Filtering and Logical-Level Precise Truncation
[0082] This section aims to completely eliminate the two dimensions of dirty data pollution generated during the system's rapid workflow, correct invalid and redundant data introduced by storage alignment and network transmission, and ensure that the final delivered business files achieve absolute bit-level consistency and lossless restoration.
[0083] To clarify the necessity of this dirty data removal process, we first explain the root causes of the two types of dirty data. This system employs a high-speed Direct I / O disk writing mechanism and a UDP fixed-length data frame transmission mechanism. Both high-performance mechanisms suffer from redundancy issues related to system compatibility. First, Direct I / O requires data to be written strictly in 4MB block alignment. For data intervals insufficient to form a single block, the application layer actively fills in invalid placeholder bytes (i.e., 0) to meet hardware writing specifications, thus generating storage-layer aligned dirty data, such as when writing partially ordered sequences to disk. Second, the onboard high-speed UDP transmission uses a fixed-length, efficient encapsulation format. To unify the transmission frame structure and improve link throughput, the sender pads any remaining data at the end of the file (i.e., the service payload of the last data frame) that is insufficient for a fixed-length payload, generating network-layer transmitted dirty data. Both types of dirty data are adaptation-derived data for high-speed transmission and high-speed disk writing, not the original business data. If not accurately removed, they will directly lead to byte distortion in the reassembled file, compromising data integrity.
[0084] Black hole filtering for storage layer physical alignment contamination: During the multi-way merge and reassembly process in Part 2, black hole filtering logic is synchronously implemented in the system, executing in parallel with the data merging and large block aggregation processes. This logic identifies and removes invalid placeholders and alignment redundancy data filled to adapt to the underlying Direct I / O physical large block write specification by judging whether they belong to invalid padding packets. The removal and purification are completed synchronously during data flow and large block aggregation, eliminating dirty data contamination caused by storage layer physical alignment from the source and preventing invalid data from being written to the final file.
[0085] To address the logical-level truncation issue caused by fixed-length data frame pollution at the network layer: High-speed satellite transmission uses a UDP fixed-length data frame encapsulation format. When the total number of bytes in the original business file cannot be divided by the fixed-length packet payload, the sender will pad the last data frame with bytes to make up the standard packet length to adapt to the high-speed transmission link, resulting in redundant padding data at the end of the reassembled file after disk storage. To solve this problem, the system precisely intercepts the first feature packet (SN=1) at the data flow control plane, pre-parses and caches the original file's precise total byte length metadata injected by the sender, using this as the sole benchmark for file boundaries. After the file completes global ordered rearrangement and overall persistent disk storage, the system calls the operating system's underlying file truncation interface. By directly modifying the file length attribute in the file system's inode metadata, logical-level file boundary calibration is completed with extremely low time complexity (O(1), completely removing the redundant dirty data at the end caused by network fixed-length encapsulation. That is, after the global ordered sequence completes the aggregation and final disk write, the system uses the precise file length intercepted from the data packet with SN=1 during the reassembly period to call the underlying file truncation interface (such as ftruncate) to perform logical boundary calibration and accurately remove the useless padding bytes generated by fixed-length encapsulation in the UDP tail packet at the end.
[0086] In short, during the multi-way reassembly process, the system first dynamically removes the block-level invalid padding packets (SN=0) generated by Direct I / O in each local ordered string; after the global ordered string aggregation is completed, the system then performs a low-level system call truncate on the output file based on the precise byte length extracted from the global protocol metadata (SN=1), thereby completely eliminating the byte-level redundancy caused by physical alignment.
[0087] This section employs a dual de-dirting mechanism—storage layer black hole filtering and network layer logical-level truncation—to eliminate compatibility-related dirty data in both high-speed disk writes and high-speed transmission scenarios in parallel. This process does not affect the system's high-speed throughput performance and ultimately achieves bit-level accurate and lossless restoration of massive high-speed business data on satellite.
[0088] In summary, the exact byte length of the original file is written as metadata in the initial feature packet (SN=1); invalid placeholders are filtered out during the merging and writing process; after the complete file is synchronized to the file system, the length metadata is extracted and the underlying system interface is called to perform file truncation. This mechanism completely removes the dirty data at the tail caused by the alignment of the underlying storage sectors with an O(1) microsecond computational overhead, achieving precise bit-level alignment and integrity verification of data.
[0089] Figure 3 A schematic diagram illustrating the overall process of the three stages in an embodiment of this application is shown. As described above, the technical solution of this application can be divided into three stages in the following order:
[0090] 1. First stage: Online high-pressure period
[0091] The first stage mainly implements the functions of micro-sorting and linear speed disk dropping.
[0092] 1) The onboard network card receives 10Gbps+ out-of-order UDP data streams;
[0093] 2) The front-end F-Stack uses multiple instances bound to cores and adopts the DPDK PMD polling mode to achieve line-speed packet reception;
[0094] 3) Extract the global identifier (SN) and memory address of the data packet, form a structure, and send the address of the structure into the DPDK lockless circular queue;
[0095] 4) The backend core executes the process of retrieving data from the queue and performing local micro-sorting based on the SN;
[0096] 5) Extract and aggregate the payloads based on the sorted global identifiers, and generate a 4MB physically aligned block;
[0097] 6) Based on io_uring and Direct I / O, asynchronous and rapid data writing to disk is achieved, generating locally ordered sequences of Runs scattered across the hard disk.
[0098] 2. Second stage: Offline low-pressure period
[0099] The second phase mainly aims to achieve the function of macro-level multi-path merging and dual-track delivery.
[0100] 1) Use the generated locally ordered strings Runs scattered across the hard drive as input;
[0101] 2) Initiate a user-space asymmetric double buffering mechanism to perform double-buffered concurrent pre-reading of data;
[0102] 3) Perform external sorting and rearrangement based on the min-heap algorithm;
[0103] 4) Delivery service routing and distribution:
[0104] Track 1 (Store-forward Persistence): User-space 4MB aggregation and alignment, asynchronous disk write, and transmission to the third stage;
[0105] Orbit 2 (On-orbit Real-time Computing): Zero-fall disk memory pass-through: Streaming push of base address pointers to deliver to onboard computing application processes.
[0106] 3. Third stage: Document finalization period
[0107] The third stage mainly aims to achieve precise truncation and data cleanup.
[0108] 1) Use a globally ordered large file with trailing dirty data on the generated hard drive as input;
[0109] 2) Intercept the initial feature packet to extract precise total byte length metadata;
[0110] 3) Call the ftruncate interface to perform O(1) logic level boundary calibration.
[0111] ftruncate is a system function in Unix / Linux and other operating system environments that modifies the size of a file. This function operates on file descriptors to truncate or extend a specified file to a target length. Its prototype is defined as int ftruncate(int fd, off_t length), where fd is the opened file descriptor and length is the specified file size.
[0112] The third stage outputs a final, persistent business file that is consistent at the bit level.
[0113] It should be clarified that the precise file truncation mechanism in this application differs fundamentally from the tail-truncation scheme of traditional UDP transmission's first packet carrying the total length. Traditional UDP truncation schemes rely on parsing the precise total byte length of the file in the first packet (generally located at the very beginning of the first packet's business data, but not sent as a separate data frame's business payload). This only removes locally padded dirty data at the end of network transmission, belonging to the application-layer memory byte truncation method. It is suitable for transmission scenarios with conventional memory splicing and no physically aligned disk writes, but cannot solve the problem of global storage layer placeholder dirty data pollution caused by high-speed Direct I / O physically aligned writes. In contrast, this application adopts a two-layer linkage dirty data removal architecture of "global black hole filtering during the merging phase + precise logical-level inode truncation after disk writes." This not only accurately removes the tail network redundant data generated by fixed-length UDP transmissions but also completely removes scattered invalid placeholder data generated by multiple 4MB physically aligned disk writes, simultaneously solving the problem of overlapping dirty data at both the network and storage layers. Furthermore, this solution achieves logical-level truncation with low time complexity based on file system inode metadata, eliminating the need for full file scanning and memory data copying. Compared to traditional application-layer byte truncation methods, it is more efficient and adaptable, truly achieving bit-level lossless restoration in scenarios of high-speed reconstruction of ultra-large files, and avoiding the shortcomings of traditional solutions such as incomplete descrambling and limited adaptability.
[0114] Figure 4 A schematic diagram illustrating the custom data frame format used in embodiments of this application is shown. For example... Figure 4 As shown, the data frame used in the technical solution of this application mainly includes a basic protocol header, a UDP payload field, and a physical link tail. The basic protocol header mainly includes the Ethernet MAC header (14 bytes) of the data link layer, the IP protocol header (20 bytes) of the network layer, and the UDP protocol header (8 bytes) of the transport layer. The variable-length UDP payload field carries the service information of the UDP data frame transmission. The UDP payload field begins with an 8-byte custom feature metadata header, which stores the global identifier (SN) of the service payload in uint64_t type; followed by a variable-length onboard service payload area. When the data frame is the first feature packet with SN=1, the onboard service payload area stores the exact total length of the original file in bytes; when the data frame has SN>1, the onboard service payload area stores the actual service payload data, such as 1400 bytes of SAR image slice data. This custom feature metadata header and the onboard service payload area together constitute the onboard custom high-speed transmission protocol area. After parsing, it performs out-of-order fragmentation and sorting according to the global identifier, and uses the total file length within the first packet payload to achieve subsequent file boundary calibration. The physical link tail located at the end of the data frame is a 4-byte Frame Check Sequence (FCS).
[0115] It should be noted that when SN is greater than 1, the UDP payload field of this application includes a global identifier and onboard service payloads (such as image data). The global identifier SN is stored before each segment of service payload. After being written to disk into a 4MB locally ordered block, the block simultaneously carries the global identifier and the service payload. Therefore, when the second part of the multi-way merging reads the 4MB block from the disk, the global identifier and the service payload can be directly parsed and sorted for merging. Since the globally ordered sequence does not need to be sorted again afterward, the aggregated result only contains service data and not the global identifier. The global identifier is removed during the merging process, thus generating a continuous original file.
[0116] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable storage medium. As is known to those skilled in the art, the term computer-readable storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media generally include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium. Computer program products are software products that primarily implement their solutions through computer programs. The computer program code or computer instructions they contain can be obtained from computer-readable storage media and can also be transmitted, distributed, and downloaded over a network.
[0117] Although the embodiments of this application are described above, the content is merely an example adopted for the purpose of facilitating understanding of this application and is not intended to limit the scope and application scenarios of this application. Any person skilled in the art described in this application may make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in this application, but the scope of patent protection of this application shall still be determined by the scope defined in the appended claims.
Claims
1. A file reassembly method based on a spaceborne system, comprising: Receive the first data packet, which carries a global identifier and a service payload; Generate a first structure including a global identifier and a service payload address, and store the address of the first structure in a first queue; The addresses of multiple first structures are obtained from the first queue, and the service payload addresses are locally sorted according to the global identifier. Aggregate the service payloads corresponding to multiple sorted service payload addresses to generate a locally ordered sequence; and The business loads in multiple locally ordered sequences are merged to generate a globally ordered data stream.
2. The file reassembly method according to claim 1, wherein the generated globally ordered data stream is delivered in at least one of the following ways: (1) Aggregate the generated globally ordered data stream into a globally ordered sequence and store it in non-volatile memory; (2) Push the service payload address in the globally ordered data stream to the onboard application.
3. The file reassembly method according to claim 1, wherein the first processor uses a DPDK+F-Stack kernel bypass architecture to receive the first data packet and generate the first structure, comprising: Receive the first data packet from the network card and write the global identifier and service payload of the first data packet into the mbuf; The service payload is copied to the first flexible array via the mbuf address; Generate a first structure including a global identifier and a service payload address, wherein the service payload address is the memory address of a first flexible array; and Store the address of the first structure in a lock-free circular queue.
4. The file reassembly method according to claim 3, wherein the second processor obtains the addresses of multiple first structures from the lock-free circular queue, performs local sorting of the service payload addresses according to the global identifier, aggregates the service payloads to generate a locally ordered sequence, and stores the locally ordered sequence in non-volatile memory in Direct I / O mode.
5. The file reassembly method according to claim 1, wherein merging the service payloads in multiple locally ordered sequences includes: Each locally ordered sequence is allocated an independent read buffer to enable multi-path concurrent pre-reading; The service load with the smallest current global identifier in each local ordered sequence is fed to the min-heap merging engine to generate a globally ordered data stream; as well as In the write buffer, the globally ordered data stream is aggregated into a globally ordered sequence.
6. The file reassembly method according to claim 1, wherein the global identifier indicates that the service payload belongs to one of the following three cases: (1) The service payload is invalid padding data; (2) The business payload is the exact total length of bytes in the original file; (3) The service payload is the actual service payload data, and the order of the global identifiers represents the order of the corresponding service payloads in the original file.
7. The file reassembly method according to claim 6, wherein the first data packet is a UDP data frame, the UDP payload field of the UDP data frame includes a feature metadata header and a service payload area, the feature metadata header stores a global identifier and is located at the beginning of the UDP payload field, and is used to store the global identifier, the service payload area is located after the feature metadata header, and is used to store the service payload.
8. The file reassembly method according to claim 7, wherein after generating a globally ordered sequence and storing it completely, the underlying truncation interface is called to complete the logical boundary calibration using the precise total byte length of the original file carried by the data packet, and the bytes filled by the fixed-length encapsulation of the service payload tail of the UDP tail packet corresponding to the end of the original file are removed.
9. The file reassembly method according to claim 1, wherein when merging business payloads, invalid padding data generated by hardware alignment is intercepted and discarded to ensure that the globally ordered data stream participating in the aggregation has no hardware alignment redundancy.
10. A computer system comprising a memory, a processor, and a computer program stored in the memory, wherein, The processor executes the computer program to implement the steps of the method according to claims 1-9.
