8 ms·
The lost Van Jacobson paper that could save the Internet
- tptacek 15y agoThe linked Gettys article is fantastic too: https://gettys.wordpress.com/2010/12/17/red-in-a-different-light/ https://gettys.wordpress.com/2010/12/17/red-in-a-different-l... VJ is at PARC now. The old VJ LBL papers are still collected at ICSI/ICIR (Vern Paxson is still there!): http://www.icsi.berkeley.edu/cgi-bin/pubs/browse.pl?groupid=000002 http://www.icsi.berkeley.edu/cgi-bin/pubs/browse.pl?groupid=... There used to be some attention paid to deliberate evasion of congestion avoidance (Stefan Savage did a paper on it), the idea being that a malicious user could monopolize a link by ignoring congestion signals (interview question: when you upload a file via Wi-Fi over your DSL connection, how does your computer know how fast to send packets?). Maybe some of the reason that turned out not to matter was, we were in a temporary period of not needing congestion avoidance. Finally, as I understand it, at least some of the fundamental ideas behind VJ's "hydrodynamic" congestion avoidance scheme are derived from Raj Jain's CUTE, which was done for DEC in '85.
- NateLawson 15y agoYes, that blog post by Jim is what led me to investigate and write about this. The Stefan Savage paper you refer to wasn't so much about ignoring congestion signals as deliberately faking reception of data that hadn't actually been received. With things like duplicate acks or optimistic acking, you could cause the sender to open their window size to whatever you want. http://cseweb.ucsd.edu/~savage/papers/CCR99.pdf http://cseweb.ucsd.edu/~savage/papers/CCR99.pdf Back in 1999, I was working on integrating these ideas into a router product. It would be software in your home gateway that would keep a cache of the last observed window size for each pair of hosts for a few seconds. If you started another TCP connection to the same host within that short interval, the router would spoof both sides to increase the window size to the previous value / 2 and then let additive increase take over from there. This bypasses slow start but the current available bandwidth is likely to be very close to the estimate within that short range and hosts didn't cache window size, even when making multiple connections in a short period (e.g., HTTP 1.0) I archived this paper and a bunch more here. Prepare to lose an afternoon if the history of TCP/IP interests you. http://root.org/ip-development/ http://root.org/ip-development/
- eternalban 15y agoAm interested in your opinion on using Bayesian or Fuzzy approach to this system control problem.
- eternalban 15y agohttp://privatewww.essex.ac.uk/~fleum/csvt.pdf http://privatewww.essex.ac.uk/~fleum/csvt.pdf for example.
- alecco 15y agoIt's all really nice but because of the patent minefield adoption of newer algorithms will be very slow. IMHO.
- xtacy 15y agoInteresting. I've been looking into the Stephen Savage paper faking-acks part as well for a while now, especially in the context of hosted services in a shared infrastructure (cloud!). My hunch is that it can cause a lot of problems, but I am yet to verify. :)
- tptacek 15y agoIncidentally, regarding the bottom of Nate's post: if you're at all interested in code analysis, you really should reach out to him about a role on his team. I know a little about what they're building, and it is possibly the coolest business idea any HN participant is working on.
- nas 15y agoI've experienced congestion at my parents house. They live in a rural area and have a connection over a WiMax wireless link. I did a little poking around and the bottleneck is not the wireless link but some link further upstream (e.g. maybe between the ISP and the wireless tower). I suspect what is happening is that the uptake of video services like YouTube and Netflix has resulted in link capacity being exceeded. The result is not pretty. The link acts like it is dead for about a minute at a time. It periodically starts working for a few seconds, maybe up to a minute, but then dies again. I suspect this is the oscillation effect at work.
- alecco 15y agoFor internet routing, theory and reality might be very distant. RED in particular has a terrible record of making things worse on live systems. But that was a few years ago and perhaps newer variants are better. Also there's a huge problem on routing algorithms due to hundreds of patents covering very trivial uses. For example, there is an awful patent covering the very important case of not dropping tiny ACK packets. For congestion control, it's more useful to drop big TCP data packets to make the endpoints adjust. And the key networking gear players are full on supporting those crazy software patents. So my prediction is things will stay the same and nothing meaningful will happen for 10 years until a few key patents expire. Nobody will risk exposure to a multimillion IP lawsuit. And anyway, we the users will just pay the bills either way so telcos don't care. You can thank Big Telcos, Cisco and many others. Of course big players with a huge patent war-chest (i.e. Google/Amazon/Microsoft) will advance their WANs.
- lrizzo 15y agoThese days, doing proper packet scheduling nowadays is probably a better alternative to AQM than approximated solutions such as RED and many many variants that appeared in academic papers. RED was designed at a time when implementing packet schedulers was expensive (theory was not completely there yet, firewalls were not widespread, etc.). Now there are fast packet scheduler implementations available. Our own QFQ [1] is distributed with the official FreeBSD and Linux sources, and runs reasonably fast even on an OpenWRT device (remember that AQM needs to act at the bottleneck [2], which is mostly your DSL router for upstream traffic). You could really try it out easily, and if you are willing to set up a few dummynet pipes [3] (FreeBSD/Linux/Windows) you don't even need to act on the DSL router. References: [1] http://info.iet.unipi.it/~luigi/qfq/ http://info.iet.unipi.it/~luigi/qfq/ but the code is already part of recent FreeBSD and Linux distributions (edited: and even on OSX you'll find an older but similar scheduler as part of ipfw+dummynet), you just need to load the relevant modules. [2] there were, long ago, some proposals/products which did ack pacing on the reverse path to do cong.control on the forward path. I think it is tricky to make them work. [3] http://info.iet.unipi.it/~luigi/dummynet/ http://info.iet.unipi.it/~luigi/dummynet/ . You can set two pipes with a bandwdith slightly below that of the DSL link, so you can control the bottlenecks. How can you know what is the bottleneck bandwidth is a different story. You could look at the negotiated speed on the modem, often available through the web pages, but probably you'll have other bandwidth caps elsewhere. You could try to run some of the BW probing apps to some nearby host, hoping that the bottleneck is your local DSL, and dynamically reconfigure the pipes accordingly. I have not tried this yet.
- xtacy 15y agoShaping the link at the source works as long as you're the only computer along the bottleneck link. Once there are varying number of other sources competing for the bottleneck, determining the "rate" is hard (which is what congestion control algorithms do!)
- tptacek 15y agoIsn't packet scheduling experimentation also one of the reasons for the Click Modular Router project at MIT PDOS? The Click codebase is one of my favorite pieces of C++ code ever.
- Locke1689 15y agoInterestingly enough Van Jacobson has continued in this line of research, but the future of Internet networking looks radically different than what was proposed in these early days. A pivotal recognition is that the Internet nowadays is dominated by content, not by endpoints. The modern CDN is really a very complex kludge in order to deal with what we now believe the Internet's primary purpose to be: content delivery. The Internet was originally designed in a TCP/IP point-to-point structure, with the most important aspects being the communication of two parties. Now the most important part is that a given party (or really many parties) receive a specific piece of content, regardless of where that content comes from. In this light, it is wise to redesign the Internet's infrastructure against standard TCP/IP and instead build knowledge of content and caching layers directly into the transport protocols. The preliminary paper which deals with many of these issues is Jacobson's Networking Named Content[1]. The general idea is that one requests content instead of communication with a specific party. ISPs and other intermediate layers cache content blocks (because its in their own financial best interests by saving money in peering costs and pure networking hardware costs) and your request for content is delivered via the nearest available hot cache. Many other papers have been written with their own tweaks, but this is the general idea for what the next generation of the Internet should look like (from the distributed systems researcher perspective). In my Distributed Systems in Challenging Environments class one of the things my partners and I were working on was building a prototype of CCN (the protocol described in Jacobson's paper) on top of the current TCP/IP layer to examine its real-world characteristics and swarm behavior. We never completely finished the prototype for Contemplating Content Centric Protocols, but it was an interesting project nonetheless. [1] http://conferences.sigcomm.org/co-next/2009/papers/Jacobson.pdf http://conferences.sigcomm.org/co-next/2009/papers/Jacobson....
- tptacek 15y agoThis is such a great thread. I've been hoping to see something tangible from VJ on this for awhile now. He was doing content-based networking even back when he was at Cisco. To an extent I think recognized by a lot of networking researchers, including IIRC YC's Robert Morris at MIT, the future of the Internet is probably not IPv6 and a network consisting of operating systems addressed by scalar integers. Instead, IP-type protocols are going to assume the same role that Ethernet and 802.11 (and ATM) play today, as a substrate for connectivity on top of which real applications will be built. The wide area discovery and "session" (OSI style) management roles played by IP and TCP will be played by overlay networks. We have primitive overlays now (DHTs, BitTorrent, Skype) and proprietary ones (CDNs like Akamai, whatever the cable content providers are using to push VOD to the edge), but eventually we'll get a general-purpose open one and the game will be on. I think this follows straightforwardly from Reed's end-to-end argument. Intelligence belongs to the edges, not the core of the network; intelligence at the core is necessarily a lowest-common-denominator affair, and is hard to scale. That's a key reason why we don't have multicast today. Routers are so bad at scale that tier 1 NSPs filtered BGP announcements by prefix length, because they couldn't handle /32-granular routing for even the tiny subset of machines that actually wanted it (begging the question of how we ever expect IPv6 to do the things the typical HN reader hopes they'll do, like provide them with their own portable /16-equivalents). Multicast effectively asked those same overtaxed routers to address web pages, individually. That's obviously not going to work when the service model involves random people demanding that AT&T and Level3 add routing table entries for their podcasts. But it scales just fine when the thousands of machines interested in those podcasts share a protocol and an infrastructure for arranging a fan-out overlay. So many unsolved problems here, from "what is the most reasonable kernel of overlay assembly, group management, and routing to deploy to end-systems" to "how do we avoid congestion collapse in arbitrary group messaging protocols" (a study of multicast reliability algorithms --- at least, from the late 90s when I last did this stuff --- will probably horrify you). But the great thing about it is, nobody has to ask permission to make this stuff work; we can evolve to the real next Internet without getting Comcast's permission, or for that matter (more perniciously) the IETF's.
- thaumaturgy 15y agoOpenBSD has supported RED for a long time as an option in the packet filter configuration (http://www.openbsd.org/faq/pf/queueing.html#red http://www.openbsd.org/faq/pf/queueing.html#red). I don't know how closely it follows the original paper, although they do cite it as a reference. I used RED on an OpenBSD firewall years ago at a small ISP that had too small of a pipe for the number of sites they were hosting out of their closet. It didn't seem to make a remarkable difference, but I wasn't responsible enough at the time to do careful metrics before-and-after.
- eps 15y ago> packets are queued for a long time during congestion instead of being dropped quickly. This misleads TCP congestion control and leads to even more congestion. The last statement is true only for TCP/Reno. Reno here refers to a congestion detection algorithm, and it is that of looking for packet loss to recognize the congestion. This is the simplest and oldest approach, and it has been suceeded by TCP/Vegas, which looks at delivery delays instead, or how it is called a congestion avoidance algorithm. Basically the idea is that if the route gets congested, there will be buffeting happening at some hop and that would cause the RTT along the route to climb up. This being said, I don't know the split between Reno and Vegas adoption in the real world. However I think newer Windows versions are on Vegas.
- tptacek 15y agoThis critique of Vegas by VJ is pretty famous (I love that you still have to FTP to ftp.ee.lbl.gov to get it): ftp://ftp.ee.lbl.gov/email/vanj.94mar14.txt
- NateLawson 15y agoI've got a copy of that on my mirror, including the postcript diagram: http://root.org/ip-development/e2e/end19940314-diagram.ps http://root.org/ip-development/e2e/end19940314-diagram.ps In summary, RTT variance as a congestion signal is actually quite bad. It's normal to have variation even without congestion, so utilization would be worse if you backed off every time RTT increased.
- huhtenberg 15y agoFrom my completely unscientific tinkering with Vegas idea few years ago I remember that there was an easily detectable pattern in RTT change during the congestion. I was testing using UDP between my home and a colo server and I saw RTT climb up to several times its original level in a matter of two round trips. > It's normal to have variation even without congestion Certainly, but the question is if congestion-based variation is substantially different from an ambient variation. I am guessing that it is. Reacting to just a RTT increase is pretty dumb. The congestion marker clearly needs to be a bit more advanced than that.
- gvb 15y agoBuried at the bottom of the writeup is a chilling tale of the effects of proprietary programs and formats: "The lost paper was never published. [...] [Van] lost the draft and the FrameMaker software for editing it." If it were not for a draft that was discovered, this paper would have been lost forever.
- cpr 15y agoThere are plenty of MIF-file (Frame's XML vocabulary) translators out there, so it needn't have been lost as long as the source file was around.
- davidu 15y agoI can't actually find a link to the new paper, the "Red in a new light" paper. Just the citeseer link. Is it online?
- NateLawson 15y agoRight, the citeseer link is to the old copy of the paper. The new version has not been finished yet so I doubt you'll find it anywhere. It's actually likely that it will never be finished and instead will be a jumping off point for new research.
- deleted 15y ago[deleted]
- stcredzero 15y agoInstead of the first excess packet being dropped, it gets queued somewhere. So to update our detection scheme, we need routers to get feedback about the >queueing<.
- xtacy 15y agoThis is what AQM schemes like RED/ECN do!
- listening 15y agoVJ talks about something called "Evolutionary Pressures" at the end of his Google Talk a few years ago. Watch the video if you haven't already. SOPA if it passes may create such pressure. It's main target is DNS. CDN's like Akamai rely on universal use of one DNS, the one that SOPA aims to regulate, to accomplish their kludge. Food for thought. I prefer "Chicago" to any of the other alternatives. End-to-end can be realised. Overlays work for small groups. Small groups can share with each other. Networks connecting to other networks. It's been done. ;) Evolutionary pressures may help.
- tptacek 15y agoI stupidly downvoted you (SOPA! GAH!) but you made a good point, so, sorry. Generally one of the reasons I don't freak out about laws regulating the Internet is that the Internet as we know it today is rickety anyways. In the last 10 years we've seen the monumental shift (predicted in the late '90s but widely scoffed at) from ad hoc network protocols and native client/server implementations to a common web platform. Nerds still recoil a little at this, thinking about the native/ad-hoc stuff they still use (like Skype), but if you look at the industry as a whole, particularly in the line-of-business software development that actually dominates the field, it's all web now. TCP ports are mostly irrelevant. If you were going to start a new app today, would it be a native implementation of a custom protocol? Probably not! One of the things that got us to this state was in fact regulatory: default firewall configurations that don't allow anything but web out, and disallow arbitrary inbound connections. Over the next 10-15 years, I'm hoping we'll get similar nudges away from first-class addressing only for machines (which are less and less useful as an abstraction for completing tasks using technology) and towards first-class addressing for subjects, interests, content, &c. This is an insight lots of people have had, from David Cheriton & TIBCO in the '90s through the RON work at MIT through VJ's work at PARC & so on. I wrote off Lessig for a bunch of years after reading _Code_, but I think he fundamentally has it right in the sense that implementors have as powerful a say in how things are going to be regulated as legislators do. America had the Constitutional Convention after the Articles stopped scaling; the Internet will have little blips of architectural reconsideration when the impedance between the technology and what people want to legitimately do with the technology gets too high. (I'm trying to make a technical point here, not a political one; I support copyright, and am ambivalent about SOPA.)
- jws 15y agoIt's worth remembering that there are cheaters on the internet. I have been one. I built and sold a product that cheated on TCP in order to minimize negative customer experiences during periods of congestion. It was a one line change in the linux networking code, and suddenly their crappy networks were no longer a problem! (Just so you don't think me completely evil… All traffic was across their own networks. Their networking folks considered 5% packet loss to be acceptable. The product's purpose was to aggregate and tunnel connections. Multiple TCP inside TCP gets unfairly punished by the congestion algorithms, which is why most VPNs don't use TCP, but sometimes you find yourself under the thumb of administrative rules and you have to do it. I simply capped our back off time to something like 10 seconds. Short enough that no one thinks the device broke because "the network was stuck, but now I can ping but your device is hung so I'll power cycle it". If your network can't take 1 packet per 10 seconds on behalf of a few dozen aggregated connections, it isn't me that broke your network.)
- tptacek 15y agoI had been thinking of: http://cseweb.ucsd.edu/~savage/papers/CCR99.pdf http://cseweb.ucsd.edu/~savage/papers/CCR99.pdf (And Nate's right, I drastically oversimplified my summary of it). This is "cheating TCP" by Stefan Savage from '99. A great, great paper.
- huhtenberg 15y agoAh, the joys of SSL VPNs it seems.
- lorax 15y agoVPN's don't use TCP because having a reliable protocol with retransmission inside another reliable protocol with retransmission can cause lots of extra traffic when a packet is dropped and the data gets retransmitted multiple times, once from each of the protocols.
- ThaddeusQuay2 15y ago"The lost paper was never published. One roadblock was that the diagram of a toilet offended a reviewer." Google+ existed as early as 1988?