Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

DevP2P

1 min read
Pronunciation
[dev‑peer‑to‑peer]
Analogy
DevP2P is like a postal system exclusively for Ethereum nodes, defining how letters (blocks, transactions) are addressed, routed, and delivered across the network.
Definition
Ethereum’s native peer‑to‑peer networking protocol that handles peer discovery, message routing, and sub‑protocol multiplexing.
Key Points Intro
DevP2P underpins Ethereum networking via:
Key Points

Node discovery: Kademlia‑based DHT for finding peers.

RLPx transport: Encrypted and multiplexed channels over TCP.

Subprotocols: eth/, les/, snap/ for specific message types.

Peer scoring: Maintains connection quality and reputation.

Example
When an Ethereum node starts, it uses DevP2P’s discovery protocol to find bootstrap nodes, establishes RLPx sessions, and negotiates the eth/66 subprotocol to sync blocks.
Technical Deep Dive
DevP2P uses UDP for discovery (discv4/discv5) Kademlia DHT. Connections use RLPx: an encrypted handshake (ECDH + MAC), then multiplexed streams. Each subprotocol defines its own message codes and state machines. Nodes maintain peer tables with buckets organized by XOR distance.
Security Warning
Malicious peers can attempt Eclipse attacks; run multiple trusted bootstrap nodes and use peer rotation.
Caveat
Discovery v4 is susceptible to node ID enumeration; consider discv5 for enhanced privacy.

DevP2P - Related Articles

No related articles for this term.