Amnesic-Systems / nitriding

Tool kit for building secure, scalable, and networked services on top of AWS Nitro Enclaves.
Mozilla Public License 2.0
2 stars 2 forks source link

Improve networking latency and throughput #14

Closed NullHypothesis closed 10 months ago

NullHypothesis commented 10 months ago

As of https://github.com/Amnesic-Systems/nitriding/commit/ed7746bdbd709e1d11438bb89c87fc144ed77ded, nitriding uses a single TCP connection between EC2 and enclave to forward network traffic to and from the enclave. TCP-over-TCP is known to be problematic. Instead, we should tunnel over UDP but support in our vsock package is blocked on SOCK_DGRAM support in the kernel (see https://github.com/mdlayher/vsock/issues/2).