Satellite data processing system and method and electronic equipment
By adopting lock-free queues and single-producer-single-consumer mode for data interaction in the satellite data processing system, the problems of low data interaction efficiency and single module parallel mode in the existing technology are solved, the processing speed and timeliness are improved, and Simplified migration of different satellite processing flows.
Patent Information
- Application Number
- CN202411059839.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing satellite data processing technology has problems such as inefficient data interaction methods, insufficient module parallel mode, low interface docking efficiency and poor reusability, resulting in insufficient processing speed and timeliness.
A lock-free queue structure is used for data interaction between data processing modules to achieve multi-module parallel processing, and data interaction is optimized through the single producer single consumer mode and completion identification mechanism, and a common interface is designed to improve modularity and portability.
It improves the speed and timeliness of satellite data processing, avoids lock competition issues, reduces the impact of hard disk IO bottlenecks, achieves efficient data interaction and interface flexibility between modules, and simplifies the transplantation of different satellite processing processes.
Smart Images

Figure CN118567637A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a satellite data processing system, method and electronic equipment. Background Art
[0002] With the continuous development of my country's space technology, satellite manufacturing technology has gradually matured, launch costs have decreased, and the number of remote sensing satellites launched each year has continued to increase, which has put forward new requirements for the timeliness of satellite data processing.
[0003] There are some defects in the existing satellite data processing technology: the data interaction between processing steps is relatively inefficient; the module parallel mode is not fully considered and the mode is single; multiple modules are independent, the interface docking efficiency is low, and the interface reusability is poor. Summary of the invention
[0004] In view of this, the present invention provides a satellite data processing system, method and electronic device, which are used to at least partially solve the above technical problems.
[0005] One aspect of the present invention provides a satellite data processing system, comprising: N data processing modules, different data processing modules are used to perform data processing of the same or different processing flows and processing functions on satellite data, the N data processing modules work in parallel, the first data processing module among the N data processing modules is configured to receive external input, and the Nth data processing module is configured to perform external output; N-1 pairs of lock-free queues, and internal data interaction is performed between each two adjacent data processing modules among the N data processing modules through a pair of lock-free queues.
[0006] According to an embodiment of the present invention, each pair of lock-free queues in the N-1 pairs of lock-free queues includes a first lock-free queue and a second lock-free queue, the first lock-free queue is configured to cache valid resources in the satellite data processing process, and the second lock-free queue is configured as memory space resources in the satellite data processing process.
[0007] According to an embodiment of the present invention, any data processing module from the second data processing module to the Nth data processing module interacts with the upstream data processing module through the first lock-free queue and the second lock-free queue of a single producer and a single consumer, and the content of the interaction is the memory space of the same type of data; any data processing module, as a consumer, obtains the valid data output by the upstream data processing module from the corresponding first lock-free queue; any data processing module, as a producer, provides the used memory space resources to the corresponding second lock-free queue.
[0008] According to an embodiment of the present invention, any data processing module from the 1st data processing module to the N-1th data processing module interacts with the downstream data processing module through the first lock-free queue and the second lock-free queue of a single producer and a single consumer, and the content of the interaction is the memory space of the same type of data; any data processing module, as a consumer, obtains memory space resources from the corresponding second lock-free queue; any data processing module, as a producer, provides valid data after production to the corresponding first lock-free queue.
[0009] According to an embodiment of the present invention, the data processing module is further configured with a completion flag, and any data processing module from the second data processing module to the Nth data processing module obtains the satellite data processing completion status of the upstream data processing module by reading the completion flag of the upstream data processing module.
[0010] Another aspect of the present invention provides a satellite data processing method, including: determining the satellite data processing completion status of an upstream data processing module; in response to the upstream data processing module completing data output, obtaining valid data from a first lock-free queue as input data, and obtaining memory space resources from a second lock-free queue as output resources; performing data processing on the input data and the output resources, caching the processing results in the corresponding first lock-free queue, and caching the processed output resources in the corresponding second lock-free queue.
[0011] According to an embodiment of the present invention, determining the completion status of satellite data processing by an upstream data processing module includes: determining whether a first lock-free queue is empty; in response to the first lock-free queue being empty, reading a completion flag of the upstream data processing module; in response to the completion flag indicating that satellite data processing by the upstream data processing module is not completed, waiting for a preset time to reserve data processing resources, and returning to the operation of determining whether the first lock-free queue is empty.
[0012] According to an embodiment of the present invention, determining the satellite data processing completion status of the upstream data processing module further includes: in response to the first lock-free queue being not empty, determining that the upstream data processing module has not completed data output, and stopping the current satellite data processing task.
[0013] According to an embodiment of the present invention, obtaining memory space resources from the second lock-free queue as output resources includes: determining whether the second lock-free queue is empty; in response to the second lock-free queue being empty, waiting for a preset time to reserve data processing resources, and returning to the operation of determining whether the second lock-free queue is empty.
[0014] Another aspect of the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more programs;
[0015] When one or more programs are executed by one or more processors, the one or more processors implement the above-mentioned satellite data processing method.
[0016] The satellite data processing system, method and electronic device according to the embodiments of the present invention have at least the following beneficial effects:
[0017] During the satellite data processing process, the data interaction method between data processing modules adopts a lock-free queue structure, which can avoid the problem of lock competition during satellite data processing, making the data interaction method between processing steps more efficient, and reducing the preprocessing speed from tens of minutes to about ten minutes, thereby improving the speed and timeliness of satellite data processing.
[0018] During the satellite data processing process, multiple data processing modules are processed in parallel, and memory interaction is achieved between data processing modules through lock-free queues to avoid the hard disk IO bottleneck affecting the processing speed and ensure that computing service resources are fully used for data processing.
[0019] The first data processing module is configured as an external interface to accept external input, and the last data processing module is configured as an external interface for external output. Lock-free queues are used between data processing modules for internal data interaction to realize internal interfaces. Modular design is carried out at the processing module level, and a universal interface design is adopted to facilitate module transplantation and reuse between different satellites. Transplantation is carried out based on the preprocessing process module, and only a small number of configuration parameters need to be modified. There is no need to change the module interface, which reduces the workload of reconstruction when transplanting processing processes of different satellites. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0021] Figure 1 A schematic diagram of a satellite data processing system framework according to an embodiment of the present invention is shown;
[0022] Figure 2 A schematic diagram shows a structural block diagram of a data processing module in a satellite data processing system according to an embodiment of the present invention;
[0023] Figure 3 The overall flow chart of the satellite data processing method according to an embodiment of the present invention is schematically shown;
[0024] Figure 4 A detailed flow chart of a satellite data processing method according to an embodiment of the present invention is schematically shown;
[0025] Figure 5A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0026] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0029] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0030] Satellite data has the following characteristics: Remote sensing satellites acquire a large amount of observation data every day, and the data transmission bit rate is getting higher and higher, which places higher requirements on the speed and timeliness of processing. In order to ensure the efficiency and quality of data transmission, the satellite data structure is relatively complex. The raw satellite data received on the ground is generally encapsulated in a multi-layer data structure, and the data packets need to be parsed, split, and combined in sequence in different processes. With the increase in the number of satellite and payload manufacturers and the wide variety of satellites, different types of satellites require different data processing processes and methods.
[0031] Based on the above characteristics of satellite data, the processing of satellite data has the following requirements:
[0032] In order to ensure the speed and timeliness of satellite data processing, the data exchange efficiency in the data processing process needs to be guaranteed as much as possible. In order to ensure the efficiency of multi-process execution of satellite data processing, the processing modules of multiple steps in the process need to work in parallel. In order to ensure the scalability and portability of the satellite data processing system, the data structure can be abstracted, the processing modules can be templated, and a unified template processing mode can be constructed.
[0033] In response to the above needs, the existing satellite data processing methods have some problems: the data interaction between processing steps is relatively inefficient; the module parallel mode is not fully considered and the mode is single; multiple modules are independent, the interface docking efficiency is low, and the interface reusability is poor.
[0034] In the process of implementing the embodiments of the present invention, the applicant found that the data interaction method between processing steps is relatively inefficient. Specifically, since the processing rate of the satellite ground system computing node is greater than the IO rate of the data storage, the use of file interaction in the middle of the processing will take up a lot of time in the processing flow, affecting the timeliness of the processing. The use of memory entity objects will result in the need to continuously apply for and release memory between different modules, increase the overhead of memory management, and affect processing performance and timeliness. When the memory locked queue method is adopted, the memory lock mechanism will cause lock competition, resulting in reduced throughput and increased response time, affecting processing performance and timeliness. When using message queue middleware, the middleware needs to be called, and the middleware may also have related problems caused by memory entity objects and locked queues, affecting processing efficiency.
[0035] The single mode is specifically reflected in the following aspects: the computing devices of current satellite ground systems all have multi-core and multi-threaded processing capabilities, and due to the limitation of IO rate, a single processing step generally cannot fully utilize computing resources, and compared with multi-step parallel processing, resource utilization is low and processing efficiency is low. For systems that consider parallel processing between modules, only one mode is usually supported and is limited by the efficiency of data interaction.
[0036] The interface docking efficiency is low and the interface reusability is poor. Specifically, the modules do not have a unified interface, additional interface descriptions are required, and a unified template processing mode cannot be built.
[0037] In view of this, an embodiment of the present invention provides a satellite data processing system method.
[0038] A satellite data processing system includes: N data processing modules, different data processing modules are used to perform data processing of the same or different processing flows and processing functions on satellite data, the N data processing modules work in parallel, the first data processing module of the N data processing modules is configured to receive external input, and the Nth data processing module is configured to perform external output. N-1 pairs of lock-free queues, each adjacent two data processing modules of the N data processing modules perform internal data exchange through a pair of lock-free queues.
[0039] Figure 1 The following schematically shows a satellite data processing system framework diagram according to an embodiment of the present invention. Figure 2 The structure block diagram of the data processing module in the satellite data processing system according to the embodiment of the present invention is schematically shown.
[0040] like Figure 1 and Figure 2 As shown, the overall mode of data processing in the satellite data processing system is as follows:
[0041] Composition: The satellite data processing system consists of N data processing modules and (N-1) pairs of lock-free queues.
[0042] External interface: The satellite data processing system receives external input through the first data processing module and performs external output through the last data processing module.
[0043] Internal interface: The data processing modules in the satellite data processing system use lock-free queues for internal data interaction.
[0044] Working mode: N processing modules with multiple steps and different functions are started simultaneously and work in parallel.
[0045] Based on the above embodiment, each pair of lock-free queues in the N-1 pairs of lock-free queues includes a first lock-free queue and a second lock-free queue, the first lock-free queue is configured to cache valid resources in the satellite data processing process, and the second lock-free queue is configured as memory space resources in the satellite data processing process.
[0046] On the basis of the above embodiment, any data processing module from the 2nd data processing module to the Nth data processing module interacts with the upstream data processing module through the first lock-free queue and the second lock-free queue of a single producer and a single consumer, and the content of the interaction is the memory space of the same type of data. Any data processing module, as a consumer, obtains the valid data output by the upstream data processing module from the corresponding first lock-free queue. Any data processing module, as a producer, provides the used memory space resources to the corresponding second lock-free queue.
[0047] Specifically, if it is not the first data processing module in the processing flow, data interaction is performed with the data processing module upstream of the flow through two single-producer and single-consumer lock-free queues, and the content of the interaction is the memory space of the same type of data. For one of the lock-free queues, this data processing module acts as a consumer, obtains valid data output by the upstream data processing module from the lock-free queue, and defines it as a "lock-free queue (input) for valid resources", that is, the first lock-free queue. For the other lock-free queue, this data processing module acts as a producer, and provides the used memory space resources to the lock-free queue, which is defined as a "lock-free queue (input) for recycled resources", that is, the second lock-free queue.
[0048] On the basis of the above embodiment, any data processing module from the 1st data processing module to the N-1th data processing module interacts with the downstream data processing module through the first lock-free queue and the second lock-free queue of a single producer and a single consumer, and the content of the interaction is the memory space of the same type of data. Any data processing module, as a consumer, obtains memory space resources from the corresponding second lock-free queue. Any data processing module, as a producer, provides the corresponding first lock-free queue with valid data after production.
[0049] Specifically, if it is not the last data processing module in the processing flow, data interaction is performed with the data processing module downstream of the flow through two single-producer and single-consumer lock-free queues, and the content of the interaction is the memory space of the same type of data. For one of the lock-free queues, this data processing module acts as a consumer and obtains memory space resources from the lock-free queue, which is defined as a "lock-free queue for recycling resources (output)". For the other lock-free queue, this data processing module acts as a producer and provides the lock-free queue with valid data after production, which is defined as a "lock-free queue for valid resources (output)".
[0050] Based on the above embodiment, the data processing module is further configured with a completion flag, and any data processing module from the second data processing module to the Nth data processing module obtains the satellite data processing completion status of the upstream data processing module by reading the completion flag of the upstream data processing module.
[0051] On the basis of the above embodiments, the data processing module should have an initialization method that can initialize the module processing parameters. The data processing module has a data processing function, can obtain data and resources from the lock-free queue (input) of valid resources and the lock-free queue (output) of recycled resources, perform data processing, output the output results and recycled resources to the lock-free queue (output) of valid resources and the lock-free queue (input) of recycled resources, and can obtain the end mark of the upstream module, end the work after the processing is completed and set the completion status of this data processing module to completed.
[0052] Figure 3 The overall flow chart of the satellite data processing method according to an embodiment of the present invention is schematically shown.
[0053] like Figure 3 As shown, the satellite data processing method may include, for example, operations S310 to S330.
[0054] In operation S310, a satellite data processing completion status of an upstream data processing module is determined.
[0055] In operation S320, in response to the upstream data processing module completing data output, valid data is obtained from the first lock-free queue as input data, and memory space resources are obtained from the second lock-free queue as output resources.
[0056] In operation S330, data processing is performed on the input data and the output resources, the processing results are cached in the corresponding first lock-free queue, and the processed output resources are cached in the corresponding second lock-free queue.
[0057] For example, the process is as follows:
[0058] (1) Initialize the module, initialize various parameters required for data processing, check the variables, and then proceed to step (2);
[0059] (2) Determine whether the upstream module has completed output. If the output is not completed, proceed to step (3); if the output is completed, proceed to step (8);
[0060] (3) Get input data from the lock-free queue (input) of valid resources, and then proceed to step (4);
[0061] (4) Obtain output resources from the lock-free queue (output) of recycled resources, and then proceed to step (5);
[0062] (5) Perform data processing and then proceed to step (6);
[0063] (6) Put the processed results into the lock-free queue of valid resources (output), and then proceed to step (7);
[0064] (7) Put the processed input resources into the lock-free queue (input) of recycled resources, and then return to step (2);
[0065] (8) Set the output completion flag to the end state and the process ends.
[0066] On the basis of the above embodiment, determining the completion status of satellite data processing of the upstream data processing module includes: determining whether the first lock-free queue is empty; in response to the first lock-free queue being empty, reading the completion mark of the upstream data processing module; in response to the completion mark indicating that the satellite data processing of the upstream data processing module is not completed, waiting for a preset time to reserve data processing resources, and returning to the operation of determining whether the first lock-free queue is empty.
[0067] Based on the above embodiment, determining the satellite data processing completion status of the upstream data processing module further includes: in response to the first lock-free queue being not empty, determining that the upstream data processing module has not completed data output, and stopping the current satellite data processing task.
[0068] Figure 4 The detailed flow chart of the satellite data processing method according to an embodiment of the present invention is schematically shown.
[0069] like Figure 4 As shown, the input completion judgment sub-process steps are as follows:
[0070] (1) Check the lock-free queue (input) of valid resources to determine whether the input queue is empty. If the input queue is empty, proceed to step (2). If the output queue is not empty, determine that the input is not complete and end the process.
[0071] (2) Read and judge the end mark of the upstream module. If the end mark of the upstream module is no, proceed to step (3). If the end mark of the upstream module is yes, judge that the input is completed and end the process;
[0072] (3) Wait for a while to release processing resources. The waiting time is in nanoseconds and can be set externally. After waiting, return to step (1).
[0073] Based on the above embodiment, memory space resources are obtained from the second lock-free queue as output resources, including: determining whether the second lock-free queue is empty; in response to the second lock-free queue being empty, waiting for a preset time to reserve data processing resources, and returning to the operation of determining whether the second lock-free queue is empty.
[0074] Continue reading Figure 4 , the steps of the output resource acquisition sub-process are as follows:
[0075] (1) Check the lock-free queue (output) of recycled resources to determine whether the input queue is empty. If the input queue is empty, proceed to step (2). If the output queue is not empty, proceed to step (3).
[0076] (2) Wait for a while to release processing resources. The waiting time is in nanoseconds and can be set externally. After waiting, return to step (1);
[0077] (3) Obtain output resources from the lock-free queue (output) of recycled resources and end the process.
[0078] According to the embodiments of the present invention, in view of the characteristics and requirements of satellite data structure nesting, high timeliness requirements and high module reuse rate, a templated parallel satellite data processing method based on lock-free queues is proposed, and it is applied in the processing system of multi-series satellites (including high-resolution series satellites, environmental series satellites, resource series satellites, etc.) and multi-type sensor (visible light, SAR, hyperspectral) data, and good results are achieved. Compared with other satellite data processing technologies, the method has the following specific advantages:
[0079] (1) During the satellite processing process, compared with the use of locked queues for data exchange in the previous optical satellite quick-view processing flow, in the quick-view processing flow of GF5B, ZY1F, and CM01 satellites, the data exchange method between modules uses a lock-free queue structure, which avoids the problem of lock contention and has better efficiency.
[0080] (2) Compared with the multi-step serial preprocessing process used in previous SAR satellite processing, the GF3B, GF3C, HJ2E, and HJ2F satellites use a multi-step parallel preprocessing process, which reduces the preprocessing speed from dozens of minutes to about ten minutes. Multiple processing step modules are run in parallel, and memory interaction is used between modules to avoid the impact of hard disk IO bottlenecks on processing speed, ensuring that computing service resources are fully used for data processing.
[0081] (3) Modular design is carried out at the processing module level, and a universal interface design is adopted to facilitate module transplantation and reuse between different satellites. For example, the HJ2E and HJ2F pre-processing flow modules are transplanted based on the GF3B and GF3C pre-processing flow modules. Only a small number of configuration parameters need to be modified, and no changes are required to the module interface, which reduces the workload of reconstruction when transplanting different satellite processing flows.
[0082] Figure 5 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present invention is schematically shown. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0083] like Figure 5As shown, the electronic device 500 according to an embodiment of the present invention includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0084] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present invention by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present invention by executing the program stored in the one or more memories.
[0085] According to an embodiment of the present invention, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the input / output (I / O) interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output (I / O) interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that the computer program read therefrom is installed into the storage portion 508 as needed.
[0086] According to an embodiment of the present invention, the method flow according to an embodiment of the present invention can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present invention are executed. According to an embodiment of the present invention, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0087] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0088] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0089] For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 502 and / or the RAM 503 described above and / or one or more memories other than the ROM 502 and the RAM 503 .
[0090] An embodiment of the present invention also includes a computer program product, which includes a computer program, which contains program code for executing the method provided by the embodiment of the present invention. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the training method and prediction method provided by the embodiment of the present invention.
[0091] When the computer program is executed by the processor 501, the above functions defined in the system / device of the embodiment of the present invention are executed. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0092] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0093] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments of the present invention can be combined and / or combined in various ways, even if such a combination or combination is not explicitly recorded in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features recorded in the various embodiments of the present invention can be combined and / or combined in various ways. All these combinations and / or combinations fall within the scope of the present invention.
[0095] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A satellite data processing system, characterized in that: include: N data processing modules, different data processing modules are used to perform data processing with the same or different processing flows and processing functions on satellite data, the N data processing modules work in parallel, the first data processing module among the N data processing modules is configured to receive external input, and the Nth data processing module is configured to perform external output; N-1 pairs of lock-free queues, each adjacent two data processing modules in the N data processing modules exchange internal data through a pair of lock-free queues.
2. The system according to claim 1, characterized in that Each pair of the N-1 pairs of lock-free queues includes a first lock-free queue and a second lock-free queue, the first lock-free queue is configured to cache valid resources in a satellite data processing process, and the second lock-free queue is configured as a memory space resource in a satellite data processing process.
3. The system according to claim 2, characterized in that Any data processing module from the second data processing module to the Nth data processing module interacts with the upstream data processing module through the first lock-free queue and the second lock-free queue of the single producer and single consumer, and the content of the interaction is the memory space of the same type of data; Any data processing module acts as a consumer and obtains valid data output by an upstream data processing module from the corresponding first lock-free queue; Any data processing module acts as a producer and provides used memory space resources to the corresponding second lock-free queue.
4. The system according to claim 2 or 3, characterized in that: Any data processing module from the 1st data processing module to the N-1th data processing module interacts with the downstream data processing module through the first lock-free queue and the second lock-free queue of a single producer and a single consumer, and the content of the interaction is the memory space of the same type of data; Any data processing module acts as a consumer to obtain memory space resources from the corresponding second lock-free queue; Any data processing module acts as a producer and provides the produced valid data to the corresponding first lock-free queue.
5. The system according to claim 1, characterized in that The data processing module is also configured with a completion mark, and any data processing module from the second data processing module to the Nth data processing module obtains the satellite data processing completion status of the upstream data processing module by reading the completion mark of the upstream data processing module.
6. A satellite data processing method, characterized in that: include: Determine the satellite data processing completion status of the upstream data processing module; In response to the upstream data processing module completing data output, obtaining valid data from the first lock-free queue as input data, and obtaining memory space resources from the second lock-free queue as output resources; Data processing is performed on the input data and the output resources, and the processing results are cached in the corresponding first lock-free queue, and the processed output resources are cached in the corresponding second lock-free queue.
7. The method according to claim 6, characterized in that The step of determining the satellite data processing completion status of the upstream data processing module includes: Determine whether the first lock-free queue is empty; In response to the first lock-free queue being empty, reading a completion flag of an upstream data processing module; In response to the completion mark indicating that the satellite data processing of the upstream data processing module is not completed, wait for a preset time to reserve data processing resources, and return to the operation of determining whether the first lock-free queue is empty.
8. The method according to claim 7, characterized in that The step of determining the satellite data processing completion status of the upstream data processing module further includes: In response to the first lock-free queue being not empty, it is determined that the upstream data processing module has not completed data output, and the current satellite data processing task is stopped.
9. The method according to claim 6, characterized in that The acquiring the memory space resource from the second lock-free queue as the output resource comprises: Determine whether the second lock-free queue is empty; In response to the second lock-free queue being empty, wait for a preset time to reserve data processing resources, and return to the operation of determining whether the second lock-free queue is empty.
10. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 6 to 9.
Citation Information
Patent Citations
Inter-core communication method realizing data packet zero-copying based on pipelining mode
CN102761489A
Data processing method and system based on producer and consumer model and storage medium
CN111208985A
Message processing method, processing unit and virtual private network server
CN113014528A
Data processing method and device based on network security service
CN116166419A
Parallel architecture design and implementation method based on pipeline technology
CN116775135A
