BT protocl 集中式与分布式应用实例分析
2011-09-09 16:16
169 查看
1、集中方式
GET /announce?info_hash=%0cn%ba%3d%c7%d4u%bb%82%d4%28%b6%00_%be~F%cebr&peer_id=-UT2210-%d6b%b90l%14%e1%0d%ee%db%5e%2f&port=24573&uploaded=0&downloaded=0&left=8712977&corrupt=0&key=9A34E9B9&event=started&numwant=200&compact=1&no_peer_id=1&ipv6=3333%3a%3a1%3abd23%3aca90%3a9989%3a4826
HTTP/1.1
Host: 58.251.159.101:8080
User-Agent: uTorrent/2210(25302)
Accept-Encoding: gzip
Connection: Close
HTTP/1.1 200 OK
Connection: close
Content-Length: 90
d8:intervali435e5:peers18::..c_.:..e..:..c`.17:tracker_alias_urll20:udp://:8080/announceee
0070 64 38 3a 69 6e 74 65 72 76 61 6c 69 34 36 35 65 d8:inter vali465e
0080 35 3a 70 65 65 72 73 31 38 3a 3a fb 9f 63 5f fd 5:peers1 8::..c_.
0090 3a fb 9f 65 82 91 3a fb 9f 63 60 01 31 37 3a 74 :..e..:. .c`.17:t
00a0 72 61 63 6b 65 72 5f 61 6c 69 61 73 5f 75 72 6c racker_a lias_url
00b0 6c 32 30 3a 75 64 70 3a 2f 2f 3a 38 30 38 30 2f l20:udp: //:8080/
00c0 61 6e 6e 6f 75 6e 63 65 65 65 announce ee
Peer信息如下:
3a fb 9f 63 5f fd
58 251 159 99 24573
3a fb 9f 65 82 91
58 251 159 130 33425
3a fb 9f 63 60 01
58 251 159 99 24577
2、分布式
p1-p2 ping p1id
p2-p1 R p2id
p1-p2 findnodes p2id
p2-p1 R p2id nodes(离p2最近的节点值)
p1-nodes get_peers infohash
nodes-p1 R p2id nodes(离p2最近的节点值) 或Values(peers信息)
p1和peer连接下载文件
相关文章推荐
- JavaScript高级函数应用之分时函数实例分析
- 医疗健康大数据: 应用实例与系统分析(转)
- 证书的应用之一 —— TCP&SSL通信实例及协议分析(上)
- oracle分析函数row_number的实例应用
- 数据挖掘技术在信用卡业务中的应用及实例分析
- JPEG 原理详细实例分析及其在嵌入式 Linux 中的应用
- Dubbo框架应用之(四)--Dubbo基于Zookeeper实现分布式实例
- cmos图像传感器应用实例及其发展趋势分析
- SIP 数据包分析与应用实例
- 大神带你分分钟超越最好结果——基于分布式CPU计算的Deeplearning4j迁移学习应用实例
- 证书的应用之一 —— TCP&SSL通信实例及协议分析(中)
- 网络分析软件应用实例:ARP病毒爆发了 谁干的?
- 【转载】MySQL 外部XA及其在分布式事务中的应用分析
- 关于x86系统中“大小端”在C++中的应用实例分析
- JPEG 原理详细实例分析及其在嵌入式 Linux 中的应用
- JavaScript 事件冒泡应用实例分析
- cjson介绍-应用-实例-源码分析
- iPhone企业应用实例分析之三:程序框架分析
- 证书的应用之一 —— TCP&SSL通信实例及协议分析(中)