8 ms·
Faster Copilot with faster Internet traffic
- nixme 18y agoLike Joel, I only knew about Akamai's CDN services. Are there any other companies (CDN or otherwise) that provide a similar service?
- bprater 18y agoWhat media are you trying to deliver? Traditional CDN are very expensive -- like cell phone minutes, you pay up-front for X number of GB. If you buy 1000GB and burn 20GB, you still pay your $10k/month bill. Amazon is making a big play in this space, and doing a 'pay for what you eat'. Hopefully this will encourage CDNs to take a look at their pricing schedules.
- nixme 18y agoNot CDN service or delivering media. More like this proxy-type service he describes where you cut out a lot of middle-tier routing and pay for better backbone transit. For personal use, this would be a great way to proxy your own traffic when using the Internet overseas, where accessing US-based sites can be very slow. Or even for setting up a faster coast-to-coast VPN within the US.
- wmf 18y agoIt's been tried: http://en.wikipedia.org/wiki/Gamerail http://en.wikipedia.org/wiki/Gamerail
- seiji 18y agoDon't forget http://www.simplecdn.com/ http://www.simplecdn.com/ for a CDN too. You can save a lot by hosting on S3 and using simplecdn to serve the data.
- bprater 18y agoI would have like to see some technical notes in there. It almost comes across like a glorified sales pitch for two products! First Joel says that they don't deliver static files and that edge caching won't help. And then they swap out some IPs, cuddle up to Akamai and bam -- suddenly the Internet delivers.
- wmf 18y agoMy impression is that Joel has no idea how this Akamai IPA thing works; he is treating it as magic. I would never buy a service that is advertised as magic, though. There is a little technical stuff here: http://www.akamai.com/dl/feature_sheets/FS_IPA.pdf http://www.akamai.com/dl/feature_sheets/FS_IPA.pdf It looks like a fancy TCP reverse proxy. I wonder if it's based on the MIT RON project.
- gojomo 18y agoAkamai is violating net neutrality!
- Retric 18y agoNope. They don't own the lines.
- gojomo 18y agoAkamai either owns the lines on the "superfast superclean superhighway" (Joel's words) between the Akamai nodes, or they have purchased preferential traffic treatment from someone who owns those lines.
- wmf 18y agoNot necessarily. The RON papers show how you can increase performance without buying preferential anything.
- gojomo 18y agoDoes RON == Resilient Overlay Networks? And do you think Akamai's selling points and pricing indicate they're improving end-to-end peformance without buying any special paths?
- wmf 18y agoYes and yes. My understanding of Akamai's philosophy is cheap redundant hardware plus cheap (often free) redundant dumb bandwidth plus genius software.
- seiji 18y ago"superfast superclean superhighway" means "we have a private network." There's nothing special going on. Call up your telco and say you want a 10 gigabit connection from new york to LA and they'll be happy to oblige. Just because two computers in the world are talking doesn't mean they use the big-i Internet.
- gecko 18y agoHiya. I'm one of the Copilot developers, so I thought I'd answer some questions. The Akamai IPA thing is not "magic," and none of us think it is, but dumping a rambling technical diatribe onto Joel's blog would alienate a lot of its readership. We're talking on Hacker News now, though, so read on if you're curious what's going on and how Akamai's helping us. There are two ways that an Internet connection can be slow: you can have insufficient bandwidth, and you can have bad lag. With Copilot, we're already doing just about all we can to minimize bandwidth with our raster-based format. We've got pretty fast compression algorithms, we dynamically pick compression levels on-the-fly, and because we're using existing VNC code under-the-hood, we do a good job sending across just the differences in your screen. Switching the protocol to be command-based (like X, or RDC) is the only real way left to improve bandwidth--and with our current developer resources, that's simply not feasible. The good news is that this discussion mostly ends up being a non-issue: relatively few customers actually have bandwidth saturation issues, and internet connection speeds are steadily increasing, so bandwidth's not generally a big concern. That leaves lag. Most of the time, when customers complain Copilot is "slow," they're complaining about lag. Copilot gets lag in two places: on the network connection itself, and on the glorified echo-server (which we call the Reflector) that we use when none of our firewall bypass tricks work. We try really hard to ensure you connect directly, but sometimes you simply can't, so it's very important that the Reflector be very efficient. About a year ago, I did some analysis to see how we could speed things up, and found that our Reflector introduced nearly a quarter second of lag in some circumstances--not terribly surprising, since it was literally the very first thing I wrote at Fog Creek, back when I was an intern. The design used one dedicated thread per connection with blocking I/O. On Windows, that type of design is very slow. I took a few weeks out and rewrote the Reflector to use overlapping I/O with thread pools. The resulting Relector now introduced virtually no lag, and as an ancillary benefit, used a fraction of the CPU and proved far easier to maintain. For the time being, our customers were really happy. Unfortunately, over the last year, customers have complained that our performance is still sub-optimal. The problem's been compounded because firewalls are getting smarter, which is making our firewall bypass tricks fail more and more often. Even if the Reflector truly introduced no lag whatsoever, you're still gaining a lot of lag when you have a reflected connection, simply because your data has to make a full round-trip from you to the reflector to the other party. That's where Akamai comes in. The main thing that Akamai's doing for us is dramatically reducing lag between our data center and our customers. That means your keystrokes get to the other side faster, the machine starts responding faster, and you get the graphical updates faster. Even though bandwidth hasn't increased, your Copilot experience suddenly becomes far more pleasant, because the machine feels much more responsive. We're still monitoring our clients to see how much of a difference Akamai's making, but in general, what we're seeing is great. The bitrates for Akamai-enabled connections has gone way up, since the higher response rate allows our users to get more done in less time, and we've been able to pull of some stunts--like watching YouTube videos via Copilot--that were previously impossible over reflected connections. Akamai's not a panacea, and what they're doing isn't magic, nor is it useful in all circumstances, but for a real-time application such as Copilot, it can yield a pretty dramatic improvement in exchange for very little developer time. [EDIT: Fixed some snafus I caught when re-reading.]