# Introducing Modbus Traffic Monitoring in ntopng | ntop

> Modbus is an industrial protocol used to communicate with automation devices. The initial protocol version was implemented over a serial layer, whereas the cu

[Blog](https://www.ntop.org/blog/)[ntopng](https://www.ntop.org/category/ntopng/)

# Introducing Modbus Traffic Monitoring in ntopng

June 6, 20231 min read

[Modbus](https://en.wikipedia.org/wiki/Modbus) is an industrial protocol used to communicate with automation devices. The initial protocol version was implemented over a serial layer, whereas the current version named [ModbusTCP](https://www.prosoft-technology.com/kb/assets/intro_modbustcp.pdf) is a variant of the original protocol running over TCP/IP.

This blog post describes how ntopng monitors ModbusTCP traffic: it detects Modbus flows via nDPI and dissects them building an internal flow representation. For each flow, ntopng keeps track of the function codes uses, exceptions and registers accessed.

![](/images/2023/06/modbus_overview.webp)

It also reports the transitions between function Ids and depicts them graphically: the more transitions the ticker is the line of the graph.

![](/images/2023/06/modbus_transitions.webp)

ntopng’s behavioural checks have been extended in order to supervise Modbus communication and detect anomalies.

![](/images/2023/06/modbus_checks.webp)

These checks trigger an alert when a flow:

-   Reports too many (configurable) exceptions that usually indicate issues.
-   Requests an unexpected function code. The network administrator can list the allowed function codes, triggering an alert for other function codes that have been observed but not configured.
-   An unexpected function code transition is reported.

As with [IEC 60870-5-104](https://www.ntop.org/ot-ics-scada-iec-60870-5-104-in-ntopng/), in ntopng preferences it is possible to specify for how long traditions of a ModbusTCP flows are observed.

![](/images/2023/06/modbus_learning.webp)

During the learning period, ntop keeps track of the transitions and stores them internally. Past the specified learning time, ntopng triggers an alert whenever an invalid transition is observed.

![](/images/2023/06/modbus_alerts.webp)

Modbus support is currently implemented in the ntopng (dev) version and it will be included in the next stable version. You can refer to the [ntopng user’s guide](https://www.ntop.org/guides/ntopng/scada/modbus.html) for details.

Enjoy !

## Keep reading

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

[![](/images/2026/09/Screenshot-2026-09-09-151028-1.webp)](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

AnnounceOct 5, 2026

### [October 20th: Join us for the ntopng 7.0 Webinar](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

Is your network monitoring keeping pace with AI, larger infrastructures, and the growing need for real observability? We’re excited to introduce ntopng 7.0, alongside new releases of the rest of the ntop…

[![](/images/2026/09/Screenshot-2026-09-09-163410-1.webp)](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

ntopngSep 21, 2026

### [ntopng User Interface: Introducing the New Navigation Bar](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

In our continuous effort to improve user experience and make network monitoring more intuitive, we have completely redesigned the ntopng Navigation Bar. As our feature set expands—with crucial additions like the nAnalyst…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/introducing-modbus-traffic-monitoring-in-ntopng/