Nuclear power project progress cross-domain two-way data synchronization docking system and method based on SM4 encryption
By using the national cryptographic SM4 layered encryption and dynamic token authentication module, combined with standardized data packet assembly and intelligent packaging modules, the security and efficiency issues of cross-domain data transmission in nuclear power projects have been solved. This has enabled bidirectional automatic data synchronization between WE-LINK and the MOM system, meeting national cryptographic compliance requirements, reducing manual maintenance costs, and improving transmission efficiency.
Patent Information
- Application Number
- CN202611185645.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-06
- Publication Date
- 2026-11-27
AI Technical Summary
In nuclear power projects, the cross-domain data transmission between the owner's WE-LINK platform and the supplier's MOM system suffers from insufficient data security, low transmission efficiency, data redundancy, lack of closed-loop management, and inconsistent formats, making it difficult to meet national cryptographic compliance requirements.
It adopts the national cryptographic SM4 layered encryption and dynamic token authentication module, combined with standardized data packet assembly and intelligent packaging module, to realize file fragment encryption and MD5 verification, support SFTP and HTTPS dual-link transmission, and provide full and incremental packaging, fragment transmission and status closed-loop feedback to ensure data security and transmission efficiency.
It has achieved bidirectional automatic synchronization of nuclear power project progress data, improved data security and transmission efficiency, reduced manual maintenance costs, met national cryptographic compliance requirements, and achieved full-chain traceability.
Smart Images

Figure CN123184846A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a cross-domain bidirectional data synchronization and docking system and method for nuclear power project progress based on the national cryptographic standard SM4. Background Technology
[0002] In nuclear power projects, the owner's WE-LINK platform and the supplier's MOM system belong to two isolated networks: the group's internal network and the external supplier's public network. Project progress data (including equipment information, component information, and process information) needs to be frequently exchanged between multiple heterogeneous systems. Existing technical solutions typically use the following methods for data interaction: 1. Manual offline interaction: Suppliers export Excel progress reports and send them to the owner via email or offline. The owner then manually enters the data into the WE-LINK system. Disadvantages: Data lag, high error rate of manual entry, inability to synchronize process changes in real time, and the huge volume of data for multiple batches of components in nuclear power projects, resulting in extremely high manual maintenance costs.
[0003] II. Point-to-Point Interface Integration: Early methods used unencrypted FTP or standard HTTP interfaces to transmit CSV progress files, with one-way push: the owner sends contract plans, and the supplier sends back progress updates, supporting only full data pushes. Current common data transmission solutions suffer from the following problems: ① Insufficient data security: Existing inter-system data transmission often uses plaintext transmission or simple Base64 encoding, lacking effective encryption mechanisms, making it easy for sensitive project data to be stolen or tampered with during transmission. ② Low transmission efficiency: For large project progress data packages (including structured data files, attachment lists, and attachments), existing solutions typically use a one-time full transmission, which can easily cause network congestion, transmission timeouts, or even data loss when the data volume is too large. ③ Difficult data synchronization: There are data format differences and inconsistent field mappings between the project progress data source (such as the Welink platform) and the target system, requiring significant manual intervention for data verification and conversion. ④ Lack of status feedback mechanism: In existing solutions, the file sender cannot accurately know the receiver's processing status, and there is no timely retry or alarm when sending or receiving fails. ⑤ Weak identity authentication: The lack of a unified identity authentication and access control mechanism for inter-system interface calls poses a risk of unauthorized system access.
[0004] In summary, the existing technology has the following main shortcomings: (1) Data encryption standards are not uniform, lacking token dynamic authentication + national cryptographic layered encryption, making it difficult to meet the requirements of national information security level protection; (2) Large file transfer reliability is poor, directories are stored separately by vendor, and do not support breakpoint resume and fragment verification; (3) The cross-system data mapping relationship is complex, and the manual maintenance cost is high; (4) Lack of complete data transmission lifecycle management (send-receive-feedback). Summary of the Invention
[0005] The purpose of this invention is to provide a cross-domain bidirectional data synchronization and docking system and method for nuclear power project progress based on the national cryptographic standard SM4. It can realize bidirectional automatic data synchronization between WE-LINK and the supplier MOM, taking into account national cryptographic compliance, internal and external network security isolation, efficient data transmission and full-link traceability. It solves the defects of existing nuclear power project WE-LINK and supplier MOM systems in cross-domain data transmission, such as insufficient security, low transmission efficiency, data redundancy, lack of closed-loop management and inconsistent formats.
[0006] In a first aspect, the present invention provides a cross-domain bidirectional data synchronization and docking system for nuclear power project progress based on the national cryptographic standard SM4, comprising: The national cryptographic SM4 layered encryption and dynamic token authentication module is used to encrypt each individual byte stream of the fragmented file with SM4, and to perform MD5 verification on the original file and the individual fragmented file to verify whether the file has been tampered with or lost. The standardized data packet assembly and intelligent packaging module is used to standardize the content of compressed packages, unify the naming rules of compressed packages, and automatically package compliant ZIP packages in full / incremental quantities; WE-LINK distributes a planning data link module to filter planning data that has been changed or is in progress at fixed times every day. The data is packaged into a standardized CSV ZIP file and uploaded to the DMZ interface system via SFTP. The MOM polls or actively calls the interface to obtain the corresponding vendor data package and decrypts it into the database. The supplier progress feedback link module is used to automatically synchronize planning data issued by WE-LINK in the MOM system, package the progress ZIP according to the agreed rules, the interface system polls and pulls the file, decrypts and verifies it, WE-LINK reads the data and matches it with the original planning sheet based on the unique business identifier, and backfills the manufacturing progress field. The file fragmentation and status feedback module is used to transmit files in fragments and provide status feedback. After the sending and receiving ends have completed their processing, they call the feedback interface. The interface system persistently stores the entire link status to achieve full-link traceability.
[0007] In one possible implementation, in the national cryptographic SM4 layered encryption and dynamic token authentication module, all API interface request headers are required to carry an SM4 encrypted token. The token plaintext consists of a JSON string composed of a 10-digit Unix timestamp, a unique code of the interface system, and an extensible extension field. The key uses national cryptographic SM4 encryption to generate the token ciphertext. In the case of double-layer SM4 encryption, the token encryption uses a unified fixed key, while the text or file encryption generates a unique business key based on each vendor's sysname. The keys of different vendors are independent of each other, providing file encryption and decryption and string data encryption and decryption. Each fragment of the file's byte stream is encrypted with SM4. At the same time, the original file and each fragment of the file are calculated with MD5 hashes. The MD5 parameters are compared during upload or retrieval to verify whether the file has been tampered with or lost.
[0008] In another possible implementation, in the standardized data package assembly and intelligent packaging module, when the three-layer content specification of the compressed package is used, the ZIP compressed package contains three types of files: a structured CSV business data table, a list of attachments recording the name, size, format, and category of the attachments, and business attachments including but not limited to drawings and certification documents; the unified compressed package naming rule is: [Business Type]_[Contract Order Number]_[Data Standard Version YYYYMMDD]_[17-digit Timestamp Data Package Version].zip; at the same time, the push mode is adaptive, with full packaging for the first connection, and automatic switching to incremental packaging for subsequent planning upgrades or progress changes.
[0009] In other possible implementations, in the WE-LINK planning data link module, WE-LINK's daily fixed-time scheduling service filters the planning data of contracts in execution or planning upgrades, generates CSV files by single contract planning as the smallest unit, and packages them into ZIP files; uploads them to the DMZ interface system's FTP pending directory via SFTP, and stores them in isolated directories by supplier sysname; the interface system polls and scans the pending directory, the supplier MOM calls the public network API via HTTPS, the interface system matches the directory by manufacturer, retrieves data packets and encrypts and returns them, and the MOM receives, decrypts, and stores the data packets.
[0010] In another possible implementation, in the supplier progress feedback link module, when the operator is on the MOM system data coordination module page, the Welink source data is automatically synchronized. The MOM system packages the progress into a ZIP according to the agreed rules, and uploads the data in segments via HTTPS by calling the document upload interface. Each segment of the file is encrypted with SM4. After verifying the token, MD5, and file validity, the interface system stores the file in the FTP pending directory. The interface system polls to retrieve the file, decrypts and verifies it, and WE-LINK reads the data and matches it with the original planning order based on the unique business identifier, and then fills in the manufacturing progress field.
[0011] In another possible implementation, in the fragmented transmission and status closed-loop feedback module, during file fragmented transmission, large files are automatically split, and both uploading and retrieval support fragmented serial transmission; when WE-LINK retrieves the progress file, it first calls the fileMeta interface to obtain file metadata, and then repeatedly calls fileContent to obtain encrypted fragments one by one according to the fragment number and merge and restore the source file; during status closed-loop feedback, after the sending and receiving ends have completed processing, the feedback interface is called, with input parameters including the source file MD5, feedback type, business status, and remarks; the interface system persistently stores the entire link status, and failure triggers exception log retention to achieve full-link traceability.
[0012] Secondly, this invention also provides a method for cross-domain bidirectional data synchronization and docking of nuclear power project progress based on the national cryptographic standard SM4, comprising the following steps: S1, Integration Initialization: The supplier provides the system's English abbreviation sysname, configures the interface system's IP whitelist, generates the corresponding encryption key, and agrees on the CSV field standard; S2, Automatic Distribution of Owner-Side Planning: WE-LINK filters changed or ongoing planning at fixed times every day, packages standardized CSV files into ZIP, and pushes them to the DMZ-FTP vendor-specific directories via SFTP; MOM polls or actively calls interfaces to obtain corresponding vendor data packages, and decrypts and stores them in the database using SM4. S3, Supplier Progress Data Maintenance and Packaging Reporting: MOM automatically synchronizes planning data issued by WE-LINK, and users can query by work order, edit single entries or import and update parts and process progress in batches from Excel; clicking the send button, the system automatically packages the full / incremental data into a compliant ZIP package; S4, fragmented encrypted upload to the relay interface system: call the dispatch interface, fragmented SM4 encrypted upload, carrying full verification parameters, the interface system verifies and enters the database into the FTP; S5, WE-LINK sharded retrieval, parsing and database entry: WE-LINK first checks the metadata in fileMeta, then downloads, decrypts and merges fileContent shards in a loop, and matches the original planning order with the unique business identifier to fill in the progress. S6, Two-way status closed-loop feedback: After WE-LINK / MOM completes processing, it calls feedbackStatus to report the processing result, and the interface system records the full-link log.
[0013] Thirdly, embodiments of the present invention also provide a computer-readable storage medium comprising a program that, when run on an electronic device, causes the electronic device to perform any of the possible implementations of the first aspect described above.
[0014] Fourthly, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a program that can run on the processor, and when the program is executed by the processor, the electronic device performs the method as described in any of the embodiments of the first aspect above.
[0015] Compared with the prior art, the present invention has the following advantages: (1) Data security enhancement (national cryptographic compliance): This invention adopts the national cryptographic SM4 commercial cryptography layered encryption to replace the traditional plaintext or AES non-national cryptographic encryption, which can meet the national cryptographic control standards for nuclear power confidential data, prevent transmission eavesdropping and data tampering, reduce the risk of information leakage to 0, and pass the nuclear power confidential security review.
[0016] (2) Improved data transmission efficiency: The incremental packetization of this invention replaces the full repeated transmission, reducing the average data packet size from 400-600MB to 30-80MB; the fragmented transmission can solve the problem of full retransmission when large file transmission is interrupted, and the file transmission failure rate under network fluctuations can be reduced from 15.3% to 1.2%, and the daily data transmission bandwidth usage can be reduced by 62%.
[0017] (3) Reduced labor costs: This invention replaces offline manual Excel data entry and data transmission. WE-LINK and MOM are fully automated and synchronized. The original monthly manual reconciliation and data entry time for a single project was about 120 person-days, which can be reduced to less than 12 person-days after implementation.
[0018] (4) Full-link traceability and improved fault diagnosis efficiency: The status feedback interface and full-link log recording of this invention automatically retain the status of data packet loss or parsing anomalies, and the fault location can be shortened from an average of 4 hours to less than 30 minutes.
[0019] (5) Multi-vendor compatibility: The present invention isolates the vendor’s independent FTP directory and independent sysname key. When adding a new vendor, only a whitelist and system code need to be configured. The integration cycle can be shortened from 7-15 days to 1-2 days, thereby rapidly expanding supply chain access. It is worth promoting and applying. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the overall three-layer network architecture of an embodiment of the present invention (internal network WE-LINK → DMZ interface system → public network MOM supplier). Figure 2 This is a flowchart illustrating the WE-LINK → Supplier Planning and Distribution process in an embodiment of the present invention. Figure 3 This is a flowchart illustrating the progress feedback process from supplier MOM to WE-LINK in an embodiment of the present invention. Figure 4 This is an MD5 verification chain flowchart of the logic block diagram for national cryptographic encryption and token authentication in an embodiment of the present invention; Figure 5 This is a flowchart illustrating the double-layer encryption process of a file, based on the logic of national cryptographic encryption and token authentication in an embodiment of the present invention. Figure 6 This is a flowchart illustrating the token generation and authentication process of the national cryptographic encryption and token authentication logic block diagram in this invention. Figure 7 This is a schematic diagram of an electronic device structure provided in an embodiment of the present invention. Detailed Implementation
[0022] In the description of embodiments of the present invention, the terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be a limitation of the invention. As used in the specification and appended claims of the present invention, the singular expressions “a,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present invention, “at least one” and “one or more” refer to one or more (including two). The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.
[0023] References to "one embodiment" or "some embodiments" as used in this specification mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the invention. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically emphasized. The term "connection" includes both direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features.
[0024] In embodiments of the present invention, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or implementation described as "exemplarily" or "for example" in embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or implementations. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0025] Reference Figure 1 The diagram shown is a schematic of the overall three-layer network architecture (internal network WE-LINK → DMZ interface system → public network MOM provider), which is briefly described below: From top to bottom: Group intranet layer (WE-LINK) → DMZ isolation zone (interface system + SFTP / FTP server + firewall) → Supplier public network layer (MOM system); Communication links: The intranet to the DMZ uses HTTPS / SFTP encrypted transmission; the DMZ internal interface system interacts with the FTP server; the DMZ to the supplier's public network uses HTTPS to call the API through the firewall. Security isolation: Dual-layer firewall protection ensures isolation between the internal network and the public network.
[0026] Reference Figure 2 The diagram shown is a flowchart of the WE-LINK supplier planning and distribution process, which is briefly explained below: Package and upload: WE-LINK packages the planning data into a ZIP file (SM4 encrypted) and uploads it to the DMZ SFTP server; Polling and fetching: The DMZ interface system periodically polls the FTP server, fetches and decrypts new files upon discovery; API delivery: The interface system calls the supplier MOM's / dispatch interface via HTTPS to send data in fragments; Data storage: MOM decryption, MD5 verification, data storage and status feedback.
[0027] Reference Figure 3 The diagram shown is a flowchart of the supplier MOM → WE-LINK progress feedback process, which is briefly explained below: Front-end editing: Users can maintain progress data in batches on the MOM page by using "Export Template → Excel Edit → Import Update"; Packaged upload: The MOM backend packages the data into a ZIP file, encrypts it with SM4, and then uploads it in fragments via HTTPS to the / dispatch interface of the DMZ interface system; FTP landing: The interface system receives fragments, reassembles and decrypts them, and stores the complete file to the FTP server; WE-LINK fetch: WE-LINK periodically queries the metadata interface ( / fileMeta), retrieves file information, fetches it in chunks ( / fileContent), reassembles and decrypts it, and then populates it back into the local database; Closed-loop feedback: After WE-LINK completes processing, it calls / feebackStatus to return the status.
[0028] Reference Figures 4 to 6 The diagram shown is a logical block diagram of Chinese national cryptographic encryption and token authentication, which is briefly explained below: Token Generation and Authentication: The requester assembles the time (10-digit timestamp), sysname (system code), and extendedFields into JSON, encrypts it using the fixed key CAMACDemo1234567 with SM4, and inserts the resulting token string into the request header. The interface system decrypts the token and verifies the validity of the timestamp and the legality of the sysname. The file is encrypted with two layers: the text data is encrypted with SM4 using a dynamic key (based on sysname) agreed upon with the interface system, and then transmitted via HTTPS (the token in the header serves as the outer layer of protection). MD5 verification link: The sender calculates the MD5 value of the original file and sends it with the data; the receiver recalculates the MD5 upon receipt, and if the MD5 matches, the file is confirmed to be intact; otherwise, a retransmission is requested.
[0029] This invention addresses the shortcomings of existing nuclear power project WE-LINK and supplier MOM systems in cross-domain data transmission, such as insufficient security, low transmission efficiency, data redundancy, lack of closed-loop management, and inconsistent formats. It provides a cross-system docking solution for nuclear power project progress based on national cryptographic SM4 layered encryption, SFTP+HTTPS dual-link isolated transmission, standardized compressed package encapsulation, intelligent switching between full and incremental transmission, and bidirectional transmission and reception with status closed-loop feedback. This solution enables bidirectional automatic data synchronization between WE-LINK and supplier MOM systems, while ensuring compliance with national cryptographic standards, secure isolation between internal and external networks, efficient data transmission, and full-link traceability.
[0030] This invention consists of three parts: hardware deployment architecture, five major functional software modules, and a two-way data interaction method. It connects two ends: the WE-LINK platform (owner's end) and the supplier's MOM system (manufacturing end). A DMZ zone interface relay system is deployed in the middle as an internal and external network isolation hub. The whole is divided into two major business scenarios: [WE-LINK → Supplier (planning and distribution)] and [Supplier → WE-LINK (progress feedback)].
[0031] The three-layer isolation deployment of the overall hardware network architecture of this invention is as follows: 1) Group intranet layer (WE-LINK service cluster): Deploy WE-LINK database, scheduling and push service, and log center; 2) DMZ Isolation Transit Layer (Interface System): Deploy public network API gateway, FTP file service, interface proxy, polling monitoring service, and encryption verification engine, and enable IP whitelist access mechanism; 3) External vendor public network layer (MOM system): Each vendor independently deploys the MOM progress management module, assigns an independent sysname system code, divides FTP independent directories according to vendor, and stores data in isolation.
[0032] Network communication rules: Intranet → DMZ uses SFTP protocol, public network provider → DMZ uses HTTPS encryption protocol, cloud firewall + whitelist dual access control.
[0033] On the one hand, this invention provides a cross-domain bidirectional data synchronization and docking system for nuclear power project progress based on the national cryptographic standard SM4. This system is used to implement the methods described in the following method embodiments, and the system includes the following five core software functional modules: The national cryptographic SM4 layered encryption and dynamic token authentication module is used to encrypt each individual byte stream of the fragmented file with SM4, and to perform MD5 verification on the original file and the individual fragmented file to verify whether the file has been tampered with or lost. The standardized data packet assembly and intelligent packaging module is used to standardize the content of compressed packages, unify the naming rules of compressed packages, and automatically package compliant ZIP packages in full / incremental quantities; WE-LINK distributes a planning data link module to filter planning data that has been changed or is in progress at fixed times every day. The data is packaged into a standardized CSV ZIP file and uploaded to the DMZ interface system via SFTP. The MOM polls or actively calls the interface to obtain the corresponding vendor data package and decrypts it into the database. The supplier progress feedback link module is used to automatically synchronize planning data issued by WE-LINK in the MOM system, package the progress ZIP according to the agreed rules, the interface system polls and pulls the file, decrypts and verifies it, WE-LINK reads the data and matches it with the original planning sheet based on the unique business identifier, and backfills the manufacturing progress field. The file fragmentation and status feedback module is used to transmit files in fragments and provide status feedback. After the sending and receiving ends have completed their processing, they call the feedback interface. The interface system persistently stores the entire link status to achieve full-link traceability.
[0034] In other possible implementation schemes, the SM4 layered encryption and dynamic token authentication module (security base) is used. 1) Token header verification mechanism: All API interface request headers are required to carry an SM4 encrypted token; the token plaintext consists of a JSON string composed of a 10-digit Unix timestamp (time), a unique system-specific code (sysname), and extendedFields. The key is encrypted using the national cryptographic standard SM4 to generate the token ciphertext. Interface requests without a valid token are directly intercepted to prevent unauthorized calls and replay attacks.
[0035] 2) Two-layer SM4 encryption strategy: Token encryption: unified fixed key; Text or file encryption: Each vendor's sysname generates a unique business key, and keys from different vendors are independent of each other; utility classes are provided: encryptFile / decryptFile (file encryption / decryption), encryptData / decryptData (string data encryption / decryption), and each fragmented file's byte stream is encrypted using SM4; 3) MD5 Integrity Verification: MD5 hashes are calculated for the original file and single-segment files respectively. The MD5 parameters are compared during upload or retrieval to verify whether the file has been tampered with or lost.
[0036] In yet another possible implementation, in the standardized data packet assembly and intelligent packaging module... 1) Three-layer content specification of compressed package: The ZIP compressed package contains three types of files: ① Structured CSV business data table (EquipmentBOM.csv contains equipment BOM and process / planning data tables, with configurable separators # / commas); ② Attachment list (recording attachment name, size, format, and category); ③ Business attachments (drawings, supporting documents, optional); 2) Unified compressed package naming rules: [Business Type]_[Contract Order Number]_[Data Standard Version YYYYMMDD]_[17-digit Timestamp Data Package Version].zip; 3) Adaptive push mode: Full packaging for the first integration, and automatic switching to incremental packaging for subsequent planning upgrades or progress changes, packaging only the changed line data to reduce the data package size.
[0037] In another possible implementation, in the WE-LINK data link module (Scenario 1: WE-LINK → Supplier MOM), 1) WE-LINK uses a daily fixed-time scheduling service to filter out data on ongoing or planned upgrade contracts, generating CSV files by single contract planning as the smallest unit, and packaging them into a ZIP file; 2) Upload to the DMZ interface system FTP "to be processed directory" via SFTP, and store it in isolated directories by supplier sysname; 3) The interface system polls (every 15 minutes) to scan the directory to be processed; the supplier MOM calls the public API via HTTPS, and the interface system matches the directory by vendor, retrieves data packets, and returns them in encrypted form; 4) The MOM receives and decrypts data packets, stores them on the ground, and uses them for subsequent process and component progress reporting.
[0038] In another possible implementation, in the supplier progress feedback link module (Scenario 2: MOM→WE-LINK), 1) On the MOM system data coordination module page: Welink source data automatic synchronization → query data by project → export Excel for batch modification or single-item editing of parts and process progress → confirm and click
Send to Owner
[0039] In another possible implementation, in the fragmented transmission and reception and state closed-loop feedback module... 1) File chunked transmission: Large files are automatically split, and both upload (dispatch) and retrieval (fileContent) support serial transmission of chunks; WE-LINK retrieves the progress file in two steps: first, it calls the fileMeta interface to obtain file metadata (filename, total number of chunks, source file MD5, size), and then it calls fileContent one by one according to the chunk number to obtain the encrypted chunks and merge them to restore the source file; 2) Status feedback closed-loop interface (feebackStatus): After the sending and receiving ends have completed processing, the feedback interface is called. The input parameters include the source file md5, feedback type type (0 source feedback / 1 received feedback), business status status (0 success / 1 failure), and remark. The interface system persistently stores the status of the entire link. Failure triggers exception log retention, realizing full-link traceability.
[0040] On the other hand, this embodiment of the invention provides a schematic diagram of the steps for a cross-domain bidirectional data synchronization and docking method for nuclear power project progress based on the national cryptographic standard SM4. It should be understood that this method can be executed by various modules of the aforementioned system. The method may include the following steps, with clearly defined data input, processing procedures, and output results between each step.
[0041] S1. Docking Initialization The supplier provides the system's abbreviation "sysname," configures the interface system's IP whitelist, generates corresponding encryption keys, and agrees on CSV field standards.
[0042] S2. Owner-side planning automatically distributed S201: At a fixed time each day, WE-LINK filters changes or plans in progress, packages them into standardized CSV ZIP files, and pushes them to the DMZ-FTP vendor directories via SFTP; S202: MOM polls or actively calls the interface to obtain the corresponding vendor's data packet, and SM4 decrypts and stores it in the database.
[0043] S3. Supplier progress data maintenance and packaged reporting S301: MOM automatically synchronizes with WE-LINK to distribute planning data. Users can query by work order, edit single entries, or import and update parts and process progress in batches from Excel. S302: Click the send button, and the system will automatically create a compliant ZIP package (full / incremental).
[0044] S4. Upload fragmented encrypted data to the relay interface system. Call the dispatch interface to upload fragmented SM4 encrypted data, carrying full verification parameters. The interface system verifies and stores the data in the FTP database.
[0045] S5.WE-LINK sharding, parsing, and loading into the database WE-LINK first retrieves metadata from fileMeta, then downloads, decrypts, and merges fileContent segments in a loop, and finally matches the original project plan with the unique business identifier to update the progress.
[0046] S6. Two-way state closed-loop feedback After WE-LINK / MOM completes the processing, it calls feedbackStatus to report the processing result, and the interface system records the entire chain log.
[0047] The working principle of this invention is mainly as follows: 1. Security Management Principle: The system employs a four-layer protection approach: dual-layer SM4 national cryptographic encryption, dynamic time-sensitive token (with timestamp to prevent replay), MD5 file hash verification, and IP whitelist. This approach addresses the risk of leakage and tampering of confidential data across public networks and meets the national cryptographic compliance requirements of the nuclear power industry. 2. Internal and external network isolation principle: The DMZ relay interface system acts as an isolation hub. The internal network WE-LINK uses SFTP, while the external network provider uses HTTPS. The firewall isolates direct connections between the internal and external networks, avoiding the security risks of the internal network being exposed to the public network. 3. Data simplification principle: initial full data and incremental data upon change are adaptively packaged, based on the unique primary key of the business to map data, avoiding duplicate transmission of unchanged data; standardized compressed package structure unifies the formats of various vendors, reducing parsing costs; 4. Fragmentation + Closed-Loop Principle: Large files are fragmented and transmitted to avoid transmission failure due to excessively large single files; a three-level interface (upload, pull metadata, pull file, status feedback) forms a closed loop for sending and receiving, and packet loss or failure can be quickly located through feedback logs.
[0048] In this invention, the WE-LINK push notification cycle is once daily at midnight; the FTP directory polling cycle of the interface system is once every 15 minutes. The token timestamp is a 10-digit second-level Unix time. The chunking rule is: chunks=0 means no chunking, and chunks greater than 0 are uploaded / downloaded sequentially according to the chunk number. The compressed package version number is a 17-digit millisecond timestamp.
[0049] The above method will be illustrated with specific examples below.
[0050] Example: Application of the owner and supplier A (DZMES system) nuclear power equipment project 1. Initial configuration: Supplier A's system code sysname=DZMES, the interface system is enabled with a production IP whitelist, a dedicated SM4 key is generated based on DZMES, and the fixed token key is CAMACDemo1234567; CSV fields are configured according to the interface data standard, and the field separator is #.
[0051] 2. Planning and Distribution (Scenario 1): Every day at midnight, WE-LINK filters the ongoing contract planning for project number 007-CS-B-2026-C61, generates EquipmentBOM.csv, packages it and names it as: Contract Planning_001-CS-B-2026-C61_20260608_20260608062647809.zip, and uploads it to Supplier A's dedicated directory in DMZ-FTP via SFTP; the interface polls every 15 minutes, and Supplier A's MOM system periodically calls the public network interface to pull data packets, which are then decrypted with SM4 and automatically stored in the owner's project progress module in the MOM.
[0052] 3. Progress feedback (Scenario 2) ① Supplier A's engineer enters the MOM project progress module, inputs the project number, and queries the corresponding equipment and component data; ② Export to Excel to batch modify process completion status and component manufacturing progress, then import back into the system; after confirming that everything is correct, click
Send to Owner
[0053] 4. Status Feedback: After WE-LINK completes the data import process, it calls the feedbackStatus interface. If type=1 (feedback received) or status=0 (success), the interface system stores this transmission log. If the file is corrupted, status=1 (failure), and the remarks indicate that the file verification failed. The system generates an exception work order.
[0054] 5. Implementation Results: Supplier A and the owner's data synchronization is completed in T+1, eliminating the need for offline reports. The monthly manual docking time has been reduced from 132 person-days to 11 person-days, and the transmission failure rate is less than 1%.
[0055] In other embodiments of the present invention, an electronic device 700 is disclosed, which can integrate the above-described system, such as... Figure 7 As shown, the hardware components include: one or more processors 701; a memory 702; a display 703; one or more application programs (not shown); and one or more computer programs 704. These components can be connected via one or more communication buses 705. The one or more computer programs 704 are stored in the memory 702 and configured to be executed by the one or more processors 701. The one or more computer programs 704 include instructions.
[0056] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method described in the above-described method embodiments. Specific beneficial effects can be found in the above-described method embodiments.
[0057] The present invention also provides a computer program product that, when executed by a computer, implements the method described in the above-described method embodiments. Specific beneficial effects can be found in the above-described method embodiments.
[0058] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0059] In the various embodiments of this invention, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0060] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.
[0061] The above description is merely a specific implementation of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of the present invention should be covered within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention should be determined by the protection scope of the claims.
Claims
1. A cross-domain bidirectional data synchronization and docking system for nuclear power project progress based on the national cryptographic standard SM4, characterized in that, include: The national cryptographic SM4 layered encryption and dynamic token authentication module is used to encrypt each byte stream of a fragmented file using SM4, and to perform MD5 verification on the original file and each fragmented file to verify whether the file has been tampered with or lost. The standardized data packet assembly and intelligent packaging module is used to standardize the content of compressed packages, unify the naming rules of compressed packages, and automatically package compliant ZIP packages in full / incremental quantities; WE-LINK distributes a planning data link module to filter planning data that has been changed or is in progress at fixed times every day. The data is packaged into a standardized CSV ZIP file and uploaded to the DMZ interface system via SFTP. The MOM polls or actively calls the interface to obtain the corresponding vendor data package and decrypts it into the database. The supplier progress feedback link module is used to automatically synchronize planning data issued by WE-LINK in the MOM system, package the progress ZIP according to the agreed rules, the interface system polls and pulls the file, decrypts and verifies it, WE-LINK reads the data and matches it with the original planning sheet based on the unique business identifier, and backfills the manufacturing progress field. The file fragmentation and status feedback module is used to transmit files in fragments and provide status feedback. After the sending and receiving ends have completed their processing, they call the feedback interface. The interface system persistently stores the entire link status to achieve full-link traceability.
2. The system as described in claim 1, characterized in that: In the aforementioned SM4 layered encryption and dynamic token authentication module, all API interface request headers are required to carry an SM4 encrypted token. The token plaintext consists of a JSON string composed of a 10-digit Unix timestamp, a unique code for the interface system, and extensible extension fields. The key uses SM4 encryption to generate the token ciphertext. In the case of dual-layer SM4 encryption, token encryption uses a unified fixed key, while text or file encryption generates a unique business key based on each vendor's sysname. The keys from different vendors are independent of each other, providing file encryption and decryption as well as string data encryption and decryption. Each fragment of a file is encrypted using SM4. At the same time, MD5 hashes are calculated for the original file and each fragment of a file. The MD5 parameters are compared during upload or retrieval to verify whether the file has been tampered with or lost.
3. The system as described in claim 1, characterized in that: In the standardized data package assembly and intelligent packaging module, when the three-layer content specification of the compressed package is implemented, the ZIP compressed package contains three types of files: a structured CSV business data table, a list of attachments recording the name, size, format, and category of the attachments, and business attachments including but not limited to drawings and certification documents; the unified compressed package naming rule is: [Business Type]_[Contract Order Number]_[Data Standard Version YYYYMMDD]_[17-digit Timestamp Data Package Version].zip; at the same time, the push mode is adaptive, with full packaging for the first connection, and automatic switching to incremental packaging for subsequent planning upgrades or progress changes.
4. The system as described in claim 1, characterized in that: In the WE-LINK planning data distribution module, WE-LINK schedules services at fixed times every day to filter planning data for contracts that are in execution or planning upgrades, generates CSV files by single contract planning as the smallest unit, packages them into ZIP files, and uploads them to the DMZ interface system FTP pending directory via SFTP, storing them in isolated directories by supplier sysname. The interface system polls and scans the directory to be processed. The supplier MOM calls the public API via HTTPS. The interface system matches the directory by vendor, retrieves data packets, encrypts and returns them. The MOM receives the data packets, decrypts them, and stores them on the ground.
5. The system as described in claim 1, characterized in that: In the supplier progress feedback link module, when the operator is on the MOM system data coordination module page, the Welink source data is automatically synchronized. The MOM system packages the progress into a ZIP according to the agreed rules, and uploads the data in segments via HTTPS by calling the document upload interface. Each segment of the file is encrypted with SM4. After verifying the token, MD5, and file validity, the interface system stores the data in the FTP pending directory. The interface system polls to retrieve the file, decrypts and verifies it, and WE-LINK reads the data and matches it with the original planning order based on the unique business identifier, and then fills in the manufacturing progress field.
6. The system as described in claim 1, characterized in that: In the segmented transmission and status closed-loop feedback module, large files are automatically split during file segmented transmission, and both uploading and retrieval support segmented serial transmission. When WE-LINK retrieves the progress file, it first calls the fileMeta interface to obtain file metadata, and then calls fileContent one by one according to the segment number to obtain encrypted segments and merge and restore the source file. During status closed-loop feedback, the feedback interface is called after the sending and receiving ends have completed processing. The input parameters include the source file MD5, feedback type, business status, and remarks. The interface system persistently stores the entire link status, and failure triggers exception logs for retention, so as to achieve full-link traceability.
7. A method for cross-domain bidirectional data synchronization and docking of nuclear power project progress based on the national cryptographic standard SM4, characterized in that, Includes the following steps: S1, Integration Initialization: The supplier provides the system's English abbreviation sysname, configures the interface system's IP whitelist, generates the corresponding encryption key, and agrees on the CSV field standard; S2, Automatic Distribution of Owner-Side Planning: WE-LINK filters changed or ongoing planning at fixed times every day, packages standardized CSV files into ZIP, and pushes them to the DMZ-FTP vendor-specific directories via SFTP; MOM polls or actively calls interfaces to obtain corresponding vendor data packages, and decrypts and stores them in the database using SM4. S3, Supplier Progress Data Maintenance and Packaging Reporting: MOM automatically synchronizes planning data issued by WE-LINK, and users can query by work order, edit single entries or import and update parts and process progress in batches from Excel; clicking the send button, the system automatically packages the full / incremental data into a compliant ZIP package; S4, fragmented encrypted upload to the relay interface system: call the dispatch interface, fragmented SM4 encrypted upload, carrying full verification parameters, the interface system verifies and enters the database into the FTP; S5, WE-LINK sharded retrieval, parsing and database entry: WE-LINK first checks the metadata in fileMeta, then downloads, decrypts and merges fileContent shards in a loop, and matches the original planning order with the unique business identifier to fill in the progress. S6, Two-way status closed-loop feedback: After WE-LINK / MOM completes processing, it calls feedbackStatus to report the processing result, and the interface system records the full-link log.
8. A computer-readable storage medium storing a program therein, characterized in that, When the program is executed by the processor, it implements the method as described in claim 7.
9. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a program that can run on the processor, and when the program is executed by the processor, causes the electronic device to perform the method as described in claim 7.
