# US 2024/0406212 A1 · Network device with datagram transport layer security

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0406212 A1
- Document ID: US20240406212A1
- Status: Published application
- Kind: A1
- Application number: 18/595,475
- Filed: 2024-03-05
- Published: 2024-12-05
- Earliest claimed: 2023-06-01
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Boris Pismenny; Miriam Menes; Liran Liss
- Web page: https://patentgrep.com/patent/US20240406212A1

## CPC

- H04L 63/166: {at the transport layer}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In one embodiment, a local networking device includes a host interface to receive packets from a local host device, packet processing hardware to receive cryptographic material offloaded from the local host device over the host interface, perform cryptographic operations on the packets based on the cryptographic material, generate datagram transport layer security (DTLS) headers including respective DTLS sequence numbers in hardware, and encapsulate the packets with the DTLS headers in hardware, and a network interface to send the packets with the DTLS headers to a remote networking device over a packet data network.

## Claims

### Claim 1

A system, comprising a local networking device, including:
a host interface to receive first packets from a local host device;
packet processing hardware to:
receive first cryptographic material offloaded from the local host device over the host interface;
perform cryptographic operations on the first packets based on the first cryptographic material;
generate first datagram transport layer security (DTLS) headers including respective DTLS sequence numbers in hardware; and
encapsulate the first packets with the first DTLS headers in hardware; and
a network interface to send the first packets with the first DTLS headers to a remote networking device over a packet data network.

### Claim 2 (depends on 1)

The system according to claim 1, wherein the first packets include remote direct memory access (RDMA) packets.

### Claim 3 (depends on 1)

The system according to claim 1, wherein:
the network interface is to receive from the remote networking device over the packet data network second packets having headers including second DTLS headers;
the packet processing hardware is to:
parse the headers of the second packets;
construct second cryptographic material from at least one of the second DTLS headers;
find at least one decryption key in the first cryptographic material based on source and destination data in at least one of the second DTLS headers;
decrypt and authenticate the second packets based on the at least one decryption key and the second cryptographic material; and
perform replay protection checks based on DTLS sequence numbers of the second packets.

### Claim 4 (depends on 3)

The system according to claim 3, wherein the packet processing hardware is to:
check a DTLS data type of the second packets;
pass control packets of the second packets to host software running on the local host device; and
decapsulate data packets of the second packets.

### Claim 5 (depends on 4)

The system according to claim 4, wherein the packet processing hardware is to perform a direct memory access operation of a host memory of the local host device after decapsulating the data packets.

### Claim 6 (depends on 1)

The system according to claim 1, wherein the packet processing hardware is to retain the DTLS sequence numbers of the first packets in plaintext for sending to the remote networking device.

### Claim 7 (depends on 1)

The system according to claim 1, wherein the packet processing hardware is to generate header fields of the first DTLS headers at a fixed length per header field.

### Claim 8 (depends on 1)

The system according to claim 1, wherein the packet processing hardware is to:
receive a key update DTLS control message from the local host device;
generate a DTLS sequence number for the key update DTLS control message;
save the DTLS sequence number for the key update DTLS control message to a memory of the local host device;
add a DTLS header to the key update DTLS control message in hardware, the DTLS header of the key update DTLS control message including the DTLS sequence number of the key update DTLS control message;
send the key update DTLS control message to a remote host device;
receive from the remote host device an acknowledgment DTLS control message including the DTLS sequence number of the key update message as an acknowledgement message of the key update message;
provide the acknowledgment DTLS control message to software running on the local host device;
and
receive offload of the new cryptographic material from the software.

### Claim 9 (depends on 8)

The system according to claim 8, further comprising the local host device including a processor to run the software to:
generate the key update DTLS control message;
provide the key update DTLS control message to the local networking device;
receive the acknowledgment DTLS control message from the local networking device;
retrieve the DTLS sequence number of the key update DTLS control message;
verify that the DTLS sequence number of the key update message corresponds with a DTLS sequence number of the acknowledgement message; and
offload the new cryptographic material to the local networking device responsively to verifying that the DTLS sequence number of the key update message corresponds with the DTLS sequence number of the acknowledgement message.

### Claim 10 (depends on 1)

The system according to claim 1, further comprising the local host device including a processor to run software to:
establish a DTLS connection with a remote host device using a DTLS handshake; and
offload the first cryptographic material to the local networking device.

### Claim 11 (depends on 10)

The system according to claim 10, wherein the software running on the processor of the local host device is to generate each of the first packets with a single DTLS record.

### Claim 12 (depends on 10)

The system according to claim 10, wherein the software running on the processor of the local host device is to generate each of the first packets with a same padding length.

### Claim 13 (depends on 1)

The system according to claim 1, wherein the packet processing hardware is to:
receive an instruction from software running on the local host device to drop any DTLS packets received from the remote networking device prior to offload of the first cryptographic material from the local host device being completed; and
drop second DTLS packets received prior to completing offload of the first cryptographic material from the local host device.

### Claim 14 (depends on 13)

The system according to claim 13, further comprising the local host device including a processor to run the software to:
perform a DTLS handshake with a remote host device;
provide the instruction to the local networking device to drop any DTLS packets received from the remote networking device prior to offload of the first cryptographic material from the local host device being completed;
complete the DTLS handshake; and
offload the first cryptographic material to the local networking device after completing the DTLS handshake.

### Claim 15 (depends on 1)

The system according to claim 1, wherein:
in response to receiving the first cryptographic material offloaded from the local host device, the packet processing hardware is to generate a DTLS request to a remote host device to commence offload of second cryptographic material to the remote networking device;
the packet processing hardware is to receive a DTLS response from the remote networking device that the second cryptographic material has been offloaded to the remote networking device by the remote host device, the DTLS response being generated by the remote networking device; and
in response to receiving the DTLS response, the packet processing hardware is to commence sending DTLS data messages to the remote networking device.

### Claim 16 (depends on 1)

The system according to claim 1, further comprising the local host device including a processor to run software to:
receive a DTLS request generated by the remote networking device requesting to commence offload of the first cryptographic material to the local networking device; and
in response to receiving the DTLS request, offload the first cryptographic material to the local networking device, wherein the packet processing hardware of the local networking device is to generate a DTLS response to the remote networking device indicating that the offload of the first cryptographic material to the local networking device has been completed.

### Claim 17 (depends on 1)

The system according to claim 1, wherein the packet processing hardware is to:
in response to receiving the offload of the first cryptographic material from the local host device, generate a first DTLS finished message and send the first DTLS finished message to a remote host device; and
receive a second DTLS finished message generated by the remote networking device indicating that the offload of the first cryptographic material to the remote networking device has been completed.

### Claim 18 (depends on 1)

The system according to claim 1, further comprising the local host device including a processor to run software to:
receive a first DTLS finished message from the remote host device; and
offload the first cryptographic material to the local networking device, wherein the packet processing hardware of the local networking device is to:
generate a second DTLS finished message and send the second DTLS finished message to the remote networking device; and
commence sending DTLS data messages to the remote networking device.

### Claim 19

A host device, comprising:
a processor to run software to:
establish a DTLS connection with a remote host device using a DTLS handshake; and
offload cryptographic material of the DTLS connection to a local networking device; and
an interface to provide the cryptographic material to the local networking device.

### Claim 20 (depends on 19)

The device according to claim 19, wherein the software is to:
generate a key update DTLS control message;
provide the key update DTLS control message to the local networking device;
receive an acknowledgment DTLS control message from the local networking device;
retrieve a DTLS sequence number of the key update DTLS control message;
verify that the DTLS sequence number of the key update message corresponds with a DTLS sequence number of the acknowledgement message; and
offload new cryptographic material to the local networking device responsively to verifying that the DTLS sequence number of the key update message corresponds with the DTLS sequence number of the acknowledgement message.

### Claim 21 (depends on 19)

The device according to claim 19, wherein the software is to generate DTLS packets with a single DTLS record.

### Claim 22 (depends on 19)

The device according to claim 19, wherein the software is to generate DTLS packets with a same padding length.

### Claim 23 (depends on 19)

The device according to claim 19, wherein the software is to:
provide an instruction to the local networking device to drop any DTLS packets received from a remote networking device prior to offload of the cryptographic material to the local networking device being completed;
complete the DTLS handshake; and
offload the cryptographic material to the local networking device after completing the DTLS handshake.

### Claim 24 (depends on 19)

The device according to claim 19, wherein the software is to:
receive a DTLS request generated by a remote networking device requesting to commence offload of the cryptographic material to the local networking device; and
in response to receiving the DTLS request, offload the cryptographic material to the local networking device.

### Claim 25 (depends on 19)

The device according to claim 19, wherein the software is to:
receive a DTLS finished message from the remote host device; and
offload the cryptographic material to the local networking device.

### Claim 26

A method, comprising:
receiving packets from a local host device;
receiving cryptographic material offloaded from the local host device over a host interface;
performing cryptographic operations on the packets based on the cryptographic material;
generating datagram transport layer security (DTLS) headers including respective DTLS sequence numbers in hardware;
encapsulating the packets with the DTLS headers in hardware; and
a network interface to send the packets with the DTLS headers to a remote networking device over a packet data network.
