3 ms·
What we need is not "HTTPS Everywhere" (which I sometimes call "Security Theater Everywhere") for static content. We need content signing without encryption for
by Animats 12y ago
What we need is not "HTTPS Everywhere" (which I sometimes call "Security Theater Everywhere") for static content. We need content signing without encryption for bulky content. The W3C proposal for this is called "Subresource integrity" (http://www.w3.org/TR/SRI/ http://www.w3.org/TR/SRI/). The "integrity" attribute is applied to links, like this:
<a href="https://example.com/file.zip"
integrity="ni:///sha256skjdsfkafinqfb...ihja_gqg?ct=application/octet-stream"
download>Download!</a>
This also applies to IMG, EMBED, LINK, etc - any content.
This is a huge win for caching systems. Any cache in the path from browser to server, seeing that, can use a cached version of the content. Because cache content validity is defined by the sha256 hash, there's no cache expiration time issue. You can load JQuery once and use it all week. Caching systems can even index their cache by hash, and deliver data loaded from a different site. What a cache cannot do is change even one bit of the content. Such data tampering will be caught by the browser. (W3C is trying to figure out what to do about streaming data.)
As for "bufferbloat", that's usually mis-identifying the problem. The real problem is usually bad queue ordering at a choke-point router. FIFO queuing at a choke point will not work well. At a router where there's significantly less outgoing bandwidth than incoming bandwidth, you need some kind of fair queuing, so that big flows don't starve out little ones. Most Cisco routers support that. On the other hand, there's nothing wrong with buffering up lots of content for a single flow if you have the space. If you're loading a big image or a video stream, temporarily stashing a full TCP window of it in the router is just fine. It will be delivered and will play out eventually.
Ideally, you'd like full fair queuing, but it's somewhat computationally expensive. There are approximations to fair queuing that work reasonably well, and are being designed into DOCSIS cable routers. See (http://people.cs.clemson.edu/~jmarty/AQM/AQM-DOCSIS.pdf http://people.cs.clemson.edu/~jmarty/AQM/AQM-DOCSIS.pdf)
If you're using expensive bandwidth like a satellite channel to an aircraft, you definitely need something smarter than FIFO.
(I used to work on network congestion, a long time ago. See RFC 970, 1985. https://tools.ietf.org/html/rfc970 https://tools.ietf.org/html/rfc970)
- dtaht5 12y agoDocsis 3.1 is not using FQ, but the pie AQM. And it hasn't shipped yet. In the interim, fq_codel (which combines fq and aqm) now dominates the field of 3rd party firmware and home routers. It turns out that FQ nor AQM are computationally intense anymore, but software rate limiting, is.
- Animats 12y agoAfter looking at what GoGo is doing, it seems that all they really want to do is just block YouTube. The problem is telling the user what they're doing, so they don't bitch at the flight attendants. Technically, they should send back an ICMP Type 3 message, "Destination Unreachable" with code 10 (Communication with Destination Host Administratively Prohibited) or code 13 (Communication Administratively Prohibited by Filtering). But that info won't make it up to the browser in either Windows or Linux. About the best you can get through to the client program is a "Host Unreachable" error code. So, in the style of most web intermediates, they're trying to do this at the HTTP level. Which doesn't work well for HTTPS requests. One of the annoying features of HTTPS is that there's no standard way for a site to say "I don't speak HTTPS". I run a crawler, and responses to HTTPS requests include timing out, sending non-HTTPS data confusing the SSL/TLS layer, and refusing to open a TCP connection. About the most legit thing they might do is open an HTTPS connection using a cert signed for a domain name such as "YOUTUBE-IS-BLOCKED-BECAUSE-YOU-ARE-ON-AN-AIRPLANE.NET". The HTTPS open will fail due to domain mismatch, and the browser popup will have some useful info. If the user actually lets the connection open, they can be given a page on why satellite links don't have enough bandwidth to let everyone on a plane watch cat videos.