AfterDawn: Tech news

Bram Cohen is unimpressed with Avalanche

Written by James Delahunty @ 22 Jun 2005 7:56 User comments (3)

Bram Cohen is unimpressed with Avalanche Bram Cohen decided to make some comments on his blog about Avalanche, a BitTorrent-like P2P distribution project Microsoft is currently working on. However, even though Microsoft has made no real tests, the software giant already seems to be pitting it against BitTorrent, a champion amongst filesharers developed originally by Cohen.
First of all, I'd like to clarify that Avalanche is vaporware. It isn't a product which you can use or test with, it's a bunch of proposed algorithms. There isn't even a fleshed out network protocol. The 'experiments' they've done are simulations.

Cohen doesn’t believe that results from a simulation could possibly match up to results of a real test due to real-world Internet behaviour.

It's a bad idea to give much weight to simulations, especially of something so hairy as real-world internet behavior. I spent most of my talk at stanford explaining why it's difficult to benchmark, much less simulate, BitTorrent in a way which is useful.

Microsoft had claimed they had a system that could be 20%-30& faster than BitTorrent because it defeat one slight problem with BitTorrent. Rare chunks towards the end of a download quite often take some time to be received. Bram goes on to ridicule Avalanche more...



The central idea here is basically 'Let's apply error correcting codes to BitTorrent'. This isn't a new idea, everybody comes up with it. In fact I saw fit to mention that it's a dubious idea before. (Some people will point out that 'error correcting codes' isn't the right term for the latest and greatest of this sort of technology, to which I say 'whatever'.) The main reason that this is a popular idea is that recent work in error correcting technology is very cool. While it is very cool, and very applicable to sending information across lossy channels, the case for using it in BitTorrent is unconvincing.

What error correction can in principle help with is that it the chances that any given peer has data which is of interest to another peer. In practice this isn't really a problem, because rarest first does a very good job of piece distribution, but error correction can in principle do as well as is theoretically possible, and rarest first is in fact less than perfect in practice.

One thing badly missing from this paper is back-of-the-envelope calculations about all of the work necessary to implement error correction. Potential problems are on the wire overhead, CPU usage, memory usage, and disk access time. Particularly worrisome for their proposed scheme is disk access. If the size of the file being transferred is greater than the size of memory, their entire system could easily get bogged down doing disk seeks and reads, since it needs to do constant recombinations of the entire file to build the pieces to be sent over the wire. The lack of any concrete numbers at all shows the typical academic hand-wavy 'our asymptotic is good, we don't need to worry about reality' approach. Good asymptotics are one thing, but constant multipliers can be killer, and it's necessary to work out constant multipliers for all pontentially problematic constants, not just the easy ones like CPU.

The really big unfixable problem with error correction is that peers can't verify data with a secure hash before they pass it on to other peers. As a result, it's quite straightforward for a malicious peer to poison an entire swarm just by uploading a little bit of data. The Avalanche paper conveniently doesn't mention that problem.



As you've probably figured out by now, I think that paper is complete garbage. Unfortunately it's actually one of the better academic papers on BitTorrent, because it makes some attempt, however feeble, to do an apples to apples comparison. I'd comment on academic papers more, but generally they're so bad that evaluating them does little more than go over epistemological problems with their methodology, and is honestly a waste of time.

If you're interested in doing more fleshed out research on error correction in BitTorrent, I suggest starting with a much less heavyweight approach. Having peers transfer the xor of exactly two pieces could potentially get most of the benefits of full-blown network coding.

There are many reasons why Microsoft would develop Avalanche and pit it against BitTorrent. Mainly, Microsoft is currently trying to gain new friends in the entertainment industry. Avalanche, they say, could not be used for illegal trading as it has its own form of DRM scheme. One area Microsoft could really use Avalanche's help however would be with Windows Update and the download section of it's site.

Source:
Bram's Blog (make sure you check it out)

Previous Next  

3 user comments

123.6.2005 00:38

Quote:
Avalanche, they [s]ay, could not be used for illegal trading as it has its own form of DRM scheme.
If this vaporware ever comes to be, it will probably have some "your files are not DRM encrypted by M$" (or $imilar) message. Followed by a formatting your "piracy" filled HDD because M$ believes that everyone in the world is a pirate. That is my take on "Avalanche" Peace, Pop Smith

224.6.2005 06:50

I don't like it, but it is a very smart idea on Microsoft's part. That is a priority for them right, stopping illegal file trading. What percentage of us are file sharing savy? I'm in the networking field and in all the classes i've taken, i've met 3 people that Know Of bittorrent. Even then, they really don't know where to find torrents. Unless you have someone to take you by the hand and show you, or you have an extreme interest, it is pretty hard for someone to learn. I think microsoft wants to keep it this way. Bittorrent is a great way to distribute files, and MS can't deny it, so in the future they'll support it right... They can't just leave an open wound out there that can fester. If they put the technology out there for regular use, more people will catch on. This means more illegal file sharing. I think they are going to incorporate it into their new OSs and have it where if you download an uncertified file, avalance will corrupt whatever you are getting. If you are a regular joe and you spent 3 hours getting the latest movie with avalance and it doesn't work, chances are, you're going to go back to kazaa or something. End scenario, they are making it harder for regular people to discover how easy it is.

324.6.2005 13:33

In other news, MS press release states, "BitTorrent is really cool, so we are going to totally co-opt it, but we are unimpressed by this Bram Cohen guy."... ;-)

Comments have been disabled for this article.

Latest news

VLC hits milestone: over 5 billion downloads VLC hits milestone: over 5 billion downloads (16 Mar 2024 4:31)
VLC Media Player, the versatile video-software powerhouse, has achieved a remarkable feat: it has been downloaded over 5 billion times.
2 user comments
Sideloading apps to Android gets easier, as Google settles its lawsuit Sideloading apps to Android gets easier, as Google settles its lawsuit (19 Dec 2023 11:09)
Google settled its lawsuit in September 2023, and one of the settlement terms was that the way applications are installed on Android from outside the Google Play Store must become simpler. In the future, installing APK files will be easier.
8 user comments
Roomba Combo j7+ review - Clever trick allows robot vacuum finally to tackle home with rugs and carpets Roomba Combo j7+ review - Clever trick allows robot vacuum finally to tackle home with rugs and carpets (06 Jun 2023 9:19)
Roomba Combo j7+ is the very first Roomba model to combine robot vacuum with mopping features. And Roomba Combo j7+ does all that with a very clever trick, which tackles the problem with mopping and carpets. But is it any good? We found out.
Neato, the robot vacuum company, ends its operations Neato, the robot vacuum company, ends its operations (02 May 2023 3:38)
Neato Robotics has ceased its operations. American robot vacuum pioneer founded in 2005 has finally called it quits and company will cease its operations and sales. Only a skeleton crew will remain who will keep the servers running until 2028.
5 user comments
How to Send Messages to Yourself on WhatsApp How to Send Messages to Yourself on WhatsApp (20 Mar 2023 1:25)
The world's most popular messaging platform, Meta-owned WhatsApp has enabled sending messages to yourself. While at first, this might seem like an odd feature, it can be very useful in a lot of situations. ....
18 user comments

News archive