BitTorrent 支持部分传输吗?

发布于 2024-07-21 15:37:45 字数 170 浏览 10 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

我不咬妳我踢妳 2024-07-28 15:37:45

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:

request:

The request message is fixed length, and is used to request a block. The payload contains the following information:

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.

花海 2024-07-28 15:37:45

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.

南汐寒笙箫 2024-07-28 15:37:45

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.

花开半夏魅人心 2024-07-28 15:37:45

是的,这是由 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).

浅笑轻吟梦一曲 2024-07-28 15:37:45

10分钟后,文件完成了10%,但通常你连1%的内容都无法预览...(看运气)

这是因为客户端没有按顺序下载文件(从而导致传输失败)当您有很多同行时效率更高,每个人都有文件的不同部分)

After 10 minutes, 10% of the file is done, but usually you cannot even preview 1% of the content... (depends on luck)

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文