# US 2021/0243281 A1 · System and method for facilitating data communication of a trusted execution environment

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

- Number: US 2021/0243281 A1
- Document ID: US20210243281A1
- Status: Published application
- Kind: A1
- Application number: 16/782,151
- Filed: 2020-02-05
- Published: 2021-08-05
- Earliest claimed: 2020-02-05
- Assignees: City University of Hong Kong
- Applicants: City University of Hong Kong
- Inventors: Huayi Duan; Cong Wang
- Web page: https://patentgrep.com/patent/US20210243281A1

## CPC

- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L 1/008: {where the control data relates to payload of a different packet}
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- H04L 47/431: using padding or de-padding
- H04L 69/22: Parsing or analysis of headers
- H04W 88/16: Gateway arrangements
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A computer-implemented method, and a related system, for facilitating data communication of a trusted execution environment. The method includes: processing a plurality of data packets to form a data stream including the plurality of data packets. Each data packet includes respective metadata. The data stream is a single continuous data stream in application-layer such that a boundary between two adjacent packets are not easily identifiable. The method also includes transmitting the data stream to or from a network interface module for the trusted execution environment.

## Claims

### Claim 1

A computer-implemented method for facilitating data communication of a trusted execution environment, the method comprising:
processing a plurality of data packets, each including respective metadata, to form a data stream including the plurality of data packets, the data stream being a single continuous data stream in application-layer; and
transmitting the data stream to or from a network interface module for the trusted execution environment.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the data stream is encrypted.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the metadata of each of the data packet includes respective packet size, packet count, and timestamp.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein each of the data packets further includes application payload and one or more packet headers.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein processing the plurality of data packets comprises encoding the plurality of data packets.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein processing the plurality of data packets comprises packing the plurality of data packets back-to-back to form the data stream.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein transmitting the data stream comprises:
transmitting the data stream from a gateway to the network interface module via a communication channel arranged between the gateway and the network interface module; and/or
transmitting the data stream from the network interface module to a gateway via a communication channel arranged between the gateway and the network interface module.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, further comprising:
transmitting one or more heartbeat packets from the gateway to the network interface module via the communication channel.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the trusted execution environment comprises a middlebox module implemented in the trusted execution environment, and the network interface module is arranged to be in data communication with the middlebox module.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the network interface module is initialized or arranged at least partly in the trusted execution environment.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein the trusted execution environment includes a Software Guard Extension (SGX) enclave.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein the trusted execution environment is initialized or provided using one or more processors that support SGX instructions.

### Claim 13 (depends on 9)

The computer-implemented method of claim 9, wherein the network interface module includes a core driver arranged in the trusted execution environment, the core driver is arranged to receive and process the data stream.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein the core driver is further arranged to maintain a clock module in the trusted execution environment.

### Claim 15 (depends on 14)

The computer-implemented method of claim 14, further comprising:
including a timestamp in each of the data packets prior to transmission of the data stream to the network interface module.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, further comprising:
comparing, using the core driver, the timestamp in the received data packet with a clock in the clock module; and
updating the clock module based on the comparison.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the network interface module further includes:
a poll driver arranged in the trusted execution environment, and operably connected with the core driver and with the middlebox module, the poll driver is arranged to enable the middlebox module to access data packets in the data stream received at the network interface module.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein the network interface module further includes:
a receiver repository arranged in the trusted execution environment and arranged between the core driver and the poll driver, the receiver repository is arranged to hold packet data received at the network interface module; and
a transmission repository arranged in the trusted execution environment and arranged between the core driver and the poll driver, the transmission repository is arranged to hold packet data to be transmitted out of the network interface module.

### Claim 19 (depends on 17)

The computer-implemented method of claim 17, wherein the poll driver is arranged to operate in a blocking mode, in which a packet is guaranteed to be read or written, and a non-blocking mode.

### Claim 20 (depends on 18)

The computer-implemented method of claim 18, further comprising:
synchronizing the receiver repository and the transmission repository.

### Claim 21 (depends on 18)

The computer-implemented method of claim 18, wherein the network interface module further includes:
a buffer module arranged outside the trusted execution environment and arranged between the core driver and the gateway, the buffer module is arranged to hold a plurality of records.

### Claim 22

A system for facilitating data communication of a trusted execution environment, the system comprising:
one or more processors arranged to:
process a plurality of data packets, each including respective metadata, to form a data stream including the plurality of data packets, wherein the data stream is a single continuous data stream in application-layer; and
facilitate transmission of the data stream to or from a network interface module for the trusted execution environment.

### Claim 23 (depends on 22)

The system of claim 22, wherein the metadata of each of the data packet includes respective packet size, packet count, and timestamp.

### Claim 24 (depends on 22)

The system of claim 22, wherein the one or more processors are arranged to encode the plurality of data packets.

### Claim 25 (depends on 22)

The system of claim 22, wherein the one or more processors are arranged to pack the plurality of data packets back-to-back to form the data stream.

### Claim 26 (depends on 22)

The system of claim 22, wherein the one or more processors are arranged to provide a gateway arranged to communicate with the network interface module via a communication channel.

### Claim 27 (depends on 22)

The system of claim 22, wherein the one or more processors are arranged to provide the network interface module, the network interface module is arranged to communicate with a gateway via a communication channel.

### Claim 28 (depends on 26)

The system of claim 26, wherein the one or more processors are arranged to:
facilitate transmission of one or more heartbeat packets from the gateway to the network interface module via the communication channel.

### Claim 29 (depends on 22)

The system of claim 22, wherein the trusted execution environment comprises a middlebox module implemented in the trusted execution environment, and the network interface module is arranged to be in data communication with the middlebox module.

### Claim 30 (depends on 29)

The system of claim 29, wherein the network interface module is initialized or arranged at least partly in the trusted execution environment.

### Claim 31 (depends on 30)

The system of claim 30, wherein the trusted execution environment includes a Software Guard Extension (SGX) enclave.

### Claim 32 (depends on 30)

The system of claim 30, wherein the trusted execution environment is initialized or provided using one or more processors.

### Claim 33 (depends on 29)

The system of claim 29, wherein the network interface module includes a core driver arranged in the trusted execution environment, the core driver is arranged to receive and process the data stream.

### Claim 34 (depends on 33)

The system of claim 33, wherein the core driver is further arranged to maintain a clock module in the trusted execution environment.

### Claim 35 (depends on 34)

The system of claim 34, wherein the one or more processors are arranged to include a timestamp in each of the data packets prior to transmission of the data stream to the network interface module.

### Claim 36 (depends on 35)

The system of claim 35, wherein the core driver is arranged to compare the timestamp in the received data packet with a clock in the clock module and update the clock module based on the comparison.

### Claim 37 (depends on 36)

The system of claim 36, wherein the network interface module further includes:
a poll driver arranged in the trusted execution environment, and operably connected with the core driver and with the middlebox module, the poll driver is arranged to enable the middlebox module to access data packets in the data stream received at the network interface module.

### Claim 38 (depends on 36)

The system of claim 36, wherein the poll driver is arranged to operate in a blocking mode, in which a packet is guaranteed to be read or written, and a non-blocking mode.

### Claim 39

A network interface module for facilitating data communication of a trusted execution environment, the network interface module is arranged to communicate with a gateway via a communication channel, the network interface module comprising:
a core driver arranged in the trusted execution environment, the core driver is arranged to receive and process a data stream received from the gateway via the communication channel.

### Claim 40 (depends on 39)

The network interface module of claim 39, wherein the core driver is further arranged to maintain a clock module in the trusted execution environment.

### Claim 41 (depends on 40)

The network interface module of claim 40, wherein the core driver is arranged to compare a timestamp included in each of the received data packet with a clock in the clock module and to update the clock module based on the comparison.

### Claim 42 (depends on 39)

The network interface module of claim 39, wherein the trusted execution environment comprises a middlebox module implemented in the trusted execution environment, and the network interface module is arranged to be in data communication with the middlebox module.

### Claim 43 (depends on 42)

The network interface module of claim 42, wherein the network interface module is initialized or arranged at least partly in the trusted execution environment.

### Claim 44 (depends on 43)

The network interface module of claim 43, wherein the trusted execution environment includes a Software Guard Extension (SGX) enclave.

### Claim 45 (depends on 43)

The network interface module of claim 43, wherein the trusted execution environment is initialized or provided using one or more processors.

### Claim 46 (depends on 42)

The network interface module of claim 42, wherein the network interface module further includes:
a poll driver arranged in the trusted execution environment, and operably connected with the core driver and with the middlebox module, the poll driver is arranged to enable the middlebox module to access data packets in the data stream received at the network interface module.

### Claim 47 (depends on 46)

The network interface module of claim 46, wherein the network interface module further includes:
a receiver repository arranged in the trusted execution environment and arranged between the core driver and the poll driver, the receiver repository is arranged to hold packet data received at the network interface module; and
a transmission repository arranged in the trusted execution environment and arranged between the core driver and the poll driver, the transmission repository is arranged to hold packet data to be transmitted out of the network interface module.

### Claim 48 (depends on 46)

The network interface module of claim 46, wherein the poll driver is arranged to operate in a blocking mode, in which a packet is guaranteed to be read or written, and a non-blocking mode.

### Claim 49 (depends on 47)

The network interface module of claim 47, wherein the core driver and/or the poll driver are arranged to synchronize the receiver repository and the transmission repository.

### Claim 50 (depends on 47)

The network interface module of claim 47, wherein the network interface module further includes:
a buffer module arranged outside the trusted execution environment and arranged between the core driver and the gateway, the buffer module is arranged to hold a plurality of records.
