Hi Team,
We are working on an embedded security project using MbedTLS 3.6.2 for DTLS communication.
As part of our performance evaluation, we analyzed the timing metrics for DTLS handshake and application data read/write operations.
During testing, we observed that the time taken for data read and write operations is significantly higher than expected. [image: image.png] We would appreciate your guidance on the following: 1. What factors in MbedTLS could contribute to higher read/write latency? 2. Are there any known performance limitations or configuration settings that impact DTLS data transfer timing? 3. Are there recommended optimizations for embedded platforms to improve throughput?
Please let us know if any more info is required.
Looking forward to your response.
Thanks and regards, Ankita Hatmode
Hi Ankita,
1. Things that can contribute to higher read/write times: * Encryption is a computation heavy step, it is usually the source of the main additional latency * Fragmentation amplifies loss over the network 2. The options I know of impact handshake, but not the data transfer. 3. Recommended optimisations: * Encryption: using a faster cipher suite and/or hardware acceleration can make this step faster * Fragmentation: setting the correct MTU and making sure that all records fit (see mbedtls_ssl_get_max_out_record_payload()) can reduce fragmentation and increase performance
Best wishes, Janos
From: Ankita Hatmode via mbed-tls mbed-tls@lists.trustedfirmware.org Date: Thursday, 19 February 2026 at 18:45 To: mbed-tls@lists.trustedfirmware.org mbed-tls@lists.trustedfirmware.org Subject: [mbed-tls] Performance Inquiry- High read/write latency observed in Mbedtls 3.6.2 (DTLS)
Hi Team,
We are working on an embedded security project using MbedTLS 3.6.2 for DTLS communication.
As part of our performance evaluation, we analyzed the timing metrics for DTLS handshake and application data read/write operations.
During testing, we observed that the time taken for data read and write operations is significantly higher than expected. [image.png] We would appreciate your guidance on the following: 1. What factors in MbedTLS could contribute to higher read/write latency? 2. Are there any known performance limitations or configuration settings that impact DTLS data transfer timing? 3. Are there recommended optimizations for embedded platforms to improve throughput?
Please let us know if any more info is required.
Looking forward to your response.
Thanks and regards, Ankita Hatmode
------------------------------------------------------------------------------------------------------------------------- Disclaimer: This email message including any attachments is confidential, and may be privileged and proprietary to Agiliad. If you are not the intended recipient, please notify us immediately by replying to this message and destroy all copies of this message including any attachments. You are NOT authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. Thank you. ------------------------------------------------------------------------------------------------------------------------
mbed-tls@lists.trustedfirmware.org