Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于BEP-05的问题 #4

Open
ceruleannn opened this issue Dec 18, 2018 · 0 comments
Open

关于BEP-05的问题 #4

ceruleannn opened this issue Dec 18, 2018 · 0 comments

Comments

@ceruleannn
Copy link

很多节点(但不是全部)包括 router.utorrent.com:6881 在使用find_node / get_peers请求返回的是和selfNode最近的n个节点而不是和target / info_hash最近的n个节点 ,请问是怎么回事?

请求数据:
Frame 187: 146 bytes on wire (1168 bits), 146 bytes captured (1168 bits) on interface 0
Ethernet II, Src: AsustekC_64:aa:46 (40:16:7e:64:aa:46), Dst: Netgear_5f:00:3e (2c:30:33:5f:00:3e)
Internet Protocol Version 4, Src: 10.0.0.10, Dst: 82.221.103.244
User Datagram Protocol, Src Port: 24555, Dst Port: 6881
BitTorrent DHT Protocol
Request arguments: Dictionary...
Key: a
Value: Dictionary...
id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f1
Key: id
Value: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f1
info_hash: 1619ecc9373c3639f4ee3e261638f29b33a6cbd6
Key: info_hash
Value: 1619ecc9373c3639f4ee3e261638f29b33a6cbd6
Terminator: e
Request type: get_peers
Key: q
Value: get_peers
Version: 5554af2e
Key: v
Value: 5554af2e
Transaction ID: 0001
Key: t
Value: 0001
Message type: Request
Key: y
Value: q
Terminator: e

响应数据:
Frame 188: 550 bytes on wire (4400 bits), 550 bytes captured (4400 bits) on interface 0
Ethernet II, Src: Netgear_5f:00:3e (2c:30:33:5f:00:3e), Dst: AsustekC_64:aa:46 (40:16:7e:64:aa:46)
Internet Protocol Version 4, Src: 82.221.103.244, Dst: 10.0.0.10
User Datagram Protocol, Src Port: 6881, Dst Port: 24555
BitTorrent DHT Protocol
ip: 74162193e5e6
Key: ip
Value: 74162193e5e6
Response values: Dictionary...
Key: r
Value: Dictionary...
id: 32f54e697351ff4aec29cdbaabf2fbe3467cc267
Key: id
Value: 32f54e697351ff4aec29cdbaabf2fbe3467cc267
nodes: 16
Key: nodes
Value: 16 nodes
Node 1 (id: 8524a14a432e67ff1c2ae6dd056c1a6edd43ecda, IPv4/Port: 102.33.45.249:36833)
Node 2 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837fd, IPv4/Port: 45.213.30.137:20299)
Node 3 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837fe, IPv4/Port: 196.10.253.231:5164)
Node 4 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837ff, IPv4/Port: 194.125.220.15:5480)
Node 5 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f4, IPv4/Port: 223.169.52.15:35721)
Node 6 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f5, IPv4/Port: 5.153.58.29:25143)
Node 7 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f6, IPv4/Port: 149.245.228.4:21576)
Node 8 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f7, IPv4/Port: 217.9.46.53:36191)
Node 9 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f2, IPv4/Port: 124.46.34.67:15287)
Node 10 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f3, IPv4/Port: 177.25.69.192:29819)
Node 11 (id: 5ab8c25bf497cf4fa639d28a4c257a7ddcf837f0, IPv4/Port: 108.125.177.220:20218)
Node 12 (id: 812a63fb182ee2d901681e6ad947e8de8620a54e, IPv4/Port: 191.30.78.22:7625)
Node 13 (id: 82442960f81b2de1da026b1d69da44ebdd8523a6, IPv4/Port: 165.141.59.52:37497)
Node 14 (id: 834c452861f91a2ce0db036a1c68db45eadc8422, IPv4/Port: 82.101.180.23:37184)
Node 15 (id: 84a04b422f66fe1d2be7dc046d1b6fdc42eddb83, IPv4/Port: 186.247.180.71:42902)
Node 16 (id: 8524a14a432e67ff1c2ae6dd056c1a6edd43ecda, IPv4/Port: 102.33.45.249:36833)
token: 0a65bc15
Key: token
Value: 0a65bc15
Terminator: e
Transaction ID: 0001
Key: t
Value: 0001
Version: 4c540011
Key: v
Value: 4c540011
Message type: Response
Key: y
Value: r
Terminator: e

感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant