A data exchange and fusion method and device based on cross-domain environment
By cutting and marking data packets in a cross-domain environment, and utilizing resource monitoring and parallel transmission, the problem of transmission interruption in traditional data exchange is solved, the stable and efficient transmission of data is achieved, and the timeliness and consistency of business analysis are met. need.
Patent Information
- Application Number
- CN202410985052.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In a cross-domain environment, traditional data exchange mode interrupts data transmission due to physical isolation and network fluctuations, and cannot meet the timeliness and data consistency requirements of business analysis.
By cutting data packets into multiple slices between the display domain and business domain, and marking and verifying them during the transmission process, stable transmission and reconnection of data packets are achieved, and resource monitoring and parallel transmission are used to improve data exchange efficiency.
It achieves stable and efficient transmission of data under network fluctuations, meets data consistency and timeliness of analysis needs, and improves the diversification and timeliness of natural resource display domains.
Smart Images

Figure CN118523872B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data exchange, and more specifically, to a method and device for data exchange and fusion based on a cross-domain environment. Background Art
[0002] As natural resource informatization becomes more and more mature, a business display system is built in the physically isolated display domain based on the existing business domain informatization system.
[0003] The business domain mainly provides data and business capability support for the natural resources administrative office network environment, while also gathering the results data of various business systems.
[0004] There is physical separation between the display domain and the business domain, which mainly provides data and business capability support for the external business systems of the natural resources department and other horizontal provincial departments.
[0005] Therefore, the amount of data on the display domain platform is far less than that on the business domain platform, and the accuracy of the data will also be greatly deviated, which cannot meet the business analysis needs and the timeliness requirements of business data. For data that cannot be stored in the display domain but involves related analysis needs, it is necessary to initiate analysis needs in the display domain, perform data analysis through the business domain, and return the analysis data results to the display domain in real time for display.
[0006] In the traditional mode, data exchange between different domain environments is achieved through manual copying or transmission through a single interface. In the event of network fluctuations, the transmission of hundreds of MB or GB of data is easily interrupted and needs to be retransmitted. At the same time, for data with a high exchange and fusion frequency, it cannot meet certain real-time requirements. Summary of the invention
[0007] The present invention aims at solving the technical problems existing in the prior art and provides a method for data exchange and fusion based on a cross-domain environment, comprising:
[0008] In the display domain, trigger task creation based on the data to be analyzed, create at least one task, and each task has a unique task code;
[0009] Scan tasks regularly. For tasks that have been created but not executed, trigger the task execution process. Create corresponding analysis data packets based on the scanned tasks and store the addresses of the analysis data packets in the task information table.
[0010] For a task that has scanned and created an analysis data packet, start data transmission, cut the analysis data packet into a plurality of first slice data, mark each first slice data, and transmit the plurality of first slice data to the business domain;
[0011] In the business domain, when the first plurality of slice data is received, the plurality of first slice data are fused and restored, and business analysis is performed on the restored analysis data packets based on the business analysis model to form a result data packet;
[0012] Slicing the result data packet in the service domain, and transmitting the sliced second slice data to the presentation domain;
[0013] After the display domain receives the plurality of second slice data, the plurality of second slice data are fused and restored, and the restored result data packets are rendered and displayed.
[0014] Based on the above technical solution, the present invention can also make the following improvements.
[0015] Optionally, marking each first slice data includes:
[0016] Adding marking information to the stream data header of each first slice data, and storing the marking information in the task progress information table, the marking information includes a 36-bit task code, a 4-bit slice length code, a 4-bit slice mark sequence number code and a 1-bit data status code, wherein the data status code is 0 or 1, 0 indicates transmission from the presentation domain to the service domain, and 1 indicates transmission from the service domain to the presentation domain, and the slice length code and the slice mark sequence number code are supplemented to 4 bits by using a difference complement method;
[0017] When the first slice data is successfully transmitted from the presentation domain to the service domain, the progress information of the first slice data is marked as successful.
[0018] Optionally, cutting the analysis data packet into a plurality of first slice data includes:
[0019] Determine whether the size of the analyzed data packet exceeds a set size threshold, and if so, terminate the exchange process;
[0020] If it has not exceeded, determine whether the analysis data packet has interrupted transmission according to the progress information in the task progress information table; if not, slice the analysis data packet from the beginning, and number the first slice data after cutting from sequence number 0; if the transmission is interrupted, start slicing from the data after the transmission is interrupted, and number the slice data after cutting according to the sequence number of the slice data at the point where the transmission is interrupted.
[0021] Optionally, cutting the analysis data packet into a plurality of first slice data includes:
[0022] Slicing the analysis data packet according to the set cutting size Size to obtain N first slice data, wherein if the size X of the analysis data packet can be divided by the set cutting size Size, then N=X / Size; if the size X of the analysis data packet cannot be divided by the set cutting size Size, then N=X / Size+1;
[0023] Wherein, after the analysis data packet is cut, N first slice data and an end mark information are formed, and the end mark information indicates that the previous first slice data is the last slice data.
[0024] Optionally, in the service domain, when the first plurality of slice data are received, fusing and restoring the plurality of first slice data includes:
[0025] It is judged whether the reception of the analysis data packet is complete according to the sequence number of the last first slice data received and the sequence number of the first slice data received in the middle. If the reception is complete, multiple first slice data are merged and restored.
[0026] Optionally, when there are analysis data packets created by multiple tasks in the presentation domain and transmitted to the business domain at the same time, resources are added to the presentation domain and the business domain to achieve parallel transmission of multiple tasks.
[0027] Optionally, adding resources to the display domain and the business domain includes adding network resources, server internal resources and server CPU resources to the display domain and the business domain;
[0028] Monitor resources with maximum resource utilization, obtain the remaining network bandwidth W, the remaining server memory C, and the number of server threads R, and obtain the minimum computing resource Q, where the minimum value among W, C, and R is the minimum computing resource;
[0029] When Q>0, a transmission thread is started to transmit the analysis data packets corresponding to multiple tasks. When the task is completed, the thread is released; when Q=0, it means that the resources are full and it is necessary to wait for the exchange task to end and release the resources.
[0030] Optionally, in the service domain, when the first plurality of slice data are received, fusing and restoring the plurality of first slice data includes:
[0031] According to the length codes of all the received first slice data and the serial number codes of all the first slice data, it is determined whether all the first slice data have been received. When the reception is completed, all the first slice data are spliced and merged according to the serial number code of each first slice data.
[0032] According to a second aspect of the present invention, a data exchange and fusion device based on a cross-domain environment is provided, including a presentation domain and a service domain; the presentation domain includes:
[0033] A creation module, used to trigger task creation based on the data to be analyzed, and to create at least one task, each of which has a unique task code;
[0034] The task scanning module is used to scan tasks regularly. For tasks that have been created but not executed, the task execution process is triggered. Based on the scanned tasks, the corresponding analysis data packet is created and the address of the analysis data packet is stored in the task information table.
[0035] A first transmission module is used to start data transmission for a task that has scanned and created an analysis data packet, cut the analysis data packet into a plurality of first slice data, mark each first slice data, and transmit the plurality of first slice data to a business domain;
[0036] A first receiving module, configured to receive a plurality of second slice data transmitted by a service domain;
[0037] A display module is used to fuse and restore the plurality of second slice data after receiving the plurality of second slice data, and render and display the restored result data packets;
[0038] The business domain includes:
[0039] A second receiving module, configured to receive a plurality of first slice numbers transmitted by a presentation domain;
[0040] A fusion module, configured to, when receiving the first plurality of slice data, fuse and restore the plurality of first slice data, and perform business analysis on the restored analysis data packet based on the business analysis model to form a result data packet;
[0041] The second transmission module is used to slice the result data packet in the service domain and transmit the sliced second slice data to the presentation domain.
[0042] The present invention provides a data exchange and fusion method and device based on a cross-domain environment. For data exchange in a multi-domain environment, according to the offset slicing algorithm of the data packet, the data exchange can continue even after the data transmission is interrupted, which improves the full utilization of resources and solves the problem of stable data exchange between multiple domains in the case of network fluctuations; it includes efficient and stable data exchange in different domains to achieve data consistency and timeliness requirements for analysis needs. This mode solves the business analysis and display capabilities in the display domain, improves the diversification and timeliness of data in the natural resource display domain, and enriches the business support capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flow chart of a data exchange and fusion method based on a cross-domain environment provided by the present invention;
[0044] Figure 2 It is a schematic diagram of the overall process of the data exchange and fusion method based on the cross-domain environment;
[0045] Figure 3 A schematic diagram of the process of processing and parsing exchanged data packets in a multi-domain environment;
[0046] Figure 4 It is a schematic diagram of the exchange data fusion process in a multi-domain environment;
[0047] Figure 5 It is a schematic diagram of the multi-instance transmission process of exchanging data in a multi-domain environment;
[0048] Figure 6 A schematic diagram of the structure of a data exchange and fusion device based on a cross-domain environment provided by the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0050] The purpose of the present invention is to realize a method for data exchange and fusion in a multi-domain environment to meet the needs of ensuring data consistency in the business domain and display domain environment at different exchange frequencies in the natural resources business and the analysis needs of various business data in the natural resources display domain.
[0051] In order to meet this demand, the present invention adopts the transmission and fusion of slice offset verification on data, which not only ensures the transmission efficiency, security and reliability of data, but also solves the problem of real-time business applications.
[0052] Figure 1 A flow chart of a data exchange and fusion method based on a cross-domain environment provided by the present invention is as follows: Figure 1 and Figure 2 As shown, the data exchange and fusion method includes:
[0053] Step 1: In the display domain, trigger task creation based on the data to be analyzed, create at least one task, and each task has a unique task code.
[0054] It is understandable that the display domain is a network environment mainly for data display and cannot store the full amount of natural resource business data. The business domain is mainly for natural resource business applications and stores the full amount of natural resource business data. The data that needs to be analyzed in the display domain is transmitted to the business domain for analysis, and then the business domain returns the analysis results to the display domain for display.
[0055] The creation of triggered tasks is based on the data that needs to be analyzed in the display domain. Multiple tasks are created. Each task represents the data that needs to be analyzed and contains the basic information for creating the task. A unique task code is generated. The task code is 36 bits long. The task code is used throughout the entire task execution process to achieve the purpose of leaving traces throughout the entire process.
[0056] Step 2: Scan the tasks regularly. For tasks that have been created but not executed, trigger the task execution process. Based on the scanned tasks, create corresponding analysis data packets and store the addresses of the analysis data packets in the task information table.
[0057] It can be understood that based on the created tasks, the tasks are scanned in the form of a timer. For tasks that have been created but not yet executed, the task execution is actively triggered. The task scanning mainly includes two steps: scanning tasks and building analysis data packets (that is, data packets that need to be analyzed), and the address of the analysis data packet is stored in the task information table.
[0058] Step 3: for the task that has scanned and created the analysis data packet, start data transmission, cut the analysis data packet into multiple first slice data, mark each first slice data, and transmit the multiple first slice data to the business domain.
[0059] It is understandable that the analysis data packet generated in step 2 needs to be transmitted to the business domain for analysis. During the transmission process, if the data packet is too large, generally exceeding a file of more than 100M, the data transmission is easily disconnected under the condition of network fluctuations, and needs to be retransmitted after disconnection, which consumes a lot of time and resources. Therefore, the present invention implements data slicing offset and data verification to achieve data interruption caused by network fluctuations, and can continue to transmit after reconnection, thereby solving the efficiency and stability of cross-domain data exchange.
[0060] Specifically, for the task that has scanned and built the data packet, start the data transmission, which includes data processing and data transmission. Figure 3 , data processing mainly determines the size of the analysis data packet, and determines whether the size of the analysis data packet exceeds the set size threshold. If it exceeds, the exchange process is terminated, that is, no cross-domain exchange is performed. If the size of the analysis data packet does not exceed the set size threshold, it is determined whether the analysis data packet is interrupted in transmission according to the progress information in the task progress information table. If not, the analysis data packet is sliced from the beginning, and the first slice data after cutting is numbered from sequence number 0; if the transmission is interrupted, the data after the transmission is interrupted is sliced, and the slice data after cutting is numbered according to the sequence number of the slice data at the transmission interruption.
[0061] For example, if the size of the analysis data packet exceeds 20G, the exchange operation is not performed; if the size of the analysis data packet does not exceed 20G, first query the record information table to see whether the analysis data packet has been exchanged before. If it has been exchanged before, continue the exchange from the previous interruption point; if it has not been exchanged before, exchange from the beginning of the data of the analysis data packet, and record the exchange process in the record information table. For example, if it is found that the analysis data packet has been exchanged before, and the terminal exchange is at the position of the 50th slice data, then the exchange continues from the 51st slice data. If the analysis data packet has not been exchanged before, the entire data of the analysis data packet needs to be exchanged. At this time, the analysis data packet is cut to obtain multiple first slice data after cutting, and each first slice data is marked and recorded. Among them, the marking of each first slice data is to add a 36-bit task code, a 4-bit slice length code, a 4-bit slice sequence number code and a 1-bit data status code to the stream data header of the existing data packet, and the information of each mark is stored in the task progress information. Data transmission refers to the transmission of marked sliced data from the display domain to the business domain or from the business domain to the display domain. If the transmission is successful, the progress information of the sliced data is marked as successful, otherwise it is marked as failed. The data packet size shall not exceed 3MB*9998=29994MB=29G, and the 1-dimensional status data are 0 and 1 respectively. 0 means transmission from the display domain to the business domain, and 1 means transmission from the business domain to the display domain.
[0062] When the analysis data packet is sliced, the analysis data packet is sliced according to the set cutting size Size to obtain N first slice data, wherein if the size X of the analysis data packet can be divided by the set cutting size Size, then N=X / Size; if the size X of the analysis data packet cannot be divided by the set cutting size Size, then N=X / Size+1;
[0063] Wherein, after the analysis data packet is cut, N first slice data and an end mark information are formed, and the end mark information indicates that the previous first slice data is the last slice data.
[0064] Assume that the size of the analysis data packet is X (M), the maximum analysis data packet shall not exceed 20G, and the analysis data packet can be divided into N slice data by every 3M, then N = Math.ceil (X / 3.0). Each divided slice data is verified and calibrated. In the header of each slice data, 36-bit task code, 4-bit slice length code, 4-bit slice sequence code and 1-bit exchange status code are spliced to form a new data packet for transmission. The slice length code and slice sequence code are supplemented to 4 bits using the difference complement method.
[0065] Define the 4-bit difference filling method name Algorithm, the method implementation method:
[0066] Function String Algorithm(String data){
[0067] int len=data.length;
[0068] if(len>=4){
[0069] data=data.substr(0,4);
[0070] }else{
[0071] while(len<4){
[0072] data='0'+data;
[0073] len=data.length;
[0074] }
[0075] }
[0076] return data;
[0077] }
[0078] For example, if the data of the existing presentation domain 310 (M) needs to be exchanged to the business domain, the rules are as follows:
[0079] The number of slice data N = Math.ceil (310 / 3.0) = 104;
[0080] Slice length encoding: 0104, exchange status code is 0, single slice result data stream A n ;
[0081] The first slice data: [36-bit task code]||0104||Algorithm(0)||0||A1;
[0082] The second slice data: [36-bit task code]||0104||Algorithm(1)||0||A2;
[0083] Nth slice data: [36-bit task code]||0104||Algorithm(N-1)||0||A n ;
[0084] End mark information: [36-bit task code] ||0104||0101||0||, located after the Nth slice data, indicating that the previous slice data is the last slice data.
[0085] Step 4, in the business domain, when the first plurality of slice data is received, the plurality of first slice data are fused and restored, and business analysis is performed on the restored analysis data packet based on the business analysis model to form a result data packet.
[0086] It is understandable that the analysis data packet is cut into multiple first slice data in the presentation domain and transmitted to the business domain. The business domain receives the data packet. When the first multiple slice data are received in the business domain, the multiple first slice data are fused and restored.
[0087] Among them, the business domain can determine whether all slice data have been received based on the sequence number of the last slice data received and the sequence number of the slice data received in the middle. If the reception is completed, the data packets are restored and merged according to the exchange status code of the task code.
[0088] For details, see Figure 4 The design of the exchange data fusion process mainly involves fusing the slice data exchanged from the display domain to the business domain or from the business domain to the display domain to form complete data that can be used for business applications. The specific design process is as follows:
[0089] Receive the slice data stream in the business domain, intercept the first 45 bits of the received slice data stream, and convert the remaining data into a slice file. Decode the first 45 bits of the intercepted code, and the 0-35 bits are the task code. If the folder name does not exist, create a folder with the folder name as the code. The 36-39 bits are encoded as the number of slice data M, and the 40-43 bits are encoded as the slice sequence number m. If M=m+1, it means that the current slice data is the last slice, otherwise it is not. At the same time, the slice data is stored in the corresponding folder in sequence, and the slice name is the corresponding sequence number name.
[0090] If it is detected that the current slice data is the last slice data, the file serial number in the current directory is monitored again to see if it is continuous to ensure the integrity of the data. If the data is complete, all the slice data are merged to restore the original file data, and the slice data are deleted one by one.
[0091] For the fused data packets, business analysis is performed on the fused analysis data packets based on the business analysis model to form a result data packet.
[0092] Step 5: Slice the result data packet in the service domain, and transmit the sliced second slice data to the presentation domain.
[0093] It is understandable that after the business domain performs business analysis on the fused analysis data packet, the analyzed result data packet needs to be transmitted to the display domain for rendering and display. Similarly, in the process of exchanging data from the business domain to the display domain, there will be problems such as data packets being too large, resulting in transmission interruption or failure. Therefore, the business domain also needs to cut the result data packet into multiple slices of data and exchange them to the display domain. The method for the business domain to slice and mark the result data packet is the same as the method for the display domain to slice and mark the analysis data packet, and will not be repeated here. The business domain cuts the analyzed result data packet into multiple second slices of data.
[0094] Step 6: After the display domain receives the plurality of second slice data, the plurality of second slice data are merged and restored, and the restored result data packets are rendered and displayed.
[0095] It is understandable that after the presentation domain receives the plurality of second slice data, it merges and renders them for presentation.
[0096] It should be noted that when there are multiple tasks in the presentation domain that create analysis data packets and transmit them to the business domain at the same time, resources are added to the presentation domain and the business domain to achieve parallel transmission of multiple tasks, thereby improving the efficiency of data exchange under limited resource conditions.
[0097] See also Figure 5 , showing the multi-instance transmission process of exchanging data in a multi-domain environment. Among them, adding resources in the display domain and business domain includes adding network resources, server resources and server CPU resources in the display domain and business domain; monitoring resources with maximum resource utilization, obtaining the remaining network bandwidth W, the remaining server memory C and the number of server threads R, and obtaining the minimum computing resource Q, where the minimum value among W, C and R is the minimum computing resource.
[0098] When Q>0, a transmission thread is started to transmit the analysis data packets corresponding to multiple tasks. When the task is completed, the thread is released; when Q=0, it means that the resources are full and it is necessary to wait for the exchange task to end and release the resources.
[0099] Specifically, the resources designed for data transmission and exchange include network resources, server resources and server CPU resources. In order to ensure the stability of the server, the utilization rate of all resources shall not exceed 80%. When resources exist, the data transmission thread is started once to achieve maximum resource utilization.
[0100] Using 80% of the maximum resources for resource monitoring, we can obtain the remaining network bandwidth W, the remaining server memory C, and the number of server threads R. The minimum computing resource Q is the minimum value among W, C, and R. When Q>0, a transmission thread can be started for data transmission, and the thread will be released when the task is completed; when Q<=0, it means that the resources are full and we need to wait for the exchange task to end and release the resources.
[0101] See also Figure 6 The present invention also provides a data exchange and fusion device based on a cross-domain environment, characterized in that it includes a display domain and a business domain; the display domain includes:
[0102] A creation module 61, used to trigger task creation based on the data to be analyzed, and to create at least one task, each task having a unique task code;
[0103] The task scanning module 62 is used to scan tasks regularly, trigger the task execution process for tasks that have been created but not executed, create corresponding analysis data packets based on the scanned tasks, and store the addresses of the analysis data packets in the task information table;
[0104] A first transmission module 63 is used to start data transmission for a task that has scanned and created an analysis data packet, cut the analysis data packet into a plurality of first slice data, mark each first slice data, and transmit the plurality of first slice data to the service domain;
[0105] A first receiving module 64, configured to receive a plurality of second slice data transmitted by a service domain;
[0106] The display module 65 is used for fusing and restoring the plurality of second slice data after receiving the plurality of second slice data, and rendering and displaying the restored result data packet;
[0107] The business domain includes:
[0108] A second receiving module 66, configured to receive a plurality of first slice numbers transmitted by the presentation domain;
[0109] A fusion module 67 is used to fuse and restore the first plurality of slice data after receiving the first plurality of slice data, and perform business analysis on the restored analysis data packet based on the business analysis model to form a result data packet;
[0110] The second transmission module 68 is used to slice the result data packet in the service domain and transmit the sliced second slice data to the presentation domain.
[0111] It can be understood that the data exchange and fusion device based on a cross-domain environment provided by the present invention corresponds to the data exchange and fusion method based on a cross-domain environment provided by the aforementioned embodiments. The relevant technical features of the data exchange and fusion device based on a cross-domain environment can refer to the relevant technical features of the data exchange and fusion method based on a cross-domain environment, which will not be repeated here.
[0112] The data exchange and fusion method and device based on a cross-domain environment provided by the embodiment of the present invention have the following advantages:
[0113] (1) In the case of network fluctuations, the present invention achieves stable and efficient data transmission by slicing and offsetting large data packets according to rules, thereby ensuring the integrity and timeliness of data in a shorter time;
[0114] (2) In the case of missing data in the display domain, the present invention implements the display domain initiating analysis requests in real time through data exchange and fusion, and the business domain performs analysis, while exchanging the analysis data results and information to the display domain for integrated display;
[0115] (3) The present invention monitors the exchange of data in a multi-domain environment, records the process of data change, and can track the data, especially the status of slice data transmission, to ensure that data transmission can continue when the network is restored after disconnection.
[0116] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0117] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0121] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0122] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data exchange and fusion method based on a cross-domain environment, characterized in that: include: In the display domain, trigger task creation based on the data to be analyzed, create at least one task, and each task has a unique task code; Scan tasks regularly. For tasks that have been created but not executed, trigger the task execution process. Create corresponding analysis data packets based on the scanned tasks and store the addresses of the analysis data packets in the task information table. For a task that has scanned and created an analysis data packet, start data transmission, cut the analysis data packet into a plurality of first slice data, mark each first slice data, and transmit the plurality of first slice data to the business domain; In the business domain, when the first plurality of slice data is received, the plurality of first slice data are fused and restored, and business analysis is performed on the restored analysis data packet based on the business analysis model to form a result data packet; Slicing the result data packet in the service domain, and transmitting the sliced second slice data to the presentation domain; After the display domain receives the plurality of second slice data, it fuses and restores the plurality of second slice data, and renders and displays the restored result data packets; The marking of each first slice data includes: Adding marking information to the stream data header of each first slice data, and storing the marking information in the task progress information table, the marking information includes a 36-bit task code, a 4-bit slice length code, a 4-bit slice mark sequence number code and a 1-bit data status code, wherein the data status code is 0 or 1, 0 indicates transmission from the presentation domain to the service domain, and 1 indicates transmission from the service domain to the presentation domain, and the slice length code and the slice mark sequence number code are supplemented to 4 bits by using a difference complement method; When the first slice data is successfully transmitted from the presentation domain to the service domain, the progress information of the first slice data is marked as successful.
2. The data exchange and fusion method based on a cross-domain environment according to claim 1 is characterized in that: Cutting the analysis data packet into a plurality of first slice data includes: Determine whether the size of the analyzed data packet exceeds a set size threshold, and if so, terminate the exchange process; If it has not exceeded, determine whether the analysis data packet has interrupted transmission according to the progress information in the task progress information table; if not, slice the analysis data packet from the beginning, and number the first slice data after cutting from sequence number 0; if the transmission is interrupted, start slicing from the data after the transmission is interrupted, and number the slice data after cutting according to the sequence number of the slice data at the point where the transmission is interrupted.
3. The data exchange and fusion method based on a cross-domain environment according to claim 1 is characterized in that: Cutting the analysis data packet into a plurality of first slice data includes: Slicing the analysis data packet according to the set cutting size Size to obtain N first slice data, wherein if the size X of the analysis data packet can be divided by the set cutting size Size, then N=X / Size; if the size X of the analysis data packet cannot be divided by the set cutting size Size, then N=X / Size+1; Wherein, after the analysis data packet is cut, N first slice data and an end mark information are formed, and the end mark information indicates that the previous first slice data is the last slice data.
4. The data exchange and fusion method based on a cross-domain environment according to claim 3 is characterized in that: In the service domain, when the first plurality of slice data are received, the plurality of first slice data are merged and restored, including: It is judged whether the reception of the analysis data packet is complete according to the sequence number of the last first slice data received and the sequence number of the first slice data received in the middle. If the reception is complete, multiple first slice data are merged and restored.
5. The data exchange and fusion method based on a cross-domain environment according to claim 1 is characterized in that: When there are multiple analysis data packets created by tasks in the presentation domain and transmitted to the business domain at the same time, resources are added to the presentation domain and the business domain to achieve parallel transmission of multiple tasks.
6. The data exchange and fusion method based on a cross-domain environment according to claim 5 is characterized in that: Adding resources in the display domain and the business domain includes adding network resources, server resources and server CPU resources in the display domain and the business domain; Monitor resources with maximum resource utilization, obtain the remaining network bandwidth W, the remaining server memory C, and the number of server threads R, and obtain the minimum computing resource Q, where the minimum value among W, C, and R is the minimum computing resource; When Q>0, a transmission thread is started to transmit the analysis data packets corresponding to multiple tasks. When the task is completed, the thread is released; when Q=0, it means that the resources are full and it is necessary to wait for the exchange task to end and release the resources.
7. The data exchange and fusion method based on a cross-domain environment according to claim 4 is characterized in that: In the service domain, when the first plurality of slice data are received, the plurality of first slice data are merged and restored, including: According to the length codes of all the received first slice data and the serial number codes of all the first slice data, it is determined whether all the first slice data have been received. When the reception is completed, all the first slice data are spliced and merged according to the serial number code of each first slice data.
8. A data exchange and fusion device based on a cross-domain environment, characterized in that: It includes a display domain and a business domain; the display domain includes: A creation module, used to trigger task creation based on the data to be analyzed, and to create at least one task, each of which has a unique task code; The task scanning module is used to scan tasks regularly. For tasks that have been created but not executed, the task execution process is triggered. Based on the scanned tasks, the corresponding analysis data packet is created and the address of the analysis data packet is stored in the task information table. A first transmission module is used to start data transmission for a task that has scanned and created an analysis data packet, cut the analysis data packet into a plurality of first slice data, mark each first slice data, and transmit the plurality of first slice data to a business domain; A first receiving module, configured to receive a plurality of second slice data transmitted by a service domain; A display module is used to fuse and restore the plurality of second slice data after receiving the plurality of second slice data, and render and display the restored result data packets; The business domain includes: A second receiving module, configured to receive a plurality of first slice numbers transmitted by a presentation domain; A fusion module, configured to, when receiving the first plurality of slice data, fuse and restore the plurality of first slice data, and perform business analysis on the restored analysis data packet based on the business analysis model to form a result data packet; A second transmission module, configured to slice the result data packet in the service domain, and transmit the sliced second slice data to the presentation domain; The marking of each first slice data includes: Adding marking information to the stream data header of each first slice data, and storing the marking information in the task progress information table, the marking information includes a 36-bit task code, a 4-bit slice length code, a 4-bit slice mark sequence number code and a 1-bit data status code, wherein the data status code is 0 or 1, 0 indicates transmission from the presentation domain to the service domain, and 1 indicates transmission from the service domain to the presentation domain, and the slice length code and the slice mark sequence number code are supplemented to 4 bits by using a difference complement method; When the first slice data is successfully transmitted from the presentation domain to the service domain, the progress information of the first slice data is marked as successful.
Citation Information
Patent Citations
Connection and switching method of the service data and network data of the application system
CN101056262A
Data communication method based on two sets of unidirectional boundaries
CN109547162A
Data transmission method, data transmission system, equipment and storage medium
CN112152759A
Cross-level cross-domain data transmission method and device
CN116192535A
Import and export trade data exchange system
CN116455649A
