CN112019518A - Industrial control protocol data compression method and device - Google Patents
Industrial control protocol data compression method and device Download PDFInfo
- Publication number
- CN112019518A CN112019518A CN202010777492.0A CN202010777492A CN112019518A CN 112019518 A CN112019518 A CN 112019518A CN 202010777492 A CN202010777492 A CN 202010777492A CN 112019518 A CN112019518 A CN 112019518A
- Authority
- CN
- China
- Prior art keywords
- industrial control
- control protocol
- data
- data segment
- low
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000013144 data compression Methods 0.000 title claims abstract description 29
- 238000003860 storage Methods 0.000 claims abstract description 25
- 239000012634 fragment Substances 0.000 claims description 18
- 238000013507 mapping Methods 0.000 claims description 18
- 238000007906 compression Methods 0.000 claims description 14
- 230000006835 compression Effects 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 description 10
- 238000012550 audit Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000009776 industrial production Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001066 destructive effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Abstract
The application relates to an industrial control protocol data compression method and device. The method comprises the following steps: acquiring an industrial control protocol message of an industrial control system in real time; acquiring a preset data segment appearing in the industrial control protocol message; coding according to the preset data segment and a predefined dictionary to generate low-order coded data; and replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file. By adopting the method, the storage space occupied by the industrial control safety equipment for capturing the industrial control protocol message can be reduced.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for compressing industrial control protocol data.
Background
Along with the development of industrial control systems, it is also more and more important to improve the safety of industrial control systems, and safety manufacturers develop industrial control safety equipment for network safety audit on industrial control flow to perform safety protection on the industrial control systems. The network security audit refers to a tool for tracking, recording and comprehensively combing the use state of a network or a designated system, can dynamically monitor the network in real time, can record everything happening on the network by searching for intrusion and illegal behaviors, and provides evidence obtaining means for users. Network security audits are capable of monitoring and controlling not only intrusions from the outside, but also violations and destructive actions from inside personnel.
However, in the process of network security audit, when data of industrial control flow is acquired, a large number of network data packets need to be captured and stored in real time, and the requirement on the storage performance of the equipment is high, which leads to increase of the system cost of the industrial control safety equipment.
Disclosure of Invention
In view of the above, it is necessary to provide an industrial control protocol data compression method and apparatus capable of improving the industrial control protocol data compression efficiency.
A method for industrial control protocol data compression, the method comprising:
acquiring an industrial control protocol message of an industrial control system in real time;
acquiring a preset data segment appearing in the industrial control protocol message;
coding according to the preset data segment and a predefined dictionary to generate low-order coded data;
and replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file.
In one embodiment, the obtaining of the preset data segment appearing in the industrial control protocol packet includes: acquiring a preset data segment appearing in the industrial control protocol message according to the protocol type of the industrial control protocol message; the preset data segments are preset according to the type of each industrial control protocol.
In one embodiment, before obtaining an industrial control protocol message of an industrial control system in real time, the method includes: respectively acquiring data fragments with the frequency exceeding a preset value in industrial control protocol data according to the type of each industrial control protocol; and determining the data segment as a preset data segment corresponding to the industrial control protocol.
In one embodiment, after determining the data segment as a preset data segment corresponding to the industrial control protocol, the method includes: encoding the preset data segment in a Huffman encoding mode to obtain low-order encoded data; generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
In one embodiment, after determining the data segment as a preset data segment corresponding to the industrial control protocol, the method includes: encoding the preset data fragments through a cover algorithm to obtain low-order encoded data; generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
In one embodiment, the encoding according to the preset data segment according to a predefined dictionary to generate lower-order encoded data includes: and according to the preset data segment, coding according to a predefined dictionary corresponding to the protocol type of the industrial control protocol message to generate low-order coded data.
In one embodiment, the replacing the low-order coded data with the data segment in the industrial control protocol message to generate an industrial control protocol compressed file includes: and replacing the data fragment in the industrial control protocol message with the low-order coded data, and processing by a ztd compression algorithm or a Brotli compression algorithm to generate an industrial control protocol compressed file.
In one embodiment, the industrial control protocol data compression method further includes: and naming the industrial control protocol compressed file according to the name of the industrial control protocol message and then storing the industrial control protocol compressed file in a storage area.
In one embodiment, the industrial control protocol data compression method further includes: acquiring the industrial control protocol compressed file from a storage area according to the name of the industrial control protocol message; acquiring low-order coded data appearing in the industrial control protocol compressed file; performing inverse coding on the low-order coded data according to a predefined dictionary to obtain the preset data segment; and replacing the low-order coded data in the industrial control protocol compressed file with the preset data segment to generate the industrial control protocol message.
An industrial control protocol data compression device, the device comprising:
the industrial control protocol message acquisition module is used for acquiring the industrial control protocol message of the industrial control system in real time;
the preset data segment acquisition module is used for acquiring preset data segments appearing in the industrial control protocol message;
the low-order coded data generating module is used for coding according to the preset data segment and a predefined dictionary to generate low-order coded data;
and the industrial control protocol compressed file generation module is used for replacing the low-order coded data with the data segments in the industrial control protocol message to generate an industrial control protocol compressed file.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an industrial control protocol message of an industrial control system in real time;
acquiring a preset data segment appearing in the industrial control protocol message;
coding according to the preset data segment and a predefined dictionary to generate low-order coded data;
and replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an industrial control protocol message of an industrial control system in real time;
acquiring a preset data segment appearing in the industrial control protocol message;
coding according to the preset data segment and a predefined dictionary to generate low-order coded data;
and replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file.
According to the industrial control protocol data compression method, the industrial control protocol data compression device, the computer equipment and the storage medium, the industrial control protocol compressed file is generated by replacing the preset data segment in the industrial control protocol message with the low-order coded data, the size of the industrial control protocol message can be reduced, the storage space occupied in the industrial control safety equipment during storage can be reduced, and therefore the cost of the industrial control safety equipment is reduced.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for compression of industrial control protocol data;
FIG. 2 is a flow chart illustrating a method for data compression in an industrial control protocol according to an embodiment;
FIG. 3 is a block diagram of an example of an industrial control protocol data compression apparatus;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The industrial control protocol data compression method provided by the application can be applied to the application environment shown in fig. 1. The industrial control device 102 communicates with the server 104 through a network, an industrial control protocol message is transmitted between the industrial control device 102 and the server 104, and the industrial control safety device 106 obtains the industrial control protocol message transmitted between the industrial control device 102 and the server 104. The industrial control safety equipment 106 acquires an industrial control protocol message of an industrial control system in real time; acquiring a preset data segment appearing in the industrial control protocol message; coding according to the preset data segment and a predefined dictionary to generate low-order coded data; and replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file. The industrial control device 102 may be various production devices, processing devices, and packaging devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, there is provided an industrial control protocol data compression method, including the following steps:
s110, acquiring an industrial control protocol message of the industrial control system in real time.
The industrial control system is composed of control equipment such as DCS/PLC, sensors such as temperature/pressure and the like and an upper host, monitors and controls the industrial production process, and is a core center of industrial production. The industrial control system needs to remotely control the industrial control equipment and control the industrial control equipment by sending industrial control protocol messages in the control process. The industrial control protocol message is formed by performing industrial control protocol processing on control data, the industrial control protocol is an S7comm protocol, a modbus protocol or an IEC 61850 protocol, and certainly, the industrial control protocol may be other types of protocols.
And S120, acquiring a preset data segment appearing in the industrial control protocol message.
The preset data segment is a data segment with high frequency of occurrence in the industrial control protocol message, and the preset data segment comprises data segments which can repeatedly occur in each industrial control protocol message, such as redundant reserved fields, header identifiers, tail identifiers and the like in the industrial control protocol. For example, in the PDU type field in the S7comm protocol header, where USERDATA and ACK _ DATA occur the most times, the USERDATA and ACK _ DATA are set as the preset DATA segments.
And S130, encoding according to the preset data segment and a predefined dictionary to generate low-order encoded data.
The predefined dictionary stores the mapping relation between the preset data segment and the low-order coded data, the low-order coded data are obtained by searching the preset data segment in the predefined dictionary, and the data bit of the low-order coded data is lower than the data bit of the preset data segment. For example, the predetermined data segment is 110001110000, and the corresponding lower encoded data may be 11. Certainly, the mapping relationship between the preset data segment and the low-order coded data in the predefined dictionary is generated by a corresponding coding mode, the coding mode can be a huffman coding method and a cover algorithm, and the cover algorithm is a method proposed in the thesis Effective Construction of Relative Lempel-Ziv dictionary.
S140, replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file.
After the data fragment is replaced, the industrial control protocol compressed file is generated through processing of a compression algorithm, wherein the compression algorithm can be a zstd compression algorithm or a Brotli compression algorithm.
According to the industrial control protocol data compression method, the industrial control protocol compressed file is generated by replacing the preset data segment in the industrial control protocol message with the low-order coded data, so that the size of the industrial control protocol message can be reduced, the storage space occupied in the industrial control safety equipment during storage can be reduced, and the cost of the industrial control safety equipment is reduced.
In one embodiment, the obtaining of the preset data segment appearing in the industrial control protocol packet includes: acquiring a preset data segment appearing in the industrial control protocol message according to the protocol type of the industrial control protocol message; the preset data segments are preset according to the type of each industrial control protocol.
The industrial control protocol message is formed by carrying out industrial control protocol processing on control data, the industrial control protocol is an S7comm protocol, a modbus protocol or an IEC 61850 protocol, and certainly, the industrial control protocol can be other types of protocols; the preset data segments are different for each industrial control protocol, and can be determined according to the characteristics of the data segments which repeatedly appear in the industrial control protocol. For example, if the data segment repeatedly appearing in the industrial control protocol a is aaaa, the industrial control protocol message is generated by processing the industrial control protocol a, the preset data segment is aaaa, the data segment repeatedly appearing in the industrial control protocol B is bbbb, and the industrial control protocol message is generated by processing the industrial control protocol B, the preset data segment is bbbb. In the embodiment, different preset data segments are formulated for various industrial control protocol messages, so that the requirements of various industrial control scenes can be met.
In one embodiment, before obtaining an industrial control protocol message of an industrial control system in real time, the method includes: respectively acquiring data fragments with the frequency exceeding a preset value in industrial control protocol data according to the type of each industrial control protocol; and determining the data segment as a preset data segment corresponding to the industrial control protocol.
The preset value can be set according to needs, for example, the preset value can be 5. And determining the data segments with the times exceeding the preset value in the industrial control protocol data as preset data segments. Of course, the data segments that occur in the same type of industrial control protocol may also be determined as preset data segments.
In this embodiment, by encoding and compressing the data segment with a higher repetition number, the industrial control protocol message compression ratio can be increased, so that the industrial control protocol message occupies a smaller storage space.
In one embodiment, after determining the data segment as a preset data segment corresponding to the industrial control protocol, the method includes: encoding the preset data segment in a Huffman encoding mode to obtain low-order encoded data; generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
In one embodiment, after determining the data segment as a preset data segment corresponding to the industrial control protocol, the method includes: encoding the preset data fragments through a cover algorithm to obtain low-order encoded data; generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
The method comprises the steps that a cover algorithm equally divides an industrial control protocol data sample into a plurality of data fragments, the length of each data fragment is k bits, the fragments of k-mers (sub-character strings with the length of k) with the maximum coverage rate (the occurrence frequency is the highest) are identified in each part, the fragments are connected to generate a predefined dictionary with the required size, and the size of the dictionary can be set according to the requirement.
In one embodiment, the encoding according to the preset data segment according to a predefined dictionary to generate lower-order encoded data includes: and according to the preset data segment, coding according to a predefined dictionary corresponding to the protocol type of the industrial control protocol message to generate low-order coded data.
In one embodiment, the replacing the low-order coded data with the data segment in the industrial control protocol message to generate an industrial control protocol compressed file includes: and replacing the data fragment in the industrial control protocol message with the low-order coded data, and processing by a ztd compression algorithm or a Brotli compression algorithm to generate an industrial control protocol compressed file.
In one embodiment, the industrial control protocol data compression further includes: and naming the industrial control protocol compressed file according to the name of the industrial control protocol message and then storing the industrial control protocol compressed file in a storage area. In the embodiment, the industrial control protocol compressed file is named and then stored, so that the industrial control protocol compressed file can be conveniently searched.
In one embodiment, the industrial control protocol data compression further includes: acquiring the industrial control protocol compressed file from a storage area according to the name of the industrial control protocol message; acquiring low-order coded data appearing in the industrial control protocol compressed file; performing inverse coding on the low-order coded data according to a predefined dictionary to obtain the preset data segment; and replacing the low-order coded data in the industrial control protocol compressed file with the preset data segment to generate the industrial control protocol message.
And performing inverse coding on the low-order coded data according to a predefined dictionary, wherein the coding mode is opposite to the coding mode performed according to the preset data segment according to the predefined dictionary. For example, the preset data segment is a first mapping object, the low-order coded data is a second mapping object, the predefined dictionary stores the corresponding relation between the first mapping object and the second mapping object, the low-order coded data is generated by coding according to the preset data segment and the predefined dictionary, and the second mapping object is searched according to the first mapping object; and performing inverse coding on the low-order coded data according to a predefined dictionary to obtain the preset data fragment, and searching for the first mapping object according to the second mapping object.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 3, an industrial control protocol data compression apparatus is provided, including: an industrial control protocol message obtaining module 210, a preset data segment obtaining module 220, a low-order coded data generating module 230, and an industrial control protocol compressed file generating module 240, wherein:
the industrial control protocol message acquiring module 210 is configured to acquire an industrial control protocol message of an industrial control system in real time.
A preset data segment obtaining module 220, configured to obtain a preset data segment appearing in the industrial control protocol packet.
And a low-order coded data generating module 230, configured to code according to the preset data segment and a predefined dictionary, and generate low-order coded data.
And the industrial control protocol compressed file generating module 240 is configured to replace the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file.
In one embodiment, the industrial control protocol message obtaining module is further configured to obtain a preset data segment appearing in the industrial control protocol message according to a protocol type of the industrial control protocol message; the preset data segments are preset according to the type of each industrial control protocol.
In one embodiment, the industrial control protocol data compression apparatus further includes: the data segment acquisition module is used for respectively acquiring data segments with the frequency exceeding a preset value in the industrial control protocol data according to the type of each industrial control protocol; and the preset data segment determining module is used for determining the data segment as a preset data segment corresponding to the industrial control protocol.
In one embodiment, the industrial control protocol data compression apparatus further includes: the encoding module is used for encoding the preset data segment in a Huffman encoding mode to obtain low-order encoded data; the predefined dictionary generating module is used for generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
In one embodiment, the industrial control protocol data compression apparatus further includes: the encoding module is used for encoding the preset data fragments through a cover algorithm to obtain low-order encoded data; the predefined dictionary generating module is used for generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
In one embodiment, the low-order coded data generating module is further configured to code according to the preset data segment and a predefined dictionary corresponding to a protocol type of the industrial control protocol packet, so as to generate low-order coded data.
In one embodiment, the industrial control protocol compressed file generating module is further configured to replace the data fragment in the industrial control protocol message with the low-order coded data, and generate the industrial control protocol compressed file through processing by a ztd compression algorithm or a Brotli compression algorithm.
In one embodiment, the industrial control protocol data compression apparatus further includes: and the storage module is used for naming the industrial control protocol compressed file according to the name of the industrial control protocol message and storing the industrial control protocol compressed file in a storage area.
In one embodiment, the industrial control protocol data compression apparatus further includes: the industrial control protocol compressed file acquisition module is used for acquiring the industrial control protocol compressed file from a storage area according to the name of the industrial control protocol message; the low-order coded data acquisition module is used for acquiring low-order coded data appearing in the industrial control protocol compressed file; the anti-coding module is used for carrying out anti-coding on the low-order coded data according to a predefined dictionary to obtain the preset data segment; and the industrial control protocol message reduction module is used for replacing the low-order coded data in the industrial control protocol compressed file with the preset data fragment to generate the industrial control protocol message.
For specific limitations of the industrial control protocol data compression device, reference may be made to the above limitations on the industrial control protocol data compression method, which is not described herein again. All or part of each module in the industrial control protocol data compression device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing predefined dictionary data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an industrial control protocol data compression method.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for compressing industrial control protocol data is characterized by comprising the following steps:
acquiring an industrial control protocol message of an industrial control system in real time;
acquiring a preset data segment appearing in the industrial control protocol message;
coding according to the preset data segment and a predefined dictionary to generate low-order coded data;
and replacing the data segment in the industrial control protocol message with the low-order coded data to generate an industrial control protocol compressed file.
2. The method according to claim 1, wherein the acquiring a preset data segment appearing in the industrial control protocol packet includes:
acquiring a preset data segment appearing in the industrial control protocol message according to the protocol type of the industrial control protocol message; the preset data segments are preset according to the type of each industrial control protocol.
3. The method of claim 2, wherein before obtaining the industrial control protocol message of the industrial control system in real time, the method comprises:
respectively acquiring data fragments with the frequency exceeding a preset value in industrial control protocol data according to the type of each industrial control protocol;
and determining the data segment as a preset data segment corresponding to the industrial control protocol.
4. The method of claim 3, wherein after determining the data segment as a preset data segment corresponding to the industrial control protocol, the method further comprises:
encoding the preset data segment in a Huffman encoding mode to obtain low-order encoded data;
generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
5. The method of claim 3, wherein after determining the data segment as a preset data segment corresponding to the industrial control protocol, the method further comprises:
encoding the preset data fragments through a cover algorithm to obtain low-order encoded data;
generating the predefined dictionary according to the one-to-one mapping relation between the preset data segments and the low-order coded data; wherein, each industrial control protocol corresponds to a predefined dictionary.
6. The method according to any one of claims 4-5, wherein the encoding according to the preset data segment according to a predefined dictionary to generate lower-order encoded data comprises:
and according to the preset data segment, coding according to a predefined dictionary corresponding to the protocol type of the industrial control protocol message to generate low-order coded data.
7. The method of claim 1, wherein the replacing the lower encoded data for the data segment in the industrial control protocol message to generate an industrial control protocol compressed file comprises:
and replacing the data fragment in the industrial control protocol message with the low-order coded data, and processing by a ztd compression algorithm or a Brotli compression algorithm to generate an industrial control protocol compressed file.
8. The method of claim 1, further comprising:
and naming the industrial control protocol compressed file according to the name of the industrial control protocol message and then storing the industrial control protocol compressed file in a storage area.
9. The method of claim 8, further comprising:
acquiring the industrial control protocol compressed file from a storage area according to the name of the industrial control protocol message;
acquiring low-order coded data appearing in the industrial control protocol compressed file;
performing inverse coding on the low-order coded data according to a predefined dictionary to obtain the preset data segment;
and replacing the low-order coded data in the industrial control protocol compressed file with the preset data segment to generate the industrial control protocol message.
10. An industrial control protocol data compression method is characterized in that the device comprises:
the industrial control protocol message acquisition module is used for acquiring the industrial control protocol message of the industrial control system in real time;
the preset data segment acquisition module is used for acquiring preset data segments appearing in the industrial control protocol message;
the low-order coded data generating module is used for coding according to the preset data segment and a predefined dictionary to generate low-order coded data;
and the industrial control protocol compressed file generation module is used for replacing the low-order coded data with the data segments in the industrial control protocol message to generate an industrial control protocol compressed file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010777492.0A CN112019518A (en) | 2020-08-05 | 2020-08-05 | Industrial control protocol data compression method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010777492.0A CN112019518A (en) | 2020-08-05 | 2020-08-05 | Industrial control protocol data compression method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112019518A true CN112019518A (en) | 2020-12-01 |
Family
ID=73499146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010777492.0A Pending CN112019518A (en) | 2020-08-05 | 2020-08-05 | Industrial control protocol data compression method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112019518A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557399A (en) * | 2009-05-20 | 2009-10-14 | 深圳市汇海科技开发有限公司 | Method for compression and decompression of XMPP protocol transmission data |
CN103279462A (en) * | 2013-05-28 | 2013-09-04 | 浙江大学 | Data coding/ decoding method suitable for Bei Dou short message civil agreement |
CN105893337A (en) * | 2015-01-04 | 2016-08-24 | 伊姆西公司 | Method and equipment for text compression and decompression |
US20170126851A1 (en) * | 2015-11-02 | 2017-05-04 | Palo Alto Research Center Incorporated | Header compression for ccn messages using dictionary |
-
2020
- 2020-08-05 CN CN202010777492.0A patent/CN112019518A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557399A (en) * | 2009-05-20 | 2009-10-14 | 深圳市汇海科技开发有限公司 | Method for compression and decompression of XMPP protocol transmission data |
CN103279462A (en) * | 2013-05-28 | 2013-09-04 | 浙江大学 | Data coding/ decoding method suitable for Bei Dou short message civil agreement |
CN105893337A (en) * | 2015-01-04 | 2016-08-24 | 伊姆西公司 | Method and equipment for text compression and decompression |
US20170126851A1 (en) * | 2015-11-02 | 2017-05-04 | Palo Alto Research Center Incorporated | Header compression for ccn messages using dictionary |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7843823B2 (en) | Techniques for balancing throughput and compression in a network communication system | |
CN111917897B (en) | Identification generation method, device, equipment and storage medium | |
CN110995468A (en) | System fault processing method, device, equipment and storage medium of system to be analyzed | |
CN110908833A (en) | Data backup method, device and equipment and computer readable storage medium | |
CN114157649A (en) | Reliable data transmission method and device, computer equipment and storage medium | |
CN115412371A (en) | Big data security protection method and system based on Internet of things and cloud platform | |
CN110740144B (en) | Method, device, equipment and storage medium for determining attack target | |
CN110086789B (en) | Data transmission method, device, equipment and medium | |
CN111669650A (en) | Video processing method and device, electronic equipment and storage medium | |
CN112019518A (en) | Industrial control protocol data compression method and device | |
CN111865557A (en) | Check code generation method and device | |
CN113704206B (en) | Metadata processing method and device, electronic equipment and storage medium | |
CN112422525B (en) | Fault data transmission method, device, equipment and storage medium | |
JP6992309B2 (en) | Transmitter, receiver, and communication method | |
CN113507691B (en) | Information pushing system and method based on power distribution network cross-region service | |
CN113285961B (en) | Electric power internal and external network information interaction method based on cache database | |
CN113347168B (en) | Protection method and system based on zero trust model | |
CN106254375B (en) | A kind of recognition methods of hotspot equipment and device | |
CN111586174B (en) | Network service system | |
CN113676314B (en) | Quantum key management method, comparison method, output method, device and system | |
CN106878054A (en) | A kind of method and device for business processing | |
CN114422164A (en) | Five-tuple table entry issuing device and method | |
CN112468454A (en) | Remote file management system and remote file management method thereof | |
CN115398429A (en) | Method for handling data anomalies, in particular in a motor vehicle | |
CN115941209B (en) | Block chain decentralization trusted data acquisition method and system |
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 | ||
CB02 | Change of applicant information |
Address after: 10 / F, building 4, 188 Lianchuang street, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province 310000 Applicant after: Zhejiang Mulian Internet of things Technology Co.,Ltd. Address before: 10 / F, building 4, 188 Lianchuang street, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province 310000 Applicant before: Hangzhou wooden chain Internet of things Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201201 |
|
RJ01 | Rejection of invention patent application after publication |