Got it

IoT: What is the difference between TLS, DTLS, and DTLS+ Highlighted

Latest reply: Feb 22, 2022 07:21:47 971 33 14 0 0

Hi, dear!

In this article, I want to share with you about TLS, DTLS, DTLS+.


TLS/SSL/DTLS


TLS

TLS is a protocol designed by the IETF on the basis of SSL3.0. SSL was designed by Netscape in 1994, and SSL 3.0 was released in 1995. TLS is actually a successor to SSL.  So, if you want to understand TLS, you need to understand SSL first.


SSL is a protocol-independent of platforms and applications. It is located between TCP/IP and application layer protocols to provide secure and reliable support for data communication.

SSL has the characteristics of confidentiality, authentication, and integrity.

  • Confidentiality: The session key is defined in the handshake protocol, and all messages are encrypted.

  • Authentication: Optional client authentication and mandatory server authentication.

  • Integrity: An integrity check is performed during message transmission.


As an upgraded version of SSL, TLS is more secure, standard, and complete than SSL.


DTLS

As mentioned above, the TLS is located on the TCP, and can ensure data transmission security on the TCP. Datagram TLS (DTLS) is an extension of TLS to ensure data transmission security over UDP.

Each time a piece of data is transmitted in DTLS, a six-way handshake is performed to establish a connection between the client and server. Therefore, DTLS is secure but consumes a lot of bandwidth.


DTLS+

Datagram Transport Layer Security+(DTLS+) is a protocol used by the Huawei OceanConnect IoT platform. Compared with DTLS, DTLS+ reduce the number of handshake times between the terminal and the IoT platform during communication, thereby prolonging the battery life of the terminal.


How it works

The DTLS protocol is used between NB-IoT devices and the IoT platform to protect applications and data. The handshake between the client and server is established for the DTLS connection. After the handshake is established, the two parties use five parameters. (source address, destination address, source port, destination port, protocol type) to identify a connection.


Comparison between TLS and DTLS

Field

TLS

DTLS

RFC

RFC 4346(V1.1), RFC 5246 (V1.2), RFC 8446(V1.3)

RFC 6347(V1.2)

Function

It must run over a reliable transport channel based on TCP. It cannot be used to secure unreliable datagram traffic.

It is used to construct "TCL over datagram".

Runs above which protocol

TLS covers both securities for TCP and UDP transport types.

DTLS is implied if the transport type is UDP.

Message type

1

1

Message Type

3

3

Message Sequence Number

Does not exist

2

Fragment Offset

Does not exist

3

Fragment Length

Does not exist

3

Role

Client only

Server and Client



Comparison between DTLS and DTLS+


DTLS

DTLS+

Communications

  1. After a DTLS channel is established between the terminal and the platform, the two parties use five parameters for communication.

  2. Information such as the negotiated key is not stored between the terminal and the IoT platform. A handshake is required for each transmission.

  1. Based on DTLS, Resume_ID is introduced. The Resume_ID field is added for devices and IoT.

  2. After the first handshake between the device and IoT platform is successful, the IoT and device save the negotiated key and Resume_ID.

  3. No handshake is required for each data transfer.

Translation

Seven messages (six handshake messages and one data message) are required for each data transmission.

Seven messages (six handshake messages and one data message) are required for the first data transmission.

After that, no handshake is required. Only one data message needs to be transmitted.



Thanks!

Datagram Transport Layer Security (DTLS) is a communications protocol designed to protect data privacy and preventing eavesdropping and tampering.
DTLS is based on TLS protocol and provides equivalent security guarantees. DTLS protocol provides communications privacy for datagram protocols.
The main difference between DTSL and TLS is that DTLS uses UDP and TLS uses TCP
View more

Rating

Number of participants 1HiCoins +3 Collapse Reasons
Y_T_Z Y_T_Z + 3

View All scores

  • x
  • convention:

Y_T_Z
Y_T_Z Created Sep 18, 2021 02:03:12 (0) (0)
Great summary!!  
Navin_kay
Navin_kay Created Jan 2, 2022 05:54:18 (0) (0)
 
Good learning, thanks
View more
  • x
  • convention:

Very good
View more
  • x
  • convention:

thanks
View more
  • x
  • convention:

Y_T_Z
Y_T_Z Created Sep 22, 2021 02:24:10 (0) (0)
 
Good
View more
  • x
  • convention:

tls


View more
  • x
  • convention:

Y_T_Z
Y_T_Z Created Feb 28, 2022 09:24:38 (0) (0)
Thanks for the supplements  
great
View more
  • x
  • convention:

Great share
View more
  • x
  • convention:

Nice
View more
  • x
  • convention:

Y_T_Z
Y_T_Z Created Jan 29, 2022 03:21:55 (0) (0)
Thanks!  
12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.