TL;DR
This paper investigates the performance impact of adding a Hash-based Message Authentication Code (HMAC) to Time-Triggered Architectures (TTA) in networked control systems. The authors demonstrate that implementing HMAC for message integrity and authentication is feasible and has a negligible impact on computational overhead, while communication overhead is manageable and can be accounted for in system design.
What Problem Does This Paper Address?
Modern cyber-physical systems, particularly in safety-critical domains like automotive, rely heavily on networked control systems (NCS) for their operation. Time-Triggered Architectures (TTA) are favored for their ability to provide precise, synchronous, and deterministic communication, crucial for safety and reliability. However, as these systems become more interconnected, they face increasing security threats. Adding security mechanisms like authentication to TTA can introduce significant computational and communication overhead, potentially jeopardizing their real-time guarantees. This paper addresses the critical question of whether it's possible to implement robust message authentication (integrity and sender authenticity) in TTA without compromising their performance and determinism.
Methods
The core of the paper involves evaluating the computational and communication overhead of implementing a keyed-Hash Message Authentication Code (HMAC) on two distinct TTA platforms:
- Platform A (Wired): A TTEthernet-based system simulating an automotive communication network, featuring ECUs connected via a central switch.
- Platform B (Wireless): A wireless TTA platform using WiFi 802.11g, employing a Time-Division Multiple Access (TDMA) scheme for synchronization.
The authors implemented HMAC using kernel-level code for both platforms to minimize interference. They evaluated three cryptographic hash functions: SHA-1, SHA-2, and SHA-3.
Key evaluation metrics:
- Computational Overhead: Measured by the execution time of the HMAC algorithm on the sender and receiver nodes.
- Communication Overhead: Assessed by the impact on the maximum number of frames per Base Period (NFmax), which is a crucial metric for TTA schedulability. This was analyzed both theoretically and experimentally.
Datasets
Not discussed in the paper. The evaluation relies on experimental setups and measurements rather than pre-existing datasets.
Key Insights and Ideas
- HMAC is Feasible in TTA: The study confirms that implementing HMAC for message authentication in TTA is practical and does not inherently break the system's real-time properties.
- Computational Overhead is Negligible: The execution time of HMAC, even with strong hash functions, is very small (in the order of tens of microseconds) compared to typical controller execution times, making it a non-issue for computational performance.
- Communication Overhead is Manageable: While adding an HMAC tag increases message size, its impact on the number of frames per Base Period (NFmax) is relatively small, especially for wired networks. This overhead can be accounted for during the TTA scheduling phase.
- Wired vs. Wireless Differences: The communication overhead analysis highlights differences between wired (TTEthernet) and wireless (WiFi) TTA. Wired systems show a small impact on NFmax, while wireless systems, due to inherent MAC protocol non-determinism and lower throughput, show no significant additional impact from HMAC on NFmax.
- Importance of Guard Period: The analysis emphasizes the critical role of the guard period (GP) in TDMA scheduling. Increasing message size due to HMAC can necessitate adjustments to the GP or frame time, impacting the overall number of frames that can be transmitted.
Key Results
- Computational Overhead: Maximum HMAC execution times were measured at 25 µs for Platform A and 20 µs for Platform B, which is significantly less than the typical controller execution time of 1200 µs.
- Communication Overhead (Platform A - Wired):
- Theoretical NFmax for a 60-byte packet was 48.
- Measured NFmax for a 60-byte packet was 43.
- Increasing packet size to 80 bytes (with SHA-1 tag) had a small impact on NFmax, reducing it to 33 in measured results.
- Communication Overhead (Platform B - Wireless):
- Theoretical NFmax for a 60-byte packet was 47.
- Measured NFmax for a 60-byte packet was 9.
- Increasing packet size to 80 bytes had no significant impact on the measured NFmax.
- Scalability: For wired systems, adding more switches in a cascade topology to accommodate more nodes introduces additional guard periods, significantly reducing NFmax. For wireless mesh networks, scalability is addressed by reducing frame time to accommodate more nodes.
Limitations and Future Work
- Limitations:
- The study focuses on HMAC and does not evaluate digital signatures, which offer non-repudiation but are generally slower.
- The wireless platform's performance is significantly lower than the wired platform, and the MAC protocol's non-deterministic nature poses challenges for precise timing analysis.
- The experimental setup for Platform A involved an additional switch for packet analysis, which introduced a small, consistent delay.
- Future Work:
- The authors suggest evaluating the computational and communication overhead of implementing digital signature approaches and comparing them with HMAC.
- Further investigation into optimizing HMAC implementation for wireless TTA could be beneficial.
- Exploring other security mechanisms beyond authentication, such as encryption, and their impact on TTA performance.
Summary updated