RTP 是否适合将数据文件传送给多个收件人?
我需要将文件从单个集中源传输到数百台客户端计算机。我们目前使用 UDPCast 来做这类事情,但正在寻找更多基于标准的方法来解决问题。
我一直在阅读 RTP RFC (1889),并注意到该协议主要是为向多个客户端传输流媒体(音频和/或视频)而开发的。我突然想到,也许它也能满足我对文件传输的需求。
当然,我需要能够确保每个客户端都收到我发送的文件的所有“块”。
RTP适合传输数据文件吗? RTCP 可用于确保所有客户端都收到发送的所有数据吗?
任何指导将不胜感激。
I have a need to transfer files from a single, centralized source to a several hundred client machines. We currently use UDPCast to do this sort of thing, but are looking for more of a standards based approach to solving the problem.
I have been reading through the RTP RFC (1889) and notice that the protocol was primarily developed for streaming media (audio and/or video) to multiple clients. It occurred to me that it might also satisfy my needs for file transfer as well.
Of course, I would need to be able to ensure that all "blocks" of the file that I'm sending are received by each client.
Is RTP suitable for transfer of data files? Can RTCP be used to make sure that all clients receive all of the data that was sent?
Any guidance would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RTP 并不是直接为可靠的块传输而设计的。虽然您可以在其顶部添加一些东西,以使用 RTP 作为底层来实现可靠的传输协议,但这就像在圆孔中塞入一个方钉。
文件传输协议有很多;您可能应该查看类似 Bittorrent 协议或其子集的协议,因为您显然不需要点对点协议(但如果需要,您可以将其用作一对多协议)。
RTP is not directly designed for reliable block transfer. While you can shoehorn stuff on top of it to implement a reliable transfer protocol using RTP as a lower layer, this is stuffing a square peg in a round hole.
File transfer protocols exist in abundance; you should probably look at something like the Bittorrent protocol, or a subset of it since you apparently don't need peer-to-peer (but you can use it as a one-to-many protocol if you want).