Top
Best
New

Posted by memet_rush 4/14/2025

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

I've been wondering if anyone knows why there is no P2P protocol for mass live stream content in decent quality? specifically what are the technical limitations or is it mostly that people don't want to get destroyed by media company lawyers? I've searched around for a while and i cant find anything like that that can handle thousands of people streaming. The closest is probably Webrtc and that looks like it can only handle 500~ peers.

I was thinking most people nowaday have at least 30mbps upload and a 1080p stream only needs ~10mbps and 720p needs ~5ish. Also i think it wouldnt have to be live, people would definitely not mind some amount of lag. I was thinking the big O for packets propagating out in the network should be Log(N) since if a master is sharing the content then is connected to 10 slaves, then those connected to 10 other slaves and so on.

The other limitation I could think of is prioritizing who gets the packets first since there's a lot of people with 1gbs connections or >10mbps connections. Also deprioritizing leechers to keep it from degrading the stream.

Does anyone have knowledge on why it isn't a thing still though? it's super easy to find streams on websites but they're all 360p or barely load. I saw the original creator of bittorrent was creating something like this over 10 years ago and seems to be a dead project. Also this is ignoring the huge time commitment it would take to program something like this. I want to know if this is technically possible to have streams of lets say 100,000 people and why or why not.

Just some thoughts, thanks in advance!

236 points | 223 commentspage 5
silcoon 4/15/2025|
Have you checked out webtorrents? You can download movies from the P2P network sequentially and so watch them while they download.
Saris 4/16/2025||
Peertube does P2P for both static videos and livestreams: https://docs.joinpeertube.org/

But the reality is for 99% of people Youtube and Twitch work just fine.

Plus most residential ISPs have really poor upload speed, and very restrictive data caps.

mikhailbolton 4/15/2025||
BitTorrent Live did this, too:

https://www.bittorrent.com/blog/2016/05/17/bittorrent-live-m...

jkhanlar 4/15/2025|
yep, I was surprised nobody mentioned Bram Cohen's name yet. It was the first thing I thought of. Also see https://wiki.p2pfoundation.net/BitTorrent_Live
greenavocado 4/14/2025||
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).
globular-toast 4/15/2025||
Why Tailscale? Are you aware of IPv6?
jeroenhd 4/15/2025|||
AFAIK IPv6 multicast across the internet is pretty much dead. ISPs seem to block it because of its DDoS potential. They use it themselves of course (very useful for streaming live TV across their private VLANs) but as an outsider you'll have to convince every ISP and backbone provider to trust your multicast stream, which they probably won't.

Tailscale (or any other P2P overlay network) could solve this problem by re-enabling the multicast support that most ISPs block. It's not a terrible idea.

Edit: a comment elsewhere linked https://www.librecast.net/librecast.html which seems to be doing exactly this.

greenavocado 4/15/2025|||
Transit and peering agreements between ISPs typically exclude multicast, meaning packets are dropped at network boundaries.
Tepix 4/15/2025||
Why do you think so?
nayuki 4/15/2025||
From a decade ago, I remember the Chinese-made PPLive software which distributes pirated TV streams through your peer-to-peer client software. https://en.wikipedia.org/wiki/PPTV
Calwestjobs 4/15/2025||
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 category then downloading. There is no other reason for torrent PROTOCOL to not deliver file pieces in sequential order.

if you need instant nanosecond delayed stream, those does not exist anywhere, even radio, tv stations over the air are delayed so they all transmit synchronized. so 0 latency and synchronized can be mistaken for each other.

_flux 4/15/2025||
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.

extraduder_ire 4/15/2025|||
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.

Calwestjobs 4/15/2025|||
what chunk is transmitted when, is not important technically, (programatically, it is doable, i do not know how to call that properly)

it is ONLY important when you need to not have people (SWARM) finishing downloading of torrent then closing torrent client app and not sending data chunks to next person.

BUT everyone is saying it is stream and has to be instant showing of picture/video.

so i do not understand why all those people in other comments are caring about state of swarm if we do have thousands people watching and everybody is saying there are big amounts of people watching but still caring about swarm..

(swarm thing is important with normal use case of BitTorrent, irrelevant for streaming)

i understand what they are saying, they do not understand that they are saying nonsense.

ValdikSS 4/15/2025||
The OP by live streaming means broadcasting, as in live event.
kevinmhickey 4/15/2025||
The degree of difficulty for building this is the premise of the 2001 movie Antitrust from back in the old days when Microsoft was evil. Notable as one of the first movies to use Linux desktops and reasonably correct shell script and code in all of their screen shots.
ramesh31 4/15/2025||
There are plenty. The problem is that it's pointless and far less effective. Centralized servers work great. The only viable reason for P2P we have found over the last 20 years seems to be illicit activity. Everyone else is just fine with regular servers.
dp-hackernews 4/14/2025||
Isn't that what multicast is for?
wmf 4/14/2025||
Multicast doesn't work on the Internet.
rapnie 4/15/2025|||
You might have a look at Librecast [0] which is a R&D project funded by Horizons Europe NGI0 programme via NLnet, aiming to the bring multicast to the current unicast internet and smoothen the transition of projects that adopt it. A great intro to multicast and Librecast is given in Brett Sheffield's 2020 LinuxConfAU talk "Privacy and Decentralization with Multicast" that is available on Peertube [1].

> To enable multicast on the unicast Internet we start by building an encrypted overlay network using point-to-point links between participating nodes. Once established, our overlay network can run whatever protocols we require, unimpeded by routers and middleboxes and which is resistant to interception, interference and netblocks.

[0] https://www.librecast.net/librecast-strategy-2025.html

[1] https://spectra.video/w/9cBGzMceGAjVfw4eFV78D2

jeroenhd 4/15/2025||
The protocol seems like an excellent idea, but #3365a3 on black for the website text is one of the worst designs for open-source project websites I've seen yet.

Off-topic but I'm impressed with how many potentially revolutionary projects get funding from NLNet.

Lammy 4/14/2025|||
https://en.wikipedia.org/wiki/Mbone
wmf 4/14/2025||
Mbone was fake multicast (today you'd be better off using a CDN) and I don't know if it's still operating.
protocolture 4/15/2025|||
I had a teacher in uni who was fairly convinced that some kind of intelligent multicast was the solution here.

But after working in ISP for a while I realised that the issue is getting ISP's to use cool protocols is just impossible and everything must be built at higher levels.

memet_rush 4/14/2025||
i guess but im thinking like multicast with the people sharing like bittorrent, just live. so you'd need to factor in people leaving and people leeching
dp-hackernews 4/14/2025||
So a multicast like derivative that is peer aware and can redistribute locally any available parts - which would require some sort of caching, which would probably break copyright etc... So perhaps that's the reason why nothing exists. \o/
giorgioz 4/15/2025|
There are streaming platforms built on top of BitTorrent like Streamio with the torrents plugins
More comments...