Skip to main content
QUICK REVIEW

[Paper Review] DTLS Performance - How Expensive is Security?

Sebastian Gallenmüller, Dominik Schöffmann|arXiv (Cornell University)|Apr 25, 2019
Network Traffic and Congestion ControlComputer Science1 citations
TL;DR

This paper presents a performance model for DTLS-enabled applications, using a high-speed, open-source VPN gateway (MoonSec) built on DPDK and OpenSSL to measure and quantify the impact of security parameters and network characteristics. The key finding is that per-connection setup costs are 368× higher than per-packet costs, with elliptic curve-based DHE ciphers and ChaCha20 encryption significantly reducing overhead.

ABSTRACT

Secure communication is an integral feature of many Internet services. The widely deployed TLS protects reliable transport protocols. DTLS extends TLS security services to protocols relying on plain UDP packet transport, such as VoIP or IoT applications. In this paper, we construct a model to determine the performance of generic DTLS-enabled applications. Our model considers basic network characteristics, e.g., number of connections, and the chosen security parameters, e.g., the encryption algorithm in use. Measurements are presented demonstrating the applicability of our model. These experiments are performed using a high-performance DTLS-enabled VPN gateway built on top of the well-established libraries DPDK and OpenSSL. This VPN solution represents the most essential parts of DTLS, creating a DTLS performance baseline. Using this baseline the model can be extended to predict even more complex DTLS protocols besides the measured VPN. Code and measured data used in this paper are publicly available at https://git.io/MoonSec and https://git.io/Sdata.

Motivation & Objective

  • To develop a generic performance model for DTLS-enabled applications that accounts for network characteristics and security parameters.
  • To measure and quantify the performance overhead introduced by DTLS in a real-world, high-performance environment.
  • To identify the dominant cost factors in DTLS processing and evaluate the impact of different cryptographic algorithms.
  • To provide a reproducible baseline using a modular, open-source DTLS VPN gateway (MoonSec) for future performance modeling.

Proposed method

  • Developed a modular, high-performance DTLS-based VPN gateway named MoonSec using DPDK for fast packet I/O and OpenSSL for DTLS and crypto operations.
  • Designed the gateway to isolate and benchmark individual processing steps: packet I/O, state tracking, cryptographic hashing, and encryption/decryption.
  • Formulated a performance model using four components: per-packet costs (6323 cycles/byte), per-connection setup costs (5.76M cycles), and connection state management.
  • Derived key equations: overallPerPacket(p) = 6323·p and overallPerCon(c,p) = 5,761,437 + 2,326,558·c, with final model: overallC(c,p) = 5,761,437 + 2,326,558·c + 6,323·p.
  • Validated the model through extensive measurements on a high-end server, using long-lived connections to isolate and measure fixed and variable costs.
  • Released MoonSec source code, measured data, and plotting scripts under open-source licenses to ensure reproducibility and extensibility.

Experimental results

Research questions

  • RQ1What are the dominant performance cost factors in DTLS-enabled applications, and how do they scale with connection count and packet size?

Key findings

  • The per-connection setup cost in DTLS is 368 times higher than the per-packet processing cost, making connection lifetime a critical factor for performance efficiency.
  • Using elliptic curve-based DHE ciphers reduces handshake costs by nearly a factor of four compared to traditional modp-based DHE ciphers.
  • The choice of encryption algorithm significantly affects performance: the most expensive cipher suite was nearly twice as costly as the least expensive one in non-accelerated environments.
  • The ChaCha20-Poly1305 cipher suite achieved the lowest overall processing cost, reducing cryptographic overhead by up to 50% compared to AES-based alternatives.
  • The performance model accurately predicts MoonSec’s behavior across varying connection counts and packet sizes, validating its use as a performance baseline.
  • The model is CPU-architecture dependent but generalizable; with re-measurement on new platforms, the model can be adapted to predict performance on different hardware, including mobile and IoT devices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.