The data-link layer is where deterministic industrial communication truly begins.
If:
- IEC 61158-2 defines how bits travel physically
- IEC 61158-1 defines the architecture
Then IEC 61158 Parts 3 and 4 define how frames are structured, timed, and controlled.
The data-link layer:
- Creates communication frames
- Controls cyclic and acyclic transmission
- Manages timing and synchronization
- Ensures deterministic behavior
This article explains the IEC 61158 data-link layer in practical engineering terms.
Table of Contents
1. What the Data-Link Layer Does
The data-link layer (Layer 2 of OSI) is responsible for:
- Frame formatting
- Addressing
- Transmission control
- Error detection
- Timing control
- Deterministic scheduling
It sits between:
- The physical layer (bits on wire)
- The application layer (device logic)
In industrial systems, this layer determines whether communication is predictable or chaotic.
2. IEC 61158 Parts 3 and 4 Overview
The data-link layer is divided into two major parts:
Part 3 – Data-Link Layer Service Definition
Defines:
- Service primitives
- Communication services
- Cyclic and acyclic models
This describes what services are available.
Part 4 – Data-Link Layer Protocol Specification
Defines:
- DLPDU (Data-Link Protocol Data Unit) formats
- State machines
- Transmission rules
- Timing behavior
- Management functions
This describes how those services are implemented.
Together, Parts 3 and 4 define deterministic communication mechanics.
3. Service Primitives (Part 3)
Service primitives define how upper layers interact with the data-link layer.
Typical primitives include:
- Request
- Indication
- Response
- Confirmation
These define:
- When data is sent
- When data is received
- How status is reported
This structured interface allows clean separation between layers.
4. Cyclic vs Acyclic Communication
This is one of the most important concepts.
Cyclic Communication
- Scheduled
- Deterministic
- Repeats at fixed intervals
- Used for real-time control
Example:
A PLC updates I/O every 5 milliseconds.
Cyclic communication guarantees timing consistency.
Acyclic Communication
- Event-driven
- Non-periodic
- Used for configuration or diagnostics
Example:
Reading device parameters.
Cyclic = control
Acyclic = management
Both are defined at the data-link layer.
5. Deterministic Timing Control
Determinism requires:
- Defined transmission windows
- Controlled time slots
- Predictable cycle duration
IEC 61158 defines timing models such as:
- Fixed-width time slot communication
- Configurable time slot communication
These prevent:
- Frame collisions
- Timing drift
- Random latency
Timing logic is implemented inside the data-link protocol machine.
6. DLPDU – Data-Link Protocol Data Unit
The DLPDU is the structured frame defined in Part 4.
A typical DLPDU contains:
- Header
- Control information
- Addressing
- Payload
- Error-checking field
Some Types define:
- Basic format DLPDU
- Short format DLPDU
The DLPDU ensures:
- Frame integrity
- Correct addressing
- Error detection
The physical layer moves bits.
The DLPDU gives those bits meaning.
7. State Machines in the Data-Link Layer
IEC 61158 defines formal protocol state machines.
These control:
- Frame transmission
- Frame reception
- Timing behavior
- Error handling
State machines ensure:
- Deterministic transitions
- Predictable timing
- Defined recovery procedures
Without state machines, deterministic communication is impossible.
8. Cyclic Transmission Control Sublayer
Many Types include a cyclic transmission control mechanism.
This sublayer:
- Manages time slots
- Controls update cycles
- Coordinates device communication
It ensures:
- Devices transmit in correct order
- No collisions occur
- Cycle timing remains stable
This is the engine of real-time fieldbus control.
9. Send/Receive Control
The data-link layer manages:
- When to send
- When to listen
- When to wait
It prevents:
- Simultaneous transmission conflicts
- Uncontrolled bus access
- Timing instability
This is particularly critical in shared medium systems.
10. Error Detection and Recovery
The data-link layer includes:
- Frame integrity checking
- Error counters
- Timeout detection
- Retransmission logic (depending on Type)
Error handling ensures that:
- Corrupted frames are detected
- Communication faults are isolated
- Devices can recover safely
Industrial communication must fail safely, not silently.
11. Data-Link Layer Management (DLM)
Part 4 defines a management component.
The Data-Link Management layer handles:
- Configuration
- Initialization
- Reset functions
- Monitoring
It allows systems management to interact with the communication process.
This supports:
- Commissioning
- Diagnostics
- Maintenance
12. Timing Diagrams and Synchronization
IEC 61158 includes detailed timing diagrams.
These define:
- Communication cycles
- Interrupt timing
- Synchronization events
- Data processing windows
Precise timing alignment is critical in:
- Motion control
- Distributed I/O
- Safety systems
Synchronization ensures devices operate in coordinated cycles.
13. Data-Link Layer and Fieldbus Types
Each IEC 61158 Type defines:
- Its own DLPDU format
- Its own timing model
- Its own state machines
But all follow the structured framework defined in Parts 3 and 4.
This ensures:
- Standardized documentation
- Layer consistency
- Clear conformance testing
14. Practical Engineering Considerations
When implementing or troubleshooting the data-link layer:
Monitor Cycle Time
Check for jitter or drift.
Inspect Frame Errors
Look for CRC or integrity faults.
Analyze Bus Load
High traffic can affect timing.
Verify Time Slot Configuration
Incorrect configuration breaks determinism.
Capture Frames
Use protocol analyzers for diagnosis.
15. Common Data-Link Layer Problems
- Lost cyclic updates
- Timing jitter
- Frame collisions
- Incorrect addressing
- Misconfigured time slots
- State machine lockups
These issues often appear as:
“Random communication failures”
But they usually originate at Layer 2.
16. Why the Data-Link Layer Is Critical for Determinism
The physical layer ensures signal stability.
The data-link layer ensures timing stability.
It defines:
- Who talks
- When they talk
- How long they talk
- What happens if something fails
This is the core of deterministic industrial networking.
17. Why This Matters for SCADA & Control Engineers
If you:
- Experience cyclic I/O delays
- See intermittent device timeouts
- Observe control instability
The root cause is often in the data-link layer.
Understanding IEC 61158 Parts 3 and 4 allows engineers to:
- Diagnose timing faults
- Evaluate vendor claims
- Configure networks correctly
- Design stable real-time systems
Frequently Asked Questions
What does IEC 61158 Part 3 define?
It defines the data-link layer service primitives and communication services used by fieldbus systems.
What does IEC 61158 Part 4 define?
It defines the data-link protocol structure, DLPDU formats, state machines, and timing behavior.
Why is the data-link layer important?
It controls deterministic communication timing, cyclic updates, frame handling, and error management.
Final Summary
IEC 61158 Parts 3 and 4 define the data-link layer of industrial fieldbus systems.
They specify:
- Service primitives
- Cyclic and acyclic communication
- DLPDU frame structures
- Timing models
- Protocol state machines
- Error detection mechanisms
- Management functions
This layer is responsible for deterministic scheduling and reliable frame delivery.
Without a properly implemented data-link layer, real-time industrial communication cannot function predictably.
The data-link layer is the heart of deterministic fieldbus control.
