Chapter 4
Industrial IoT Architecture and Systems Integration
Bachelors Program in Mechnical Engineering
AI & IoT Applications in Mechanical Engineering
•
Bachelor
Industrial IoT Architecture and Systems Integration
Introduction and Context
Industrial Internet of Things (IIoT) refers to the connection of industrial assets, sensors, control systems, software platforms, and people so that operational data can be collected, exchanged, analysed, and used for improved decisions. In mechanical engineering, IIoT connects machines such as pumps, compressors, CNC machines, turbines, robots, conveyors, and production lines with engineering and business systems.
A connected mechanical asset is not simply a machine fitted with a sensor. It is part of an engineered system that must provide reliable measurement, timely communication, safe control, cybersecurity, data governance, and useful integration with maintenance, production, quality, supply-chain, and product-lifecycle processes.
The central architectural challenge is to connect devices operating with strict timing and safety constraints to enterprise applications that require scalable data, historical analysis, and cross-functional workflows. A well-designed system therefore separates concerns while defining clear interfaces between the device, edge, gateway, plant, and cloud levels.
Learning Objectives
After studying this chapter, the reader should be able to:
Explain the roles of device, edge, gateway, plant, and cloud layers in an IIoT architecture.
Select appropriate communication protocols and integration interfaces for mechanical assets.
Distinguish SCADA, MES, ERP, PLM, historian, and IIoT platform functions.
Design a data pipeline from sensing through analysis and business action.
Apply interoperability, asset-administration, cybersecurity, and governance principles.
Evaluate an IIoT architecture for performance, reliability, safety, and maintainability.
1. From Mechanical Asset to Connected System
A conventional mechanical asset transforms energy or material. A connected asset additionally produces structured information about its state, operation, environment, and history. Typical information includes:
rotational speed, torque, pressure, temperature, vibration, flow, and electrical power;
operating mode, production order, material batch, and operator intervention;
alarms, faults, maintenance actions, and replaced components;
design ratings, drawings, calibration records, and software versions.
The value of data depends on context. A vibration value without a sensor location, measurement unit, sampling condition, timestamp, and asset identity is difficult to interpret. Industrial integration therefore requires both data transport and information modelling.
A useful distinction is between raw data, information, and action. Raw accelerometer samples become information when associated with a bearing, speed, time window, and operating condition. Information becomes action when a maintenance system creates a work order or a controller changes a process within approved safety limits.
2. The Layered IIoT Architecture
A practical architecture commonly contains the following layers:
Physical and device layer – sensors, actuators, drives, programmable logic controllers (PLCs), machine controllers, and embedded software.
Edge layer – local computing close to the asset for filtering, feature extraction, protocol conversion, and rapid decisions.
Gateway and connectivity layer – secure aggregation, routing, buffering, and communication between operational technology (OT) and information technology (IT) networks.
Plant or supervisory layer – SCADA, historians, alarm management, operator interfaces, and local analytics.
Operations-management layer – MES, computerized maintenance management systems (CMMS), quality systems, and production scheduling.
Enterprise and cloud layer – ERP, PLM, data lakes, digital twins, fleet analytics, dashboards, and AI services.
These layers are logical rather than necessarily physical. A modern industrial computer may perform gateway, edge, and historian functions simultaneously. Conversely, a large plant may distribute each function across multiple servers and network zones.
Layered industrial IoT architecture from assets to enterprise systems
Figure: Layered industrial IoT architecture from assets to enterprise systems
Figure: A logical IIoT architecture connecting mechanical assets with plant, operations, and enterprise systems.
Device Layer
Devices generate measurements or execute commands. Sensor selection must reflect range, accuracy, response time, environmental protection, calibration, and failure behaviour. For example, a bearing-monitoring system may use an accelerometer, tachometer, temperature sensor, and load estimate. A sensor should be installed where its measurement represents the engineering variable of interest and where maintenance personnel can inspect or replace it.
PLCs and machine controllers are normally responsible for deterministic control. The IIoT system should not compromise established control logic. Data acquisition should be separated from safety functions unless the complete system has been designed, validated, and certified for that safety role.
Edge Layer
Edge computing reduces latency and dependence on wide-area networks. Typical edge functions include:
filtering noise and removing impossible values;
converting units and synchronizing timestamps;
calculating root-mean-square vibration, moving averages, or energy consumption;
detecting events and transmitting summaries instead of continuous raw data;
buffering data during network outages;
enforcing local access control and certificate validation.
For a sampled signal x₁, x₂, …, xₙ, the arithmetic mean is:
x̄ = (1/n) ∑ᵢ₌₁ⁿ xᵢ
Here, x̄ is the mean in the same unit as each measurement xᵢ, and n is the number of samples. This calculation assumes that the samples represent the same variable under a sufficiently consistent operating condition. It is useful for slow-changing variables, but averaging can conceal transient faults.
The root-mean-square value is:
xRMS = √[(1/n) ∑ᵢ₌₁ⁿ xᵢ²]
For vibration acceleration, x_RMS has units of acceleration, such as m/s², and is often used as an energy-related measure of signal magnitude. The frequency band, sampling rate, sensor mounting, and operating speed must be specified because RMS values from different measurement conditions are not directly comparable.
Gateway and Connectivity Layer
A gateway connects networks or protocols that were not designed to interoperate directly. It may translate Modbus TCP data into MQTT messages, expose OPC UA information, apply firewall rules, or maintain a store-and-forward queue. Translation must preserve semantics, not merely change syntax. A tag called “T1” is not adequate unless its asset, unit, meaning, quality, and timestamp are known.
Gateways also establish a security boundary. They should use least privilege, authenticated connections, network segmentation, secure boot where available, protected credentials, and controlled firmware updates. A gateway must not become an uncontrolled bridge from the internet into a control network.
3. Industrial Communication and Interoperability
Protocol Categories
Industrial protocols serve different purposes:
Technology
Typical role
Important consideration
Modbus RTU/TCP
Simple device and controller data exchange
Limited semantic modelling; security often external
OPC UA
Structured, secure industrial information exchange
Supports information models, discovery, and encryption
MQTT
Lightweight publish/subscribe telemetry
Requires disciplined topic and payload design
PROFINET, EtherNet/IP, EtherCAT
Real-time automation and motion control
Timing and vendor-specific engineering are significant
HTTP/REST
Web and enterprise APIs
Convenient integration, but not inherently real-time
AMQP or similar brokers
Reliable enterprise messaging
More capable messaging patterns with greater overhead
Protocol choice should be based on timing, determinism, payload structure, device capability, network conditions, security, and lifecycle support. MQTT is suitable for telemetry distribution but should not automatically replace a real-time fieldbus in a closed-loop motion-control application.
APIs and Data Contracts
An application programming interface (API) defines how software requests or exchanges information. A REST API commonly uses resources, methods, status codes, and structured representations such as JSON. An event-driven interface publishes an event when something occurs, such as “Pump 17 exceeded its temperature threshold.”
A robust industrial data contract specifies:
asset identifier and equipment hierarchy;
variable name, semantic definition, unit, range, and engineering limits;
timestamp and time zone or UTC convention;
source, quality code, and uncertainty where relevant;
schema version and compatibility rules;
ownership, retention, and access permissions.
API design should address authentication, authorization, rate limits, retries, idempotency, error handling, versioning, and audit logging. An operation is idempotent if repeating it does not create an unintended additional effect. This is especially important when networks retry messages or commands.
Interoperability Standards and Models
Interoperability has three levels:
Technical interoperability – systems can communicate signals or messages.
Syntactic interoperability – systems agree on message structure and encoding.
Semantic interoperability – systems interpret the data in the same way.
Standards such as OPC UA provide mechanisms for structured information models. The ISO 55000 family provides principles for asset management. ISA-95 describes relationships between enterprise and control activities and is widely used when integrating MES and ERP. IEC 62443 provides a cybersecurity framework for industrial automation and control systems. Asset Administration Shell (AAS), associated with Industrie 4.0 concepts, provides a structured digital representation of an industrial asset and its submodels, such as identification, technical data, documentation, and condition monitoring.
An AAS does not automatically guarantee correct integration. Organizations must still define identifiers, submodel semantics, access rights, versioning, and responsibility for data quality.
4. Data Pipelines for Connected Mechanical Assets
A data pipeline transforms measurements into governed information and decisions. A typical sequence is:
sense → acquire → validate → contextualize → transport → store → analyse → visualize or act → archive
Validation can identify missing values, out-of-range readings, frozen signals, timestamp reversals, and implausible rates of change. Contextualization links a measurement to an asset, production order, recipe, material, operating mode, and maintenance state.
A time-series database is optimized for timestamped measurements. A relational database is useful for asset registers, work orders, users, and transactional relationships. Object storage or a data lake can retain high-volume raw data. Effective architectures often use all three rather than treating one database as universally suitable.
Worked Example: Edge Data Reduction
An accelerometer samples at 10,000 samples per second for a 10-second diagnostic window. The raw sample count is:
N = fs × T = 10,000 samples/s × 10 s = 100,000 samples
If each sample uses 16 bits, the uncompressed payload is:
D = N × 16 bits = 1,600,000 bits = 200,000 bytes
This excludes packet headers and metadata. If the edge device transmits only a 20-value feature vector, each value using 32 bits, the feature payload is:
Df = 20 × 32 bits = 640 bits = 80 bytes
The reduction in payload, ignoring headers, is approximately:
The reduction is valuable for bandwidth and storage, but raw data may still be required for fault investigation or model development. A sound policy stores features continuously and retains selected raw windows based on events, risk, or sampling plans.
5. SCADA, MES, ERP, PLM, and Digital Continuity
SCADA
Supervisory control and data acquisition systems provide monitoring, alarms, visualization, and supervisory commands. SCADA normally operates near the plant and interacts with PLCs and remote terminal units. It is not a substitute for all maintenance, production planning, or enterprise functions.
Alarm systems should distinguish abnormal conditions from ordinary status information. Excessive alarms create alarm fatigue and can delay response to genuine hazards. Alarm priorities, acknowledgment rules, shelving, escalation, and historical analysis should be engineered with operators and process experts.
MES
A manufacturing execution system coordinates and records production activities between control systems and enterprise planning. MES functions may include dispatching, production tracking, genealogy, quality management, labour reporting, and performance analysis. It connects machine events with production orders and material batches.
ERP
Enterprise resource planning systems manage business transactions such as purchasing, inventory, finance, sales, and work-order-related commercial information. ERP generally operates at a slower time scale than control systems. It should receive validated and aggregated information rather than uncontrolled high-frequency sensor streams.
PLM
Product lifecycle management systems manage product definitions, requirements, bills of material, engineering changes, CAD data, compliance records, and service knowledge. PLM integration allows operating data to be related to the exact design revision, material specification, or maintenance instruction applicable to an asset.
Digital Thread
The digital thread links information across the asset lifecycle: design, procurement, installation, commissioning, operation, maintenance, modification, and retirement. For example, a pump vibration event can be associated with its design model, serial number, bearing specification, maintenance history, and current operating duty. This connection improves root-cause analysis and supports engineering feedback into future designs.
6. Reference Architectures and System Design
Reference architectures provide reusable concepts rather than a universal implementation. The Purdue Enterprise Reference Architecture separates levels of industrial control and enterprise systems, supporting segmentation between field devices, control, operations, and business networks. RAMI 4.0 adds a three-dimensional perspective involving hierarchy levels, lifecycle and value streams, and layers of information, function, communication, integration, and asset.
When designing an architecture, engineers should proceed systematically:
Define the business and engineering use case.
Identify decisions the system must support and the required time scale.
Identify assets, variables, users, commands, and safety boundaries.
Select sensing and control interfaces.
Allocate functions between device, edge, plant, and cloud.
Define data models, identifiers, APIs, and quality metadata.
Design networks, segmentation, identity, and cybersecurity controls.
Specify reliability, latency, storage, and recovery requirements.
Test with representative workloads and failure conditions.
Establish ownership, monitoring, maintenance, and retirement procedures.
A design should avoid sending every raw signal to the cloud merely because cloud storage is available. It should also avoid placing sophisticated analytics at the edge when the required data, computing resources, and model-maintenance process are unavailable locally.
7. Reliability, Performance, and Safety
Architecture decisions must consider latency, availability, bandwidth, scalability, and recovery. If a measurement is required every 100 ms, the complete sensing-to-decision path must satisfy the relevant timing budget, including acquisition, computation, communication, and actuation. Cloud communication is generally unsuitable for safety-critical emergency shutdown unless the system has been specifically engineered and certified for that purpose.
Availability can be expressed as:
A = MTTF / (MTTF + MTTR)
where A is steady-state availability, MTTF is mean time to failure, and MTTR is mean time to repair or restore. Both times must use the same unit. The expression assumes a simple repairable system with statistically stable failure and repair behaviour. Real systems may require models for redundancy, common-cause failure, preventive maintenance, and partial service degradation.
For example, if a gateway has an MTTF of 10,000 hours and an MTTR of 5 hours:
A = 10,000 / (10,000 + 5) ≈ 0.9995
This is approximately 99.95 percent availability under the stated assumptions. It does not mean that every service, network path, or connected machine has the same availability.
Safety and security are related but distinct. Functional safety addresses risks arising from hazardous system behaviour; cybersecurity addresses malicious or unauthorized actions and loss of confidentiality, integrity, or availability. A secure IIoT system still requires independent safety functions, appropriate risk assessment, fail-safe design, and compliance with applicable machinery and workplace regulations.
8. Cybersecurity and Governance
Important controls include:
asset inventory and network diagrams;
zones and conduits separating safety, control, operations, and enterprise networks;
strong identity, role-based access, and multi-factor authentication where practical;
secure configuration, patch assessment, vulnerability management, and backups;
encryption in transit and protected credentials at rest;
allow-listing and application control for critical edge devices;
monitoring, logging, incident response, and recovery exercises;
supplier security requirements and software bill-of-materials information.
Governance also covers data ownership, retention, privacy, intellectual property, model accountability, and cross-border data transfer. Worker-related data, such as operator identifiers or performance records, may require privacy protection and transparent use policies. AI-generated maintenance recommendations should be traceable to data, model version, confidence, and human approval. Automation should not obscure who is accountable for a safety or production decision.
9. Applied Case: Illustrative Connected Pump System
Background
The following is an illustrative case. A plant operates 60 centrifugal pumps in a chemical-processing service. Unplanned bearing failures cause production interruptions, while existing inspections are periodic and paper-based.
Problem
The plant has vibration sensors on selected pumps, but data is stored in isolated systems. Operators cannot easily relate vibration trends to speed, flow, maintenance history, or pump design. The reliability team wants earlier warning without placing automatic control of the pumps in the cloud.
Analysis
The relevant variables include vibration acceleration, bearing temperature, shaft speed, suction pressure, discharge pressure, flow, motor current, pump identity, and operating mode. The analysis also identifies risks: variable-speed operation can change vibration signatures; sensor mounting affects measurement quality; and a threshold that ignores pump duty may generate false alarms.
Approach and Solution
Each pump receives a unique asset identifier. Edge devices acquire vibration and process variables, validate timestamps, calculate spectral and statistical features, and buffer data during network outages. A gateway publishes standardized messages through a secure broker. SCADA retains operational visibility and alarms. A historian stores time-series data, while the CMMS receives condition-based work recommendations through an API. The ERP system receives approved maintenance completion and spare-parts transactions. PLM provides the applicable pump and bearing specifications.
The initial AI model is advisory. It compares features with operating context and maintenance history to estimate an anomaly score. A human reliability engineer reviews the evidence before a work order is created. Safety trips remain in the certified local control system.
Outcome
The architecture creates a traceable chain from sensor measurement to maintenance action. The plant reduces duplicate data entry, gains fleet-level comparison, and can investigate events using retained raw vibration windows. The project also exposes the importance of data quality: several apparent anomalies are traced to loose sensors and incorrect asset labels rather than bearing damage.
Learning Points
Context and identity are as important as measurement frequency.
Edge analytics can reduce bandwidth while preserving rapid local diagnosis.
CMMS, ERP, PLM, SCADA, and analytics systems have different responsibilities.
Advisory AI should be introduced with human review and performance monitoring.
Integration must include physical installation, governance, cybersecurity, and change management.
10. Challenges and Contemporary Developments
Legacy equipment often lacks modern interfaces, documentation, or security features. Retrofitting sensors can introduce calibration and installation problems. Vendor lock-in may arise when proprietary data models or cloud services make migration difficult. Scaling from a pilot to thousands of assets reveals problems in certificate management, naming conventions, model drift, and support staffing.
Contemporary developments include industrial 5G for mobile or high-density connectivity, time-sensitive networking for converged industrial Ethernet, containerized edge applications, open-source data connectors, and digital twins. AI can support anomaly detection, remaining-useful-life estimation, visual inspection, energy optimization, and engineering knowledge retrieval. However, AI does not eliminate the need for physical understanding, labelled failure data, uncertainty assessment, cybersecurity, and safe operating limits.
Best practice is to begin with a measurable use case, establish a trusted asset register, define semantics before scaling, protect existing control systems, and evaluate benefits against lifecycle cost. A technically impressive dashboard is not an integration success if it does not improve reliability, quality, safety, energy performance, or decision speed.
Chapter Summary
Industrial IoT architecture connects mechanical assets to operational, maintenance, engineering, and enterprise systems through layered device, edge, gateway, plant, operations, and cloud functions. Devices and controllers provide measurements and deterministic control; edge systems provide local processing and buffering; gateways provide secure protocol and network integration; SCADA supervises plant operations; MES coordinates production; ERP manages enterprise transactions; and PLM preserves product and engineering knowledge.
Successful integration requires more than connectivity. It requires semantic data models, reliable APIs, timestamps, quality metadata, asset identity, cybersecurity, safety boundaries, lifecycle governance, and clearly allocated responsibilities. OPC UA, MQTT, ISA-95, IEC 62443, ISO 55000, and Asset Administration Shell concepts can support interoperability when implemented with disciplined identifiers and data contracts.
Architecture should be designed from use cases and required decisions. Edge and cloud functions should be allocated according to latency, bandwidth, availability, safety, and maintainability. AI can enhance condition monitoring and decision support, but human accountability and engineering validation remain essential.
Key Terms
IIoT: Industrial Internet of Things connecting industrial assets, systems, and people.
Edge computing: Processing performed close to the physical asset or production process.
Gateway: A system that connects networks or protocols and may provide security and buffering.
SCADA: Supervisory control and data acquisition system for plant monitoring and supervisory operation.
MES: Manufacturing execution system coordinating production activities and records.
ERP: Enterprise resource planning system managing business and resource transactions.
PLM: Product lifecycle management system managing engineering and product information.
Historian: Database optimized for time-stamped industrial process data.
API: Defined interface through which software systems exchange requests and data.
MQTT: Lightweight publish/subscribe messaging protocol commonly used for telemetry.
OPC UA: Industrial communication and information-modelling framework with security features.
Interoperability: Ability of systems to exchange and correctly use information.
Semantic model: Formal representation of the meaning and relationships of data.
Asset Administration Shell: Structured digital representation of an industrial asset and its submodels.
Digital thread: Linked information flow across an asset or product lifecycle.
Data contract: Agreement specifying data structure, meaning, quality, and exchange rules.
Availability: Proportion of required time that a system performs its intended function.
Operational technology: Hardware and software that monitors or controls physical processes.
Functional safety: Protection against unacceptable risk caused by hazardous system behaviour.
Digital twin: Digital representation of a physical asset or process maintained for a defined purpose.
Review Questions
Short Answer Questions
What are the main functions of an IIoT gateway?
Why is semantic interoperability more demanding than basic network connectivity?
Distinguish the typical roles of SCADA and MES.
State two advantages of edge computing for mechanical assets.
Why should safety-critical control generally remain independent of cloud analytics?
Long Answer Questions
Explain a layered IIoT architecture from sensor to enterprise system, including the responsibilities of each layer.
Compare Modbus, OPC UA, MQTT, and REST APIs in terms of typical industrial use and limitations.
Discuss how SCADA, MES, ERP, PLM, and a historian can participate in a digital thread.
Explain the importance of asset identity, data contracts, timestamps, and quality metadata in condition monitoring.
Describe a cybersecurity and governance plan for a plant connecting legacy machines to an IIoT platform.
Analytical / Application Questions
Design an architecture for monitoring a fleet of variable-speed compressors. Specify sensing, edge processing, protocols, storage, analytics, and integration with maintenance systems.
A plant sends all raw vibration data to the cloud but experiences high bandwidth cost and delayed alarms. Analyse the problem and propose an edge–cloud redesign while preserving data needed for investigation.
Evaluate whether an AI model should automatically shut down a production pump after detecting an anomaly. Discuss safety, validation, latency, human oversight, and integration with existing control systems.
Multiple Choice Questions with Answers
Question 1
Which layer is primarily responsible for deterministic machine control?
A. Enterprise cloud layer
B. Device and controller layer
C. ERP layer
D. PLM layer
Correct Answer: B. Device and controller layer
Question 2
What is a principal advantage of edge computing in an IIoT system?
A. It eliminates the need for sensors
B. It guarantees unlimited storage
C. It enables local processing with reduced latency
D. It replaces all safety systems
Correct Answer: C. It enables local processing with reduced latency
Question 3
Which technology is especially associated with structured industrial information models?
A. OPC UA
B. JPEG
C. SMTP
D. HTML only
Correct Answer: A. OPC UA
Question 4
Which system normally coordinates production tracking, genealogy, and shop-floor execution?
A. PLM
B. MES
C. ERP only
D. A vibration sensor
Correct Answer: B. MES
Question 5
A data contract should normally specify which combination?
A. Only screen colour and dashboard layout
B. Asset identity, units, timestamps, quality, and schema rules
C. Only the cloud provider's name
D. Only the sensor purchase price
Correct Answer: B. Asset identity, units, timestamps, quality, and schema rules
Question 6
A gateway in an industrial network should be treated primarily as what?
A. An uncontrolled bridge to the internet
B. A secure integration and protocol-boundary component
C. A replacement for every PLC
D. A mechanical actuator
Correct Answer: B. A secure integration and protocol-boundary component
Question 7
Using A = MTTF/(MTTF + MTTR), what is the approximate availability when MTTF = 10,000 hours and MTTR = 5 hours?
A. 90.0%
B. 95.0%
C. 99.95%
D. 100.5%
Correct Answer: C. 99.95%
Question 8
Why may transmitting only edge-computed features be problematic?
A. Features can never be stored
B. Raw data may be needed for later fault investigation or model development
C. Features always require more bandwidth than raw data
D. Edge devices cannot calculate statistics
Correct Answer: B. Raw data may be needed for later fault investigation or model development
Question 9
Which statement best distinguishes cybersecurity from functional safety?
A. They are identical terms
B. Cybersecurity addresses malicious or unauthorized actions, while safety addresses hazardous behaviour and risk
C. Safety concerns only passwords
D. Cybersecurity applies only to mechanical design
Correct Answer: B. Cybersecurity addresses malicious or unauthorized actions, while safety addresses hazardous behaviour and risk
Question 10
What is the main purpose of a digital thread?
A. To remove all historical records
B. To link information across design, operation, maintenance, and retirement
C. To prevent PLM from exchanging data
D. To replace physical inspection in every situation
Correct Answer: B. To link information across design, operation, maintenance, and retirement
AI & IoT Applications in Mechanical Engineering
Chapter 4
of 15