CN115208826B - Data processing method, device and system - Google Patents

Data processing method, device and system Download PDF

Info

Publication number
CN115208826B
CN115208826B CN202110389406.3A CN202110389406A CN115208826B CN 115208826 B CN115208826 B CN 115208826B CN 202110389406 A CN202110389406 A CN 202110389406A CN 115208826 B CN115208826 B CN 115208826B
Authority
CN
China
Prior art keywords
data
frame
identification
identification frame
processing
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.)
Active
Application number
CN202110389406.3A
Other languages
Chinese (zh)
Other versions
CN115208826A (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Shanghai ICT Co Ltd
CM Intelligent Mobility Network Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Shanghai ICT Co Ltd
CM Intelligent Mobility Network 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 China Mobile Communications Group Co Ltd, China Mobile Shanghai ICT Co Ltd, CM Intelligent Mobility Network Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110389406.3A priority Critical patent/CN115208826B/en
Publication of CN115208826A publication Critical patent/CN115208826A/en
Application granted granted Critical
Publication of CN115208826B publication Critical patent/CN115208826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention provides a data processing method, a device and a system, and a method for privatizing a label system side comprises the following steps: acquiring a device information frame of field data acquired by a field device; and adding a first identification frame to the equipment information frame to obtain a data frame with the first identification frame, wherein the first identification frame is used for indicating a blockchain processor to generate a routing table and send the routing table to a routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table. The scheme of the invention can realize unified processing and storage of the data of a plurality of devices, and has high safety.

Description

Data processing method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method, apparatus, and system.
Background
With the advent of the industrial age, various industries in various regions are building their own industrial internet platforms, which are integrated by a series of components such as industrial equipment, industrial protocols, industrial networks, upper computer systems, remote data centers, etc.
The existing industrial automation product suppliers and actual industry users adopt a simpler and direct industrial networking mode, information needing to be collected on site is generally gathered by a switch, and is transmitted to an industrial control computer with integrated gateway capability to perform corresponding data analysis or directly transmit the data into an upper computer system, and an industrial network carries data transmission circulation in the process.
The traditional industrial networking mode has a plurality of protocols for data transmission of different devices and is not compatible; in order to be compatible with different protocols, protocol analysis equipment needs to be configured, the cost is high, and the security of data is low.
Disclosure of Invention
The invention aims to provide a data processing method, a device and a system. The data of a plurality of devices are uniformly processed and stored, and the safety is high.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a data processing method applied to a privately owned identification system, comprising:
acquiring a device information frame of field data acquired by a field device;
and adding a first identification frame to the equipment information frame to obtain a data frame with the first identification frame, wherein the first identification frame is used for indicating a blockchain processor to generate a routing table and send the routing table to a routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table.
Optionally, adding a first identification frame to the device information frame to obtain a data frame with the first identification frame, including:
inserting a first identification frame of the field device before the device information frame, obtaining a data frame with the first identification frame, wherein the first identification frame comprises at least one of the following of the field device: numbering the factory; numbering the production line; numbering the machine; protocol numbering.
Optionally, the factory floor number, line number, machine number, and/or protocol number in the data frame generated by the same field device is fixed.
Optionally, the data processing method further includes: and storing the data file formed by the data frames with the first identification frames in a data center.
The embodiment of the invention also provides a data processing method applied to the block chain processor, which comprises the following steps:
the method comprises the steps that a privatized identification system is obtained, a first identification frame is added to a device information frame, and an obtained data frame with the first identification frame is obtained;
processing the first identification frame of the data frame to obtain a processing result;
and generating a routing table according to the processing result.
Optionally, processing the first identification frame of the data frame to obtain a processing result, including:
and carrying out hash operation on the first identification frame of the data frame to obtain a hash value corresponding to the first identification frame.
Optionally, generating a routing table according to the processing result includes:
and generating a routing table containing the first identification frame and the hash value and the corresponding relation between the first identification frame and the hash value according to the first identification frame and the hash value corresponding to the first identification frame.
Optionally, the data processing method further includes: caching the routing table to a memory of the blockchain processor; and/or sending the routing table to a routing gateway.
Optionally, the data processing method further includes:
receiving a data query request sent by the routing gateway;
extracting a device information frame corresponding to the second identification frame according to the second identification frame in the data query request, and encrypting the device information frame and the second identification frame to obtain a data file;
and returning the data file to the routing gateway.
The embodiment of the invention also provides a data processing method applied to the routing gateway, comprising the following steps:
receiving a data query request transmitted by an external interface;
acquiring a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request, wherein the data file is formed by a data frame obtained by adding the first identification frame to the equipment information frame by a privately owned identification system;
and sending the data file to an external interface for processing to obtain a query result.
Optionally, according to a second identification frame carried by the data query request, acquiring a data file containing the second identification frame from a data center or a blockchain processor includes:
Inquiring a routing table cached by the routing gateway according to a second identification frame carried by the data inquiry request;
if the routing table containing the second identification frame exists, performing trusted authentication on the external interface;
and after the authentication is passed, acquiring the data file containing the second identification frame from the data center or the blockchain processor.
Optionally, obtaining the data file containing the second identification frame from the blockchain processor includes:
if the data query request is a data query request with the secret higher than a first preset value, the data query request is sent to the blockchain processor;
and receiving an encrypted file returned by the blockchain processor, wherein the encrypted file is a data file obtained by the blockchain processor after extracting a device information frame corresponding to the second identification frame according to the second identification frame in the data query request and encrypting the device information frame and the second identification frame.
Optionally, obtaining the data file containing the second identification frame from the data center includes:
if the data query request is a data query request with the security level lower than a first preset value, the data query request is sent to a data center;
And receiving a data file containing the second identification frame returned by the data center.
Optionally, sending the data file to an external interface for processing to obtain a query result, including:
the data file is sent to an external interface, and the external interface distributes the data file to a protocol analyzer corresponding to the second identification frame in an analysis layer for processing according to the second identification frame to obtain a query result; the parsing layer comprises at least one protocol parser, and one identification frame corresponds to one protocol parser.
An embodiment of the present invention further provides a data processing apparatus applied to a privately owned identification system, the apparatus including:
the acquisition module is used for acquiring equipment information frames of field data acquired by the field equipment;
the processing module is used for adding a first identification frame to the equipment information frame to obtain a data frame with the first identification frame, wherein the first identification frame is used for indicating the blockchain processor to generate a routing table and send the routing table to a routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table.
The embodiment of the invention also provides a privately-owned identification system which comprises the data processing device.
An embodiment of the present invention also provides a data processing apparatus applied to a blockchain processor, the apparatus including:
the acquisition module is used for acquiring a data frame which is obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system;
the processing module is used for processing the first identification frame of the data frame to obtain a processing result; and generating a routing table according to the processing result.
The embodiment of the invention also provides a blockchain processor, which comprises the data processing device.
The embodiment of the invention also provides a data processing device, which is applied to the routing gateway, and comprises:
the receiving and transmitting module is used for receiving a data query request transmitted by the external interface;
the processing module is used for acquiring a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request; the data file is formed by a data frame obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system;
the receiving and transmitting module is also used for sending the data file to an external interface for processing to obtain a query result.
The embodiment of the invention also provides a routing gateway which comprises the data processing device.
An embodiment of the present invention also provides a data processing system, including: a privatized identification system, a routing gateway, and a blockchain processor;
the privatized identification system acquires a device information frame of field data acquired by field devices through the routing gateway; adding an identification frame to the equipment information frame to obtain a data frame with the identification frame, and storing the data frame in a data center and/or sending the data frame to a block chain processor; the identification frame is used for indicating the blockchain processor to generate a routing table and send the routing table to the routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table;
the block chain processor obtains a privatized identification system, adds a first identification frame to the equipment information frame, and obtains a data frame with the first identification frame; processing the first identification frame of the data frame to obtain a processing result; and generating a routing table according to the processing result, and caching the routing table into a memory of the blockchain processor and/or issuing the routing table to the routing gateway.
Optionally, the routing gateway receives a data query request transmitted by an external interface; acquiring a data file containing a second identification frame according to the second identification frame carried by the data query request; and sending the data file to an external interface for processing to obtain a query result.
Optionally, the privately-owned identification system, the routing gateway and the blockchain processor are located in a local area network, and the external interface is connected with the local area network and an external public network.
Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform a method as described above.
The scheme of the invention at least comprises the following beneficial effects:
acquiring field data acquired by a field device; processing the field data to obtain an equipment information frame; processing the equipment information frame to obtain a plurality of data frames with identification frames; the identification frame is used for indicating the blockchain processor to generate a routing table and send the routing table to the routing gateway, and indicating the routing gateway to send the queried data file corresponding to the identification frame to an external interface for processing according to the routing table. In this way, the routing gateway can transmit the data frames of different devices to the external interface and the unified parsing layer by identifying the identification frames to complete data parsing, and the field deployment cost and the operation and maintenance cost caused by protocol incompatibility can be reduced.
Drawings
FIG. 1 is a flow chart of a method for processing data on a system side of a privately owned flag according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data frame structure with identification frames in a data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a system architecture of a data processing system according to an embodiment of the present invention;
FIG. 4 is a flow chart of a data processing method at the blockchain processor side according to an embodiment of the present invention;
fig. 5 is a flow chart of a data processing method at a routing gateway side according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of unified parsing of data at an external interface side according to an embodiment of the present invention;
FIG. 7 is a block diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a data processing method, which is applied to a privately owned identification system, including:
Step 11, acquiring a device information frame of field data acquired by a field device;
and step 12, adding a first identification frame to the equipment information frame to obtain a data frame with the first identification frame, wherein the first identification frame is used for indicating a blockchain processor to generate a routing table and send the routing table to a routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table.
In this embodiment, field switches connected to a plurality of field devices may receive field data collected by the plurality of field devices, and process the field data according to a frame structure of preset device information to obtain device information frames of the plurality of field devices, where the frame structure may be a preset bit data frame, where the device information frame is used to represent device information of a device, and a data packet of the field data includes the device information frame; the frame structure may be, for example, a frame structure formed by a plurality of fields, where each field stores corresponding device information, such as device information including performance parameters of a storage device; respectively adding a first identification frame to a plurality of equipment information frames to obtain a plurality of data frames with the first identification frame, realizing unified processing of the data of a plurality of equipment according to the first identification frame, and having easy processing and storage and high safety; the routing gateway can transmit the data frames of different devices to the external interface and the unified parsing layer by identifying the first identification frame so as to complete data parsing, and the field deployment cost and the operation and maintenance cost caused by protocol incompatibility can be reduced.
In an alternative embodiment of the present invention, step 12 may include:
inserting a first identification frame of the field device before the device information frame, obtaining a data frame with the first identification frame, wherein the first identification frame comprises at least one of the following of the field device: numbering the factory; numbering the production line; numbering the machine; protocol numbering.
Here, the factory floor number may occupy 2 bits; the production line number occupies 2 bits; the machine number occupies 4 bits; the protocol number occupies 2 bits. But are not limited to, these bits.
Specifically, as shown in fig. 2, the data frame structure with the first identification frame may be located at a position of a header of the data packet in the data packet, and for different devices, the first identification frame may include: one or more of the factory floor number, the line number, the machine number and the protocol number, specifically, for example, the equipment a has the factory floor number, the position of the factory floor number can be represented by a specific bit, if the line number is not provided, the bits of the position of the line number identification frame can be all 0, and the same method is also used for the machine number and the protocol number. The frame structure shown in fig. 2 is a unified frame structure, and the industrial equipment uses the unified frame structure to represent corresponding equipment identification, so as to facilitate storage, processing and related operations of equipment information.
In an alternative embodiment of the present invention, the factory floor number, production line number, machine number, and/or protocol number in the data frame generated by the same field device is fixed. The serial numbers corresponding to the first identification frames are uniformly defined and modified by a production unit according to the field condition before being started, and in a normal running state, the factory serial numbers, the production line serial numbers, the machine serial numbers and the protocol serial numbers in the data message frames generated by the same field device are all fixed, so that the subsequent storage and query operation is facilitated.
In an alternative embodiment of the present invention, the data processing method may further include: and storing the data file formed by the data frames with the first identification frames in a data center.
As shown in fig. 3, the network system architecture of the privately-owned identification system according to the above embodiment of the present invention is shown, where the privately-owned identification system sequentially fills the factory number 2 bits, the production line number 2 bits, the machine number 4 bits, and the protocol number 2 bits before the basic device data information frame after defining the frame structure of the new field acquisition data packet. The serial numbers corresponding to the first identification frames are uniformly defined and modified by a production unit according to the field condition before being started, and the factory serial numbers, the production line serial numbers, the machine serial numbers and the protocol serial numbers in the message frames of the data packets of the field data generated by the same field device are all fixed in a normal running state. Therefore, the data of a plurality of devices are uniformly processed according to the identification frames, the processing and the storage are easy, and the safety is high.
As shown in fig. 4, an embodiment of the present invention further provides a data processing method applied to a blockchain processor, the method including:
step 41, obtaining a privatized identification system, adding a first identification frame to a device information frame, and obtaining a data frame with the first identification frame;
step 42, processing the first identification frame of the data frame to obtain a processing result;
and step 43, generating a routing table according to the processing result.
In the embodiment, a block chain processor obtains a data frame with a first identification frame, carries out operation processing on the first identification frame of the data frame according to a security algorithm to obtain an operation result, and generates a routing table containing the corresponding relation between the first identification frame and the operation result according to the operation result and the first identification frame; this may further enable guided interactions with external interfaces based on the routing table.
In an alternative embodiment of the present invention, step 42 may include:
carrying out hash operation on a first identification frame of the data frame to obtain a hash value corresponding to the first identification frame, and naturally, processing the first identification frame of the data frame according to other algorithms to obtain a target value corresponding to the first identification frame, wherein the other algorithms can be encryption algorithms to convert plaintext of the value of the first identification frame into ciphertext; the hash algorithm is adopted for the first identification frame of the data frame, so that the data frame is convenient to realize and popularize.
In an alternative embodiment of the present invention, step 43 includes:
and generating a routing table containing the first identification frame and the hash value and the corresponding relation between the first identification frame and the hash value according to the first identification frame and the hash value corresponding to the first identification frame.
Here, the first identification frame and the hash value form a corresponding relation through the routing table, so that bidirectional retrieval can be conveniently realized, namely, the hash value can be retrieved according to the first identification frame, and the corresponding first identification frame can be retrieved according to the hash value, thereby improving the retrieval efficiency.
Further, in an alternative embodiment of the present invention, the data processing method may further include: caching the routing table to a memory of the blockchain processor; and/or sending the routing table to the routing gateway.
In this embodiment of the present invention, the blockchain processor uses the already hashed algorithm to convert the first identification frame in the data packet into the hashed value, stores the converted new data packet in the blockchain memory, and creates a routing table in which the original data Bao Nadi, the identification frame, is associated with the hashed value in the new data packet for caching, so as to facilitate subsequent queries of related device information.
In an alternative embodiment of the present invention, the data processing method may further include:
step 44, receiving a data query request sent by the routing gateway;
step 45, extracting a device information frame corresponding to the second identification frame according to the second identification frame in the data query request, and encrypting the device information frame and the second identification frame to obtain a data file;
and step 46, returning the data file to the routing gateway.
In this embodiment, when the blockchain processor receives a data query request of an external interface forwarded by the routing gateway, corresponding device information is extracted according to an identifier frame corresponding to a factory number, a production line number, a machine number and a protocol number defined by the privately owned identifier system, and the device information and the corresponding identifier frame data are converted into an encrypted file based on a hash algorithm and transmitted to the external interface. When the external data query request is authenticated by the block chain and searches for the corresponding identification frame, the external interface can be allowed to collect the data packet packaged by the corresponding identification frame through the routing gateway within a certain period of time, so that the query of high-security data is realized.
As shown in fig. 5, an embodiment of the present invention further provides a data processing method, applied to a routing gateway, where the method includes:
Step 51, receiving a data query request transmitted by an external interface;
step 52, according to the second identification frame carried by the data query request, obtaining a data file containing the second identification frame from a data center or a blockchain processor, wherein the data file is formed by a data frame obtained by adding the first identification frame to the equipment information frame by the privately-owned identification system;
and step 53, sending the data file to an external interface for processing to obtain a query result.
In this embodiment, when the routing gateway receives the data query request, the routing gateway queries the data according to the second identification frame.
In an alternative embodiment of the present invention, step 52 may include:
step 521, inquiring the routing table cached by the routing gateway according to the second identification frame carried by the data inquiry request;
step 522, if there is a routing table containing the second identification frame, performing trusted authentication on the external interface;
step 523, after the authentication is passed, the data file containing the identification frame is obtained from the data center or blockchain processor.
In this embodiment, when the routing gateway receives the data query request of the external interface, it first retrieves whether the second identification frame exists in the routing table, if so, performs comparison and verification on the request parameters of the external interface, establishes temporary connection with the trusted request after confirmation, allows the external interface to collect data through the routing gateway, and confirms that failure will reject the request, so as to implement security query of the data.
In an optional embodiment of the present invention, in step 523, obtaining the data file containing the second identification frame includes:
step 5231, if the data query request is a data query request with a higher secret than a first preset value, sending the data query request to the blockchain processor;
and 5232, receiving an encrypted file returned by the blockchain processor, wherein the encrypted file is a data file obtained by the blockchain processor by extracting a device information frame corresponding to a second identification frame according to the second identification frame in the data query request and encrypting the device information frame and the second identification frame.
In the embodiment, for the high-security data query request, the blockchain processor encrypts the queried equipment information frame and the identification frame and returns an encrypted file to ensure the security query of the high-security data.
In an optional embodiment of the present invention, in step 523, obtaining the data file containing the second identification frame includes:
step 5233, if the data query request is a data query request with a security level lower than a first preset value, sending the data query request to a data center;
And step 5234, receiving a data file containing the second identification frame returned by the data center.
In this embodiment, for the access request of the non-high-security data, the blockchain authentication part is skipped, and the local database is directly queried by the routing gateway, so that the data file containing the second identification frame can be quickly and accurately queried for the access request of the non-high-security data.
In an alternative embodiment of the present invention, step 53 may include:
the data file is sent to an external interface, and the external interface distributes the data file to a protocol analyzer corresponding to the second identification frame in an analysis layer for processing according to the second identification frame to obtain a query result; the parsing layer comprises at least one protocol parser, and one identification frame corresponds to one protocol parser.
As shown in fig. 6, the external interface is implemented to distribute the collected data to the corresponding protocol resolvers for processing according to different machine numbers and protocol numbers provided by the identification system, each group of numbers corresponds to a different protocol resolver, and the driver in the resolver resolves the collected data into consumption data or query results required by the final upper computer system. The external interface interfaces with a unified analysis layer, the data are analyzed outside the external interface, and the data encrypted by the blockchain processor are transmitted into the analysis layer through the external interface after identity authentication. The unified analyzer performs classification analysis according to the defined data packet of the privately-owned identification system, so that the data processing efficiency is ensured.
In an alternative embodiment of the present invention, the data processing method may further include: and returning the query result to an upper computer through the external interface. Thus, the query result can be displayed on the upper computer in a visual mode, and the use of a user is facilitated.
As shown in fig. 7, an embodiment of the present invention further provides a data processing apparatus 70 applied to a privately owned identification system, the apparatus 70 including:
an acquisition module 71, configured to acquire a device information frame of field data acquired by a field device;
the processing module 72 is configured to add a first identification frame to the device information frame to obtain a data frame with the first identification frame, where the first identification frame is used to instruct the blockchain processor to generate a routing table and send the routing table to a routing gateway, and instruct the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table.
Optionally, the processing module 72 is specifically configured to insert a first identification frame of the field device before the device information frame, and obtain a data frame with the first identification frame, where the first identification frame includes at least one of the following of the field device: numbering the factory; numbering the production line; numbering the machine; protocol numbering.
Optionally, the factory number occupies 2 bits; the production line number occupies 2 bits; the machine number occupies 4 bits; the protocol number occupies 2 bits.
Optionally, the factory floor number, line number, machine number, and/or protocol number in the data frame generated by the same field device is fixed.
Optionally, the processing module 72 is further configured to store the data file formed by the data frame with the first identification frame in a data center.
The embodiment of the invention also provides a privately-owned identification system which comprises the data processing device.
It should be noted that, the device and the system are devices corresponding to the method on the system side of the privately owned identification system, and all implementation manners in the method embodiment are applicable to the embodiment of the device, so that the same technical effects can be achieved.
An embodiment of the present invention also provides a data processing apparatus applied to a blockchain processor, the apparatus including:
the acquisition module is used for acquiring a data frame which is obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system;
the processing module is used for processing the first identification frame of the data frame to obtain a processing result; and generating a routing table according to the processing result.
Optionally, the processing module is specifically configured to perform hash operation on a first identification frame of the data frame to obtain a hash value corresponding to the first identification frame.
Optionally, generating a routing table according to the processing result includes:
and generating a routing table containing the first identification frame and the hash value and the corresponding relation between the first identification frame and the hash value according to the first identification frame and the hash value corresponding to the first identification frame.
Optionally, the processing module is further configured to cache the routing table to a memory of the blockchain processor; and/or sending the routing table to a routing gateway.
Optionally, the processing module is further configured to receive a data query request sent by the routing gateway; extracting a device information frame corresponding to the second identification frame according to the second identification frame in the data query request, and encrypting the device information frame and the second identification frame to obtain a data file; and returning the data file to the routing gateway.
The embodiment of the invention also provides a blockchain processor, which comprises the data processing device.
It should be noted that, the apparatus is an apparatus corresponding to the above-mentioned method on the blockchain processor side, and all the implementation manners in the above-mentioned method embodiments are applicable to the embodiment of the apparatus, so that the same technical effects can be achieved.
The embodiment of the invention also provides a data processing device, which is applied to the routing gateway, and comprises:
the receiving and transmitting module is used for receiving a data query request transmitted by the external interface;
the processing module is used for acquiring a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request; the data file is formed by a data frame obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system;
the receiving and transmitting module is also used for sending the data file to an external interface for processing to obtain a query result.
Optionally, the processing module is specifically configured to query, according to a second identification frame carried by the data query request, a routing table cached by the routing gateway; if the routing table containing the second identification frame exists, performing trusted authentication on the external interface; and after passing the authentication, acquiring the data file containing the identification frame from the data center or the blockchain processor.
Optionally, obtaining a data file containing the identification frame from the blockchain processor includes:
if the data query request is a data query request with the secret higher than a first preset value, the data query request is sent to the blockchain processor;
And receiving an encrypted file returned by the blockchain processor, wherein the encrypted file is a data file obtained by the blockchain processor after extracting a device information frame corresponding to the second identification frame according to the second identification frame in the data query request and encrypting the device information frame and the second identification frame.
Optionally, obtaining the data file containing the identification frame from the data center includes:
if the data query request is a data query request with the security level lower than a first preset value, the data query request is sent to a data center;
and receiving a data file containing the second identification frame returned by the data center.
Optionally, sending the data file to an external interface for processing to obtain a query result, including:
the data file is sent to an external interface, and the external interface distributes the data file to a protocol analyzer corresponding to the second identification frame in an analysis layer for processing according to the second identification frame to obtain a query result; the parsing layer comprises at least one protocol parser, and one identification frame corresponds to one protocol parser.
The embodiment of the invention also provides a routing gateway which comprises the data processing device.
It should be noted that, the device is a device corresponding to the method of the routing gateway side, and all implementation manners in the method embodiment are applicable to the embodiment of the device, so that the same technical effects can be achieved.
As shown in fig. 3, an embodiment of the present invention further provides a data processing system, including: a privatized identification system, a routing gateway, and a blockchain processor;
the privatized identification system acquires a device information frame of field data acquired by field devices through the routing gateway; adding a first identification frame to the equipment information frame to obtain a data frame with the first identification frame, and storing the data frame in a data center and/or sending the data frame to a blockchain processor; the first identification frame is used for indicating the blockchain processor to generate a routing table and send the routing table to the routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table;
the block chain processor obtains a privatized identification system, adds a first identification frame to the equipment information frame, and obtains a data frame with the first identification frame; processing the first identification frame of the data frame to obtain a processing result; and generating a routing table according to the processing result, and caching the routing table into a memory of the blockchain processor and/or issuing the routing table to the routing gateway.
Optionally, the routing gateway receives a data query request transmitted by an external interface; acquiring a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request; the data file is formed by a data frame obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system; and sending the data file to an external interface for processing to obtain a query result.
Optionally, the privately-owned identification system, the routing gateway and the blockchain processor are located in a local area network, and the external interface is connected with the local area network and an external public network. Therefore, the independent construction of equipment and the deployment of decoupling of the interaction relationship between the internal network and the external network can be realized.
It should be noted that, all the embodiments of the method implemented by the privately owned identification system, the routing gateway and the blockchain processor may be applied to the embodiments, and the same technical effects may be achieved.
The method and the system of the embodiment of the invention can realize the safety protection capabilities of protecting equipment data in a factory, encrypting transmission data, isolating internal and external safety, checking user identity and the like. Compared with the traditional system, the system can better cope with the problem of high deployment cost of the industrial Internet, and effectively reduces redundant equipment on site. And classifying and sorting each factory, each production line, each machine and each protocol data of the production site through the privately-owned identification system, uniformly storing the data, and distributing the data to an external analyzer system by a routing gateway to be converted into consumption data required by an upper computer system. The scheme of the invention can be widely applied to various industrial scenes.
The embodiment of the invention also provides a processing device, which comprises: a processor, a memory storing a computer program which, when executed by the processor, performs the method as described above. All the implementation manners in the above method embodiments are applicable to the embodiment, and the same technical effects can be achieved.
Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform a method as described above. All the implementation manners in the above method embodiments are applicable to the embodiment, and the same technical effects can be achieved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
Furthermore, it should be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. Also, the steps of performing the series of processes described above may naturally be performed in chronological order in the order of description, but are not necessarily performed in chronological order, and some steps may be performed in parallel or independently of each other. It will be appreciated by those of ordinary skill in the art that all or any of the steps or components of the methods and apparatus of the present invention may be implemented in hardware, firmware, software, or a combination thereof in any computing device (including processors, storage media, etc.) or network of computing devices, as would be apparent to one of ordinary skill in the art after reading this description of the invention.
The object of the invention can thus also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general purpose device. The object of the invention can thus also be achieved by merely providing a program product containing program code for implementing said method or apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is apparent that the storage medium may be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. The steps of executing the series of processes may naturally be executed in chronological order in the order described, but are not necessarily executed in chronological order. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (24)

1. A data processing method, applied to a privately owned marking system, comprising:
acquiring a device information frame of field data acquired by a field device;
respectively adding a first identification frame to a plurality of equipment information frames to obtain a data frame with the first identification frame, wherein the first identification frame is used for indicating a blockchain processor to generate a routing table and send the routing table to a routing gateway, indicating the routing gateway to send the queried data file corresponding to a second identification frame to an external interface for processing according to the routing table, and transmitting the data frames of different equipment to a unified analysis layer by the routing gateway through identifying the first identification frame so as to complete data analysis;
the second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
2. The method of claim 1, wherein adding the first identification frame to the device information frame to obtain a data frame having the first identification frame, comprises:
inserting a first identification frame of the field device before the device information frame, obtaining a data frame with the first identification frame, wherein the first identification frame comprises at least one of the following of the field device: numbering the factory; numbering the production line; numbering the machine; protocol numbering.
3. A data processing method according to claim 2, wherein the factory floor number, line number, machine number and/or protocol number in the data frame generated by the same field device are fixed.
4. The data processing method according to claim 1, characterized by further comprising:
and storing the data file formed by the data frames with the first identification frames in a data center.
5. A data processing method for use with a blockchain processor, the method comprising:
the method comprises the steps that a privatized identification system is obtained, a first identification frame is added to a device information frame, and an obtained data frame with the first identification frame is obtained;
processing the first identification frame of the data frame to obtain a processing result;
generating a routing table according to the processing result;
the routing gateway transmits data frames of different devices to the unified parsing layer by identifying the first identification frame so as to complete data parsing;
the second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
6. The method according to claim 5, wherein processing the first identification frame of the data frame to obtain a processing result comprises:
And carrying out hash operation on the first identification frame of the data frame to obtain a hash value corresponding to the first identification frame.
7. The data processing method according to claim 6, wherein generating a routing table based on the processing result comprises:
and generating a routing table containing the first identification frame and the hash value and the corresponding relation between the first identification frame and the hash value according to the first identification frame and the hash value corresponding to the first identification frame.
8. The data processing method of claim 7, further comprising:
caching the routing table to a memory of the blockchain processor; and/or
And sending the routing table to a routing gateway.
9. The data processing method according to claim 8, further comprising:
receiving a data query request sent by the routing gateway;
extracting a device information frame corresponding to a second identification frame according to a factory number, a production line number, a machine number and a protocol number which are defined by a privately owned identification system in the data query request, and encrypting the device information frame and the second identification frame to obtain a data file;
And returning the data file to the routing gateway.
10. A data processing method, applied to a routing gateway, the method comprising:
receiving a data query request transmitted by an external interface;
acquiring a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request, wherein the data file is formed by a data frame obtained by adding the first identification frame to the equipment information frame by a privately owned identification system;
sending the data file to an external interface for processing to obtain a query result;
the routing gateway transmits data frames of different devices to the unified parsing layer by identifying the first identification frame so as to complete data parsing;
the second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
11. The data processing method of claim 10, wherein obtaining a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request, comprises:
inquiring a routing table cached by the routing gateway according to a second identification frame carried by the data inquiry request;
If the routing table containing the second identification frame exists, performing trusted authentication on the external interface;
and after the authentication is passed, acquiring the data file containing the second identification frame from the data center or the blockchain processor.
12. The data processing method of claim 11, wherein retrieving the data file containing the second identification frame from the blockchain processor comprises:
if the data query request is a data query request with the secret higher than a first preset value, the data query request is sent to the blockchain processor;
and receiving an encrypted file returned by the blockchain processor, wherein the encrypted file is a data file obtained by the blockchain processor after extracting a device information frame corresponding to the second identification frame according to the second identification frame in the data query request and encrypting the device information frame and the second identification frame.
13. The data processing method of claim 11, wherein obtaining the data file containing the second identification frame from the data center comprises:
if the data query request is a data query request with the security level lower than a first preset value, the data query request is sent to a data center;
And receiving a data file containing the second identification frame returned by the data center.
14. The data processing method according to claim 12 or 13, wherein sending the data file to an external interface for processing to obtain a query result, comprises:
the data file is sent to an external interface, and the external interface distributes the data file to a protocol analyzer corresponding to the second identification frame in an analysis layer for processing according to the second identification frame to obtain a query result; the parsing layer comprises at least one protocol parser, and one identification frame corresponds to one protocol parser.
15. A data processing apparatus for use in a privately owned identification system, said apparatus comprising:
the acquisition module is used for acquiring equipment information frames of field data acquired by the field equipment;
the processing module is used for adding a first identification frame to the equipment information frame to obtain a data frame with the first identification frame, the first identification frame is used for indicating the blockchain processor to generate a routing table and send the routing table to the routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table, and the routing gateway transmits the data frames of different equipment to the unified analysis layer by identifying the first identification frame so as to complete data analysis;
The second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
16. A privately owned marking system comprising a data processing apparatus according to claim 15.
17. A data processing apparatus for use with a blockchain processor, the apparatus comprising:
the acquisition module is used for acquiring a data frame which is obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system;
the processing module is used for processing the first identification frame of the data frame to obtain a processing result; generating a routing table according to the processing result;
the routing gateway transmits data frames of different devices to the unified parsing layer by identifying the first identification frame so as to complete data parsing;
the second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
18. A blockchain processor comprising the data processing device of claim 17.
19. A data processing apparatus for use in a routing gateway, the apparatus comprising:
the receiving and transmitting module is used for receiving a data query request transmitted by the external interface;
The processing module is used for acquiring a data file containing the second identification frame from a data center or a blockchain processor according to the second identification frame carried by the data query request; the data file is formed by a data frame obtained by adding a first identification frame to the equipment information frame by the privately-owned identification system;
the receiving and transmitting module is also used for sending the data file to an external interface for processing to obtain a query result;
the routing gateway transmits data frames of different devices to the unified parsing layer by identifying the first identification frame so as to complete data parsing;
the second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
20. A routing gateway comprising the data processing apparatus of claim 19.
21. A data processing system, comprising: a privatized identification system, a routing gateway, and a blockchain processor;
the privatized identification system acquires a device information frame of field data acquired by field devices through the routing gateway; adding an identification frame to the equipment information frame to obtain a data frame with the identification frame, and storing the data frame in a data center and/or sending the data frame to a block chain processor; the identification frame is used for indicating the blockchain processor to generate a routing table and send the routing table to the routing gateway, and indicating the routing gateway to send the queried data file corresponding to the second identification frame to an external interface for processing according to the routing table;
The block chain processor obtains a privatized identification system, adds a first identification frame to the equipment information frame, and obtains a data frame with the first identification frame; processing the first identification frame of the data frame to obtain a processing result; generating a routing table according to the processing result, and caching the routing table to a memory of the blockchain processor and/or issuing the routing table to the routing gateway;
the routing gateway transmits data frames of different devices to the unified parsing layer by identifying the first identification frame so as to complete data parsing;
the second identification frame is carried in a data query request transmitted by an external interface received by the routing gateway.
22. The data processing system of claim 21, wherein the data processing system further comprises a data processing system,
the routing gateway receives a data query request transmitted by an external interface; acquiring a data file containing a second identification frame according to the second identification frame carried by the data query request; and sending the data file to an external interface for processing to obtain a query result.
23. The data processing system of claim 22, wherein the privately owned identification system, routing gateway, and blockchain processor are located in a local area network, and the external interface connects the local area network with an external public network.
24. A computer readable storage medium storing instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 4 or the method of any one of claims 5 to 9 or the method of any one of claims 10 to 14.
CN202110389406.3A 2021-04-12 2021-04-12 Data processing method, device and system Active CN115208826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110389406.3A CN115208826B (en) 2021-04-12 2021-04-12 Data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110389406.3A CN115208826B (en) 2021-04-12 2021-04-12 Data processing method, device and system

Publications (2)

Publication Number Publication Date
CN115208826A CN115208826A (en) 2022-10-18
CN115208826B true CN115208826B (en) 2023-12-01

Family

ID=83571083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110389406.3A Active CN115208826B (en) 2021-04-12 2021-04-12 Data processing method, device and system

Country Status (1)

Country Link
CN (1) CN115208826B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473749B1 (en) * 2000-02-22 2002-10-29 Robert Scott Smith System and method for managing file content
CN101068198A (en) * 2007-01-29 2007-11-07 当代天启技术(北京)有限公司 Method, device and system for transmitting information in building system
CN105240051A (en) * 2015-10-10 2016-01-13 成都金自天正智能控制有限公司 Field bus mine measurement and control system
CN107193869A (en) * 2017-04-10 2017-09-22 深圳市智物联网络有限公司 The method and device of data access in industrial Internet of Things cloud platform
CN107959620A (en) * 2017-12-11 2018-04-24 日立楼宇技术(广州)有限公司 Fully-mechanized mining equipment recognition methods, device, system, gateway and storage medium
US10031500B1 (en) * 2017-03-01 2018-07-24 PLETHORA IIoT, S.L. Device and system including multiple devices for supervision and control of machines in industrial installation
CN109510759A (en) * 2018-10-22 2019-03-22 智强通达科技(北京)有限公司 A kind of Universal-purpose quick multi-protocol gateway realization system and method
CN110533789A (en) * 2019-07-23 2019-12-03 中国联合网络通信集团有限公司 A kind of equipment routing inspection management method and device based on block chain
CN111104366A (en) * 2019-12-04 2020-05-05 苏州智加科技有限公司 Data archiving method, device, server and storage medium
CN111125426A (en) * 2019-12-20 2020-05-08 视联动力信息技术股份有限公司 Data storage and query method and device
CN111597567A (en) * 2020-05-14 2020-08-28 腾讯科技(深圳)有限公司 Data processing method, data processing device, node equipment and storage medium
CN112134956A (en) * 2020-09-23 2020-12-25 中国科学院深圳先进技术研究院 Distributed Internet of things instruction management method and system based on block chain
CN112153048A (en) * 2020-09-24 2020-12-29 珠海格力电器股份有限公司 Information analysis method, information analysis device, information analysis system, storage medium, and electronic device
CN112583594A (en) * 2020-11-24 2021-03-30 北京数字认证股份有限公司 Data processing method, acquisition device, gateway, trusted platform and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473749B1 (en) * 2000-02-22 2002-10-29 Robert Scott Smith System and method for managing file content
CN101068198A (en) * 2007-01-29 2007-11-07 当代天启技术(北京)有限公司 Method, device and system for transmitting information in building system
CN105240051A (en) * 2015-10-10 2016-01-13 成都金自天正智能控制有限公司 Field bus mine measurement and control system
US10031500B1 (en) * 2017-03-01 2018-07-24 PLETHORA IIoT, S.L. Device and system including multiple devices for supervision and control of machines in industrial installation
CN107193869A (en) * 2017-04-10 2017-09-22 深圳市智物联网络有限公司 The method and device of data access in industrial Internet of Things cloud platform
CN107959620A (en) * 2017-12-11 2018-04-24 日立楼宇技术(广州)有限公司 Fully-mechanized mining equipment recognition methods, device, system, gateway and storage medium
CN109510759A (en) * 2018-10-22 2019-03-22 智强通达科技(北京)有限公司 A kind of Universal-purpose quick multi-protocol gateway realization system and method
CN110533789A (en) * 2019-07-23 2019-12-03 中国联合网络通信集团有限公司 A kind of equipment routing inspection management method and device based on block chain
CN111104366A (en) * 2019-12-04 2020-05-05 苏州智加科技有限公司 Data archiving method, device, server and storage medium
CN111125426A (en) * 2019-12-20 2020-05-08 视联动力信息技术股份有限公司 Data storage and query method and device
CN111597567A (en) * 2020-05-14 2020-08-28 腾讯科技(深圳)有限公司 Data processing method, data processing device, node equipment and storage medium
CN112134956A (en) * 2020-09-23 2020-12-25 中国科学院深圳先进技术研究院 Distributed Internet of things instruction management method and system based on block chain
CN112153048A (en) * 2020-09-24 2020-12-29 珠海格力电器股份有限公司 Information analysis method, information analysis device, information analysis system, storage medium, and electronic device
CN112583594A (en) * 2020-11-24 2021-03-30 北京数字认证股份有限公司 Data processing method, acquisition device, gateway, trusted platform and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
农业物联网数据监测系统中间件技术的研究与应用;董立志;《中国优秀硕士学位论文全文数据库》;全文 *
基于 CoAP 协议的数据采集网关设计;李 琦,张 康,王月明;《电子技术应用》;154-156、160 *

Also Published As

Publication number Publication date
CN115208826A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
CN102291268B (en) Safety domain name server and hostile domain name monitoring system and method based on same
CN107770182A (en) The date storage method and home gateway of home gateway
US8011004B2 (en) Apparatus and method for VPN communication in socket-level
CN112434113B (en) MES system identification analysis data management system and method
CN102918534A (en) Query pipeline
CN100399747C (en) Computer network strategy management system and strategy management method
KR102177411B1 (en) Method for managing industrial control systems via physical one-way encryption remote monitoring
CN111181912B (en) Browser identifier processing method and device, electronic equipment and storage medium
CN111274268A (en) Internet of things data transmission method, device, medium and electronic equipment
CN101076792A (en) Method and device for fiber-optical channel public transmission secret protection
JP2001177513A (en) Authenticating method in communication system, center equipment, and recording medium with authentication program recorded thereon
CN114268429A (en) Terminal-specific encrypted communication access device
CN101939751A (en) Process distribution system, authentication server, distribution server, and process distribution method
US11546356B2 (en) Threat information extraction apparatus and threat information extraction system
CN115208826B (en) Data processing method, device and system
CN111698248B (en) Network authorization management method and system based on label
CN104994078B (en) Information transmission, acquisition methods and device, information processing system in local area network
CN113992734A (en) Session connection method, device and equipment
CN109788249B (en) Video monitoring control method based on industrial internet operating system
CN101753353B (en) SNMP based safety management method, Trap message processing method and device
CN113746807A (en) Block chain node point support cryptographic algorithm communication detection method
CN112261055B (en) Method, system and gateway equipment for directional pushing of real-time data
CN114124376B (en) Data processing method and system based on network data acquisition
CN117194334B (en) Log storage method, device, equipment and medium of distributed log storage system
US11902084B2 (en) System, method, and computer program product for detecting an anomaly in network activity

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
GR01 Patent grant
GR01 Patent grant