Modbus/TCP
Modbus over TCP for Industrial ControlApplication layer · OSI 7Reading sensors and commanding factory PLCs over TCP 502
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|---|---|---|---|---|---|
| Play the first step to capture packets. | ||||||
Overview
connects engineering screens to factory , pumps, and sensors over TCP port 502. Compact requests read 16-bit registers and flip coils, with zero built-in authentication or encryption.
Defined by Modbus.org, Modbus/TCP prepends a 7-byte MBAP header onto the classic PDU over TCP 502. Because classic Modbus trusts any reachable IP, OT networks rely on segmentation or Modbus/TCP Security (TLS 802).
Key facts
- Layer
- Application (TCP port 502)
- Origin
- 1979 (Modicon)
- Data types
- 16-bit registers & single-bit coils
- Security
- None built in (TLS on port 802)
- Defined in
- Modbus.org Specifications
Tiny commands controlled industrial pumps
Twelve-byte requests polled registers, adjusted a setpoint, switched a pump coil, and caught an out-of-range error. Without logins or encryption, network isolation protects physical equipment.
Executed Modbus/TCP FC 3, FC 6, FC 5, and Exception 0x02 over port 502 while highlighting OT segmentation and port 802 TLS security.
- Messages
- 4 query/reply exchanges
- Largest packet
- 17 B Modbus payload
- Built-in login
- None
- Protection
- Segmented OT network + TLS 802
Try it yourself
Check whether Modbus port 502 is isolated
Verify firewall isolation so TCP port 502 is unreachable outside authorized OT control subnets.
Test-NetConnection -ComputerName 192.168.1.70 -Port 502