Cross-platform, C implementation of the IETF QUIC protocol, exposed to C, C++, C# and Rust.
Перейти к файлу
Nick Banks d77d55f6b5
Documentation Feedback Changes (#46)
2020-01-24 14:16:56 -08:00
.azure Cross Platform PowerShell Helper Scripts (#52) 2020-01-22 12:10:33 -08:00
bin Cross Platform PowerShell Helper Scripts (#52) 2020-01-22 12:10:33 -08:00
core Make Sure to Uninitialize Connection (#62) 2020-01-24 13:46:37 -08:00
docs Documentation Feedback Changes (#46) 2020-01-24 14:16:56 -08:00
inc Protect Undocumented APIs by Build Flag (#48) 2020-01-22 11:17:47 -08:00
manifest Sync Latest Internal Changes (#33) 2020-01-09 15:52:41 -08:00
platform Cross Platform PowerShell Helper Scripts (#52) 2020-01-22 12:10:33 -08:00
submodules Update submodules (#34) 2020-01-11 18:35:25 -08:00
test Add test cases for QuicDrill Initial Packet fuzzing (#44) 2020-01-16 14:08:52 -08:00
tools Add etwlib to GitHub (#61) 2020-01-24 12:47:01 -08:00
.gitignore Initial Commit of MsQuic Code (#1) 2019-10-30 14:51:06 -07:00
.gitmodules Update submodules (#34) 2020-01-11 18:35:25 -08:00
CMakeLists.txt Add etwlib to GitHub (#61) 2020-01-24 12:47:01 -08:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2019-10-25 21:10:27 -07:00
LICENSE Initial Commit of MsQuic Code (#1) 2019-10-30 14:51:06 -07:00
README.md Documentation Feedback Changes (#46) 2020-01-24 14:16:56 -08:00
SECURITY.md Initial SECURITY.md commit 2019-10-25 21:10:30 -07:00
azure-pipelines.yml Tracing Refactoring (#30) 2019-12-21 10:21:23 -08:00
build.ps1 Make Sure to Uninitialize Connection (#62) 2020-01-24 13:46:37 -08:00
log.ps1 Cross Platform PowerShell Helper Scripts (#52) 2020-01-22 12:10:33 -08:00
test.ps1 Make Sure to Uninitialize Connection (#62) 2020-01-24 13:46:37 -08:00

README.md

MsQuic

MsQuic is a Microsoft implementation of the IETF QUIC protocol. It is cross platform, written in C and designed to be a general purpose QUIC library.

Important The MsQuic library, as well as the protocol itself, is still a work in progress. Version 1 is not yet finalized and may continue to experience breaking changes until it is finalized.

Build Status

Protocol Features

QUIC has many benefits when compared to existing TLS over TCP scenarios:

  • Handshake authenticated with TLS 1.3
  • All packets are encrypted
  • Parallel streams of application data.
  • Improved (compared to TCP) congestion control and loss recovery.
  • Exchange application data in the first round trip (0-RTT).
  • Survives a change in the clients IP address or port.
  • Easily extendable for new features (such as unreliable delivery).

Important Several QUIC protocol features are not yet fully implemented:

  • 0-RTT with Schannel and OpenSSL
  • NAT Rebinding
  • Client Migration
  • Server Preferred Address
  • Path MTU Discovery

Library Features

  • Cross-platform support.
  • Optimized for maximal throughput and minimal latency.
  • Asynchronous IO.
  • Receive side scaling (RSS).
  • UDP send and receive coalescing support.

Building

You can find detailed instructions for building the library here.

Documentation

You can find more detailed information on how to use MsQuic in the the API documentation.

Source Code

The source is divided into several directories:

  • bin - Packages up all static libraries into the platform specific binaries.
  • core - Platform independent code that implements the QUIC protocol.
  • docs - All MsQuic documentation.
  • inc - Header files used by all the other directories.
  • manifest - Windows ETW manifest and related files.
  • platform - Platform specific code for OS types, sockets and TLS.
  • submodules - All the modules that MsQuic depends on.
  • test - Test code for the MsQuic API / protocol.
  • tools - Tools for exercising MsQuic.
    • attack - Adversarial tool for exploiting protocol weaknesses.
    • etw - Windows specific tool for processing MsQuic ETW logs.
    • interop - Runs through the IETF interop scenarios.
    • ping - Simple tool for gathering throughput measurements. Read more here.
    • sample - Minimal example of how to use the MsQuic API.
    • spin - Randomly executes the MsQuic API to discover bugs.

Contributing

For the time being, external code contributions will not be accepted. We are still working on setting up internal repository sycnhronization, continuous integration, and generally ironing out our processes.

Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.