Deuterium


Update – April 3, 2015

Deuterium now supports mbed TLS as well as OpenSSL!


Update

I’ve made a test server implementation using the Deuterium HTTP/2 library available. There are two versions available:

The main index page explains some of the settings and the minimal resources available. Some resources are available as multiple media types. The on/off switch resource also supports the PUT method.

I invite everyone to test it out and please send any feedback you have.

And keep in mind that this library is geared toward embedded implementations, so it may be a bit different than what you would normally expect to find on the Web.

NOTE: To use the TLS version, you’ll need to accept the certificate it uses. If it makes you feel better, here’s the SHA-256 fingerprint of the certificate:
45:D0:20:5C:76:98:9E:EC:
8C:21:96:48:0C:81:F5:2B:
5D:7C:55:2A:25:90:F1:BD:
01:02:F3:B0:39:EA:A3:B0


Deuterium is a lightweight implementation of HTTP/2 ideally suited for the Internet of Things. Deuterium is a project I created in my free time based on my experiences in the IoT space and in the httpbis working group of the IETF.

If you would like more information on why HTTP/2 makes sense for the IoT, check out my previous blog post.

If you are interested in licensing Deuterium, finding out more information, or even getting your hands on a sample, please contact me.

Here are some of the key features of Deuterium:

  • Designed with a lightweight, embedded, RESTful architecture in mind (example implementation includes “light switch” supporting GET and PUT with XML and JSON payloads)
  • Written as a single-threaded C library, utilizing BSD sockets
  • Implements both a server API and a client API
  • Supports TLS via mbed TLS or OpenSSL
  • Supports the direct and ALPN negotiation mechanisms
  • Supports IPv4 and/or IPv6
  • Highly customizable, including:
    • Number of connections and number of streams per connection
    • Time vs. RAM efficiency tradeoffs
    • Buffer sizes, including support for “special” buffers (e.g., firmware downloads)

Also, if you’re curious about the name, deuterium (²H) is the second isotope of the most lightweight atom, hydrogen. It is also a very powerful isotope used in fusion reactors. So, both extremely lightweight and extremely powerful! More information can be found in the Wikipedia article.

4 thoughts on “Deuterium

  1. Pingback: HTTP/2 and the Internet of Things | Robby Simpson

  2. Pingback: First IoT Device with HTTP/2? | Robby Simpson

  3. Pingback: Implementing HTTP/2 with mbed TLS | Robby Simpson

  4. Pingback: RESTful HTTP Client in a Browser using JavaScript | Robby Simpson

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>