News for hackers. Stuff that matters.
Re:BitTorrent v2 by DevX101 on Monday September 07, 2020 @05:17PM (#24402982)
BitTorrent was one of the few things that once I understood how it worked, I realized I was looking at the product of true genius.
Re:BitTorrent v2 by sneak on Monday September 07, 2020 @05:45PM (#24403200)
The first time I ever felt that way was with the Gnutella network; I instantly wrote a client for it from scratch.

Bittorrent only became that level of magical for me when the DHT got factored in some time later and magnet links became workable.

The other time was Bitcoin.

I’m a big fan of lack of centralized/coordination/tracker nodes.

Re:BitTorrent v2 by martinald on Monday September 07, 2020 @05:43PM (#24403185)
Really? It's a just an iteration from how eDonkey2000/eMule worked, which actually also had a DHT based 'trackeless' mode, many years before BT came around.
Re:BitTorrent v2 by bawolff on Monday September 07, 2020 @05:54PM (#24403269)
The tit-for-tat algorithm is what makes bit torrent special and solved a real problem with the previous gnutella-esque generation of p2p file sharing programs. As far as i know emule did not have that at the time.
Re:BitTorrent v2 by tinus_hn on Monday September 07, 2020 @07:08PM (#24403699)
BitTorrent uses TCP properly instead of implementing a poor version of TCP using UDP which is why it is much faster than eDonkey.
Re:BitTorrent v2 by yyyk on Tuesday September 08, 2020 @09:56AM (#24408381)
Emulating sorta-TCP via UDP is something modern protocols like QUIC also do. It's the difference between 'a poor version' and 'a decent version' that matters.
Re:BitTorrent v2 by bawolff on Monday September 07, 2020 @08:06PM (#24403987)
Except when you are using μTP...
Re:BitTorrent v2 by StavrosK on Monday September 07, 2020 @07:04PM (#24403675)
How does tit-for-tat work? Is it still enabled? I don't think I've seen it much lately.
Re:BitTorrent v2 by gruez on Monday September 07, 2020 @08:45PM (#24404176)
It's implemented in the choking algorithm. Basically if bandwidth or upload slots are limited, your peer with preferentially upload to peers that have reciprocated to you. AFAIK most clients implement this.
Re:BitTorrent v2 by StavrosK on Tuesday September 08, 2020 @03:33AM (#24406041)
Interesting, thanks!
Re:BitTorrent v2 by londons_explore on Tuesday September 08, 2020 @06:34AM (#24407049)
It isn't so important now most people have fast enough internet.

Back when people left things downloading for days, there were severe shortages of people willing to upload, and tit-for-tat encouraged uploading, solving the issue.

Re:BitTorrent v2 by octoberfranklin on Tuesday September 08, 2020 @12:38AM (#24405249)
I know that feeling; I first got it reading this paper by some guy named Nakamoto.