Mainline DHT unspecified entry in bencoded dictionary

微笑、不失礼 提交于 2019-12-24 10:36:56

问题


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.

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"}

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

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


回答1:


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

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

Other possible values are:

  • "Az" - Azureus (or Vuze)
  • "LT" - libtorrent (rasterbar)
  • "MP" - MooPolice
  • "GR" - GetRight
  • "MO" - Monotorrent


来源:https://stackoverflow.com/questions/9343828/mainline-dht-unspecified-entry-in-bencoded-dictionary

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!