CN113890790B - Method and device for transmitting service data in industrial network, equipment and storage medium - Google Patents

Method and device for transmitting service data in industrial network, equipment and storage medium Download PDF

Info

Publication number
CN113890790B
CN113890790B CN202111285673.2A CN202111285673A CN113890790B CN 113890790 B CN113890790 B CN 113890790B CN 202111285673 A CN202111285673 A CN 202111285673A CN 113890790 B CN113890790 B CN 113890790B
Authority
CN
China
Prior art keywords
industrial
equipment
service data
vlan
network
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
CN202111285673.2A
Other languages
Chinese (zh)
Other versions
CN113890790A (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 Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111285673.2A priority Critical patent/CN113890790B/en
Publication of CN113890790A publication Critical patent/CN113890790A/en
Application granted granted Critical
Publication of CN113890790B publication Critical patent/CN113890790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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 Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for transmitting service data in an industrial network. The method comprises the following steps: receiving a synchronization frame sent by industrial equipment when time synchronization is carried out, wherein the synchronization frame carries VLAN identification for representing self service of the industrial equipment; recording the corresponding relation between the VLAN identifier and the equipment identifier of the industrial equipment in a preset mapping table; receiving service data sent by the industrial equipment; and searching the equipment identifier of the industrial equipment from the mapping table, if the equipment identifier of the industrial equipment is searched, acquiring the VLAN identifier corresponding to the equipment identifier of the industrial equipment, and forwarding the service data according to the virtual local area network corresponding to the VLAN identifier. The embodiment of the application can realize the management of IRT service by VLAN in the PON environment based on PROFINET.

Description

Method and device for transmitting service data in industrial network, equipment and storage medium
Technical Field
The present invention relates to the technical field of industrial internet, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for transmitting service data in an industrial network.
Background
The passive optical network (Passive Optical Network, PON) is an access network using optical fibers, which refers to an optical fiber distribution network between an optical line terminal (Optical Line Terminal, OLT) and an optical network unit (Optical Network Unit, ONU), and does not use any electronic equipment with a power source between the optical line terminal and the optical network unit, and has the advantages of high reliability, high bandwidth, low networking cost, and the like, so that the passive optical network is gradually widely used in various industries.
After passive optical network devices are introduced into an industrial network, VLAN (Virtual Local Area Network ) functions need to be supported, for example, VLAN isolation and management are performed, but not all industrial ethernet protocols naturally support the functions, for example, three communication protocol levels of TCP/IP (non-real-time communication), RT (real-time communication) and IRT (isochronous real-time communication) are defined in PROFINET (an automated bus standard based on industrial ethernet technology and designed to collect and transmit data in an industrial system and enable transmission and reception of real-time data), but writing VLAN information is not supported in a frame structure of the IRT protocol, so that the existing industrial network cannot implement VLAN functions under the IRT protocol level.
Disclosure of Invention
To solve the above technical problems, embodiments of the present application provide a method for transmitting service data in an industrial network, a device for transmitting service data in an industrial network, a computer-readable storage medium, and an industrial network system, respectively.
According to an aspect of an embodiment of the present application, there is provided a method for transmitting service data in an industrial network, including: receiving a synchronization frame sent by industrial equipment when time synchronization is carried out, wherein the synchronization frame carries VLAN identification for representing self service of the industrial equipment; recording the corresponding relation between the VLAN identifier and the equipment identifier of the industrial equipment in a preset mapping table; receiving service data sent by the industrial equipment; and searching the equipment identifier of the industrial equipment from the mapping table, if the equipment identifier of the industrial equipment is searched, acquiring the VLAN identifier corresponding to the equipment identifier of the industrial equipment, and forwarding the service data according to the virtual local area network corresponding to the VLAN identifier.
According to an aspect of an embodiment of the present application, there is provided a transmission apparatus for service data in an industrial network, including: the synchronous frame receiving module is configured to receive a synchronous frame sent by industrial equipment when time synchronization is carried out, wherein the synchronous frame carries VLAN identification for representing the self service of the industrial equipment; the relation recording module is configured to record the corresponding relation between the VLAN identifier and the equipment identifier of the industrial equipment in a preset mapping table; the business data receiving module is configured to receive business data sent by the industrial equipment; and the transmission module of the service data in the industrial network is configured to search the equipment identifier of the industrial equipment from the mapping table, acquire the VLAN identifier corresponding to the equipment identifier of the industrial equipment if the equipment identifier of the industrial equipment is searched, and forward the service data according to the virtual local area network corresponding to the VLAN identifier.
According to an aspect of the embodiment of the present application, there is provided an industrial network system, including a programmable controller, an optical line terminal, an optical network unit, and an input/output device connected in sequence, where the optical line terminal performs a transmission method of service data in an industrial network as described above, so as to perform forwarding processing of service data between the programmable controller and the input/output device, and the programmable controller or the input/output device is used as an industrial device in the transmission method of service data in the industrial network.
According to an aspect of an embodiment of the present application, there is provided a transmission apparatus for service data in an industrial network, including: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the transmission device of the service data in the industrial network realizes the transmission method of the service data in the industrial network.
According to an aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions, which when executed by a processor of a computer, cause the computer to perform a method of transmission of traffic data in an industrial network as described above.
According to an aspect of embodiments of the present application, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of a method of transmission of traffic data in an industrial network as described above.
In the technical scheme provided by the embodiment of the application, the VLAN identifier of the self service is carried in the synchronous frame sent when the industrial equipment performs time synchronization, so that the passive optical network can still obtain the VLAN identifier of the industrial equipment under the condition that the VLAN function is not supported by the IRT protocol level, and further, forwarding processing is performed on the service data sent by the industrial equipment according to the obtained VLAN identifier, thereby supporting the VLAN function in the industrial network.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
fig. 1 is a schematic diagram of a frame structure of exemplary RT data;
FIG. 2 is a schematic diagram of a frame structure of an exemplary IRT data;
FIG. 3 is a schematic diagram of an exemplary industrial network system incorporating passive optical network devices;
fig. 4 is a schematic diagram of an exemplary PTCP protocol defined transmission structure;
FIG. 5 is a schematic frame structure of an exemplary sync frame;
FIG. 6 is a flow chart illustrating a method of transmitting traffic data in an industrial network according to an exemplary embodiment of the present application;
fig. 7 is a flowchart illustrating a method of transmitting traffic data in an industrial network according to another exemplary embodiment of the present application;
FIG. 8 is a block diagram illustrating a transmission apparatus of traffic data in an industrial network according to an exemplary embodiment of the present application;
fig. 9 shows a schematic diagram of a computer system suitable for use in implementing a transmission device for traffic data in an industrial network according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Reference to "a plurality" in this application means two or more than two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted that PROFINET is an automation bus standard based on industrial ethernet technology, and is designed to collect and transmit data in an industrial system, and can implement transmission and reception of real-time data. In industrial automation control, the real-time requirements of different control objects are also different. For example, the setting of process parameters, the diagnosis of equipment and the like generally have no real-time requirements, but certain real-time requirements are met for the exchange of distributed sensor data; and for motion control, the real-time requirement is higher. Based on the different real-time requirements of different control objects, PROFINET defines three different communication levels, as follows:
1. the non-real-time communication based on TCP/UDP and IP technology can be used for occasions with non-real-time requirements such as configuration, parameter setting, diagnosis and the like;
2. real-time communication (Real Time Communication, RT), suitable for the occasion of periodic data exchange. For example, between a PROFINET I/O (Input/Output) controller and an I/O device, not only is the periodic exchange of data completed, but also a certain real-time performance must be ensured. Real-time performance here generally requires a cycle period of less than 10ms.
3. Isochronous communication (Isochronous Real Time Communication, IRT) is not satisfactory for time critical synchronous communications, such as motion control, where the 10ms data exchange period of real-time communication (RT) is not satisfactory. In IRT communication mode, the cyclic refresh time of data is less than 1ms, and the jitter time of cyclic scanning period is not more than 1us (microsecond).
The RT communication not only uses Ethernet message frames with priority, but also optimizes the 3 rd layer and the 4 th layer of an OSI (Open System Interconnection Reference Model, open system interconnection communication reference model) protocol stack, thus greatly shortening the processing time of real-time messages in the protocol stack and further improving the real-time performance. The frame structure of RT data is shown in fig. 1.
IRT communication is an application that meets the highest real-time requirements, especially for isochronous. Based on RT communication, IRT communication further simplifies the frame structure, as shown in fig. 2. As can be seen by comparing fig. 1 and fig. 2, the frame structure of IRT data omits the section of frame structure of "VLAN TPID" compared with the frame structure of RT data, and the section of frame structure contains the area for recording "VLAN ID" (also referred to as VLAN identifier), so that the frame structure of IRT data cannot be added with VLAN identifier.
Because conventional industrial networks do not use VLANs for management and conventional industrial switches do not rely on VLANs for data forwarding, conventional industrial ethernet designs do not take VLANs into account. However, after the passive optical network device is introduced into the industrial network, that is, in the PON environment based on PROFINET, the OLT device generally uses a VLAN to separate and manage different service data, so that industry needs to support the VLAN function, but not all industrial ethernet protocols are naturally supported, for example, the aforementioned IRT communication protocol omits a frame structure of "VLAN TPID" due to a frame structure, so that the current industrial network cannot implement the VLAN function under IRT protocol level.
Fig. 3 is a schematic diagram of an exemplary industrial network system incorporating passive optical network devices, which includes a PLC (Programmable Logic Controller, programmable controller) device, an OLT device, an ONU device, an I/O device a, and an I/O device B connected in sequence, where the I/O device a and the I/O device B correspond to two different industrial services, and need to be isolated and managed with different VLAN identifiers on the OLT device. The I/O equipment A and the I/O equipment B are controlled by the same PLC equipment, the OLT equipment and the ONU equipment are intermediate network equipment, and data forwarding processing is carried out between the PLC equipment and the I/O equipment. In the PON environment based on PROFINET, because the IRT frame structure cannot carry the VLAN identifier to transmit to the OLT apparatus, the OLT apparatus cannot use the VLAN to manage the IRT service data.
In order to solve the problem that how the IRT industrial device carries VLAN identification and transmits the VLAN identification to the OLT device so as to facilitate the OLT device to perform VLAN management, the inventor of the present application uniquely thinks that, in order to achieve the isochronous real-time effect in the IRT service, a PTCP (Precise transparent clock protocol, which is an accurate time synchronization protocol with a certain optimization based on IEEE 1588) protocol is adopted to perform time synchronization, a transmission structure defined by the PTCP protocol is shown in fig. 4, it can be seen that before each transmission period, synchronization frames (also referred to as SYNC frames) are sent between master clocks and slave clocks to perform time synchronization, and a frame structure of the synchronization frames is shown in fig. 5, where a frame structure of "VLAN TPID" is reserved, so that the above technical problem can be solved by using the frame structure.
Fig. 6 is a flowchart illustrating a method for transmitting service data in an industrial network according to an exemplary embodiment of the present application. The transmission method of service data in the industrial network may be applied to the industrial network system shown in fig. 3, and is specifically performed by the OLT apparatus in the industrial network system. It should also be noted that, the method for transmitting service data in the industrial network may also be executed by the corresponding OLT apparatus in other PON environments based on PROFINET, which is not limited in this embodiment.
As shown in fig. 6, in an exemplary embodiment, the method for transmitting service data in an industrial network includes steps S110 to S140, which are described in detail as follows:
step S110, receiving a synchronization frame sent by the industrial equipment when time synchronization is carried out, wherein the synchronization frame carries VLAN identification for representing the service of the industrial equipment.
Firstly, it should be noted that, the industrial device refers to an industrial device with a service data transmission requirement in an industrial network, for example, in an industrial network system supporting IRT service shown in fig. 3, PCL device, I/O device a and I/O device B may all be used as industrial devices, and data transmission is performed through OLT device and ONU device.
The industrial equipment performs time synchronization, that is, some industrial equipment in the industrial network system uses the PTCP protocol as a slave clock to perform time synchronization with the industrial equipment in the industrial network system as a master clock, for example, in the industrial network system shown in fig. 3, since the PLC equipment plays a role of a controller to control the I/O equipment, the PLC equipment generally performs time synchronization with the I/O equipment as a master clock.
As described above, the PTCP protocol defines that synchronization frames are transmitted between master and slave clocks for time synchronization before each transmission period, so that industrial devices transmit synchronization frames to each other when time synchronization is performed. The frame structure of the synchronization frame is shown in fig. 5, and the frame structure of the "VLAN TPID" is reserved for recording VLAN related information, so that the VLAN identifier of the industrial equipment own service is carried in the frame structure. The carried VLAN identifier is used for being transmitted to the OLT equipment, so that the OLT equipment isolates and manages the IRT service data which needs to be transmitted by the industrial equipment according to the VLAN identifier, and therefore the VLAN function of the IRT service data is supported in the PON environment based on PROFINET.
Step S120, the corresponding relation between VLAN identification and equipment identification of industrial equipment is recorded in a preset mapping table.
After receiving the synchronization frame sent by the industrial equipment, the OLT equipment records a correspondence between the VLAN identifier carried in the synchronization frame and the equipment identifier of the industrial equipment in a preset mapping table, where the equipment identifier of the industrial equipment may be, for example, a MAC (Media Access Control Address, media access control address, or referred to as a local area network address) address.
Step S130, receiving service data sent by the industrial equipment.
Based on the PTCP protocol, the mutual transmission of the synchronous frames between the master clock and the slave clock before each transmission period is defined to carry out time synchronization, so that the industrial equipment correspondingly transmits service data after transmitting the synchronous frames, and the OLT equipment correspondingly receives the service data.
Step S140, searching the equipment identification of the industrial equipment from the mapping table, if the equipment identification of the industrial equipment is found, acquiring the VLAN identification corresponding to the equipment identification of the industrial equipment, and forwarding the service data according to the virtual local area network corresponding to the VLAN identification.
Because the OLT equipment stores the corresponding relation between the VLAN identifier carried by the synchronous frame and the equipment identifier of the corresponding industrial equipment in the mapping table in the time synchronization stage of the industrial equipment, the VLAN identifier corresponding to the service of the industrial equipment can be obtained by searching the mapping table. After the VLAN identifier is obtained, the OLT equipment can forward the service data based on the OLT equipment and according to the virtual local area network corresponding to the VLAN identifier.
For example, in the industrial network system shown in fig. 3, since the I/O device a and the I/O device B correspond to two different industrial services, the OLT device needs to perform isolation and management of service data according to VLAN identifiers corresponding to the different services. If the VLAN corresponding to the service of the I/O device a is assumed to be "VLAN ID 100", and the VLAN corresponding to the service of the I/O device B is assumed to be "VLAN ID 101", the OLT device forwards the service data sent by the I/O device a through the virtual local area network corresponding to the "VLAN ID 100", and forwards the service data sent by the I/O device B through the virtual local area network corresponding to the "VLAN ID 101".
As can be seen from the foregoing, in the method for transmitting service data in an industrial network provided in this embodiment, by carrying the VLAN identifier of the service itself in the synchronization frame sent when the industrial device performs time synchronization, the OLT device deployed in the passive optical network can still obtain the VLAN identifier of the industrial device under the condition that the IRT protocol level does not support the VLAN function, and further forward the service data sent by the industrial device according to the obtained VLAN identifier, so that the VLAN function is supported in the industrial network, and forwarding of the IRT service data according to the VLAN can be implemented in the PON environment based on PROFINET.
Fig. 7 is a flowchart illustrating a method for transmitting service data in an industrial network according to another exemplary embodiment of the present application, which is further presented on the basis of the embodiment shown in fig. 6. As shown in fig. 7, the transmission method of service data in the industrial network further includes step S210 after step S130, which is described in detail as follows:
step S210, identify whether the network type and frame type of the service data are PROFINET industrial bus standard and IRT frame, respectively.
In this embodiment, whether the current network environment meets the requirements is determined by identifying whether the network type and the frame type of the service data are the PROFINET industrial bus standard and the IRT frame, respectively. Specifically, if the network type and the frame type of the service data are identified as the PROFINET industrial bus standard and the IRT frame respectively, it indicates that the service data received by the OLT apparatus is IRT data, so that the data frame corresponding to the service data does not carry the VLAN identifier, and therefore, the corresponding VLAN identifier needs to be obtained from the preset mapping table, so that forwarding processing of the service data is performed according to the searched VLAN identifier, and step S140 is skipped.
If the network type of the service data is identified to be not the PROFINET industrial bus standard, or the frame type of the service data is identified to be not the IRT frame, the application scene of the currently received service data is not consistent with the application scene related to the embodiment, so that other modes are adopted to process the service data. For example, if the frame type of the service data is identified as an RT frame, because the frame structure of the RT frame contains a VLAN TPID area for carrying a VLAN identifier, the service data frame received by the OLT device should carry the VLAN identifier, and the OLT device may directly perform forwarding processing on the service data according to the VLAN identifier carried by the service data.
It should be noted that, please refer to the description in the foregoing embodiments for the detailed description of the PROFINET industrial bus standard and the IRT frame, and the detailed description is omitted here. The embodiment can accurately judge the application environment of the transmission scheme of the service data in the industrial network provided by the embodiment of the application by identifying the network type and the frame type of the service data received by the OLT equipment, thereby ensuring that the process of the OLT equipment for executing the service data processing method provided by the embodiment of the application is accurate.
In another exemplary embodiment, considering that the industrial device may be a PLC device deployed in an industrial network system, the synchronization frame sent by such industrial device typically carries a unique VLAN identifier, for example, "VLAN ID0", which may not be recorded in this case, so, based on the embodiment shown in fig. 6, after step S110, if the VLAN identifier carried by the synchronization frame is identified as a preset VLAN identifier, for example, a VLAN identifier corresponding to the PLC device, then it is determined whether to execute step S120 according to a preset policy. It should be understood that the preset policy is a program preset in the OLT apparatus for determining whether to skip the content described in the execution step S120.
By executing the above process, the data amount stored in the mapping table can be reduced to a certain extent, the process of querying the VLAN identifier corresponding to the device identifier of the industrial device in step S140 can be accelerated, and the delay of service data transmission in the industrial network can be reduced to a certain extent.
Fig. 8 is a block diagram illustrating a transmission apparatus of service data in an industrial network according to an exemplary embodiment of the present application. As shown in fig. 8, the apparatus includes:
the synchronous frame receiving module 310 is configured to receive a synchronous frame sent by the industrial equipment when time synchronization is performed, wherein the synchronous frame carries a VLAN identifier for representing the service of the industrial equipment; the relationship recording module 320 is configured to record a corresponding relationship between the VLAN identifier and the device identifier of the industrial device in a preset mapping table; a service data receiving module 330 configured to receive service data sent by the industrial device; the transmission module 340 of the service data in the industrial network is configured to search the device identifier of the industrial device from the mapping table, and if the device identifier of the industrial device is found, obtain the VLAN identifier corresponding to the device identifier of the industrial device, and forward the service data according to the virtual local area network corresponding to the VLAN identifier.
In another exemplary embodiment, the apparatus further comprises:
the service data identification module is configured to identify the network type and the frame type of the service data; if the network type of the service data is identified as PROFINET industrial bus standard and the frame type of the service data is IRT frame, the step of searching the equipment identification of the industrial equipment from the mapping table is executed.
In another exemplary embodiment, the apparatus further comprises:
and the VLAN identification identifying module is configured to judge whether to execute the step of recording the corresponding relation between the VLAN identification and the equipment identification of the industrial equipment in a preset mapping table according to a preset strategy if the VLAN identification is identified as the preset VLAN identification.
In another exemplary embodiment, a preset VLAN identification is used to characterize the traffic corresponding to a programmable controller deployed in an industrial network system.
In another exemplary embodiment, the industrial device performs time synchronization using a PTCP protocol, which defines a frame structure reserved in the synchronization frame for recording virtual local area network information, in which the synchronization frame is transmitted between master and slave clocks for time synchronization before each transmission period.
In another exemplary embodiment, the method is performed by an optical line terminal deployed in an industrial network system supporting IRT services.
It should be noted that, the transmission device of the service data in the industrial network provided by the foregoing embodiment and the transmission method of the service data in the industrial network provided by the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiment, which is not described herein again. In practical application, the transmission device for service data in an industrial network provided by the embodiment may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides a transmission device of service data in an industrial network, which comprises: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the apparatus for transmitting service data in an industrial network to implement the method for transmitting service data in an industrial network provided in the foregoing embodiments.
Fig. 9 shows a schematic diagram of a computer system suitable for use in implementing a transmission device for traffic data in an industrial network according to an embodiment of the present application. It should be noted that, the computer system 900 of the transmission device of the service data in the industrial network shown in fig. 9 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 9, the computer system 900 includes a central processing unit (Central Processing Unit, CPU) 1201 which can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 902 or a program loaded from a storage section 908 into a random access Memory (Random Access Memory, RAM) 903. In the RAM 903, various programs and data required for system operation are also stored. The CPU901, ROM 902, and RAM 903 are connected to each other through a bus 904. An Input/Output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output section 907 including a speaker and the like, such as a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. Removable media 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed as needed into the storage section 908.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. When the computer program is executed by a Central Processing Unit (CPU) 901, various functions defined in the system of the present application are performed.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of transmission of traffic data in an industrial network as described above. The computer-readable storage medium may be included in the transmission device of the service data in the industrial network described in the above embodiments or may exist alone without being assembled into the transmission device of the service data in the industrial network.
Another aspect of the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the transmission method of service data in the industrial network provided in the above embodiments.
The foregoing is merely a preferred exemplary embodiment of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art may make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. A method for transmitting service data in an industrial network, the method comprising:
receiving a synchronization frame sent by industrial equipment when time synchronization is carried out, wherein the synchronization frame carries VLAN identification for representing self service of the industrial equipment; the industrial equipment adopts a PTCP protocol to carry out time synchronization, the PTCP protocol defines that synchronous frames are mutually sent between master clocks and slave clocks before each transmission period to carry out time synchronization, and the VLAN identifier is carried in a frame structure reserved in the synchronous frames and used for recording virtual local area network information;
if the VLAN identifier is identified as the preset VLAN identifier, judging whether to execute the step of recording the corresponding relation between the VLAN identifier and the equipment identifier of the industrial equipment in a preset mapping table according to a preset strategy; the preset VLAN identifier is used for representing a service corresponding to a programmable controller deployed in the industrial network system;
recording the corresponding relation between the VLAN identifier and the equipment identifier of the industrial equipment in a preset mapping table;
receiving service data sent by the industrial equipment;
identifying the network type and the frame type of the service data;
and when the network type of the service data is identified as PROFINET industrial bus standard and the frame type of the service data is IRT frame, searching the equipment identification of the industrial equipment from the mapping table, if the equipment identification of the industrial equipment is found, acquiring the VLAN identification corresponding to the equipment identification of the industrial equipment, and forwarding the service data according to the virtual local area network corresponding to the VLAN identification.
2. The method according to claim 1, wherein the method is performed by an optical line terminal deployed in the industrial network system supporting IRT services.
3. The industrial network system is characterized by comprising a programmable controller, an optical line terminal, an optical network unit and input/output equipment which are sequentially connected, wherein:
the optical line terminal performs forwarding processing of service data between the programmable controller and the input-output device by executing the transmission method of service data in the industrial network according to any one of claims 1 or 2, wherein the programmable controller or the input-output device is used as an industrial device in the transmission method of service data in the industrial network.
4. A device for transmitting traffic data in an industrial network, the device comprising:
the synchronous frame receiving module is configured to receive a synchronous frame sent by industrial equipment when time synchronization is carried out, wherein the synchronous frame carries VLAN identification for representing the self service of the industrial equipment; the industrial equipment adopts a PTCP protocol to carry out time synchronization, the PTCP protocol defines that synchronous frames are mutually sent between master clocks and slave clocks before each transmission period to carry out time synchronization, and the VLAN identifier is carried in a frame structure reserved in the synchronous frames and used for recording virtual local area network information;
the VLAN identification identifying module is configured to judge whether to execute the step of recording the corresponding relation between the VLAN identification and the equipment identification of the industrial equipment in a preset mapping table according to a preset strategy if the VLAN identification is identified as the preset VLAN identification; the preset VLAN identifier is used for representing a service corresponding to a programmable controller deployed in the industrial network system;
the relation recording module is configured to record the corresponding relation between the VLAN identifier and the equipment identifier of the industrial equipment in a preset mapping table;
the business data receiving module is configured to receive business data sent by the industrial equipment;
the service data identification module is configured to identify the network type and the frame type of the service data;
and the transmission module of the service data in the industrial network is configured to search the equipment identifier of the industrial equipment from the mapping table when the network type of the service data is identified as PROFINET industrial bus standard and the frame type of the service data is an IRT frame, acquire the VLAN identifier corresponding to the equipment identifier of the industrial equipment if the equipment identifier of the industrial equipment is searched, and forward the service data according to the virtual local area network corresponding to the VLAN identifier.
5. A transmission device for service data in an industrial network, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause a transmission device of traffic data in the industrial network to implement a method of transmission of traffic data in an industrial network according to any one of claims 1 or 2.
6. A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method of transmission of traffic data in an industrial network according to any one of claims 1 or 2.
CN202111285673.2A 2021-11-01 2021-11-01 Method and device for transmitting service data in industrial network, equipment and storage medium Active CN113890790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111285673.2A CN113890790B (en) 2021-11-01 2021-11-01 Method and device for transmitting service data in industrial network, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111285673.2A CN113890790B (en) 2021-11-01 2021-11-01 Method and device for transmitting service data in industrial network, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113890790A CN113890790A (en) 2022-01-04
CN113890790B true CN113890790B (en) 2023-05-23

Family

ID=79015275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111285673.2A Active CN113890790B (en) 2021-11-01 2021-11-01 Method and device for transmitting service data in industrial network, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113890790B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111684776A (en) * 2018-01-31 2020-09-18 西门子股份公司 Method, control method, device, computer program and computer-readable medium for data communication, in particular in an industrial network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039156B (en) * 2006-03-17 2011-10-05 华为技术有限公司 Method and apparatus for transmitting SDH data
US9690674B2 (en) * 2012-03-30 2017-06-27 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for robust precision time protocol synchronization
EP3273641A1 (en) * 2016-07-22 2018-01-24 Siemens Aktiengesellschaft Transmission of application-specific packets
EP3501140B1 (en) * 2016-09-29 2020-08-26 Siemens Aktiengesellschaft Method for operating an industrial automation system communication network comprising a plurality of communication devices, and control unit
CN113225628B (en) * 2021-04-25 2023-02-10 中国移动通信集团陕西有限公司 Business data configuration method, device, equipment and computer storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111684776A (en) * 2018-01-31 2020-09-18 西门子股份公司 Method, control method, device, computer program and computer-readable medium for data communication, in particular in an industrial network

Also Published As

Publication number Publication date
CN113890790A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN111585862A (en) Method and device for realizing network intercommunication between EtherCAT and TSN
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
CN109257133B (en) Whole-network clock synchronization method and device applied to LTE (Long term evolution) rail transit network
CN113596017B (en) Protocol analysis method and device, soft gateway and storage medium
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN113891192B (en) Control method, device and equipment for data transmission in industrial network
WO2021233313A1 (en) Port state configuration method, apparatus, system, and storage medium
KR102094041B1 (en) System having the Semantic Engine based on RDF Graph for Autonomous Interaction between IoT Devices in Real-Time
CN106559236B (en) Equipment resource management method and device of service board, main control board and frame type equipment
CN113890790B (en) Method and device for transmitting service data in industrial network, equipment and storage medium
CN112367236B (en) Data scheduling method and system of LIN bus
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
CN113364635B (en) Ad hoc network bandwidth adjusting method, device and system
US11108680B2 (en) Dynamic routing method in a network of connected objects
Wang et al. A SDN-based heterogeneous networking scheme for profinet and Modbus Networks
CN116074159B (en) Method and device for realizing service isolation based on equipment mapping table in industrial PON system
US7110364B1 (en) Optical link adjacency discovery protocol and an optical network therefor
CN115296952B (en) Equipment scheduling method, device, equipment and storage medium
CN112152889B (en) Method of controlling electronic device, computing device, and computer-readable storage medium
CN115209250A (en) Method and device for OLT to manage edge ONT through multiple channels
CN112583838B (en) Protocol conversion device, method, equipment and medium for Autbus bus and Can bus
CN117527140A (en) Message processing method and device, equipment and computer readable storage medium
CN117395213A (en) EPA exchanger, data transmission system and method
CN116074159A (en) Method and device for realizing service isolation based on equipment mapping table in industrial PON system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant