SACA IIoT and Industrial Networking 2 — Questions and Answers
Question 1: What is the primary advantage of MQTT protocol over HTTP for IIoT device communications?
- MQTT provides stronger encryption than HTTPS
- MQTT uses a lightweight publish-subscribe model with minimal overhead, ideal for constrained devices and unreliable networks (Correct answer)
- MQTT is faster because it uses UDP instead of TCP
- MQTT supports binary data natively while HTTP only handles text
Correct answer: MQTT uses a lightweight publish-subscribe model with minimal overhead, ideal for constrained devices and unreliable networks
MQTT's publish-subscribe broker model decouples publishers from subscribers, uses minimal packet overhead (2-byte fixed header), supports QoS levels, and handles intermittent connectivity gracefully — making it ideal for IoT devices with limited bandwidth or power.
MQTT (Message Queuing Telemetry Transport) runs over TCP with a broker (e.g., Mosquitto, HiveMQ, AWS IoT Core) mediating all messages. Devices publish to topics (e.g., 'plant/line1/machine3/temperature'); subscribers receive all matching messages. QoS levels: 0 (fire-and-forget), 1 (at least once), 2 (exactly once). The will message feature lets the broker publish a predefined 'device offline' message if a device disconnects unexpectedly. MQTT overhead: ~2 bytes minimum vs. HTTP's ~200+ byte headers — critical for devices sending small sensor readings frequently over cellular or low-bandwidth networks.
Question 2: In industrial networking, what is the purpose of 'network segmentation' using VLANs or DMZs for OT systems?
- To increase network bandwidth by dedicating separate switches to each machine
- To isolate OT control networks from IT business networks, limiting the spread of malware and unauthorized access (Correct answer)
- To prioritize QoS traffic shaping for real-time PLC communication
- To reduce cabling costs by sharing network infrastructure between OT and IT
Correct answer: To isolate OT control networks from IT business networks, limiting the spread of malware and unauthorized access
Segmentation creates separate network zones for OT (PLCs, HMIs, drives) and IT (ERP, office PCs) systems. Traffic between zones passes through firewalls with strict rules — limiting a malware infection on the IT side from reaching and compromising OT control systems.
The Purdue Model (ISA-95) defines OT network levels: Level 0-2 (field devices, control, SCADA) and Level 3-4 (MES, ERP). The Industrial DMZ sits between Level 3 and Level 4, with firewalls on both sides. Rules typically allow only specific historian queries (ERP → historian), bar all unsolicited inbound connections to Level 2, and deny all SMB/RDP from IT to OT. The Stuxnet and NotPetya incidents demonstrated the catastrophic result of inadequate OT/IT segmentation. IEC 62443 and NERC CIP mandate segmentation for critical infrastructure.
Question 3: What does 'deterministic communication' mean in industrial Ethernet, and which standard achieves it?
- All packets are encrypted and authenticated, ensuring only authorized devices can communicate
- Messages are guaranteed to be delivered within a bounded, predictable time window regardless of network load (Correct answer)
- All connected devices receive every message broadcast, ensuring no data is missed
- Network switches use token passing to control which device can transmit at any given time
Correct answer: Messages are guaranteed to be delivered within a bounded, predictable time window regardless of network load
Deterministic communication guarantees that time-critical messages arrive within a defined maximum latency, regardless of other network traffic — required for real-time motion control and safety systems. IEEE 802.1 TSN (Time-Sensitive Networking) achieves this on standard Ethernet.
Standard Ethernet (CSMA/CD) is non-deterministic — packet delivery time is probabilistic due to collisions and congestion. Industrial protocols achieved determinism through specialized hardware (PROFINET IRT uses dedicated ASICs, EtherCAT uses processing-on-the-fly). IEEE 802.1 TSN standards add determinism to standard Ethernet via: 802.1Qbv (time-aware shaper, schedules transmission windows), 802.1AS (precision time synchronization), and 802.1Qbu (frame preemption, pauses low-priority frames for time-critical ones). TSN enables OPC UA PubSub over TSN — a converged OT/IT network for Industry 4.0.
Question 4: In Modbus RTU communications, what is the function of the 'CRC' (Cyclic Redundancy Check) appended to each message?
- It encrypts the message data to prevent unauthorized devices from reading register values
- It allows the receiving device to detect transmission errors caused by electrical noise on the serial bus (Correct answer)
- It provides the device address field that tells each slave which message is intended for it
- It defines the function code indicating whether the message is a read or write operation
Correct answer: It allows the receiving device to detect transmission errors caused by electrical noise on the serial bus
The Modbus RTU CRC is a 2-byte error-detection code calculated from the message content. The receiver independently calculates the CRC and compares it to the received value — a mismatch indicates a transmission error (bit flip from noise), causing the message to be discarded.
Modbus RTU uses CRC-16 (polynomial 0x8005). The master calculates CRC from all message bytes and appends it. The slave recalculates on receipt and discards the message (no response) if CRC mismatches. The master detects no response and either retries or flags a communication fault. CRC-16 detects all single-bit errors, all double-bit errors, all odd-bit errors, and burst errors up to 16 bits. In noisy industrial environments (near VFDs, welding, HF equipment), CRC filtering prevents incorrect register writes that could command wrong setpoints or switch wrong outputs.
Question 5: What is a 'Fieldbus' and how does it differ from traditional 4-20mA point-to-point wiring?
- Fieldbus is a wireless protocol; 4-20mA is wired
- Fieldbus carries digital communications for multiple devices on a single cable; 4-20mA dedicates one cable pair per device for one analog value (Correct answer)
- Fieldbus requires intrinsic safety barriers; 4-20mA works without any safety interface
- Fieldbus is only for sensors; 4-20mA supports both sensors and actuators
Correct answer: Fieldbus carries digital communications for multiple devices on a single cable; 4-20mA dedicates one cable pair per device for one analog value
Fieldbus (PROFIBUS, Foundation Fieldbus, DeviceNet) uses multi-drop digital communication — one cable connects many devices in series/star, each addressed digitally. 4-20mA requires individual cable runs from each field device to the control room, each carrying only one variable.
Traditional 4-20mA: each field instrument (flow, level, temperature, pressure) needs a dedicated two-wire cable to a control room I/O card — for 200 instruments, 200 cable runs + 200 I/O channels. Foundation Fieldbus H1 or PROFIBUS PA: up to 32 instruments on one cable segment (trunk + spurs), each transmitting multiple process variables plus diagnostics digitally. Benefits: reduced cabling cost (60-70% reduction for large plants), richer data (device diagnostics, secondary variables), remote configuration. Downside: more complex engineering, device compatibility verification, segment design rules.
Question 6: What is 'OPC Unified Architecture' (OPC UA) and why is it significant for industrial data integration?
- A database schema standard for storing historical process data in SQL format
- An open, platform-independent communication standard providing secure, structured data access between industrial devices and enterprise systems (Correct answer)
- A wireless protocol specifically designed for battery-powered industrial sensors
- A PLC programming standard that unifies IEC 61131-3 languages across vendors
Correct answer: An open, platform-independent communication standard providing secure, structured data access between industrial devices and enterprise systems
OPC UA is a vendor-neutral, secure, service-oriented communication architecture enabling devices, controllers, historians, and enterprise software to exchange structured, semantically rich data — the de facto standard for Industry 4.0 vertical integration.
OPC UA (IEC 62541) offers: platform independence (runs on Windows, Linux, embedded controllers, cloud), built-in security (certificates, encrypted sessions, role-based access), rich information models (address space: nodes, references, data types — not just tag values but semantic context), and transport flexibility (TCP binary for performance, HTTPS for firewall-friendly access). PubSub extension adds MQTT/AMQP transport for cloud integration. Every major PLC vendor (Siemens, Rockwell, Beckhoff, B&R) includes OPC UA servers. The Information Model allows a PLC to expose its entire data structure as a self-describing address space readable by any OPC UA client.
What is the primary advantage of MQTT protocol over HTTP for IIoT device communications?