CN111010366A - Data transmission method and system based on reverse isolation technology - Google Patents

Data transmission method and system based on reverse isolation technology Download PDF

Info

Publication number
CN111010366A
CN111010366A CN201911071407.2A CN201911071407A CN111010366A CN 111010366 A CN111010366 A CN 111010366A CN 201911071407 A CN201911071407 A CN 201911071407A CN 111010366 A CN111010366 A CN 111010366A
Authority
CN
China
Prior art keywords
directory
service data
data file
service
changed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911071407.2A
Other languages
Chinese (zh)
Inventor
谭志荣
李翔
钟传凤
方莺辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai XJ Electric Co Ltd
Zhuhai Xujizhi Power System Automation Co Ltd
Original Assignee
Zhuhai XJ Electric Co Ltd
Zhuhai Xujizhi Power System Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai XJ Electric Co Ltd, Zhuhai Xujizhi Power System Automation Co Ltd filed Critical Zhuhai XJ Electric Co Ltd
Priority to CN201911071407.2A priority Critical patent/CN111010366A/en
Publication of CN111010366A publication Critical patent/CN111010366A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls

Abstract

The invention discloses a data transmission method and a data transmission system based on a reverse isolation technology, which belong to the field of power distribution system communication and are used for realizing the following steps: and establishing a to-be-sent directory and a receiving directory corresponding to each service to enable the transmitted data to correspond to the associated service, and transmitting the data to a receiving area corresponding to the service through the isolation area to finish the data transmission. The invention has the beneficial effects that: and fair transmission of all service data is ensured, all service data are compatible, and the novel reverse isolation requirement is met.

Description

Data transmission method and system based on reverse isolation technology
Technical Field
The invention relates to the field of power distribution system communication, in particular to a data transmission method and system based on a reverse isolation technology.
Background
The distribution automation system has a concept of partition, which is divided into a first partition and a fourth partition, servers of different partitions can not directly communicate and must rely on forward and reverse isolation, the first partition transmits data to the fourth partition through the forward isolation, the fourth partition transmits data to the first partition through the reverse isolation, the reverse isolation is a unidirectional file transmission device, files in an appointed directory of the server of the fourth partition are transmitted to an appointed directory of the server of the first partition, the files cannot be transmitted in the reverse direction, the forward isolation is a unidirectional data transmission device, an application program in the server of the first partition establishes connection with the server of the fourth partition through the forward isolation and transmits data, and in the distribution automation system, data transmitted between the first partition and the fourth partition are critical and are not lost.
However, in the current distribution automation system, a plurality of services transmit data through reverse isolation, and the existing transmission service has the following defects:
1) the use of C language for writing causes inconvenience in transplanting different platforms and compiling;
2) each service shares a folder to transmit files, which may cause individual service data to be blocked;
3) old services do not support the e-file (a proprietary xml) format.
Disclosure of Invention
In order to solve at least one of the technical problems in the prior art, an object of the present invention is to provide a data transmission method and system based on a reverse isolation technique, in which a to-be-transmitted directory and a received directory corresponding to each service are established, so that transmitted data corresponds to an associated service, and the transmitted data is transmitted to a receiving area of the corresponding service through an isolation area, thereby completing data transmission.
The first aspect of the technical scheme adopted by the invention to solve the problems is as follows: a data transmission method based on reverse isolation technology is characterized by comprising the following steps: s10, acquiring each service information, and establishing a to-be-sent directory and a receiving directory corresponding to each service; s20, periodically checking the content of each directory to be sent, and judging whether a newly added and/or changed service data file exists or not; s30, sending the new and/or changed service data file to an isolation area for coding processing and updating check; s40, periodically checking whether the newly added and/or changed service data file in the isolation area is changed, if so, performing the next periodic check, otherwise, sending the newly added and/or changed service data file to a corresponding receiving directory of the corresponding service.
Has the advantages that: and fair transmission of all service data is ensured, all service data are compatible, and the novel reverse isolation requirement is met.
According to the first aspect of the present invention, S10 further includes: s11, traversing all service information, and establishing a to-be-sent directory and a receiving directory of each service; s12, the directory to be sent and the receiving directory are separated by an isolation area.
According to the first aspect of the present invention, S20 further includes: s21, periodically checking the directory to be sent, judging whether a new and/or changed service data file exists, if so, entering a step S22, otherwise, performing the next periodic check; s22, judging whether the size of the new and/or changed service data file is changed in a certain period, if so, returning to the step S21, otherwise, executing the step S30, wherein the certain period can be defined by users.
S30 comprises S31, performing primary encoding and secondary encoding on the newly added and/or changed service data file in sequence; s32, sending the coded service data file to an isolated sending directory in an isolation area; and S33, the isolation sending directory moves the encoded service data file to an isolation receiving directory.
S40 further comprises S41, the isolation receiving directory periodically checks whether the size of the service data file changes in a certain period, if so, the step is returned to S31, otherwise, the step S42 is executed, wherein the certain period can be customized; s42, sequentially performing primary decoding and secondary decoding on the service data file; and S43, sending the decoded service data file to a corresponding receiving directory of a corresponding service, and completing transmission of corresponding service data.
The data transmission method according to the first aspect of the invention: the primary code is base64 code; the secondary code is e file code; the primary decoding is base64 decoding; the secondary decoding decodes the e-file.
According to the first aspect of the present invention, the service data file name format includes a service name and a time stamp.
The second aspect of the technical scheme adopted by the invention to solve the problems is as follows: a data transmission system based on reverse isolation technology, comprising: the catalog generation module is used for acquiring information of each service and establishing a to-be-sent catalog and a receiving catalog corresponding to each service; the directory checking module is used for regularly checking the content of each directory to be sent and judging whether a newly added and/or changed service data file exists or not; a file processing module; the system is used for coding the service data file and carrying out updating check; and the transmission module is used for sending the service data file to a specified directory.
Has the advantages that: and fair transmission of all service data is ensured, all service data are compatible, and the novel reverse isolation requirement is met.
According to a second aspect of the present invention, the file processing module further comprises: the coding unit is used for sequentially executing primary coding and secondary coding on the service data file of the directory to be sent; and the decoding unit is used for sequentially performing primary decoding and secondary decoding on the service data file transmitted to the isolation receiving directory.
According to a second aspect of the invention, the directory checking module further comprises: the directory traversal unit is used for periodically checking the directory to be sent and judging whether a new and/or changed service data file exists or not; and the file checking unit is used for checking whether the size of the service data file is changed or not and outputting a checking result.
Drawings
FIG. 1 is a flow diagram of a method in accordance with a preferred embodiment of the present invention;
FIG. 2 is a block diagram of a system in accordance with a preferred embodiment of the present invention;
fig. 3 is a business logic diagram in accordance with a preferred embodiment of the present invention.
Detailed Description
The conception, the specific structure and the technical effects of the present invention will be clearly and completely described in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the schemes and the effects of the present invention.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature or indirectly fixed or connected to the other feature. Furthermore, the descriptions of upper, lower, left, right, etc. used in the present disclosure are only relative to the mutual positional relationship of the constituent parts of the present disclosure in the drawings. As used in this disclosure, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any combination of one or more of the associated listed items.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("e.g.," such as "or the like") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
Referring to fig. 1, a flow chart of a method according to a preferred embodiment of the present invention,
the method comprises the following steps:
s10, acquiring each service information, and establishing a to-be-sent directory and a receiving directory corresponding to each service;
s20, periodically checking the content of each directory to be sent, and judging whether a newly added and/or changed service data file exists or not;
s30, sending the new and/or changed service data file to an isolation area for coding processing and updating check;
and S40, periodically checking whether the newly added and/or changed service data file in the isolation area is changed, if so, performing the next periodic check, otherwise, sending the newly added and/or changed service data file to the corresponding receiving directory of the corresponding service.
S10 further includes:
s11, traversing all service information, and establishing a to-be-sent directory and a receiving directory of each service;
and S12, the directory to be sent and the receiving directory are separated by an isolation area.
S20 further includes:
s21, periodically checking the directory to be sent, judging whether a new and/or changed service data file exists, if so, entering the step S22, otherwise, performing the next periodic check;
s22, judging whether the size of the new and/or changed service data file is changed in a certain period, if so, returning to the step S21, otherwise, executing the step S30, wherein the certain period can be defined by users.
S30 further includes:
s31, performing primary coding and secondary coding on the newly added and/or changed service data file in sequence;
s32, sending the coded service data file to an isolated sending directory in an isolation area;
and S33, the isolation sending directory moves the encoded service data file to the isolation receiving directory.
S40 further includes:
s41, the isolation receiving directory periodically checks whether the size of the service data file changes in a certain period, if so, the step S31 is returned, otherwise, the step S42 is executed, wherein the certain period can be defined by users;
s42, performing primary decoding and secondary decoding on the service data file in sequence;
and S43, sending the decoded service data file to a corresponding receiving directory of the corresponding service to complete transmission of the corresponding service data.
The primary code is base64 code;
the secondary coding is e file coding;
primary decoding is base64 decoding;
the secondary decoding decodes the e-file.
The service data file name format includes a service name and a timestamp.
Referring to fig. 2, which is a system configuration diagram according to a preferred embodiment of the present invention,
the method comprises the following steps: the catalog generation module is used for acquiring information of each service and establishing a to-be-sent catalog and a receiving catalog corresponding to each service; the directory checking module is used for regularly checking the content of each directory to be sent and judging whether a newly added and/or changed service data file exists or not; a file processing module; the system is used for coding the service data file and updating and checking the service data file; and the transmission module is used for sending the service data file to the specified directory.
The file processing module further comprises:
the encoding unit is used for sequentially executing primary encoding and secondary encoding on the service data file of the directory to be transmitted;
and the decoding unit is used for sequentially performing primary decoding and secondary decoding on the service data file transmitted to the isolated receiving directory.
The directory check module further comprises:
the directory traversal unit is used for periodically checking a directory to be sent and judging whether a new and/or changed service data file exists or not;
and the file checking unit is used for checking whether the size of the service data file is changed or not and outputting a checking result.
Referring to figure 3 is a business logic diagram in accordance with a preferred embodiment of the present invention,
the data files to be transmitted by different services are stored in a folder designated by the service, and the name format of the data files is as follows: business name + timestamp, such as call 20190506123156879; the invention checks each business sending catalog every second, if new files are found and the file size does not change within 1 second, the files are subjected to base64 coding and then e file coding, and the files are put into each business corresponding isolation sending catalog after the coding is finished; the reverse isolation transmits the files in the isolation sending directory to an isolation receiving directory of the receiving area; the invention checks each service isolation receiving catalog every second, if new files are found and the file size is not changed in 1 second, the file is decoded by e file and then by base64, and the files are put into the receiving catalogues corresponding to each service after decoding.
The data files to be transmitted by different services are stored in a folder designated by the service, and the name format of the data files is as follows: business name + timestamp, such as call 20190506123156879;
checking each service sending directory every second, if newly added files are found and the file size is not changed within 1 second, firstly coding the files by base64 and then coding e files, and after the coding is finished, putting the files into each service corresponding isolation sending directory;
the reverse isolation transmits the files in the isolation sending directory to an isolation receiving directory of the receiving area;
and checking each service isolation receiving directory every second, if newly added files are found and the sizes of the files are not changed within 1 second, decoding the files by using e files and then decoding by using base64, and putting the decoded files into the receiving directories corresponding to each service.
Each service processes the files in the receiving directory by itself.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, the operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
A computer program can be applied to input data to perform the functions described herein to transform the input data to generate output data that is stored to non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (10)

1. A data transmission method based on reverse isolation technology is characterized by comprising the following steps:
s10, acquiring each service information, and establishing a to-be-sent directory and a receiving directory corresponding to each service;
s20, periodically checking the content of each directory to be sent, and judging whether a newly added and/or changed service data file exists or not;
s30, sending the new and/or changed service data file to an isolation area for coding processing and updating check;
s40, periodically checking whether the newly added and/or changed service data file in the isolation area is changed, if so, performing the next periodic check, otherwise, sending the newly added and/or changed service data file to a corresponding receiving directory of the corresponding service.
2. The data transmission method based on the reverse isolation technique as claimed in claim 1, wherein the S10 further includes:
s11, traversing all service information, and establishing a to-be-sent directory and a receiving directory of each service;
s12, the directory to be sent and the receiving directory are separated by an isolation area.
3. The data transmission method based on the reverse isolation technique as claimed in claim 1, wherein the S20 further includes:
s21, periodically checking the directory to be sent, judging whether a new and/or changed service data file exists, if so, entering a step S22, otherwise, performing the next periodic check;
s22, judging whether the size of the new and/or changed service data file is changed in a certain period, if so, returning to the step S21, otherwise, executing the step S30, wherein the certain period can be defined by users.
4. The data transmission method based on the reverse isolation technique as claimed in claim 1, wherein the S30 further includes:
s31, performing primary coding and secondary coding on the newly added and/or changed service data file in sequence;
s32, sending the coded service data file to an isolated sending directory in an isolation area;
and S33, the isolation sending directory moves the encoded service data file to an isolation receiving directory.
5. The data transmission method based on the reverse isolation technique as claimed in claim 4, wherein the S40 further includes:
s41, the isolation receiving directory periodically checks whether the size of the service data file changes in a certain period, if so, the step S31 is returned, otherwise, the step S42 is executed, wherein the certain period can be defined by users;
s42, sequentially performing primary decoding and secondary decoding on the service data file;
and S43, sending the decoded service data file to a corresponding receiving directory of a corresponding service, and completing transmission of corresponding service data.
6. The data transmission method based on the reverse isolation technology as claimed in claim 5, wherein:
the primary code is base64 code;
the secondary code is e file code;
the primary decoding is base64 decoding;
the secondary decoding decodes the e-file.
7. The data transmission method based on the reverse isolation technology as claimed in any one of claims 1 to 6, wherein the service data file name format comprises a service name and a time stamp.
8. A data transmission system based on reverse isolation technology, comprising:
the catalog generation module is used for acquiring information of each service and establishing a to-be-sent catalog and a receiving catalog corresponding to each service;
the directory checking module is used for regularly checking the content of each directory to be sent and judging whether a newly added and/or changed service data file exists or not;
a file processing module; the system is used for coding the service data file and carrying out updating check;
and the transmission module is used for sending the service data file to a specified directory.
9. The reverse isolation technology-based data transmission system according to claim 8, wherein the file processing module further comprises:
the coding unit is used for sequentially executing primary coding and secondary coding on the service data file of the directory to be sent;
and the decoding unit is used for sequentially performing primary decoding and secondary decoding on the service data file transmitted to the isolation receiving directory.
10. The reverse isolation technology-based data transmission system of claim 8, wherein the directory check module further comprises:
the directory traversal unit is used for periodically checking the directory to be sent and judging whether a new and/or changed service data file exists or not;
and the file checking unit is used for checking whether the size of the service data file is changed or not and outputting a checking result.
CN201911071407.2A 2019-11-05 2019-11-05 Data transmission method and system based on reverse isolation technology Pending CN111010366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911071407.2A CN111010366A (en) 2019-11-05 2019-11-05 Data transmission method and system based on reverse isolation technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911071407.2A CN111010366A (en) 2019-11-05 2019-11-05 Data transmission method and system based on reverse isolation technology

Publications (1)

Publication Number Publication Date
CN111010366A true CN111010366A (en) 2020-04-14

Family

ID=70110982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911071407.2A Pending CN111010366A (en) 2019-11-05 2019-11-05 Data transmission method and system based on reverse isolation technology

Country Status (1)

Country Link
CN (1) CN111010366A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559469A (en) * 2020-10-16 2021-03-26 武汉中科通达高新技术股份有限公司 Data synchronization method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843352A (en) * 2012-05-15 2012-12-26 广东电网公司茂名供电局 Cross-physical isolation data transparent transmission system and method between intranet and extranet
CN103532838A (en) * 2013-10-09 2014-01-22 中国联合网络通信集团有限公司 Method and system for realizing data exchange between isolation networks
CN105245512A (en) * 2015-09-29 2016-01-13 深圳市云舒网络技术有限公司 Unidirectional file transmission method and server for implementing transmission method
CN110300120A (en) * 2019-07-10 2019-10-01 国电南京自动化股份有限公司 The hierarchical synchronization method and system of reverse data under the conditions of a kind of physical isolation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843352A (en) * 2012-05-15 2012-12-26 广东电网公司茂名供电局 Cross-physical isolation data transparent transmission system and method between intranet and extranet
CN103532838A (en) * 2013-10-09 2014-01-22 中国联合网络通信集团有限公司 Method and system for realizing data exchange between isolation networks
CN105245512A (en) * 2015-09-29 2016-01-13 深圳市云舒网络技术有限公司 Unidirectional file transmission method and server for implementing transmission method
CN110300120A (en) * 2019-07-10 2019-10-01 国电南京自动化股份有限公司 The hierarchical synchronization method and system of reverse data under the conditions of a kind of physical isolation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559469A (en) * 2020-10-16 2021-03-26 武汉中科通达高新技术股份有限公司 Data synchronization method and device

Similar Documents

Publication Publication Date Title
CN107592238B (en) Automatic test method and system of interface, service terminal and memory
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN104484353A (en) Data imaging method, data imaging device and database server
US20170146980A1 (en) Method and system of dynamically configuring functions of machine
CN101795270A (en) Server control method based on serial port
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN103246606B (en) The performance test methods of ESB platform and system
CN103677814A (en) Procedure acquiring method, procedure acquiring device and procedure acquiring system
CN105550762A (en) Meeting room appointment method and device
CN111010366A (en) Data transmission method and system based on reverse isolation technology
CN104463264A (en) Dynamic generation and display system for two-dimensional code and control method of dynamic generation and display system
KR102153968B1 (en) A method for configurating memory map comprising service model block related to service provided by electronic device
CN111124417B (en) Industrial control program compiling method and device, computer equipment and storage medium
CN109819026B (en) Method and device for transmitting information
US8806075B2 (en) Method of restoring configuration of profibus and profibus network system
CN107479891B (en) MVC model-based data processing system and method
CN103914304A (en) Method for converting different structure type parameters on basis of SAP (service access point) platforms
KR102223336B1 (en) Platform of Smart Factory
CN113919303A (en) Method and device for automatically generating service information table
CN109274175B (en) Power distribution terminal extension method and device based on power distribution automation system
CN103840858B (en) Data capture method and Common Information Model CIM service end
CN113691937A (en) Method for determining position information, cloud mobile phone and terminal equipment
CN111913721A (en) Automatic deployment method, device, equipment and storage medium
CN110851567A (en) Information processing method, information processing apparatus, electronic device, and storage medium
CN112148324A (en) Method, apparatus and computer-readable storage medium for upgrading electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414

RJ01 Rejection of invention patent application after publication