CN116506335B - Data encapsulation method, probe, acquisition method and system based on Ethernet transmission - Google Patents

Data encapsulation method, probe, acquisition method and system based on Ethernet transmission Download PDF

Info

Publication number
CN116506335B
CN116506335B CN202310766952.3A CN202310766952A CN116506335B CN 116506335 B CN116506335 B CN 116506335B CN 202310766952 A CN202310766952 A CN 202310766952A CN 116506335 B CN116506335 B CN 116506335B
Authority
CN
China
Prior art keywords
ethernet
data
time
message
ethernet message
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
CN202310766952.3A
Other languages
Chinese (zh)
Other versions
CN116506335A (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.)
Guangdong Academy Of Sciences Foshan Industrial Technology Research Institute Co ltd
Original Assignee
Guangdong Academy Of Sciences Foshan Industrial Technology Research Institute 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 Guangdong Academy Of Sciences Foshan Industrial Technology Research Institute Co ltd filed Critical Guangdong Academy Of Sciences Foshan Industrial Technology Research Institute Co ltd
Priority to CN202310766952.3A priority Critical patent/CN116506335B/en
Publication of CN116506335A publication Critical patent/CN116506335A/en
Application granted granted Critical
Publication of CN116506335B publication Critical patent/CN116506335B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to the technical field of communication, and particularly discloses a data encapsulation method, a probe, a collection method and a system based on Ethernet transmission, wherein the encapsulation method comprises the following steps: when a first Ethernet message is intercepted, locking first time information determined based on time-transparent network time service; taking the first Ethernet message and the first time information as data encapsulation to obtain a second Ethernet message; when the packaging method detects a first Ethernet message generated and transmitted by industrial equipment, the first Ethernet message is locked based on time-transparent network time service, so that the first Ethernet message and first time information are packaged into a second Ethernet message, high-precision time alignment of industrial discrete data is realized, the second Ethernet message is analyzed to obtain the first Ethernet message and the high-precision time of a TAN system corresponding to the first Ethernet message, and a time reference can be provided for various industrial data analysis.

Description

Data encapsulation method, probe, acquisition method and system based on Ethernet transmission
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data encapsulation method, a probe, an acquisition method, and a system based on ethernet transmission.
Background
The existing industrial equipment generally performs equipment data acquisition based on independent data acquisition equipment, and cannot realize large-scale synchronous acquisition, mainly because acquired data are not unified on the same time plane, such as high-precision clock synchronization among the acquisition equipment, accurate time alignment cannot be realized, time logic of the data is unclear, and centralized analysis of all the data cannot be integrated.
In view of the above problems, no effective technical solution is currently available.
Disclosure of Invention
The application aims to provide a data packaging method, a probe, a data acquisition method and a data acquisition system based on Ethernet transmission, so as to realize time alignment of industrial data.
In a first aspect, the present application provides a data encapsulation method based on ethernet transmission, where the data encapsulation method based on ethernet transmission includes the following steps:
when a first Ethernet message is intercepted, locking first time information determined based on time-transparent network time service;
and taking the first Ethernet message and the first time information as data packages to obtain a second Ethernet message.
The data encapsulation method based on the Ethernet transmission can be applied to industrial data acquisition, when a first Ethernet message generated and transmitted by industrial equipment is intercepted, the occurrence time of the first Ethernet message is locked based on time-transparent network time service, so that the first Ethernet message and first time information are encapsulated into a second Ethernet message, high-precision time alignment of industrial discrete data is realized, the second Ethernet message can be used as interception data or historical data, the second Ethernet message can be analyzed to obtain the first Ethernet message and the high-precision time of a TAN system corresponding to the first Ethernet message, and a time reference can be provided for various industrial data analysis.
The step of obtaining the second ethernet message by using the first ethernet message and the first time information as data packages includes:
encapsulating the first Ethernet message into a first TAN message according to the first time information;
and taking the first TAN message as a data package to acquire the second Ethernet message.
In a second aspect, the application also provides a probe for mounting on a network cable or optical fiber connected to an industrial device, the probe comprising:
the transmission module is used for transmitting the first Ethernet message;
the packaging module is used for monitoring the transmission module, locking first time information determined based on time clear network time service when the first Ethernet message is monitored, and taking the first Ethernet message and the first time information as data packages to obtain a second Ethernet message;
and the uploading module is used for uploading the second Ethernet message.
The probe is used for monitoring message data in a communication network formed by industrial equipment, when the first Ethernet message generated and transmitted by the industrial equipment is monitored through the packaging module, the occurrence time of the first Ethernet message is locked based on time-transparent network time service, so that the first Ethernet message and the first time information are packaged into a second Ethernet message, high-precision time alignment of industrial discrete data is realized, and the second Ethernet message is uploaded to corresponding data processing equipment by the uploading module; the second Ethernet message is analyzed to obtain the first Ethernet message and the high-precision time of the TAN system corresponding to the first Ethernet message, and a time reference can be provided for various industrial data analysis.
The probe, wherein the data content of the second ethernet message includes data transmission direction information of the transmission module.
The probe, wherein the data content of the second ethernet message includes probe ID information.
The probe comprises a transmission module and a probe body, wherein the transmission module comprises a plurality of groups of data transparent transmission ports.
In a third aspect, the present application further provides a data acquisition method based on ethernet transmission, which is applied to a data acquisition system based on ethernet transmission, where the data acquisition system based on ethernet transmission includes:
the system comprises a main clock source, a data platform and a plurality of industrial devices, wherein at least two industrial devices are connected based on network cables or optical fibers in a communication manner;
the data acquisition method based on the Ethernet transmission comprises the following steps:
acquiring clock information based on time-transparent network time service based on a master clock source;
when the industrial equipment transmits a first Ethernet message based on a network cable or an optical fiber, locking first time information determined based on clock information of time-transparent network time service, and acquiring a second Ethernet message by taking the first Ethernet message and the first time information as data packages;
and uploading the second Ethernet message to the data platform.
The data acquisition method based on the Ethernet transmission is applied to a data acquisition system based on the Ethernet transmission, performs data acquisition, encapsulation and uploading under the clock information of the same master clock source based on time-transparent network time service, locks the occurrence time of a first Ethernet message generated and transmitted by industrial equipment based on the time-transparent network time service when the first Ethernet message is intercepted, encapsulates the first Ethernet message and the first time information into a second Ethernet message and uploads the data, realizes high-precision time alignment of industrial discrete data, analyzes a plurality of second Ethernet messages stored in a data platform, can acquire high-precision time of a plurality of first Ethernet messages and TANs corresponding to the first Ethernet messages, and can provide a time reference for various industrial data analysis.
In a fourth aspect, the present application further provides a data acquisition system based on ethernet transmission, including:
the system comprises a main clock source, a data platform, probes and a plurality of industrial devices, wherein at least two industrial devices are in communication connection based on a network cable or optical fibers, and the probes are arranged on the network cable or the optical fibers;
the master clock source is used for timing the probe according to the time definition network so as to enable the probe to acquire clock information based on the time definition network timing;
the probe is used for transmitting a first Ethernet message transmitted by industrial equipment based on the network cable or the optical fiber, locking first time information determined based on clock information of time clear network time service when the industrial equipment is detected to transmit the first Ethernet message based on the network cable or the optical fiber, acquiring a second Ethernet message by taking the first Ethernet message and the first time information as data packages, and uploading the second Ethernet message to the data platform.
The data acquisition system based on the Ethernet transmission performs data acquisition, encapsulation and uploading under the clock information of the same master clock source based on the time-transparent network time service, locks the occurrence time of the first Ethernet message based on the time-transparent network time service when the first Ethernet message generated and transmitted by the industrial equipment is intercepted by utilizing the probe, encapsulates the first Ethernet message and the first time information into the second Ethernet message and uploads the data, realizes high-precision time alignment of industrial discrete data, analyzes the second Ethernet messages stored in the data platform, can acquire the first Ethernet messages and the high-precision time of a TAN system corresponding to the first Ethernet messages, and can provide a time reference for various industrial data analysis.
The data acquisition system based on the Ethernet transmission comprises a plurality of probes, wherein the probes are cascaded to form a probe network, and all probes in the probe network are time-stamped based on the master clock source.
The data acquisition system based on the Ethernet transmission further comprises a monitoring network, and the probe is in communication connection with the data platform through the monitoring network.
As can be seen from the foregoing, the present application provides a data encapsulation method, a probe, an acquisition method and a system based on ethernet transmission, where the data encapsulation method based on ethernet transmission can be applied in industrial data acquisition, when a first ethernet packet generated and transmitted by an industrial device is detected, the occurrence timing of the first ethernet packet is locked based on time-aware network timing, so as to encapsulate the first ethernet packet and first time information into a second ethernet packet, thereby implementing high-precision time alignment of industrial discrete data, the second ethernet packet can be used as monitoring data or historical data, and analyzing the second ethernet packet can obtain the first ethernet packet and the high-precision time of TAN standard corresponding to the first ethernet packet, so as to provide a time reference for various industrial data analyses.
Drawings
Fig. 1 is a flowchart of a data encapsulation method based on ethernet transmission according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a first TAN packet.
Fig. 3 is a schematic diagram of a structure of a second ethernet packet.
Fig. 4 is a schematic structural diagram of a probe according to an embodiment of the present application.
Fig. 5 is a flowchart of a data collection method based on ethernet transmission according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a data acquisition system based on ethernet transmission according to an embodiment of the present application.
Fig. 7 is a detailed structural diagram of a second ethernet packet in some embodiments.
Reference numerals: 201. a transmission module; 202. packaging the module; 203. an uploading module; 401. a probe; 402. a master clock source; 403. a data platform; 404. and monitoring the network.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, some embodiments of the present application provide a data encapsulation method based on ethernet transmission, the data encapsulation method based on ethernet transmission includes the following steps:
s1, when a first Ethernet message is intercepted, locking first time information determined based on time-transparent network time service;
s2, taking the first Ethernet message and the first time information as data packages to obtain a second Ethernet message.
Specifically, the data encapsulation method based on ethernet transmission in the embodiment of the present application is applied to a data monitoring device or a data transmission device, and aims to assign first time information to a first ethernet packet based on an accurate time dimension, so as to encapsulate and obtain a second ethernet packet with high-precision time information.
More specifically, the first ethernet packet is packet data generated and transmitted by the ethernet switching device, which may be a packet including an operation instruction, or may be a packet including an operation parameter, and in the embodiment of the present application, the first ethernet packet is preferably a packet including various discrete data generated by running various industrial devices in an industrial workshop, which can reflect the running states of various industrial devices in the industrial workshop; the data encapsulation method based on the Ethernet transmission in the embodiment of the application does not affect the transmission of the first Ethernet message, but determines the time node of the first Ethernet message when the first Ethernet message is transmitted in a specific area by monitoring the occurrence of the first Ethernet message, determines the time node based on a time transparent network with ultra-high time precision, namely determines first time information, encapsulates the first time information representing the time node as time data and the first Ethernet message representing industrial discrete data in the second Ethernet message as common data, and enables the first Ethernet message with poor time alignment effect to be highly aligned by taking the time transparent network as a time reference so as to be encapsulated into the second Ethernet message; it should be noted that the second ethernet packet is generally not used as an interactive packet of various industrial devices in the industrial workshop, but is stored in a data backup device or uploaded to a server for use as listening data or history data, that is, the second ethernet packet is a new ethernet protocol-compliant packet generated based on the first ethernet packet during the transmission of the first ethernet packet.
More specifically, a time-aware network (TAN, time Aware Network) is a completely new technology of industrial network communication network based on time, which can clarify the time of the whole communication network, the time of the interaction devices in the network and the time of transmitting data in the network, so that the time attribute of the devices time-service based on the network has high accuracy, and the time of a plurality of time-service devices is highly aligned.
More specifically, in the existing industrial ethernet switching technology (EOE, ethernet Over Ethernet), the packets transmitted therein must conform to the ethernet packet format, i.e., the transmitted packet data must have an ethernet header, and the time determined by TAN timing cannot be directly used as the time of the ethernet header; therefore, the encapsulation method of the embodiment of the application encapsulates the first Ethernet message and the first time information into the new second Ethernet message, and can transmit in the existing Ethernet switching network, namely, the second Ethernet message can be transmitted without modifying the communication channel of the existing Ethernet switching network; therefore, the second ethernet message in the embodiment of the present application can be transmitted based on ethernet, and after being parsed, the first ethernet message and the first time information when the first ethernet message is detected can be obtained, so that the first ethernet message is matched with a time attribute with high precision.
More specifically, the first time information locked in step S1 is a time node where the first ethernet packet is detected, that is, reflects an occurrence time of the first ethernet packet at a specific location in a transmission network (industrial ethernet), if the first time information is detected by a packet generating device, the first time information is a time node where the first ethernet packet is generated, and if the first time information is detected by a specific switching device or a transmission point in the transmission network, the first time information is a time node where the first ethernet packet passes through the switching device or the transmission point; by disposing a plurality of interception points in the whole transmission network, the step S1 of the encapsulation method of the embodiment of the application can accurately determine the generation time nodes of different first Ethernet messages and accurately position the transmission positions of the different first Ethernet messages about time; in the embodiment of the application, when a specific switching device or a transmission point in a transmission network is monitored, the first time information is a time node when the first ethernet message enters or is input to the corresponding switching device or transmission point.
More specifically, in step S1, the process of locking the first time information is to determine and extract the corresponding first time information, which does not affect the change in time determined based on the time-transparent network time service.
The data encapsulation method based on the Ethernet transmission can be applied to industrial data acquisition, when a first Ethernet message generated and transmitted by industrial equipment is intercepted, the occurrence time of the first Ethernet message is locked based on time-transparent network time service, so that the first Ethernet message and first time information are encapsulated into a second Ethernet message, high-precision time alignment of industrial discrete data is realized, the second Ethernet message can be used as interception data or historical data, the second Ethernet message is analyzed to obtain the first Ethernet message and the high-precision time of a TAN system corresponding to the first Ethernet message, and a time reference can be provided for various industrial data analysis.
In some preferred embodiments, the step of obtaining the second ethernet packet with the first ethernet packet and the first time information as the data package includes:
s21, packaging the first Ethernet message into a first TAN message according to the first time information;
s22, the first TAN message is used as data package to obtain a second Ethernet message.
Specifically, the message is generally divided into two parts of an encapsulation header and data, for example, the ethernet message is composed of an ethernet frame header (i.e. encapsulation header) and data, and the TAN message is composed of a TAN frame header and data; step S21 is equivalent to encapsulating the received first ethernet packet into a data portion of a TAN packet, then generating a TAN frame header according to TAN encapsulation logic and first time information, and then combining the TAN frame header and the data portion into a first TAN packet; similarly, step S22 is equivalent to encapsulating the first TAN packet generated in step S21 into a data portion of an ethernet packet, then generating an ethernet frame header according to ethernet encapsulation logic, and then combining the ethernet frame header and the data portion into a second ethernet packet.
More specifically, as shown in fig. 2, the first TAN packet includes a TAN frame header and a first ethernet packet, and as shown in fig. 3, the second ethernet packet includes an ethernet frame header (i.e., the encapsulation header in fig. 7) that is preferably a three-layer ethernet UPD frame header, and a data portion that is composed of the TAN frame header and the first ethernet packet; therefore, if the frame header information and the complete TAN message of the second ethernet message can be obtained by analyzing the second ethernet message, then the accurate time and the original first ethernet message determined based on the time-transparent network can be obtained by analyzing the TAN message.
In some preferred embodiments, step S21 includes:
and packaging the first Ethernet message into a first TAN message according to the first time information and the data transmission direction information.
In some other embodiments, step S21 includes:
and packaging the first Ethernet message into a first TAN message according to the first time information and the probe ID information.
In some more preferred embodiments, step S21 comprises:
and packaging the first Ethernet message into a first TAN message according to the first time information, the data transmission direction information and the probe ID information.
In a second aspect, referring to fig. 4, some embodiments of the present application also provide a probe for being installed on a network cable or an optical fiber connected to an industrial device, the probe comprising:
a transmission module 201, configured to transmit a first ethernet packet;
the encapsulation module 202 is configured to intercept the transmission module, and is further configured to lock first time information determined based on time-transparent network timing when the first ethernet packet is intercepted, and acquire a second ethernet packet by using the first ethernet packet and the first time information as data encapsulation;
and the uploading module 203 is configured to upload the second ethernet packet.
Specifically, the probe of the embodiment of the present application belongs to a interception device of an ethernet packet, and has two data channels, where the transmission module 201 forms a first data channel for transmitting packet data on a network cable or an optical fiber, so that the first ethernet packet can be transmitted, and the encapsulation module 202 and the uploading module 203 form another data channel different from the transmission module 201, and are used for copying and collecting the first ethernet packet and packaging the first ethernet packet into a second ethernet packet for uploading under the condition that the transmission module 201 is not affected to transmit the first ethernet packet; therefore, the probe of the embodiment of the application can realize the encapsulation and uploading of the second Ethernet message on the premise of not influencing the transmission of the first Ethernet message, thereby avoiding the influence of the encapsulation process on the data transmission efficiency and having the effect of low transmission delay.
The probe of the embodiment of the application is used for monitoring message data in a communication network formed by industrial equipment, and when the first Ethernet message generated and transmitted by the industrial equipment is monitored through the packaging module 202, the occurrence time of the first Ethernet message is locked based on time-transparent network time service so as to package the first Ethernet message and first time information into a second Ethernet message, thereby realizing high-precision time alignment of industrial discrete data, and the second Ethernet message is uploaded to corresponding data processing equipment by the uploading module 203; the second Ethernet message is analyzed to obtain the first Ethernet message and the high-precision time of the TAN system corresponding to the first Ethernet message, and a time reference can be provided for various industrial data analysis.
In some preferred embodiments, the data content of the second ethernet packet includes data transmission direction information of the transmission module.
Specifically, the data transmission direction information is the transmission direction of the first ethernet message in the network cable, the optical fiber or the probe.
More specifically, in general, the packet data of the industrial device belongs to the interactive data information, so for the data acquisition service, the transmission direction of the packet data needs to be considered, so when the probe of the embodiment of the application performs second ethernet packet encapsulation, the data transmission direction information representing the data transmission direction is encapsulated in the second ethernet packet, so that the transmission path of the first ethernet packet in the communication network formed by the whole industrial device can be determined when the data analysis is performed later.
More specifically, in the embodiment of the present application, the data transmission direction information is determined by sensing, by the transmission module 201, the input-output relationship of the first ethernet packet, and is obtained by interception by the encapsulation module 202, and then encapsulated in the second ethernet packet; since the data transmission direction information belongs to frame header information of the unconventional ethernet message, the probe according to the embodiment of the present application preferably encapsulates the data transmission direction information in the TAN frame header.
In some preferred embodiments, the data transmission direction information includes input direction information and output direction information; the input direction information represents the source direction of the first Ethernet message input to the probe, and the output direction information represents the output target direction of the first Ethernet message in the probe.
Because the industrial devices are connected in a crisscross manner, the input and output ends of one industrial device are often connected with a plurality of other industrial devices, and a plurality of branches may be formed on one network cable, in the embodiment of the application, the input direction information is preferably the ID information of the source device, and the output direction information is preferably the ID information of the destination device, so that the probe can accurately record and package the data transmission direction information.
In some more preferred embodiments, as shown in fig. 7, the input direction information is preferably source probe device ID information (i.e., source TAN switch device ID), and the output direction information is preferably destination probe ID information (i.e., destination TAN switch device ID); the industrial equipment is essentially a generating and receiving terminal of the first ethernet message, and the second ethernet message uploaded by the probe package of the embodiment of the present application is mainly used for analyzing a transmission relationship of message data about time, that is, a transmission path of the first ethernet message in a network cable or an optical fiber needs to be considered, so that, in a case that a plurality of probes are arranged in the network cable or the optical fiber, data transmission direction information needs to be considered essentially a transmission relationship in a interception network formed by the plurality of probes, so as to further determine a transmission characteristic of industrial discrete data about time and direction in the whole transmission network, and clearly analyze a flow direction of the industrial discrete data.
In some preferred embodiments, the data content of the second ethernet message comprises probe ID information.
Specifically, the probe ID information is the ID of the probe currently collecting the first ethernet message, and because the probe ID information belongs to frame header information of a non-traditional ethernet message, the probe in the embodiment of the present application preferably encapsulates the probe ID information in a TAN frame header; for the case that a plurality of probes are arranged in the network cable or the optical fiber, the probe ID information can determine the current position information of the first Ethernet message in the whole transmission network, so that the subsequent data analysis can further determine the transmission characteristics of the industrial discrete data in the whole transmission network about time and position.
In some more preferred embodiments, for a interception network formed by multiple probes, for each probe, only the data output direction needs to be clear, so that the transmission direction of the first ethernet message can be determined by means of the data transmission direction information recorded by the last probe, so that the ID information of the source device is preferably the probe ID information of the probe intercepting the first ethernet message, so that the data transmission direction information includes the ID of the probe and the ID of the destination probe, and the direction characteristic of the transmission of the first ethernet message can be determined.
In some preferred embodiments, the transmission module includes multiple sets of data transparent ports.
Specifically, based on the foregoing, the probe needs to consider data interaction of different industrial devices, so multiple sets of data transparent transmission ports need to be provided to intercept first ethernet messages transmitted by different devices based on different directions.
In some preferred embodiments, when the probe listens to the header of the first ethernet packet (the local packet received earlier), the encapsulation module 202 is used to lock the first time information, and after the first ethernet packet enters the transmission module 201 for a certain length (reaching a preset length), the encapsulation action is started, and when the encapsulation action is performed, the transmission module 201 keeps the forwarding transmission of the first ethernet packet, so as to ensure that the first ethernet packet passes through the probe with ultra-low delay; the processing manner of starting the packaging action with delay based on the length determination can avoid the locking action of the packaging module 202, the packaging action and the starting transmission action of the transmission module 201 from being triggered simultaneously to cause data blocking.
In a third aspect, referring to fig. 5, some embodiments of the present application further provide a data acquisition method based on ethernet transmission, which is applied to a data acquisition system based on ethernet transmission, where the data acquisition system based on ethernet transmission includes:
the system comprises a master clock source 402, a data platform 403 and a plurality of industrial devices, wherein at least two industrial devices are connected based on network cables or optical fibers in a communication manner;
the data acquisition method based on the Ethernet transmission comprises the following steps:
a1, acquiring clock information based on time-transparent network time service based on a master clock source 402;
a2, when the industrial equipment is monitored to transmit a first Ethernet message based on a network cable or an optical fiber, locking first time information determined based on clock information of time-transparent network time service, and acquiring a second Ethernet message by taking the first Ethernet message and the first time information as data encapsulation;
a3, uploading the second Ethernet message to the data platform 403.
Specifically, the data acquisition method based on ethernet transmission in the embodiment of the present application is used to intercept packet data of each position node of a transmission network formed by industrial equipment, and packet interception and encapsulation processing actions for the nodes in different positions are performed under the clock information of the same master clock source 402 based on time-transparent network timing, so as to ensure that second ethernet packets acquired by encapsulation all contain precisely aligned first time information.
The data acquisition method based on the ethernet transmission in the embodiment of the present application is applied to a data acquisition system based on the ethernet transmission, and performs data acquisition, encapsulation and uploading under the clock information of the same master clock source 402 based on the time-transparent network time service, when a first ethernet packet generated and transmitted by an industrial device is detected, the occurrence timing of the first ethernet packet is locked based on the time-transparent network time service, so that the first ethernet packet and the first time information are encapsulated into a second ethernet packet and data uploading is performed, high-precision time alignment of industrial discrete data is realized, and a plurality of second ethernet packets stored in the data platform 403 are parsed, so that a plurality of first ethernet packets and high-precision time of a TAN format corresponding to the first ethernet packets can be acquired, and a time reference can be provided for various industrial data analysis.
In a fourth aspect, referring to fig. 6, some embodiments of the present application further provide a data acquisition system based on ethernet transmission, including:
a master clock source 402, a data platform 403, a probe 401 and a plurality of industrial devices (not shown), wherein at least two industrial devices are connected based on network cable or optical fiber communication, and the probe 401 is installed on the network cable or optical fiber;
the master clock source 402 is configured to time the probe 401 according to the time-transparent network, so that the probe 401 obtains clock information based on time-transparent network time service;
the probe 401 is configured to transmit a first ethernet packet transmitted by an industrial device based on a network cable or an optical fiber, and lock first time information determined based on clock information of time-transparent network timing when the industrial device is detected to transmit the first ethernet packet based on the network cable or the optical fiber, acquire a second ethernet packet by using the first ethernet packet and the first time information as data packages, and upload the second ethernet packet to the data platform 403.
According to the data acquisition system based on Ethernet transmission, data acquisition, encapsulation and uploading are performed under the clock information of the same master clock source 402 based on time-transparent network time service, when a first Ethernet message generated and transmitted by industrial equipment is detected by using a probe 401, the occurrence time of the first Ethernet message is locked based on the time-transparent network time service, so that the first Ethernet message and the first time information are encapsulated into a second Ethernet message and data uploading is performed, high-precision time alignment of industrial discrete data is realized, a plurality of second Ethernet messages stored in a data platform 403 are analyzed, and then the high-precision time of a plurality of first Ethernet messages and TAN systems corresponding to the first Ethernet messages can be acquired, so that a time reference can be provided for various industrial data analysis.
In some preferred embodiments, the plurality of probes 401 is provided, the plurality of probes 401 are cascaded to form a probe 401 network, and all probes 401 in the probe 401 network are clocked based on a master clock source 402.
Specifically, the plurality of probes 401 are used for intercepting message data of nodes at different positions in a transmission network formed by industrial equipment, so that accuracy of time service needs to be ensured, and time service processing needs to be performed by using one master clock source 402, wherein in order to further improve accuracy of time service, in the embodiment of the application, the master clock source 402 only sends time service messages to one probe 401 to perform time service, and then the probe 401 network is used for performing upper and lower level time service processing based on the interconnected probes 401, so that time service efficiency and time service precision are improved.
In some preferred embodiments, the network of probes 401 is a ring network, i.e., multiple probe 401 timing ports are connected in a ring.
Specifically, for the network of probes 401 in the ring network, the master clock source 402 preferably performs time service processing based on a time-transparent network on all probes 401 in a manner based on a message queue; when a master clock source 402 is connected with one or more probes 401 in a network of probes 401, when a service is required, the master clock source 402 generates a master time service message determined based on a TAN system, and sends the master time service message to any probe 401 connected with the master time service message, the probe 401 which receives the message queue only containing the master time service message acquires synchronous information interacted with the master clock source 402, the synchronous information is filled behind the master time service message as a secondary time service message to form a message queue, then the probe 401 is used as a secondary clock exchange device to send the message queue to the next probe 401 along a single direction, the probe 401 which receives the message queue acquires synchronous information interacted with the message queue, fills the synchronous information into the tail end of the message queue, and as a secondary clock exchange device to continuously send the message queue to the next probe 401 along the single direction, and the process is repeated until the message queue returns to the first probe 401 which receives the message queue in the ring network and returns to the master clock source 402 for time service, so that the time service of all the probes 401 is calibrated; compared with the traditional time service processing mode one by one, the time service mode effectively saves time required by time service of the multi-interception device, and secondly, in the synchronization process, the probes 401 can calculate transmission errors according to a main time service message generated by a main clock source 402 in a message queue and all secondary time service messages in the message queue so as to perform clock adjustment on each probe 401, thereby ensuring accurate clock alignment of all probes 401.
In some preferred embodiments, the ethernet transport based data acquisition system further comprises a listening network 404, the probe 401 being communicatively connected to the data platform 403 via the listening network 404.
Specifically, the monitoring network 404 may be a TAN network or an EOE switch, which is configured to monitor the second ethernet packet uploaded by the probe 401 in the transmission network, and sort and package the second ethernet packet, upload the second ethernet packet to the data platform 403, and archive the data; for a transmission network formed by industrial equipment, an industrial workshop needs to be divided into different industrial areas by combining the working conditions and task allocation of the workshop, so that different monitoring networks 404 need to be set for data monitoring and classified uploading aiming at different industrial areas to realize the grading processing of the second Ethernet message.
In summary, the embodiment of the application provides a data encapsulation method, a probe, an acquisition method and a system based on ethernet transmission, wherein the data encapsulation method based on ethernet transmission can be applied to industrial data acquisition, when a first ethernet message generated and transmitted by industrial equipment is detected, the occurrence time of the first ethernet message is locked based on time-transparent network time service, so that the first ethernet message and first time information are encapsulated into a second ethernet message, thereby realizing high-precision time alignment of industrial discrete data, the second ethernet message can be used as monitoring data or historical data, analyzing the second ethernet message can acquire the first ethernet message and the high-precision time of a TAN system corresponding to the first ethernet message, and providing a time reference for various industrial data analysis.
The scheme of the embodiment of the application is mainly applied to industrial Ethernet equipment, but is not limited to the industrial Ethernet equipment, and can also be applied to various general network equipment.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over 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.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (8)

1. A probe for mounting on a wire or fiber connected to an industrial device, the probe comprising:
the transmission module is used for transmitting the first Ethernet message;
the packaging module is used for monitoring the transmission module, locking first time information determined based on time clear network time service when the first Ethernet message is monitored, and taking the first Ethernet message and the first time information as data packages to obtain a second Ethernet message;
the uploading module is used for uploading the second Ethernet message;
the step of obtaining the second ethernet packet by using the first ethernet packet and the first time information as data packages includes:
encapsulating the first Ethernet message into a first TAN message according to the first time information;
and taking the first TAN message as a data package to acquire the second Ethernet message.
2. The probe of claim 1, wherein the data content of the second ethernet message comprises data transmission direction information of the transmission module.
3. The probe of claim 1, wherein the data content of the second ethernet message comprises probe ID information.
4. The probe of claim 1, wherein the transmission module comprises multiple sets of data transparent ports.
5. The data acquisition method based on the Ethernet transmission is characterized by being applied to a data acquisition system based on the Ethernet transmission, and the data acquisition system based on the Ethernet transmission comprises the following steps:
the system comprises a main clock source, a data platform and a plurality of industrial devices, wherein at least two industrial devices are connected based on network cables or optical fibers in a communication manner;
the data acquisition method based on the Ethernet transmission comprises the following steps:
acquiring clock information based on time-transparent network time service based on a master clock source;
when the industrial equipment transmits a first Ethernet message based on a network cable or an optical fiber, locking first time information determined based on clock information of time-transparent network time service, and acquiring a second Ethernet message by taking the first Ethernet message and the first time information as data packages;
uploading the second Ethernet message to the data platform;
the step of obtaining the second ethernet packet by using the first ethernet packet and the first time information as data packages includes:
encapsulating the first Ethernet message into a first TAN message according to the first time information;
and taking the first TAN message as a data package to acquire the second Ethernet message.
6. A data acquisition system based on ethernet transmission, comprising:
the system comprises a main clock source, a data platform, probes and a plurality of industrial devices, wherein at least two industrial devices are in communication connection based on a network cable or optical fibers, and the probes are arranged on the network cable or the optical fibers;
the master clock source is used for timing the probe according to the time definition network so as to enable the probe to acquire clock information based on the time definition network timing;
the probe is used for transmitting a first Ethernet message transmitted by industrial equipment based on the network cable or the optical fiber, locking first time information determined based on clock information of time clear network time service when the industrial equipment is detected to transmit the first Ethernet message based on the network cable or the optical fiber, acquiring a second Ethernet message by taking the first Ethernet message and the first time information as data packages, and uploading the second Ethernet message to the data platform;
the step of obtaining the second ethernet packet by using the first ethernet packet and the first time information as data packages includes:
encapsulating the first Ethernet message into a first TAN message according to the first time information;
and taking the first TAN message as a data package to acquire the second Ethernet message.
7. The ethernet transmission-based data acquisition system of claim 6, wherein the plurality of probes is a plurality of the probes cascaded to form a probe network, and wherein all probes in the probe network are clocked based on the master clock source.
8. The ethernet transport-based data acquisition system of claim 6, further comprising a listening network, wherein the probe is communicatively coupled to the data platform via the listening network.
CN202310766952.3A 2023-06-27 2023-06-27 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission Active CN116506335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310766952.3A CN116506335B (en) 2023-06-27 2023-06-27 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310766952.3A CN116506335B (en) 2023-06-27 2023-06-27 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission

Publications (2)

Publication Number Publication Date
CN116506335A CN116506335A (en) 2023-07-28
CN116506335B true CN116506335B (en) 2023-10-13

Family

ID=87327031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310766952.3A Active CN116506335B (en) 2023-06-27 2023-06-27 Data encapsulation method, probe, acquisition method and system based on Ethernet transmission

Country Status (1)

Country Link
CN (1) CN116506335B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005065111A2 (en) * 2003-12-22 2005-07-21 Charles Lee Mcknett Systems and methods for creating time aware networks using independent absolute time values in network devices
CN105745604A (en) * 2013-11-03 2016-07-06 微软技术许可有限责任公司 Sensor data time alignment
CN115412507A (en) * 2021-05-28 2022-11-29 中国移动通信有限公司研究院 Data processing method, information determining equipment and storage medium
CN115459873A (en) * 2022-08-18 2022-12-09 清华大学 Data transmission method, storage medium and equipment applied to network equipment
CN115714991A (en) * 2021-08-23 2023-02-24 中国移动通信有限公司研究院 Method, apparatus and storage medium for transmitting time-resolved network packets
CN115842853A (en) * 2021-08-23 2023-03-24 中国移动通信有限公司研究院 Network data packet transmission method, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005065111A2 (en) * 2003-12-22 2005-07-21 Charles Lee Mcknett Systems and methods for creating time aware networks using independent absolute time values in network devices
CN1918557A (en) * 2003-12-22 2007-02-21 查尔斯·李·麦克耐特 Systems and methods for creating time aware networks using independent absolute time values in network devices
CN105745604A (en) * 2013-11-03 2016-07-06 微软技术许可有限责任公司 Sensor data time alignment
CN115412507A (en) * 2021-05-28 2022-11-29 中国移动通信有限公司研究院 Data processing method, information determining equipment and storage medium
CN115714991A (en) * 2021-08-23 2023-02-24 中国移动通信有限公司研究院 Method, apparatus and storage medium for transmitting time-resolved network packets
CN115842853A (en) * 2021-08-23 2023-03-24 中国移动通信有限公司研究院 Network data packet transmission method, equipment and storage medium
CN115459873A (en) * 2022-08-18 2022-12-09 清华大学 Data transmission method, storage medium and equipment applied to network equipment

Also Published As

Publication number Publication date
CN116506335A (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN112866075B (en) In-band network telemetering method, system and related device for Overlay network
US7099879B2 (en) Real-time monitoring of service performance through the use of relational database calculation clusters
US7860965B1 (en) System and method for network traffic and I/O transaction monitoring of a high speed communications network
US8099488B2 (en) Real-time monitoring of service agreements
CN113328902B (en) Network performance detection method and device and network equipment
CN114006806B (en) Message processing method, device, switch equipment and storage medium
CN104301137A (en) Method and system for analyzing influences of electric power communication faults on services
CN111147403B (en) Message processing method and device, storage medium and electronic device
CN112751772B (en) Data transmission method and system
CN108777649A (en) A kind of network intercepting device, system and method
CN102413018A (en) FPGA (field programmable gate array) based software-hardware coordinated network test system and method
CN112039796A (en) Data packet transmission method and device, storage medium and electronic equipment
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN108667680B (en) Monitoring system and method for multilink real-time data stream transmission
CN113036930A (en) Power grid data communication management system
CN114510476A (en) Telemetry data multi-path parallel processing system and method based on CCSDS source package system
CN114531622A (en) Multi-stage PON (passive optical network) management method and related device
CN116506335B (en) Data encapsulation method, probe, acquisition method and system based on Ethernet transmission
CN113973240B (en) Optical fiber resource management method, system and storage medium
CN113783825A (en) Message flow statistical method and device
CN114666289B (en) Data transmission method and system based on electromagnetic shielding body
Ra et al. Implementation of FPGA‐based MPLS‐TP linear protection switching for 4000+ tunnels in packet transport network for optical carrier Ethernet
CN115277504A (en) Network traffic monitoring method, device and system
CN115360677A (en) Differential protection system of power distribution network and power distribution network
CN110176974B (en) Data sampling synchronization method, device and unit for wide-area relay protection

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