1
0
Delicately-TUICed 0-RTT proxy protocol
Go to file
2023-07-15 01:31:44 +09:00
.github/workflows fix building script on windows 2023-06-08 17:55:56 +09:00
tuic fix cargo doc test failure 2023-06-20 17:26:27 +09:00
tuic-client Fix issue 189 2023-07-15 01:31:44 +09:00
tuic-quinn fix typos in source code 2023-07-09 15:25:38 +09:00
tuic-server improved README.md 2023-06-20 17:26:27 +09:00
.gitignore add Cargo.lock 2023-07-09 15:25:38 +09:00
Cargo.lock update lock 2023-07-09 15:25:38 +09:00
Cargo.toml action workflows for building and releasing 2023-05-23 17:14:53 +09:00
LICENSE Initial Commit 2021-12-22 18:56:11 +09:00
README.md stop branching out when new major version is out 2023-06-08 16:36:59 +09:00
SPEC.md update README.md 2023-06-08 16:23:06 +09:00

TUIC

Delicately-TUICed 0-RTT proxy protocol

Warning: TUIC's dev branch is under heavy development. For end-user, please check out the latest released tag

Introduction

TUIC is a proxy protocol focusing on minimize the additional handshake latency caused by relaying as much as possible, as well as keeping the protocol itself being simple and easy to implement

TUIC is originally designed to be used on top of the QUIC protocol, but you can use it with any other protocol, e.g. TCP, in theory

When paired with QUIC, TUIC can achieve:

  • 0-RTT TCP proxying
  • 0-RTT UDP proxying with NAT type Full Cone
  • 0-RTT authentication
  • Two UDP proxying modes:
    • native: Having characteristics of native UDP mechanism
    • quic: Transferring UDP packets losslessly using QUIC streams
  • Fully multiplexed
  • All the advantages of QUIC, including but not limited to:
    • Bidirectional user-space congestion control
    • Optional 0-RTT connection handshake
    • Connection migration

Fully-detailed TUIC protocol specification can be found in SPEC.md

Overview

There are 4 crates provided in this repository:

  • tuic - Library. The protocol itself, protocol & model abstraction, synchronous / asynchronous marshalling
  • tuic-quinn - Library. A thin layer on top of quinn to provide functions of TUIC
  • tuic-server - Binary. Minimalistic TUIC server implementation as a reference
  • tuic-client - Binary. Minimalistic TUIC client implementation as a reference

License

Code in this repository is licensed under GNU General Public License v3.0

However, the concept of the TUIC protocol is license-free. You can implement, modify, and redistribute the protocol without any restrictions, even for commercial use