bittorrent-codex-docs/10 Notes/BEP5 - DHT Protocol.md
2024-11-11 02:49:08 +07:00

23 lines
939 B
Markdown

---
tags:
- bittorrent
- dht
link: http://bittorrent.org/beps/bep_0005.html
related-to:
- "[[BitTorrent DHT clarifications]]"
- "[[Learn BitTorrent]]"
- "[[Protocol v1 clarifications]]"
---
#bittorrent #dht
| link | http://bittorrent.org/beps/bep_0005.html |
| ---------- | --------------------------------------------------------------------------------------- |
| related-to | [[BitTorrent DHT clarifications]], [[Learn BitTorrent]], [[Protocol v1 clarifications]] |
For the DHT protocol, there are four **queries**:
- [[ping]]: to check if another node (one from its DHT routing table) is online and reachable,
- `find_node`: find the contact information for a node given its ID,
- `get_peers`: get peers associated with a torrent [[Infohash|infohash]],
- `announce_peer`: to *announce* that the peer, controlling the querying node, is downloading a torrent on a port.