All Projects → quinn-rs → Quinn

quinn-rs / Quinn

Licence: other
Async-friendly QUIC implementation in Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Quinn

Quiche
🥧 Savoury implementation of the QUIC transport protocol and HTTP/3
Stars: ✭ 5,481 (+194.84%)
Mutual labels:  hacktoberfest, protocol, quic
Node Libcurl
libcurl bindings for Node.js
Stars: ✭ 447 (-75.95%)
Mutual labels:  hacktoberfest, quic
Deimosc2
DeimosC2 is a Golang command and control framework for post-exploitation.
Stars: ✭ 423 (-77.25%)
Mutual labels:  hacktoberfest, quic
Ngtcp2
ngtcp2 project is an effort to implement IETF QUIC protocol
Stars: ✭ 589 (-68.32%)
Mutual labels:  protocol, quic
Msquic
Cross-platform, C implementation of the IETF QUIC protocol.
Stars: ✭ 2,501 (+34.53%)
Mutual labels:  protocol, quic
xquic
XQUIC Library released by Alibaba is a cross-platform implementation of QUIC and HTTP/3 protocol.
Stars: ✭ 943 (-49.27%)
Mutual labels:  protocol, quic
Quic Go
A QUIC implementation in pure go
Stars: ✭ 6,085 (+227.33%)
Mutual labels:  protocol, quic
Quic.net
A .NET C# Implementation of QUIC protocol - Google's experimental transport layer.
Stars: ✭ 173 (-90.69%)
Mutual labels:  protocol, quic
Senseme
Python Library for Haiku SenseMe app controlled fans/lights
Stars: ✭ 19 (-98.98%)
Mutual labels:  hacktoberfest, protocol
Whatpulse
WhatPulse reverse engineered
Stars: ✭ 30 (-98.39%)
Mutual labels:  hacktoberfest, protocol
Pquic
The PQUIC implementation, a framework that enables QUIC clients and servers to dynamically exchange protocol plugins that extend the protocol on a per-connection basis
Stars: ✭ 63 (-96.61%)
Mutual labels:  protocol, quic
Kcp
⚡ KCP - A Fast and Reliable ARQ Protocol
Stars: ✭ 10,473 (+463.37%)
Mutual labels:  protocol, quic
Lsquic
LiteSpeed QUIC and HTTP/3 Library
Stars: ✭ 727 (-60.89%)
Mutual labels:  protocol, quic
Base Drafts
Internet-Drafts that make up the base QUIC specification
Stars: ✭ 1,270 (-31.68%)
Mutual labels:  protocol, quic
Mud
Multipath UDP library
Stars: ✭ 100 (-94.62%)
Mutual labels:  hacktoberfest, protocol
Quicssh
SSH over QUIC
Stars: ✭ 116 (-93.76%)
Mutual labels:  quic
Dbatools
🚀 SQL Server automation and instance migrations have never been safer, faster or freer
Stars: ✭ 1,742 (-6.29%)
Mutual labels:  hacktoberfest
Docat
Host your docs. Simple. Versioned. Fancy.
Stars: ✭ 115 (-93.81%)
Mutual labels:  hacktoberfest
Maria Quiteria
Backend para coleta e disponibilização dos dados 📜
Stars: ✭ 115 (-93.81%)
Mutual labels:  hacktoberfest
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+481.17%)
Mutual labels:  hacktoberfest

Documentation Crates.io Build status codecov Chat Chat License: MIT License: Apache 2.0

Quinn is a pure-rust, async-compatible implementation of the IETF QUIC transport protocol.

Features

  • Simultaneous client/server operation
  • Ordered and unordered stream reads for improved performance
  • Works on stable Rust, tested on Linux, macOS and Windows
  • Pluggable cryptography, with a standard implementation backed by rustls and ring
  • Application-layer datagrams for small, unreliable messages
  • Future-based async API
  • Minimum supported Rust version of 1.51.0

Overview

  • quinn: High-level async API based on tokio, see for usage. This will be used by most developers. (Basic benchmarks are included.)
  • quinn-proto: Deterministic state machine of the protocol which performs no I/O internally and is suitable for use with custom event loops (and potentially a C or C++ API).
  • quinn-udp: UDP sockets with ECN information tuned for the protocol.
  • bench: Benchmarks without any framework.
  • fuzz: Fuzz tests.

Getting Started

Examples

$ cargo run --example server ./
$ cargo run --example client https://localhost:4433/Cargo.toml

This launches an HTTP 0.9 server on the loopback address serving the current working directory, with the client fetching ./Cargo.toml. By default, the server generates a self-signed certificate and stores it to disk, where the client will automatically find and trust it.

Links

Usage Notes

Click to show the notes

Buffers

A Quinn endpoint corresponds to a single UDP socket, no matter how many connections are in use. Handling high aggregate data rates on a single endpoint can require a larger UDP buffer than is configured by default in most environments. If you observe erratic latency and/or throughput over a stable network link, consider increasing the buffer sizes used. For example, you could adjust the SO_SNDBUF and SO_RCVBUF options of the UDP socket to be used before passing it in to Quinn. Note that some platforms (e.g. Linux) require elevated privileges or modified system configuration for a process to increase its UDP buffer sizes.

Certificates

By default, Quinn clients validate the cryptographic identity of servers they connect to. This prevents an active, on-path attacker from intercepting messages, but requires trusting some certificate authority. For many purposes, this can be accomplished by using certificates from Let's Encrypt for servers, and relying on the default configuration for clients.

For some cases, including peer-to-peer, trust-on-first-use, deliberately insecure applications, or any case where servers are not identified by domain name, this isn't practical. Arbitrary certificate validation logic can be implemented by enabling the dangerous_configuration feature of rustls and constructing a Quinn ClientConfig with an overridden certificate verifier by hand.

When operating your own certificate authority doesn't make sense, rcgen can be used to generate self-signed certificates on demand. To support trust-on-first-use, servers that automatically generate self-signed certificates should write their generated certificate to persistent storage and reuse it on future runs.

Contribution

All feedback welcome. Feel free to file bugs, requests for documentation and any other feedback to the issue tracker.

The quinn-proto test suite uses simulated IO for reproducibility and to avoid long sleeps in certain timing-sensitive tests. If the SSLKEYLOGFILE environment variable is set, the tests will emit UDP packets for inspection using external protocol analyzers like Wireshark, and NSS-compatible key logs for the client side of each connection will be written to the path specified in the variable.

The minimum supported Rust version for published releases of our crates will always be at least 6 months old at the time of release.

Authors

  • Dirkjan Ochtman - Project owner & founder
  • Benjamin Saunders - Project owner & founder
  • Jean-Christophe Begue - Project collaborator, author of the HTTP/3 Implementation
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].