Live data from Hacker News

Ask HN: Why is there no P2P streaming protocol like BitTorrent?

news.ycombinator.com

151–160 of 231 posts

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#151

The only way this will be possible is if there is widespread adoption of an Internet overlay network similar to Tailscale in its design. Fortunately or unfortunately depending on how you look at it Tailscale is limited to Layer 3 so Multicast doesn't work (it depends on IGMP to function correctly).

Why Tailscale? Are you aware of IPv6?

Transit and peering agreements between ISPs typically exclude multicast, meaning packets are dropped at network boundaries.

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#152
post #69

Earlier quoted context omitted.

what about having something reasonable for lag, like 30-60 seconds would that make a big difference or you think it would just eventually degrade too? Also do you think there's any way you can prioritize seeders in such a protocol? like some kind of algorithm that the more you share the more you're prioritized in getting the most up to date packets. The main reason I would think it would be useful is 1. since streami…

> what about having something reasonable for lag, like 30-60 seconds would that make a big difference or you think it would just eventually degrade too? I think you would probably need something more in the neighbourhood of 10 minutes to really make a difference. If you could make a stable p2p live streaming app with the number of peers all watching the same stream in the hundreds and only 30 seconds latency, i'd con…

Apparently PeerTube can do 10s delay to hundreds (not thousands) of viewers.

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#153

There was Joost in 2008, from Skype founders. Skype was originally P2P until Microsoft acquisition and killing this legally questionable feature - need to feed the big brother (: Joost raised ~$50M. I remember it as it was one of rare apps built in XUL, the same framework as Mozilla apps (Firefox). https://en.m.wikipedia.org/wiki/Joost

PriitK of Joost/Sykpe was also involved in the original Kazza. I've told previous stories of his involvement in a 1990s MMO spaceship game, where he recreated the original buggy/cheat-filled client (Subspace) and released the now standard replacement (Continuum).

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#154

AceStream is P2P, its primary use is to stream pirated live sports though. But looking it up, it seems to have been infected by "blockchain!" geniuses.

One of the main things that hindered acestream is probably it remaining mostly proprietary. There was an explosion of different bittorrent implementations past the first one, which forced everyone to properly standardise.

I was hopeful about bittorrent-live when that was announced, but they didn't open source that for some reason either.

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#155
post #62

Part of the reason bit torrent works really well is that the file is downloaded in random order. It lets everyone cooperate, while still being robust to bad peers, bad network connections, churn etc. If you want live high quality streaming, a lot of reasons bit torrent works so well goes away. Latency matters. In bit torrent if the peer goes away, no big deal, just try again in 5 minutes with another peer, you are do…

This comments on why bittorrent as is isn't used for live streaming, not why P2P shouldn't be used for live streaming > Latency matters. In bit torrent if the peer goes away, no big deal, just try again in 5 minutes with another peer, you are downloading in random order, who cares if one piecs is delayed 5 minutes. In a live stream your app is broken if it cuts out for 5 minutes. First of all, BitTorrent clients do n…

> First of all, BitTorrent clients do not download in random order or wait 5 minutes. They usually download the rarest block first, but can do whatever they want, whenever they want.

The problem here is that BT works so well because the clients default to "good behavior" (prioritize rare pieces first) and discourages "bad behavior" (leeching/no upload).

This tilts the balance on the whole enough to maintain the health of the network. If you change these, you'd need to introduce other mechanisms to preserve the network incentives.

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#156
post #129

you can install Qbittorrent client, after loading torrent file/magnet link, right click on that torrent and click on Download in sequential order. torrent PROTOCOL does not require to download random pieces, in random order. ONLY bittorrent, inc. COMPANY which releases "Utorrent" and "Bittorent" NAMED APPLICATIONS/PROGRAMS does not want legal trouble from media/music companies. Because STREAMING is other legal catego…

I believe there is actually a reason why you want to transfer random blobs instead of from the start: it is waste of resources when a node needs to upload the same block multiple times to the network, if it could be uploading different blocks. > if you need instant nanosecond delayed stream I believe nobody was suggesting that.

The usual download strategy is to request the rarest pieces first, in random order. Most modern clients will prefer earlier pieces when the swarm/availability is above a certain size.

"super seeding" is a different feature where a seed won't upload more pieces to a peer unless a previously uploaded piece has been distributed to another peer first.

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#158
post #155

Earlier quoted context omitted.

This comments on why bittorrent as is isn't used for live streaming, not why P2P shouldn't be used for live streaming > Latency matters. In bit torrent if the peer goes away, no big deal, just try again in 5 minutes with another peer, you are downloading in random order, who cares if one piecs is delayed 5 minutes. In a live stream your app is broken if it cuts out for 5 minutes. First of all, BitTorrent clients do n…

> First of all, BitTorrent clients do not download in random order or wait 5 minutes. They usually download the rarest block first, but can do whatever they want, whenever they want. The problem here is that BT works so well because the clients default to "good behavior" (prioritize rare pieces first) and discourages "bad behavior" (leeching/no upload). This tilts the balance on the whole enough to maintain the healt…

With streaming, the service provider is generally also controlling the clients, so they should be much better off when it comes to client behavior.

In case of bring-your-own-client, the incentives are exactly the same: Clients would likely default to good behavior as network health equals user experience, and exactly like BitTorrent there will be neither punishment nor need for it if some clients disobey.

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#159

The thing is, if you pirate why would you stream when you can download and watch at your convenience? And if you pay for the streaming, why would you donate your bandwidth to them? Would you get a discount?

"if you pirate why would you stream when you can download and watch at your convenience?"

Live events, e.g. sports?

"why would you donate your bandwidth to them?"

I don't know but people donate bandwidth for torrents, maybe it's 'free' for them?

Re: Ask HN: Why is there no P2P streaming protocol like BitTorrent?

#160
post #75

Earlier quoted context omitted.

> Shame it's being abused by crypto bros who want to treat it as money. Iroh contributor here. I don't know what you are referring to. Iroh is just a library to provide direct QUIC connections between devices, even if they are behind a NAT. We don't have any plans doing a blockchain or an ICO or anything like that. I am not aware of any project called Iroh that is a scam, but if there is, please provide a link here.…

I actually wasn't referring to iroh but rather ipfs / the stratos thing that I mentioned. My only gripe with iroh currently is that its browser wasm feels too much for me/ I don't want to learn rust. So I actually wanted to build something that required connectivity and I used nostr because nostr is great for website and not gonna lie ,its awesome as well (but nostr is also riddled with crypto bros :( )

Haven't used Nostr recently, but isn't it associated with bitcoiners rather than crypto bros? At least it used to be that way.
Post reply on HN