News for hackers. Stuff that matters.
Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by detaro on Sunday June 27, 2021 @09:19AM (#27651346)
"trivial to implement" if you don't need encryption. Which you kinda do most of the time. Not everything runs in the design constraints of an 8bit micro.

It would also be nice if you'd at least pretend to engage with the arguments in the paper, instead of making up imagined reasons.

Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by wyager on Sunday June 27, 2021 @10:52AM (#27652029)
Isn’t the recommended approach to use application-level encryption in MQTT? That seems mostly fine to me for a spec with simplicity as a goal.
Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by ori_b on Sunday June 27, 2021 @10:00AM (#27651625)
It's also trivial to tunnel an unencrypted protocol over TLS.

https://man.openbsd.org/tls_connect.3

Or even

https://www.stunnel.org/

Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by SV_BubbleTime on Sunday June 27, 2021 @10:50AM (#27652015)
I ran into a lot of difficulty when dealing with devices that needed a bridge to access the internet. So device doesn’t have a tcp stack and requires a socket-like connection to an intentional-man-in-the-middle.

Implementing payload end to end encrypted MQTT was easy enough.

Any thoughts on TLS for that scenario? At best I could have a simulated socket, but always to an untrusted middle man.

Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by SV_BubbleTime on Monday June 28, 2021 @01:29AM (#27658413)
Turns out ONE answer is that DTLS is TLS for datagram connections (ie: UDP) and it’s pretty easy to forward along UDP packets at a proxy (as there is no need at all to track what sent or needs a retry).

It should be noted (if anyone reads this) that DTLS has protections and reliability on packets to establish the connection, but once it’s established it just goes back to being UDP although now encrypted, so you need to be ok with losses.

If you need messaging on top of that, CoAP adds in the counters and retries and reliability to UDP. Making UDP a little more like TCP but features to get this are one level higher in the CoAP packet. It’s a little weird, but gets you relatively reliable request/response HTTP-like (CoAP CONFIRMATION) and also event driven async MQTT-like (NON-CONFIRMATION). So that’s pretty cool.

Although near for me as GCP and Azure support CoAP but for some reason Amazon seems to refuse to and I’m locked in to Amazon for other reasons.

Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by kelnos on Sunday June 27, 2021 @03:52PM (#27654693)
You're not going to be running openssl or stunnel on an 8-bit microcontroller, though.

mbedtls/polarssl is usually the library of choice for microcontrollers (or, really, things that are not POSIX), but not sure even that will run on an 8-bit micro.

Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by ori_b on Sunday June 27, 2021 @07:20PM (#27656402)
> You're not going to be running openssl or stunnel on an 8-bit microcontroller, though.

True, you may need BearSSL, as with this port: https://github.com/OPEnSLab-OSU/SSLClient

It's a bit fat for many 8 bit microcontrollers -- needs 110kB flash and 7kB RAM -- but you can get low end cortex cores that it'll work just fine with.

Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by scoopertrooper on Sunday June 27, 2021 @10:46AM (#27651981)
But that’s negate many of the benefits of quic!
Re:A Pure HTTP/3 Alternative to MQTT-over-QUIC in Resource-C... by emilfihlman on Sunday June 27, 2021 @11:24AM (#27652294)
>"trivial to implement" if you don't need encryption. Which you kinda do most of the time. Not everything runs in the design constraints of an 8bit micro.

What? Encryption is a completely different step from framing and message semantics.

>It would also be nice if you'd at least pretend to engage with the arguments in the paper, instead of making up imagined reasons.

This is just absolutely silly and stupid. HTTP3 is not tied to the encryption used. I suggest you review your understanding before contributing more.