Modbus, DNP3 and HART
Modbus is a serial communication protocol developed by Gould-Modicon systems (now Schneider Electric) in 1979 for integrating and using it with PLCs (Programmable Logic Controller). Modbus has become an industry standard for connecting various industrial devices.
Modbus is a master-slave communication protocol and can support up to 247 slaves for connecting and communications with supervisory computers with a remote terminal unit (RTU) in SCADA systems. The device supplying the information is the Modbus slave, while the Modbus master is the device requesting the information.
Why Modbus? A few of the reasons for widespread use of Modbus are:
- Developed specifically for industrial purpose
- Open source protocol
- Easy to develop, deploy and maintain.
Modbus has many variants available for serial communication. They are:
- Modbus RTU
- Modbus over TCP/IP
- Modbus over UDP
- Modbus ASCII
- Modbus Plus (MB+)
- Pemex Modbus
- Enron Modbus
The most widely and commonly used Modbus variant is Modbus RTU. Modbus RTU uses RS-485 or RS-232, and all communication in Modbus RTU happens over UART (Universal Asynchronous Receiver Transmitter). One bit is transferred at a time and it uses a baud rate from 1200–115200 bits per second.
Modbus security issues
Since Modbus was developed in 1979, security concerns were not taken into consideration. Due to this, many security issues exist in Modbus. These include:
- All the messages in Modbus are communicated without authentication
- There is no encryption present; all the communication can be easily read and understood
- Lack of broadcast suppression
- Lack of message checksum for checking errors and garbled messages
DNP3 stands for Distributed Network Protocol. It was developed by GE Harris in 1993 and is widely used in the U.S. and Canada. Like Modbus, DNP3 is also an open-source serial communication protocol, which is one of the key reasons for its wide use and implementation in SCADA networks.
DNP3 is specifically used between various components in process automation. In a typical SCADA network, DNP3 is mainly used by master stations, RTUs and IEDs. DNP3 finds it major utilities in water and electric companies.
DNP3 salient features
A few of the features stated below make DNP3 fit for its usage in SCADA systems. They are:
- DNP3 can work over IP, encapsulated in TCP/UDP packets. This makes communication smooth and compatible for modern systems and networks
- DNP3 is very reliable and well suited for real-time data transfer
- Utilizes several standardized data formats and supports time-stamped data
- Error checking in the form of CRC checks. DNP3 supports up to 17 CRCs
- Link-layer acknowledgements and authentication support for reliability and assurance
- Unlike Modbus, DNP3 is bidirectional and supports exception-based reporting
Security issues in DNP3
DNP3 suffers from following security issues:
- No support for authentication
- No encryption. All of the data is thus sent in plaintext
- Response replay
- Man-in-the-middle attack
Secure DNP3 is the secure version of DNP3. Secure DNP3 adds authentication and implements an idle session timeout of 20 minutes. It is very difficult to perform data manipulation and spoofing attacks in Secure DNP3.
HART (Highway Addressable Remote Transducer) was developed by Rosemount Inc. in mid-1980. HART is an open-source and hybrid (analog + digital) industrial automation protocol.
HART is the industry standard for transmitting and receiving data between smart devices and monitoring systems. HART is also a bidirectional communication protocol — i.e., it can send and receive data at same time. The benefits of using HART include reduced cost, simplified design, simple implementation and flexible operation.
HART operational modes
HART has two operational modes. They are
- Point-to-point mode: In this mode, there is a single master and a single slave
- Multi-drop mode: In this mode, there are multiple masters and multiple slaves
HART is based on the Bell 202 telephone communication standard and makes use of Frequency Shift Keying (FSK) for sending digital data. Digital signal is made of two frequencies: 1200 HZ and 2200 HZ, representing bits 1 and 0 respectively.
HART supports two communication modes.
- Master-slave: HART is a master-slave protocol; slaves can speak only when spoken to by a master. Masters are usually Distributed Control Systems, PC, PLCs, etc., and slaves are transmitters, actuators and controllers
- Burst mode: As the name suggests, in this mode master instructs slaves to broadcast HART reply messages continuously. Usually, three to four messages are sent per second by slave to master.
HART is susceptible to the following attacks:
- Spoofing attacks
- Lack of authentication
- XML injection attack
- MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b3, Modbus
- Modbus 101 – Introduction to Modbus, Control Solutions Minnesota
- 14 FREQUENTLY ASKED MODBUS QUESTIONS, B+B SmartWorx
- Overview Of DNP3 Protocol, DNP
- Tutorial on DNP3: Intro, Communication, and Objects – Part 1, DPS Telecom
- What is HART Protocol ?, Instrumentation Tools
We've encountered a new and totally unexpected error.
Get instant boot camp pricing
A new tab for your requested boot camp pricing will open in 5 seconds. If it doesn't open, click here.