TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Visualizing how BitTorrent works.

149 pointsby hiteshiitkover 14 years ago

10 comments

jasonkesterover 14 years ago
I get tired of making this same comment on every Canvas-based thing anybody builds, but if they'd taken the 30 seconds it took to write that paragraph about how it doesn't work in IE, and instead used it to paste in the following snippet of HTML, it would <i>actually work</i> in Internet Explorer:<p>&#60;!--[if IE]&#62;&#60;script type="text/javascript" src="/excanvas.js"&#62;&#60;/script&#62;&#60;![endif]--&#62;<p>Like, IE5 even. Internet Explorer has had vector graphics since 1999, and it overlaps 90% with Canvas (which came out several years later).<p><a href="http://excanvas.sourceforge.net/" rel="nofollow">http://excanvas.sourceforge.net/</a>
评论 #1908147 未加载
评论 #1906610 未加载
评论 #1906798 未加载
评论 #1907682 未加载
zokierover 14 years ago
While beautiful, I don't think it illustrates BitTorrent very well. Data doesn't just magically flow to clients, it needs to be coordinated and/or negotiated somehow. Data integrity is also somewhat important aspect of BitTorrent, every piece that client receives is verified against the .torrent file.
评论 #1906644 未加载
评论 #1907155 未加载
jessriedelover 14 years ago
This could use some concurrent data plots showing, say, the number of new bits being received (by anyone). Would be especially useful when comparing the same visualization for traditional file transfers, to show what's special about BitTorrent.
seldoover 14 years ago
So pleased to see this restored! It's one of the best process visualizations I've ever seen. It's not "this is what the data means", it's "this is how an algorithm works in practice". It looks organic and there are subtleties (like the fact that the rainbow-coloured segments correspond to the data line flowing to each peer, and that the sizes of blobs on the line represent transfer speeds) that you can grasp later without distracting from the initial "aha!" moment.
slashcleeover 14 years ago
I've updated the page so that it works properly in IE9, at least (all I had to do was add the &#60;!doctype html&#62; header at the beginning, and that seems to be good practice anyway, so I have no issue with it).<p>I have no way to test IE7 or IE8 at this point, and I don't like the idea of adding code that I can't test. If someone wants to volunteer their time to help me test those browsers with excanvas, I'm willing to give it a shot.
maushuover 14 years ago
I think it's buggy. Some peers don't get data at all.
评论 #1907170 未加载
moeover 14 years ago
Beautiful!
评论 #1906298 未加载
codexover 14 years ago
From the visualization, it doesn't appear that BitTorrent uses a spanning tree to reduce the bandwidth load on ISPs. When will we see true application level multicast for P2P?
评论 #1908386 未加载
donaqover 14 years ago
This actually runs pretty smoothly on my Milestone's default browser. Colour me impressed. It did not run well on Opera Mini though.
smackfuover 14 years ago
That uses a full core on my laptop.
评论 #1908173 未加载