Projects / active

Keryx

A WebRTC stack written from scratch in C#, so a .NET process can stream video to a browser with no native code on the server.

Status
active
Languages
C#
Dependency graph, top to bottom. Keryx — PeerConnection at the top fans out to six project boxes: Keryx.Sdp, Keryx.Rtp, Keryx.Srtp, Keryx.Sctp, Keryx.Dtls and Keryx.Ice. Keryx.Ice depends on Keryx.Stun. All seven lower boxes rest on Keryx.Core at the bottom.
How Keryx's packages depend on each other.

Keryx came out of Proxeno too, and most of it was written in five days in late August: ICE, DTLS-SRTP, RTP and data channels, from the RFCs. It only does the sending side, on purpose.

The part I trust is the testing. It runs against a real headless Chrome, which implements the RFCs as written rather than as I read them. The fault injector that drops packets on purpose has an off switch, which is how I know the faults land: with retransmission off, the same seeds leave holes.

Over a link dropping 5% of packets, in the same fifteen seconds of video, Chrome decoded 433 frames with retransmission on, and 51 frames with five freezes with it off.

It's on NuGet as Proxeno.Keryx, pre-release. Nobody independent has reviewed the DTLS and SRTP code, so keep anything sensitive off it for now.

  • A five-minute soak at 5% loss: 31,815 packets, no holes, and the heap finished slightly below where it started.
  • STUN is implemented against the test vectors published in RFC 5769, not my reading of the spec.