What Is DHT? A Practical Guide to BitTorrent's Distributed Hash Table
Learn how BitTorrent DHT replaces a central tracker with a distributed peer-discovery layer built on Kademlia-style routing.
BT9G / ENGINEERING NOTES
Understand the protocols and systems behind decentralized discovery.
Practical engineering notes on BitTorrent, DHT, metadata exchange, peer discovery and distributed search infrastructure.
01
Learn how BitTorrent DHT replaces a central tracker with a distributed peer-discovery layer built on Kademlia-style routing.
Trace a magnet link from infohash to DHT peer discovery, BEP 10 negotiation, and BEP 9 metadata retrieval.
A reference architecture for BT9G Labs that connects DHT discovery, durable infohash state, metadata acquisition, search indexing, and observability.
02
Learn how BitTorrent DHT replaces a central tracker with a distributed peer-discovery layer built on Kademlia-style routing.
A practical explanation of XOR distance, iterative lookup, parallelism, and k-buckets in Kademlia-style DHT routing.
Follow a complete BitTorrent DHT peer-discovery flow from an empty routing table to a usable peer list.
Understand how BitTorrent content identifiers are calculated and how v1 and v2 hashes appear in magnet links.
A packet-level guide to the core BitTorrent DHT query types defined by BEP 5.
How k-buckets organize DHT contacts, why stable nodes matter, and how routing tables behave under churn.
Why a DHT observer can encounter a huge stream of infohashes, including active, stale, duplicate, and low-quality observations.
A systems-level guide to discovering infohashes from public DHT activity without confusing discovery with metadata acquisition.
Trace a magnet link from infohash to DHT peer discovery, BEP 10 negotiation, and BEP 9 metadata retrieval.
A technical guide to BEP 9 message types, metadata pieces, validation, and crawler implementation details.
Understand the extended handshake, dynamic message IDs, and why BEP 10 is the foundation for features like ut_metadata and PEX.
Compare centralized trackers, decentralized DHT lookups, and peer exchange as complementary ways to discover swarm participants.
Understand seeders, leechers, tracker scrape counters, DHT limitations, and why exact global swarm size is hard to measure.
Diagnose metadata timeouts, dead swarms, unsupported extensions, bad peers, and scheduler mistakes in DHT-based crawlers.
A practical architecture for high-throughput DHT observation with bounded memory, efficient UDP handling, and decoupled metadata workers.
Capacity-plan a metadata pipeline around peer discovery, connection success rates, timeout budgets, and scheduler concurrency.
Design a multi-tier deduplication layer for DHT ingestion using exact keys, Bloom filters, hot caches, and durable state.
Build a retry model that preserves historical hashes, backs off cold swarms, and quickly reactivates when fresh activity appears.
An end-to-end architecture for turning decentralized BitTorrent observations into validated, searchable metadata documents.
A reference architecture for BT9G Labs that connects DHT discovery, durable infohash state, metadata acquisition, search indexing, and observability.