BitTorrent 支持部分传输吗?
BitTorrent 协议可以指定首先要文件的前 3% 或前 5% 吗? 如果没有,添加这样的支持是否会是对协议的改进?
更新:所以我想,如果它是协议的一部分,为什么很多客户端不使用它? 10分钟后,文件完成了10%,但通常你连1%的内容都无法预览...(看运气)
Can the BitTorrent protocol specify wanting the first 3% or first 5% of the file first? If not, would adding such support be an improvement to the protocol?
Update: so i guess, if it is part of the protocol, why the many clients out there do not use it? After 10 minutes, 10% of the file is done, but usually you cannot even preview 1% of the content... (depends on luck)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Azureus 可以选择首先获取文件的第一个和最后一个块。 但它并不是 100% 可靠,因为您无法控制哪个对等点将开始发送数据。
请参阅此处的协议规范,具体来说:
所以是的,您可以请求特定的块(甚至是它的一部分)。 这样就可以准确地请求文件的前 3% 或 5%,而与块大小无关。
Azureus has an option to get the first and last blocks of a file, first. But it's not 100% reliable since you can't control which peer will start to send data, frist.
See here for the protocol spec, specifically:
So yes, you can ask for a specific block (even a part of it). That should make it possible to request exactly the first 3% or 5% of a file, independent of the block size.
Bittorrent 协议是围绕稀缺性而设计的:首先分发最稀有的块,以降低在对等点群中不再拥有所有块的可能性。 因为这将导致无法获取整个文件。
The Bittorrent protocol is designed around scarcity: the rarest chunks are distributed first, to decrease the likeliness of no longer having all chunks in the swarm of peers. Because that would make it impossible to get the entire file.
BitTorrent 作为协议的目的不是用于流媒体,其目的是尽最大努力保持所有感兴趣的数据始终可靠可用。 将其用于媒体流传输实际上与 BitTorrent 的目标适得其反。
如果您不清楚为什么会出现这种情况,我建议您选择 Tanenbaum 的计算机网络 在你继续之前。
BitTorrent's purpose as a protocol is not for streaming media, its purpose is to make a best effort at keeping all data of interest reliably available at all times. Using it for media streaming purposes is actually counterproductive to BitTorrent's goal.
If it's not obvious to you why this is the case, I suggest picking up Computer Networks by Tanenbaum before you go any further.
是的,这是由 torrent 协议支持的,例如 ktorrent 使用它来提供不同文件类型(例如 mp3、avi 甚至 pdf)的预览块。
Yes, this is supported by the torrent protocol, ktorrent for example uses it to provide preview chunks for different file types (e.g. mp3, avi or even pdf).
这是因为客户端没有按顺序下载文件(从而导致传输失败)当您有很多同行时效率更高,每个人都有文件的不同部分)
This is because the client doesn't download the file in order (so that the transfer is more efficient when you've got lot's of peers, each one has a different part of the file)