A local area network data security transmission method and system

By using automatic download and data migration software modules in the local area network, combined with MinioDB's distributed storage, fast and safe data transmission at the transfer station is achieved, solving the problems of slow data transmission speed and security threats, ensuring data integrity and Security.

CN116132146BActive Publication Date: 2024-09-20XIAMEN MEIYA PICO INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310014346.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-05
Publication Date
2024-09-20
Estimated Expiration
2043-01-05

AI Technical Summary

Technical Problem

It is difficult to safely transmit data in a local area network with existing technology, and the data transmission speed at transfer stations is slow, which can easily lead to data backlog and security threats.

Method used

Through pre-written automatic download software scripts and data migration software modules, real-time download, verification and compression transmission of data are realized, and MinioDB is used for distributed storage to ensure fast and safe transmission of data at the transfer station, and through the whiteboard of the intranet server List and scheduled scripts perform data migration and verification.

Benefits of technology

It realizes fast and safe transmission of data in the transfer station, prevents data backlog and malware intrusion, reduces the risk of DOS attacks and brute force cracking, and ensures the integrity and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132146B
    Figure CN116132146B
Patent Text Reader

Abstract

The present invention proposes a method for secure transmission of data in a local area network, including: continuously downloading json data from a remote data production server through a pre-written automatic download software script; regularly generating a .my file to a disk Disk according to the successfully downloaded json data; regularly scanning the folders and subfolders generated by S1 through a pre-developed data migration software module; migrating to a temporary directory after verification based on the scanned file data, and deleting the source file; calling a file compression module to generate a compressed package, and uploading the compressed package to a MinioDB file server through an interface; calling a file decompression module through a pre-written timing script on an intranet server to store data in a temporary directory; the warehousing program confirms that the data has been completely migrated according to the .ok file. The temporary directory is used to solidify data in a timely manner to prevent incremental data contamination and achieve efficient transmission; the transit server is used to achieve physical isolation of internal and external networks, reducing DOS attacks and brute force cracking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data security, and in particular relates to a local area network data security transmission method and system thereof. Background Art

[0002] Network security has always been linked to data security. It is necessary to ensure that data can enter the local intranet safely to prevent data from being tampered with, viruses implanted, and malicious scripts disguised as real data files entering the intranet to damage the network environment and cause production safety accidents. Otherwise, at the very least, the server will go down or the system will crash, and at the worst, important internal data will be leaked. How to prevent the internal server cluster of an enterprise from being directly exposed to the public network and reduce the attack surface has become a difficult problem.

[0003] In view of the above, the data transfer station has become an excellent solution for physically isolating the intranet environment. Similar to the human brain, blood does not enter the brain directly, but passes through the isolation layer to filter nutrients before being transported in, preventing viruses and bacteria from directly invading brain cells. However, how to quickly and safely transmit data in the transfer station has become a new problem, which is to prevent data backlogs and ensure data security.

[0004] In view of this, it is very meaningful to propose a local area network data security transmission method and system. Summary of the invention

[0005] In order to solve the existing problems that data cannot be securely entered into a local area network and data is slowly transmitted securely in a transfer station, the present invention provides a local area network data secure transmission method and system thereof to solve the above-mentioned technical defects.

[0006] In a first aspect, the present invention provides a method for securely transmitting data in a local area network, the method comprising the following steps:

[0007] S1, continuously download JSON data from the remote data production server through a pre-written automatic download software script;

[0008] S2. According to the successfully downloaded json data, a .my file is regularly generated on the disk Disk. The file contains several pieces of data, and different types of data are stored separately in different folders;

[0009] S3, through the pre-developed data migration software module, regularly scans the folders and subfolders generated by S2 to obtain all file categories and basic file information;

[0010] S4, according to the file data obtained by S3 scanning, loop read the file text data, and perform json formatting and key key verification. After verification, migrate to a temporary directory and delete the source file;

[0011] S5. Call the file compression module to generate a compressed package, add temporary directory files to the compressed package one by one, delete temporary files, and upload the compressed package to the MinioDB file server through the interface;

[0012] S6. Open the intranet server whitelist, create a scheduled script pre-written in the intranet server, obtain files from MinioDB, call the file decompression module, and store the data in a temporary directory; and

[0013] S7. Further scan the temporary directory, create a confirmation file with the same name as .ok, and migrate the .my file to the target directory first. Then migrate the .ok file for the second time. The warehousing program confirms that the data has been completely migrated based on the .ok file.

[0014] Preferably, in S1, the pre-written automatic download software script includes a kafka data consumption module to open up the API network channel, obtain real-time data streams, and regularly flush the data obtained in the memory to the disk in the form of files.

[0015] Preferably, S2 also includes: scanning the file directory through a preset python data verification module, reading the file stream one by one, converting the string to a json array, and then looping to obtain each json object to verify whether the key and value values ​​meet expectations and whether there is abnormal field information.

[0016] Preferably, in S3, the pre-developed data migration software module includes a shutil file migration module, which transfers the data successfully scanned and verified in step S2 to a temporary directory one by one, and caches incremental files within a unit time through the temporary directory.

[0017] Preferably, in S5, the file compression module includes a zipFile compression module, which creates a compression package first, scans the temporary directory file information, adds the files one by one into the compression package, obtains the MinioDB connection, and submits the compressed file to the cloud storage service.

[0018] Preferably, S6 also includes: deploying MinioDB on the transfer machine, and opening a designated IP and port whitelist to the intranet server;

[0019] Download the file stored in S5 through the download module to obtain a compressed package, call the zipFile module to decompress and restore the data, store the file in the specified directory, and then delete the old stored data;

[0020] The download module scans the MinioDB buckets every ten minutes to confirm whether there are compressed packages of new data;

[0021] There is a time difference between the scanning cycles of uploading and downloading the compressed packages in S5 and S6.

[0022] Preferably, in S7, the warehousing program includes a java data warehousing module:

[0023] First, confirm the file integrity by scanning the .ok files in the disk directory;

[0024] Then read the .my file with the same name and convert it into a character stream through the file stream;

[0025] Then convert the string into a json object array, and loop through the object array to store it into the search-based database ElasticSearch.

[0026] In a second aspect, the present application also proposes a local area network data security transmission system, which specifically includes:

[0027] Automatic download software script module: used to open the API network channel, obtain real-time data stream, continuously download JSON data from the remote data production server, and regularly flush the data obtained in the memory to the disk in the form of files;

[0028] Data verification module: used to generate a .my file to the disk Disk at regular intervals according to the successfully downloaded json data;

[0029] Data migration software module: used to periodically scan generated folders and subfolders to obtain all file categories and basic file information;

[0030] File compression module: used to generate compressed packages, add temporary directory files to the compressed packages one by one, delete temporary files, and upload the compressed packages to the MinioDB file server through the interface;

[0031] Download module: used to download the stored files to get the compressed package, call the zipFile module to decompress and restore the data, store the files in the specified directory, and then delete the stored old data;

[0032] Import program module: used to confirm that the data has been completely migrated based on the .ok file.

[0033] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0035] Compared with the prior art, the beneficial results of the present invention are:

[0036] Through temporary directories, data can be solidified in a timely manner to prevent incremental data pollution and achieve efficient transmission. Through secondary data verification, data security can be ensured to effectively prevent script injection vulnerabilities and malicious disguised software intrusions. Through data compression transmission, the problem of data backlog that often occurs due to the network downlink being faster than the uplink is solved. Through distributed MinioDB storage, high availability of download nodes is achieved. Through transit servers, physical isolation of internal and external networks is achieved to reduce DOS attacks and brute force cracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and are used together with the description to explain the principles of the present invention. It will be easy to recognize other embodiments and many expected advantages of the embodiments because they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale with each other. The same reference numerals refer to corresponding similar parts.

[0038] Figure 1 is a diagram of an exemplary device architecture in which an embodiment of the present invention may be applied;

[0039] Figure 2 A schematic diagram of a flow chart of a method for securely transmitting data in a local area network according to an embodiment of the present invention;

[0040] Figure 3 A schematic flow chart of a data processing method in a method for securely transmitting data in a local area network according to an embodiment of the present invention;

[0041] Figure 4 A flowchart of a basic process from data source to storage analysis in a method for secure transmission of local area network data in one embodiment of the present invention;

[0042] Figure 5 A schematic diagram of a local area network data security transmission system according to an embodiment of the present invention;

[0043] Figure 6 It is a schematic diagram of the structure of a computer device suitable for implementing an electronic device of an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In the following detailed description, reference is made to the accompanying drawings, which form a part of the detailed description and are shown by illustrative specific embodiments in which the present invention can be put into practice. To this end, directional terms, such as "top", "bottom", "left", "right", "up", "down", etc., are used with reference to the orientation of the figures described. Because the parts of the embodiments can be positioned in several different orientations, directional terms are used for the purpose of illustration and are by no means limiting. It should be understood that other embodiments may be utilized or logical changes may be made without departing from the scope of the present invention. Therefore, the following detailed description should not be adopted in a limiting sense, and the scope of the present invention is defined by the appended claims.

[0045] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0046] Figure 1 An exemplary system architecture 100 is shown to which a method for processing information or an apparatus for processing information according to an embodiment of the present invention can be applied.

[0047] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0048] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0049] The terminal devices 101 , 102 , and 103 may be various electronic devices with communication functions, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0050] The server 105 may be a server that provides various services, such as a background information processing server that processes the verification request information sent by the terminal devices 101, 102, and 103. The background information processing server may analyze the received verification request information and obtain a processing result (such as verification success information that indicates that the verification request is a legitimate request).

[0051] It should be noted that the method for processing information provided in the embodiment of the present invention is generally executed by the server 105, and accordingly, the device for processing information is generally set in the server 105. In addition, the method for sending information provided in the embodiment of the present invention is generally executed by the terminal devices 101, 102, 103, and accordingly, the device for sending information is generally set in the terminal devices 101, 102, 103.

[0052] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or multiple software modules, which is not specifically limited here.

[0053] The purpose of the present invention is to provide a method based on distributed cloud storage, which can transmit the dispersed data streams in the form of files to the intranet after secondary parsing and verification at the transit layer and compression.

[0054] First, Figure 2 The embodiment of the present invention discloses a method for secure transmission of data in a local area network. Figure 2 and Figure 3 As shown, combined Figure 4 As shown, the method comprises the following steps:

[0055] S101, continuously downloading json data from a remote data production server through a pre-written automatic download software script;

[0056] Specifically, in this embodiment, by writing the kafka data consumption module function, the API network channel is opened, the real-time data stream is obtained, and the data obtained in the memory is periodically flushed to the disk in the form of a file. This is done by asynchronous data reception and data detection, using the disk for buffering, and also facilitates the selection of diverse data sources. The message queue is only one of the receiving methods. Data acquisition methods include but are not limited to other message middleware, database service query, API interface query call, cloud disk source file download, etc.

[0057] S102, according to the successfully downloaded json data, regularly generate a .my file to the disk Disk, the file contains a number of data, and different types of data are stored separately in different folders;

[0058] In this embodiment, a python data verification module is set to scan the file directory, read the file stream one by one, convert the string to a json array, and then loop to obtain each json object to verify whether the key and value values ​​meet expectations and whether there is any abnormal field information.

[0059] Python, with its inherent advantages in artificial intelligence and big data, is considered as a data governance language. However, it does not restrict the application of this patent in the development of language.

[0060] S103, using a pre-developed data migration software module, regularly scanning the folders and subfolders generated in S102 to obtain all file categories and basic file information;

[0061] Specifically, in this embodiment, the pre-developed data migration software module adopts the shutil file migration module to transfer the data successfully scanned and verified in step S102 one by one to a temporary directory, and caches the incremental files within a unit time in the temporary directory. When the subsequent steps are executed, file concurrency problems occur, resulting in incomplete data or abnormal software operation.

[0062] For example: shutil.copyfile(sourceURL,targetUrl);

[0063] S104, according to the file data scanned and obtained in S103, the file text data is read cyclically, and JSON formatting and key KEY verification are performed, and after verification, the data is migrated to a temporary directory, and the source file is deleted;

[0064] In this embodiment, a fixed directory is obtained to prevent the newly added data from being confused with the fixed data, and the number of files scanned and the file size are accumulated for tracking the migration progress.

[0065] S105, calling the file compression module to generate a compressed package, adding temporary directory files to the compressed package one by one, deleting temporary files, and uploading the compressed package to the MinioDB file server through the interface;

[0066] Specifically, in this embodiment, the compression module is a zipFile compression module, which creates a compression package first, scans the temporary directory file information, adds the files one by one into the compression package, obtains the MinioDB connection, and submits the compressed file to the cloud storage service. The compression service scans minio every minute to confirm whether the file has been downloaded. If it has been downloaded, a new file is generated immediately.

[0067] The following sample 1 is a sample data record during the software execution process. After compression, the data is about one-fifth of the original size, which greatly reduces the data upstream pressure and effectively alleviates the data backlog problem on the transit security server.

[0068] Sample 1:

[0069]

[0070] S106, open the intranet server whitelist, create a timer script pre-written in the intranet server, obtain files from MinioDB, call the file decompression module, and store the data in a temporary directory;

[0071] The intranet server does not open ports and only actively obtains file data. Direct communication between the intranet and the extranet is prohibited to prevent port scanning vulnerabilities.

[0072] Specifically, in this embodiment, the download module obtains a compressed package according to the file stored in step S105, calls the zipfile module to decompress and restore the data, and stores the file in a specified directory. Then, the old data in the storage is deleted, and the download module scans the MinioDB Buckets every ten minutes to confirm whether there is a new data compression package.

[0073] Among them, the time difference between the upload and download scan cycles is an important feature of this invention, which can prevent the execution cycles of internal and external code modules from overlapping and affecting the data refresh cycle.

[0074] The following sample 2 is sample data extracted by the download module during the decompression process, which is used to track the download progress and data migration amount.

[0075] Sample 2:

[0076]

[0077] Furthermore, deploy MinioDB on the transfer machine and open the specified IP and port whitelist to the intranet server. MinioDB is an object storage service based on the Apache License v2.0 open source protocol, compatible with the Amazon S3 cloud storage service interface, suitable for storing large-capacity unstructured data, such as pictures, videos, log files, backup data, and container / virtual machine images.

[0078] For example:

[0079]

[0080] S107, further scan the temporary directory, create a confirmation file with the same name as .ok, first migrate the .my file to the target directory, and then migrate the .ok file. The warehousing program confirms that the data has been completely migrated based on the .ok file.

[0081] Specifically, in this embodiment, the warehousing program uses a java data warehousing module, which confirms the file integrity by scanning the .ok file in the disk directory, then reads the .my file with the same name, converts the character stream through the file stream, and then converts the string into a json object array, and cyclically stores the object array into a retrieval database such as ElasticSearch or sorl.

[0082] Compared with the existing technology, the technical solution of the present invention has the remarkable effects of timely solidifying data through a temporary directory, preventing incremental data pollution and efficient transmission; ensuring data security through secondary data verification, effectively preventing script injection vulnerabilities and malicious disguised software intrusions; solving the problem of data backlog that often occurs due to the network downlink being faster than the uplink through data compression transmission; achieving high availability of download nodes through distributed MinioDB storage; and achieving physical isolation of internal and external networks through a transit server, reducing DOS attacks and brute force cracking.

[0083] In a second aspect, an embodiment of the present invention further discloses a local area network data security transmission system, such as Figure 5 As shown, the system specifically includes: an automatic download software script module 51, a data verification module 52, a data migration software module 53, a file compression module 54, a download module 55 and a warehousing program module 56.

[0084] Specifically, in this embodiment, the automatic download software script module 51 is used to open the API network channel, obtain real-time data stream, continuously download json data from the remote data production server, and regularly flush the data obtained in the memory to the disk in the form of files; the data verification module 52 is used to regularly generate a .my file to the disk Disk according to the successfully downloaded json data; the data migration software module 53 is used to regularly scan the generated folders and subfolders to obtain all file categories and basic file information; the file compression module 54 is used to generate a compressed package, add temporary directory files to the compressed package one by one, delete temporary files, and upload the compressed package to the MinioDB file server through the interface; the download module 55 is used to download the stored files to obtain the compressed package, and call the zipFile module to decompress and restore the data, and store the files in the specified directory, and then delete the stored old data; the warehousing program module 56 is used to confirm that the data has been completely migrated according to the .ok file.

[0085] Reference below Figure 6 , which shows an electronic device (eg Figure 1 A schematic diagram of the structure of a computer device 600 (a server or terminal device as shown). Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0086] like Figure 6As shown, the computer device 600 includes a central processing unit (CPU) 601 and a graphics processing unit (GPU) 602, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 603 or the program loaded from the storage part 609 to the random access memory (RAM) 606. In the RAM 604, various programs and data required for the operation of the device 600 are also stored. The CPU 601, GPU 602, ROM 603 and RAM 604 are connected to each other through a bus 605. An input / output (I / O) interface 606 is also connected to the bus 605.

[0087] The following components are connected to the I / O interface 606: an input section 607 including a keyboard, a mouse, etc.; an output section 608 including a display such as a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 609 including a hard disk, etc.; and a communication section 610 including a network interface card such as a LAN card, a modem, etc. The communication section 610 performs communication processing via a network such as the Internet. A drive 611 may also be connected to the I / O interface 606 as needed. A removable medium 612, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 611 as needed so that a computer program read therefrom is installed into the storage section 609 as needed.

[0088] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 610, and / or installed from the removable medium 612. When the computer program is executed by the central processing unit (CPU) 601 and the graphics processing unit (GPU) 602, the above-mentioned functions defined in the method of the present invention are executed.

[0089] It should be noted that the computer-readable medium described in the present invention may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus or device, or any combination of the above. More specific examples of computer-readable media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution device, apparatus or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution device, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0090] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0091] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0092] The modules involved in the embodiments of the present invention may be implemented in software or hardware, and the modules described may also be arranged in a processor.

[0093] As another aspect, the present invention further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device executes the method steps described in the first aspect of the present invention.

[0094] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.

Claims

1. A method for secure transmission of data in a local area network, characterized in that: The method comprises the following steps: S1, continuously download JSON data from the remote data production server through a pre-written automatic download software script; S2. According to the successfully downloaded json data, a .my file is regularly generated on the disk Disk. The file contains several pieces of data, and different types of data are stored separately in different folders; S3, through the pre-developed data migration software module, regularly scans the folders and subfolders generated by S2 to obtain all file categories and basic file information; S4, according to the file data obtained by S3 scanning, loop read the file text data, and perform json formatting and key key verification. After verification, migrate to a temporary directory and delete the source file; S5. Call the file compression module to generate a compressed package, add temporary directory files to the compressed package one by one, delete temporary files, and upload the compressed package to the MinioDB file server through the interface; S6. Open the intranet server whitelist, create a scheduled script pre-written in the intranet server, get the file from MinioDB, call the file decompression module, and store the data in a temporary directory; as well as S7. Further scan the temporary directory, create a confirmation file with the same name as .ok, and migrate the .my file to the target directory first. Then migrate the .ok file for the second time. The warehousing program confirms that the data has been completely migrated based on the .ok file.

2. The method for secure transmission of local area network data according to claim 1, characterized in that: In S1, the pre-written automatic download software script includes a Kafka data consumption module, which opens up the API network channel, obtains real-time data streams, and regularly flushes the data obtained in the memory to the disk in the form of files.

3. The method for secure transmission of local area network data according to claim 1, characterized in that: S2 also includes: scanning the file directory through the preset Python data verification module, reading the file stream one by one, converting the string to a JSON array, and then looping to obtain each JSON object to verify whether the key and value values ​​meet expectations and whether there is any abnormal field information.

4. The method for secure transmission of data in a local area network according to claim 1, characterized in that: In S3, the pre-developed data migration software module includes a shutil file migration module, which transfers the data successfully scanned and verified in step S2 to a temporary directory one by one, and caches incremental files within a unit time through the temporary directory.

5. The method for secure transmission of local area network data according to claim 1, characterized in that: In S5, the file compression module includes the zipFile compression module, which first creates a compression package, scans the temporary directory file information, adds the files one by one into the compression package, obtains the MinioDB connection, and submits the compressed file to the cloud storage service.

6. The method for secure transmission of data in a local area network according to claim 1, characterized in that: S6 also includes: deploying MinioDB on the transfer machine and opening the specified IP and port whitelist to the intranet server; Download the file stored in S5 through the download module to obtain a compressed package, call the zipFile module to decompress and restore the data, store the file in the specified directory, and then delete the old stored data; The download module scans the MinioDB buckets every ten minutes to confirm whether there are compressed packages of new data; There is a time difference between the scanning cycles of uploading and downloading the compressed packages in S5 and S6.

7. The method for secure transmission of data in a local area network according to claim 1, characterized in that: In S7, the warehousing program includes the Java data warehousing module: First, confirm the file integrity by scanning the .ok files in the disk directory; Then read the .my file with the same name and convert it into a character stream through the file stream; Then convert the string into a json object array, and loop through the object array to store it into the search-based database ElasticSearch.

8. A local area network data security transmission system, characterized in that: The system specifically includes: Automatic download software script module: used to open the API network channel, obtain real-time data stream, continuously download JSON data from the remote data production server, and regularly flush the data obtained in the memory to the disk in the form of files; Data verification module: used to generate a .my file to the disk Disk at regular intervals according to the successfully downloaded json data; Data migration software module: used to periodically scan generated folders and subfolders to obtain all file categories and basic file information; File compression module: used to generate compressed packages, add temporary directory files to the compressed packages one by one, delete temporary files, and upload the compressed packages to the MinioDB file server through the interface; Download module: used to download the stored files to get the compressed package, call the zipFile module to decompress and restore the data, store the files in the specified directory, and then delete the stored old data; Import program module: used to confirm that the data has been completely migrated based on the .ok file.

9. An electronic device, comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.