0

I am creating a p2p video chat app using the libjingle/WebRTC code. I would like to collect a copy of these video conversations on our server for users to watch later - but I don't want to suck up too much of the user's bandwidth. Is multicast appropriate for this? I would like the client to be sending one copy of each video packet. At whatever network link is appropriate the packet should be copied and delivered both to the peer and to the server.

From reading about IP Multicast, it seems the packet should have a multicast address as the destination and both receivers subscribe to the multicast address. I can't see how this would work on anything but a LAN.

Perhaps I am approaching this problem from the wrong angle? I don't know if multicast is appropriate.

  • Bandwidth is bandwidth no matter what the underlying protocol used to transmit it is. Thus trying to save bandwidth using a different type of broadcast will not do what you want. – mdpc Mar 28 '13 at 01:34
  • The idea is that the first few hops in the routing (where the user is most bandwidth-constrained) would be a single packet. The packet would split into two only once it had reached less bandwidth-contrained parts. – Bridger Maxwell Mar 28 '13 at 02:59

1 Answers1

1

For multicast to work outside LAN, you need multicast routing, which is slightly tricky to setup, and not all ISPs support multicasting. So, if your application is targeting Internet, then using multicast is bad idea. Maybe try sending video streams through your server, that way you might be able to bypass NAT, though at the expense of added latency.

abbe
  • 356
  • 1
  • 11