Live data from Hacker News

BitTorrent v2 (2020)

blog.libtorrent.org

71–80 of 155 posts

Re: BitTorrent v2 (2020)

#71
post #55

Earlier quoted context omitted.

Do you make visualizations of the traffic?

Some different views. For instance, to give some sense of a scale for the 250 or so v2 torrents seen every day is, here's a view of the total number of torrents it discovers each day [1]. (Or, more properly, this is the number of torrents it gathered complete metadata and validated against the infohash each day). One of these days I should find somewhere to put all these bits of metadata I've been downloading. [1] ht…

Neat! I don’t have it handy, but years ago I scrapped the states traffic page and then made time lapses from them. One of the road segments had a bad sensor that would toggle into a stuck state.

Keep it up!

Re: BitTorrent v2 (2020)

#73
post #56

Earlier quoted context omitted.

Generally speaking this is called “cryptographic agility” and the security community has decided that it’s an antipattern. The alternative is to have a specified suite of security mechanisms pinned to each version. You can still have backwards compatibility, but it helps avoid downgrade attacks.

Multiformats is not really cryptographic agility, it's just adding a small tag that indicates what type of data something is (what kind of encoding, what kind of hash, what kind of binary payload, etc). The benefit is that the tags are standardised rather than being tied to a protocol version or some other out-of-band information. Whether or not you start making negotiation decisions based on that header is what dete…

> I'm also not sure I'd say the security community as a whole feels that cryptographic agility is an anti-pattern, there are plenty of vocal voices on all sides of that argument. I personally agree that you gain very little from cryptographic agility but have to pay a fair amount, but I don't think it's as settled as you make it out to be.

I totally agree with this assessment, and rereading my comment, I say that as though it’s a lot more settled than it is.

I think it’s probably harmless to tag those sorts of bits of data, but also JWT has shown us that having that metadata in band does lead to people using it for those kinds of decisions whether they’re supposed to or not.

Re: BitTorrent v2 (2020)

#74
post #47

Earlier quoted context omitted.

That’s what the “past” button does.

Why are there always people linking to previous discussions then? Including dang himself...

Because the past button doesn't actually do that. lol

Edit: Oops. I didn't see there are two "past" buttons. I guess one of them does do that. TIL.

Re: BitTorrent v2 (2020)

#75

BitTorrent slaps so hard as a protocol, and DHTs are absolutely brilliant. With all of the recent hype about decentralization with the rise of crypto, I'm surprised BitTorrent hasn't seen much hype or revitalization as well.

I'm not surprised. BitTorrent just works, and doesn't provide any opportunity to separate people from their money.

Re: BitTorrent v2 (2020)

#76

Can someone explain how the Merkle-tree concept is useful? I didn't quite catch that part. On the one hand it is says: > all you need is the root hash of the tree. but on the other hand: > the .torrent file must still contain these piece hashes So what are we saving here? If a piece hash doesn't match the downloaded data, we re-download the piece.

The main use of a Merkle tree that I know of is the filesystem "scrub" operation in ZFS and BtrFS.

https://en.wikipedia.org/wiki/Merkle_tree

Re: BitTorrent v2 (2020)

#77
post #16

Earlier quoted context omitted.

unlikely ? all methods are broken eventualy when compute becomes faster

This is not true. Modern cryptography is not breakable via brute force any more, nor will it ever be. You can prove that the amount of energy required assuming a thermodynamically ideal computer is more than will ever be available in our galaxy, with classical computing. Breaks of symmetric crypto or hashes that are practical require an actual cryptographic weakness, whose existence is not a given. Then there's quant…

That is not true. There is nothing provable about hash functions. The best that you can say is that there is no known algorithm that can calculate a pre-image for any given hash function in less than some super linear time. You certainly cannot prove that no such algorithm exists. If you can prove it please publish a paper you will be revolutionize mathematics.

Re: BitTorrent v2 (2020)

#78
post #70

Earlier quoted context omitted.

BTFS is the product of an entirely different group of people than the ones who were responsible for the uTorrent purchase. BitTorrent Inc was itself bought by cryptocurrency company TRON in 2018. Few people who worked at BT Inc prior to the acquisition are still there, and AFAIK none of them ever worked on BTFS.

Different team of people, all working in the same company, correct?

Technically yes, but as is typical with an acquisition there's residual divide between projects which originated from the BT Inc side of the company and those from the TRON side. BTFS is very much a product of the TRON side despite using the BitTorrent branding.

Re: BitTorrent v2 (2020)

#79
post #68
post #37

Earlier quoted context omitted.

Unless I'm mistaken, we'd need to settle on a "default" piece size[1] if we were to have automatic upgrading in a client. I learned recently[2] that there's no standard set by the protocol, so Client A might choose a 16KiB piece size, and Client B might take the same files and choose a 64KiB piece size, resulting in two different hashes (v1 or v2!) and thus two peer pools for the same file set. 1. https://stackoverfl…

I'm not sure if the the piece side continues to have bearing when the hashes are all in a Merkle tree on uniform 16k blocks. "Enforcing these encodings also help make it more likely that two people creating a torrent from the same files, end up with the same info-hash and the same torrent." In the discussion of backwards compatibility, it appears that v1 collections of identical content encoded with different piece s…

If you have a v1 torrent file, you can’t download from a upgraded client

Re: BitTorrent v2 (2020)

#80
post #60
post #3

The wikipedia page doesn't say - do clients generally support this protocol now? https://en.wikipedia.org/wiki/Comparison_of_BitTorrent_clien...

BiglyBT was the first Torrent client with v2 support [1] https://torrentfreak.com/biglybt-is-the-first-torrent-client... [2] https://www.biglybt.com/

Not really true - v0.20 of PicoTorrent [1] was released with BitTorrent v2 support on the same day as libtorrent released support for v2 torrents. I think this predates BiglyBT 2.5 with v2 [2] support with about two weeks.

[1] https://github.com/picotorrent/picotorrent/releases/tag/v0.2...

[2] https://biglybt.tumblr.com/post/629947579144290304/2500-rele...

Post reply on HN