# US 10,958,627 B2 · Offloading communication security operations to a network interface controller

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

- Number: US 10,958,627 B2
- Document ID: US10958627B2
- Status: Granted
- Kind: B2
- Application number: 16/858,874
- Filed: 2020-04-27
- Published: 2020-08-13
- Granted: 2021-03-23
- Earliest claimed: 2017-12-14
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Adi Menachem; Liran Liss; Boris Pismenny
- Web page: https://patentgrep.com/patent/US10958627B2

## CPC

- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/602: {Providing cryptographic facilities or services}
- H04L 9/0897: {involving additional devices, e.g. trusted platform module [TPM], smartcard or USB}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 9/3226: {using a predetermined code, e.g. password, passphrase or PIN (network architectures or network communication protocols for supporting authentication of entities using passwords in a packet data network H04L63/083)}
- H04L 63/0485: {Networking architectures for enhanced packet encryption processing, e.g. offloading of IPsec packet processing or efficient security association look-up}
- H04L 63/164: {at the network layer}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- H04L 2209/12: Details relating to cryptographic hardware or logic circuitry
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Computing apparatus includes a host processor, which runs a virtual machine monitor (VMM), which supports a plurality of virtual machines and includes a cryptographic security software module. A network interface controller (NIC) links the host processor to a network so as to transmit and receive data packets from and to the virtual machines and includes a cryptographic security hardware logic module, which when invoked by the VMM, applies the cryptographic security protocol to the data packets while maintaining a state context of the protocol with respect to each of the virtual machines. Upon encountering an exception in applying the cryptographic security protocol, the NIC transfers the data packet, together with the state context of the cryptographic security protocol with respect to the given virtual machine, to the cryptographic security software module for processing.

## Claims

### Claim 1

Computing apparatus, comprising:
a host processor, which is configured to run a virtual machine monitor (VMM), which supports a plurality of virtual machines running on the host processor, and which comprises a cryptographic security software module configured to apply a cryptographic security protocol to data packets transmitted and received by one or more of the virtual machines; and
a network interface controller (NIC), which is configured to link the host processor to a network so as to transmit and receive the data packets from and to the virtual machines over the network, and which comprises a cryptographic security hardware logic module, which is configured, when invoked by the VMM, to apply the cryptographic security protocol to the data packets transmitted and received by the one or more of the virtual machines while maintaining a state context of the cryptographic security protocol with respect to each of the one or more of the virtual machines,
wherein the NIC is configured, upon encountering an exception in applying the cryptographic security protocol to a particular data packet directed to a given virtual machine, to transfer the particular data packet, together with the state context of the cryptographic security protocol with respect to the given virtual machine, to the cryptographic security software module of the VMM, which processes the particular data packet using the state context and passes the particular data packet, after processing, to the given virtual machine.

### Claim 2 (depends on 1)

The apparatus according to claim 1, wherein the VMM is configured to apply the cryptographic security protocol and to invoke the cryptographic security hardware logic module without involvement by the virtual machines in invocation or implementation of the cryptographic security protocol.

### Claim 3 (depends on 1)

The apparatus according to claim 1, wherein the VMM is configured, when the NIC has encountered the exception, to acquire the state context of the cryptographic security protocol with respect to the given virtual machine by performing a predefined handshake with the NIC.

### Claim 4 (depends on 3)

The apparatus according to claim 3, wherein the predefined handshake comprises querying and receiving packet sequence number information from the NIC and updating replay protection information used in the cryptographic security protocol.

### Claim 5 (depends on 1)

The apparatus according to claim 1, wherein the exception comprises a fragmentation of the particular data packet following application of the cryptographic security protocol by a sender of the particular data packet, and wherein the VMM is configured to defragment the particular data packet.

### Claim 6 (depends on 1)

The apparatus according to claim 1, wherein the VMM is configured, after processing the particular data packet, to pass the processed data packet to the given virtual machine by looping the processed data packet through the NIC to the given virtual machine.

### Claim 7 (depends on 1)

The apparatus according to claim 1, wherein the NIC is configured to apply an encapsulation, using the state context of the cryptographic security protocol, to the data packets transmitted from the given virtual machine to a specified destination, while maintaining a count of the data transmitted using the state context, and when the count reaches a predefined limit, to stop transmitting the data packets to the specified destination and transfer the state context to the cryptographic security software module of the VMM for update of the state context.

### Claim 8 (depends on 1)

The apparatus according to claim 1, wherein the NIC is configured to apply a decapsulation, using the state context of the cryptographic security protocol, to encapsulated data packets received from the network, and upon receiving instructions from the VMM to terminate the decapsulation, to loop the received data packets back to the network.

### Claim 9 (depends on 1)

The apparatus according to claim 1, wherein the cryptographic security protocol comprises an IPsec protocol.
