Bittorrent协议如何处理数据块? [英] How does the Bittorrent protocol handle the data chunks?

查看:102
本文介绍了Bittorrent协议如何处理数据块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在bittorrent协议中处理数据块?

How are the data chunks handled within the bittorrent protocol?

当客户端要下载例如linux发行版中,跟踪程序是否返回客户端随后连接并向每个对等方请求块的对等方列表,或者跟踪器是否返回对等方列表以及哪个对等方具有哪些数据的信息?

When a client wants to download e.g. a linux distribution does the tracker return a list of peers which a client then connects to and requests chunks from each peer or does the tracker return a list of peers and info of which peer has what data?

在何处管理或处理数据块我需要块5、6、10,对等点2具有块5、7、8.在哪里控制或管理数据?客户端是否从其他对等方请求块,然后对等方检查它是否具有该块然后发送给它,或者数据流如何工作?

Where is the data chunks managed or handled e.g. I need chunk 5 , 6, 10 and peer 2 has chunk 5, 7, 8. where is the data controlled or managed? Does the client request chunks from the other peers then the peer checks if it has the chunk and then sends it or how does the data flow work?

谢谢

推荐答案

跟踪器提供对等方列表,然后对等方连接并交换块列表.

The tracker provides the list of peers, then the peers connect and swap lists of chunks.

对等方交换BITFIELD消息 最初之后 握手. BITFIELD包含1 对方拥有的件数为0 那些没有的.当一个同龄人 如果所有位都接收到BITFIELD 设置为1,则远程对等体为 种子.通过这种方式同行可以识别 容易播种.

The peers exchange a BITFIELD message immediately after the initial handshake. The BITFIELD contains 1s for pieces the peer has and 0s for those it doesn’t have. When a peer receives the BITFIELD, if all the bits are set to 1, then the remote peer is a seed. This way peers can identify seeds easily.

(来自 http://web.archive.org/web/20041119150847/http://mnl.cs.stonybrook.edu/home/karthik/BitTorrent/Robustness_of_BT.doc )

这篇关于Bittorrent协议如何处理数据块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆