Claeys Timothy, Vučinić Mališa, Watteyne Thomas, Rousseau Franck, Tourancheau Bernard
Inria, 2 Rue Simone IFF, 75012 Paris, France.
Univ. Grenoble Alpes, CNRS, Grenoble INP, LIG, F-38000 Grenoble, France.
Sensors (Basel). 2021 Mar 21;21(6):2192. doi: 10.3390/s21062192.
This paper presents a thorough comparison of the Transport Layer Security (TLS) v1.2 and Datagram TLS (DTLS) v1.2 handshake in 6TiSCH networks. TLS and DTLS play a crucial role in protecting daily Internet traffic, while 6TiSCH is a major low-power link layer technology for the IoT. In recent years, DTLS has been the de-facto security protocol to protect IoT application traffic, mainly because it runs over lightweight, unreliable transport protocols, i.e., UDP. However, unlike the DTLS record layer, the handshake requires reliable message delivery. It, therefore, incorporates sequence numbers, a retransmission timer, and a fragmentation algorithm. Our goal is to study how well these mechanisms perform, in the constrained setting of 6TiSCH, compared to TCP's reliability algorithms, relied upon by TLS. We port the mbedTLS library to OpenWSN, a 6TiSCH reference implementation, and deploy the code on the state-of-the-art OpenMote platform. We show that, when the peers use an ideal channel, the DTLS handshake uses up to 800 less and completes 0.6 s faster. Nonetheless, using an unreliable communication link, the DTLS handshake duration suffers a performance penalty of roughly 45%, while TLS' handshake duration degrades by merely 15%. Similarly, the number of exchanged bytes doubles for DTLS while for TLS the increase is limited to 15%. The results indicate that IoT product developers should account for network characteristics when selecting a security protocol. Neglecting to do so can negatively impact the battery lifetime of the entire constrained network.
本文全面比较了6TiSCH网络中的传输层安全(TLS)v1.2和数据报传输层安全(DTLS)v1.2握手。TLS和DTLS在保护日常互联网流量方面发挥着关键作用,而6TiSCH是物联网的一种主要低功耗链路层技术。近年来,DTLS一直是保护物联网应用流量的事实上的安全协议,主要是因为它运行在轻量级、不可靠的传输协议(即UDP)之上。然而,与DTLS记录层不同,握手需要可靠的消息传递。因此,它包含序列号、重传定时器和分段算法。我们的目标是研究在6TiSCH的受限环境中,与TLS所依赖的TCP可靠性算法相比,这些机制的性能如何。我们将mbedTLS库移植到6TiSCH参考实现OpenWSN上,并将代码部署在最先进的OpenMote平台上。我们表明,当对等方使用理想信道时,DTLS握手使用的资源减少多达800,且完成速度快0.6秒。尽管如此,使用不可靠的通信链路时,DTLS握手持续时间会遭受约45%的性能损失,而TLS握手持续时间仅下降15%。同样,DTLS交换的字节数翻倍,而TLS的增加限于15%。结果表明,物联网产品开发者在选择安全协议时应考虑网络特性。忽视这一点可能会对整个受限网络的电池寿命产生负面影响。