OSI Layers
OSI Layers
Because layer 4 coordinates data transfer without visibility into message content, layer
4 load balancing can make routing decisions without the need to decrypt or inspect
network traffic. This makes layer 4 load balancing a quick and efficient approach
for packet-level load balancing based on simple algorithms such as round-robin routing.
To route traffic based on media type, localization rules, application, or other criteria
where message inspection is required, layer 7 load balancing must be used.
specification of paths (routes) for communication between different networks. This means:
The third-lowest layer of the OSI Reference Model is the network layer. If the
data link layer is the one that basically defines the boundaries of what is
considered a network, the network layer is the one that defines
how internetworks (interconnected networks) function. The network layer is
the lowest one in the OSI model that is concerned with getting data from one
computer to another even if it is on a remote network; in contrast, the data link
layer only deals with devices that are local to each other.
Let’s compare these two platforms to see how distinctive they really are. We’ll start by
giving a brief introduction to both, then we’ll move on to their similarities and differences.
What is PROFINET?
Like PROFIBUS, the classic fieldbus solution first introduced in 1989, PROFINET was
developed by a team of major automation companies and several German institutes,
and it is managed by the PROFIBUS & PROFINET International group (PI).
Identification is mainly done using device names that comprise letters and numbers,
and IP addresses are assigned automatically.
Startup description
In the startup of an Profinet IO device (before the IP address has been set) the DCP
protocol is used. It is like DHCP, but without using a central server.
The PLC sends a DCP broadcast message, and all IO Devices on the subnet answer
with their MAC addresses. The PLC sends a DCP message to the IO Device with a
specific MAC address, containing which IP address and station name that the IO Device
should use. The IO Device sets its IP address and station name accordingly.
Then the PLC starts the actual configuration of the IO device, using the DCE/RPC
protocol that runs on UDP over IP.
After the configuration is done, cyclic data is continuously exchanged between the IO-
device and the PLC. This communication runs on Ethernet layer 2, i.e. the MAC
addresses are used for routing frames (the IP protocol is not used in those frames).
Communication
0x0800 =
TCP/IP (UDP actually) 100 ms Yes
IPv4
A typical Profinet application needs to handle a multitude of protocols. The P-Net stack
implements some of them, while others are optional. For example HTTP is used by some IO-
devices for additional configuration via a web page, but should be implemented outside the
Profinet stack itself.
Content
Layer Protocol Addressing Protocol Notes
description
Remote login on
SSH = 22
Linux
4 TCP Port
HTTP = 80 Web server for
+ 443 configuration
SNMP = Network
161 + 162 topology query
Transmission
TCP = 6
3 IPv4 IP address Protocol number control protocol
User Datagram
UDP = 17
Protocol
ARP =
IP address lookup
0x0806
IPv4 =
Internet protocol
0x0800
MAC PN-DCP =
2 Ethernet Ethertype Profinet start-up
address 0x8892
Profinet RT PNIO_PS =
= 0x8892 Cyclic IO data
PROFINET uses TCP/IP where it makes sense (that is, where the data is not time critical). For example:
Configuration
Parameterization
Diagnostics
Therefore, an IP address is needed for these functions.
There are also other benefits. Many devices have embedded web servers. This allows you to type in their IP
address into a web browser and access them like a webpage. One of the biggest reasons people are moving
to PROFINET is DATA ACCESS. By using IP addresses, it helps integrate device-level information vertically
into higher level MES or cloud storage systems.
Real Time
Now PROFINET does not use the IP address for real-time data; it just uses the physical address, the MAC
address. This means it can skip TCP/IP for faster, more deterministic performance.
What is EtherNet/IP?
EtherNet/IP was developed by ControlNet International (CI) and Open DeviceNet
Vendors Association (ODVA). Introduced in the early 2000s and now managed by
ODVA, Ethernet/IP is based on the Common Industrial Protocol (CIP).
Like PROFINET, EtherNet/IP sits at the application layer and is backed by defined
standards and extensive communities. Unlike PROFINET, it transfers data to the
network via the TCP/IP and/or UDP/IP layers. These packages of data are packed and
unpacked, and headers and info are added and deleted as they move through the
layers.
Two types of messages are carried by EtherNet/IP: “Implicit” messages for sending I/O
data and “Explicit” messages for configuration and diagnostics. Implicit messages are
sent from pre-set memory locations to a controller through a UDP port at prescheduled
intervals. Explicit messages are sent to a client through a TCP port in response to a
specific request for that data.