L2 - INP-Ethernet-Based Industrial Protocols 2
L2 - INP-Ethernet-Based Industrial Protocols 2
Lecture 2
September, 2023
Content
1. Introduction to Ethernet
1. Industrial Ethernet (Universal bus)
2. Ethernet Classification
3. Ethernet - Analysis
2. Ethernet Protocols
1. EntherNet/IP
2. Profinet
3. Modbus TCP/IP
3. Research Topics (Presentation)
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 2
1 Introduction to Ethernet
1.1 Industrial Ethernet (Universal bus)
Industrial Ethernet (IE) is the use of Ethernet in an industrial environment with protocols that provide
determinism and real-time control. Protocols for Industrial Ethernet include EtherCAT, EtherNet/IP,
PROFINET, POWERLINK, SERCOS III, CC-Link IE, and Modbus/TCP. Many Industrial Ethernet protocols
use a modified MAC (Media Access Control) layer to provide low latency and determinism. Some
microcontrollers such as Sitara provide Industrial Ethernet support.
Industrial Ethernet can also refer to the use of standard Ethernet protocols with rugged connectors and
extended temperature switches in an industrial environment, for automation or process control. Components
used in plant process areas must be designed to work in harsh environments of temperature extremes,
humidity, and vibration that exceed the ranges for information technology equipment intended for installation
in controlled environments.
The use of fiber Ethernet reduces the problems of electrical noise and provides electrical isolation to prevent
equipment damage. Some industrial networks emphasized deterministic delivery of transmitted data, whereas
Ethernet used collision detection which made transport time for individual data packets difficult to estimate
with increasing network traffic. Typically, industrial uses of Ethernet employ full-duplex standards and other
methods so that collisions do not unacceptably influence transmission times.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 3
1 Introduction to Ethernet
EXAMPLE TCP TRANSACTION of Ethernet/IP
The simplified example illustrates a typical TCP transaction. In this example a network client (web browser)
initiates data transfer with a web server (such as the web server embedded within the Acromag 9xxEN and
XT series modules). The client is a PC running Internet Explorer and connected to the network via a Network
Interface Card (NIC).
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 4
1 Introduction to Ethernet
Ethernet Basics
Definition: Ethernet is a standard for wired communication in local area networks (LANs) using a protocol
that controls how data packets are placed on the network.
OSI Model: Explain how Ethernet operates at the Data Link Layer (Layer 2) of the OSI model.
Data Frames: Describe the structure of Ethernet data frames, including headers and payloads.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 5
1 Introduction to Ethernet
Ethernet Variants
Fast Ethernet: 100 Mbps data transfer rate, widely used in the late 1990s and early 2000s.
Gigabit Ethernet: 1 Gbps data transfer rate, common in modern LANs and industrial applications.
10 Gigabit Ethernet: 10 Gbps data transfer rate, used in high-performance networks and data centers.
Ethernet can be both Half-Duplex and Full-Duplex. For example if you are using Ethernet
(IEEE 802.1), the Half-Duplex bandwidth is 10 Mbps and the Full-Duplex bandwith is 20 Mbps.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 6
1 Introduction to Ethernet
Ethernet Cables (Fiber optic and Copper)
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 7
1 Introduction to Ethernet
The Ethernet consortia
ProfiNet
Siemens (www.ad.siemens.de), PNO (www.profibus.com)
« Industrial Ethernet » new cabling: 9-pin D-shell connectors
« direct connection to Internet (!?) »
Hirschmann (www.hirschmann.de)
M12 round IP67 connector
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 8
1 Introduction to Ethernet
1.2 Ethernet Classification
Depending on the real time and cost requirements, the technologies follow different principles or approaches.
This comparison tries to group those approaches in three different classes by looking at the slave device
implementations:
Class A
Class A uses standard, unmodified
Ethernet hardware as well as standard
TCP/IP software stacks for process
communication. Of course some
implementations may have modified
„tuned“ TCP/IP stacks, which provide
better performance.
Class A approaches are also referred to
as „best effort“ approaches. The real
time performance is limited by
unpredictable delays in infrastructure
components like switches – no just due
to other traffic on the network. The by far
largest obstacle to better real time
performance however is provided by the
software stacks (TCP/UDP/IP).
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 9
1 Introduction to Ethernet
Class B
Class B approaches still use standard, unmodified hardware, but do not use TCP/IP for process data
communication. A dedicated process data protocol is introduced, which is transported directly in the Ethernet
frame.
TCP/IP stacks may still exist, but typically their access to the Ethernet network is controlled and limited by
what can be considered a timing layer.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 10
1 Introduction to Ethernet
Class C
Class C approaches aim even higher with regard to performance. In order to achieve these goals, dedicated
hardware has to be used (at least on the slave device side). In case of PROFINET IRT, the Special Real-time
Ethernet Controller is more a Special Switch Device – but the result is the same: better performance due to
better hardware integration. This does not exclude the use of TCP/IP and the Internet Technologies.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 11
1 Introduction to Ethernet
Ethernet - another philosophy
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 12
1 Introduction to Ethernet
1.3 Ethernet - Analysis
PLC (Programmable logic controller) communicate using one of several possible open or proprietary
protocols, such as EtherNet/IP, Modbus, Sinec H1, Profibus, CANopen, DeviceNet or FOUNDATION
Fieldbus. The idea to use standard Ethernet makes these systems more inter-operable.
Some of the advantages over other types of industrial network are:
▪ Increased speed, up from 9.6 kbit/s with RS-232 to 1 Gbit/s with Gigabit Ethernet over Cat5e/Cat6 cables
or optical fiber
▪ Increased distance
▪ Ability to use standard access points, routers, switches, hubs, cables and optical fiber
▪ Ability to have more than two nodes on link, which was possible with RS-485 but not with RS-232
▪ Peer-to-peer architectures may replace master-slave ones
▪ Better interoperability
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 13
1 Introduction to Ethernet
Ethernet Traffic Types
There are some common traffic types used with Ethernet. These traffic types are named accordin to the
receivers. These Ethernet Traffic Types given below:
Supported by IPv4
▪ Unicast (one-to-one) is the traffic type whose destination is one node.
▪ Broadcast (one-to-all) is the traffic type whose destination is all nodes in the network.
▪ Multicast (one-to-many) is the traffic type who se destination is a specific Multicast group members.
Supported by IPv6
▪ Anycast (one-to-any) is the traffic type that is introduced with IPv6. It is the traffic whose destination is the
closest node between multiple same IP nodes.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 14
2 Ethernet Protocols
2.1 ETHERNET/IP
EtherNet/IP is an industrial Ethernet protocol. It combines traditional Ethernet with an industrial application
layer protocol, which is called Control and Information Protocol (CIP). is a communication protocol mostly
associated with Rockwell Automation for use in industrial factories.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 15
2 Ethernet Protocols
Application Layer – CIP™ – Control & Information Protocol
With CIP™, a class exists simply tocombine data for I/O messaging among common elements and the CIP™
library already contains many commonly defined objects or classes. The confusion that surrounds this topic
usually arises from the nesting of objects and classes that occurs in defining other objects and classes, and in
linking together these various objects to build larger device profiles.
EtherNet/IP, ControlNet, and DeviceNet all share the Control and Information Protocol (CIP™) at their
application layer. For example, DeviceNet is basically CIP™ running on a CAN bus. Similarly, EtherNet/IP is
CIP™ over TCP/UDP/IP. Because ControlNet, DeviceNet, and EtherNet/IP all have CIP™ in common, they
also share an extensive object library and collection of pre-defined device profiles.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 16
2 Ethernet Protocols
Transport Layer – TCP- Transport Control Protocol
The Transport Control Protocol (TCP) resides one layer above the Internet Protocol (IP) and is responsible for
transporting the application data and making it secure, while IP is responsible for the actual addressing and
delivery of the data. Below is construction of a TCP/IP-ETHERNET data packet
TCP packet is inserted into the data portion of the IP packet below it. IP itself is an unsecured,
connectionless protocol and must work together with the overlaying TCP to operate. In this way, TCP is
generally considered the upper layer of the IP platform that serves to guaranty secure data transfer
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 17
2 Ethernet Protocols
Transport Layer – UDP – User Datagram Protocol
Like TCP, the User Datagram Protocol (UDP) resides above IP and is another protocol for transporting data,
but with the emphasis being to transport it on-time, rather than to guaranty delivery. UDP is a connectionless
protocol that simply allows one device to send a datagram to another device without guaranteed delivery, a
retry mechanism, or any acknowledgement.
EtherNet/IP uses both TCP and UDP in an intelligent way to provide more deterministic performance. That
is, time-critical implicit messages are sent using the faster UDP, while explicit messages are sent securely
using TCP. Any lost data will not prevent subsequent time-critical data from being processed with UDP. The
slower but more reliable TCP will instead ensure that a message is received by retransmitting any lost data,
but this process may not be suitable for real-time data
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 18
2 Ethernet Protocols
NETWORK LAYER
The Network Layer or Internet Layer resides just below the Transport Layer and is responsible for routing the
packets to the network. Although there are many network layer protocols such as ICMP, IGMP, and others,
the most important of these are IP, ARP, and RARP.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 20
2 Ethernet Protocols
2.2 PROFINET
Profinet is an industry technical standard for data communication over Industrial
Ethernet, designed for collecting data from, and controlling equipment in industrial
systems, with a particular strength in delivering data under tight time constraints.
There are 3 PROFINET-
Versions:
▪ Version 1 („Component
Based Automation“), a Class
A approach
▪ Version 2 ((Soft) Real
Time“), a Class B approach
▪ Version 3: („Isochronous
Real Time“), a Class C
approach
PNO tries to move away from
the terms RT/IRT and introduced
the term. Profinet IO for both
approaches...
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 21
2 Ethernet Protocols
Not all IRT devices support cycle times < 0.5 ms, e.g. Siemens Sinamics Controller. The jitter shown in the
graph above show the intended values for the end device – and do not necessarily cover the jitter caused by
the network (e.g. forwarding jitter of the switches)
The cycle time in an industrial network is the time required for data to be transmitted from a master
(controller) to all the nodes (devices) in a network, and then the updated data returned to the controller.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 22
2 Ethernet Protocols
Class A - PROFINET CBA (TCP/IP – Ethernet)
Initially the PNO/PTO message was: protect your investment and continue using Profibus, for Ethernet
connectivity we provide a transparent gateway. Work on the gateway (proxy) concept was started as early as
1999. First spec (V0.9) published in March 2001 (Ethernet/IP was first introduced in 2000).
Profinet CbA (Component Based Automation) comprises more than just a communication protocol: the CbA
programming approach with graphical mapping of variables to establish communication links.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 23
2 Ethernet Protocols
Class B – PROFINET RT
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 24
2 Ethernet Protocols
Class C – PROFINET IRT
PROFINET IRT (V3) is a class C approach which introduces special hardware in order to achieve sufficient
performance and synchronicity for motion control Applications.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 25
2 Ethernet Protocols
2.3 MODBUS TCP/IP – Modbus Device Communication
Modbus TCP/IP (also Modbus-TCP) is simply the Modbus RTU protocol with a TCP interface that runs on
Ethernet. The Modbus messaging structure is the application protocol that defines the rules for organizing
and interpreting the data independent of the data transmission medium. TCP/IP refers to the Transmission
Control Protocol and Internet Protocol, which provides the transmission medium for Modbus TCP/IP
messaging.
Modbus devices communicate using a master-slave (client-server) technique in which only one device (the
master/client) can initiate transactions (called queries). The other devices (slaves/servers) respond by
supplying the requested data to the master, or by taking the action requested in the query.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 26
2 Ethernet Protocols
2.3 MODBUS TCP/IP
Modbus TCP/IP uses TCP/IP and Ethernet to carry the data of the Modbus message structure between
compatible devices.
That is, Modbus TCP/IP combines a physical network (Ethernet), with a networking standard (TCP/IP), and
a standard method of representing data (Modbus as the application protocol). Essentially, the Modbus
TCP/IP message is simply a Modbus communication encapsulated in an Ethernet TCP/IP wrapper.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 27
2 Ethernet Protocols
Just as with Ethernet, Modbus is freely available, accessible to anyone, and widely supported by many
manufacturers of industrial equipment. It is also easy to understand and a natural candidate for use in
building other industrial communication standards. With so much in common, the marriage of the Modbus
application protocol with traditional IEEE 802.3 Ethernet transmission forms a powerful industrial
communication standard in Modbus TCP/IP.
And because Modbus TCP/IP shares the same physical and data link layers of traditional IEEE 802.3
Ethernet and uses the same TCP/IP suite of protocols, it remains fully compatible with the already installed
Ethernet infrastructure of cables, connectors, network interface cards, hubs, and switches.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023 28
Questions
1. What is the primary purpose of Ethernet-based industrial protocols in automation systems, and how do
they differ from standard Ethernet networks?
Ethernet-based industrial protocols facilitate communication between industrial devices, such as PLCs,
sensors, and HMIs, in automation systems. Unlike standard Ethernet networks, industrial protocols are
designed for real-time communication, determinism, and reliability, catering to the specific requirements of
industrial applications.
2. Explain the key components of an Ethernet data frame. How does understanding data frames
contribute to efficient communication in industrial networks?
An Ethernet data frame consists of a header, data payload, and trailer. Understanding data frames is
crucial as it allows devices to interpret and process data efficiently. Devices can identify the source and
destination of messages, ensuring accurate and timely data exchange in industrial networks.
3. How does Modbus TCP/IP facilitate communication between devices in industrial automation? Provide
examples of Modbus function codes and their applications.
Modbus TCP/IP operates on a client-server model, allowing devices to read and write data using function
codes. For example, Function Code 03 is used for reading analog output values, and Function Code 06 is
used for writing to a single register. This simplicity makes Modbus TCP/IP suitable for various applications,
such as reading sensor values and controlling actuators.
4. Compare and contrast Ethernet/IP and Profinet protocols. What are their unique features, and in what
industrial scenarios are they commonly used?
Ethernet/IP and Profinet are both popular Ethernet-based industrial protocols. Ethernet/IP is known for its
flexibility and compatibility with various devices and is commonly used in discrete manufacturing. Profinet,
on the other hand, is favored for its real-time capabilities and is often used in process automation
applications.
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023
End of Lecture
Thank You!
Dr. Kim Bunthern/Mr. It Chivorn Industrial Network Protocols Sept 20, 2023