本线字典中的主线DHT未指定条目 [英] Mainline DHT unspecified entry in bencoded dictionary

查看:76
本文介绍了本线字典中的主线DHT未指定条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在BitTorrent生成的DHT流量的本字典中找到了一个条目,我不理解,也无法在

I have found an entry in a bencoded dictionary in DHT traffic, generated by BitTorrent, which I do not understand, nor can find anything about in the DHT specification at http://bittorrent.org/beps/bep_0005.html.

使用wireshark进行数据包查询和响应的示例:

Example of packet query and response with wireshark:

query = {"a":{"id":".=...4...R..%..s~..;"}, "q":"ping", "t":"..oo", "v":"UThK", "y":"q"}
response = {"r":{"id":"..=..x......o....w/%"}, "t":"..oo", "v":"UT..", "y":"r"}

完整的十六进制转储可以在这里找到: http://pastebin.com/SMB4f8LR .

full hex dump can be found here: http://pastebin.com/SMB4f8LR.

此示例中的条目是查询中的"v":"UThK"和响应中的"v":"UT..". 它的目的是什么?

The entry in this example is the "v":"UThK" in the query and "v":"UT.." in the response. What is its purpose?

推荐答案

v字段是可选的,指示哪个客户端和版本正在运行DHT节点.

The v field is optional and indicates which client and version is running the DHT node.

以"UT"开头的是uTorrent,后跟一个字节指示主要版本,另一个字节指示次要版本.

The ones that start with "UT" is uTorrent, followed by one byte indicating the major version and another byte for minor version.

其他可能的值是:

  • "Az"-Azureus(或Vuze)
  • "LT"-libtorrent(光栅栏)
  • "MP"-MooPolice
  • "GR"-GetRight
  • "MO"-Monotorrent

这篇关于本线字典中的主线DHT未指定条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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