DevP2P
Last Updated: November 19, 2026
DevP2P is the set of network protocols that nodes on Ethereum use to find each other and share data directly. It lets execution clients exchange transactions and chain data without relying on a central server.
How It Works
DevP2P has three main parts. Node discovery finds peers over UDP using a Kademlia-style table, starting from a few hardcoded bootnodes. RLPx then opens an encrypted, authenticated TCP session between two nodes. Finally, the two peers agree on the sub-protocols they both support, such as the eth wire protocol for transactions or snap for fast state sync.
Each node is described by an Ethereum Node Record (ENR), a signed record with its public key, IP address and ports. According to ethereum.org, execution clients still use the Discv4 discovery protocol, with an active effort to move to Discv5. The specifications are not tied to one chain, so other networks can reuse them.
DevP2P and the Consensus Layer
Since the Merge in September 2022, an Ethereum node runs two clients. The execution client keeps using DevP2P, mainly to share transactions. The consensus client uses a different stack, libp2p with gossipsub, to spread blocks and attestations. The two clients talk to each other locally through the Engine API, so a full node needs both networking stacks.
Example: The eth Protocol in 2026
The eth wire protocol changes along with network upgrades. The eth protocol specification on GitHub lists eth/72 as the current version when read on November 16, 2026. Recent steps include eth/69 (EIP-7642), which simplified receipts, eth/71 (EIP-8159), which adds block access lists for the Amsterdam fork, and eth/72 (EIP-8070), which relays blob data in smaller cells.
The network built on these protocols is large. On November 16, 2026, Ethernodes listed 5,661 execution layer nodes, the same count cited in the node entry. Each of them uses DevP2P to talk to its peers.
Where to Check It
The protocol specifications live in the ethereum/devp2p repository on GitHub. Client teams such as Geth, Nethermind, Besu, Erigon and Reth publish their own notes on how they implement it. Node trackers such as Ethernodes show how many reachable execution nodes exist and which clients they run. DevP2P is a practical example of a peer-to-peer network design.
Why It Matters
DevP2P keeps the network open. Any node can join, sync and relay transactions without asking permission, which supports the resilience of blockchain systems and reduces the risk of centralized control or failure.
Limits and Risks
An open network has no gatekeeper, so each node must defend itself. Attackers can try eclipse attacks, where they surround a node with their own peers, or flood it with junk messages. Clients limit peer counts, score peers and drop those that misbehave. DevP2P is also not a user-facing interface: wallets reach nodes through RPC endpoints, not through the peer network.
Peer Discovery Step by Step
- A new node starts with a short list of bootnodes built into its client.
- It asks those nodes for other peers and fills its own table with the node records it gets back.
- It opens RLPx connections to some of those peers, with a handshake that sets up encryption.
- Both sides send a Hello message and agree on the sub-protocols they share.
- Under the eth protocol, they exchange a Status message with the network ID, the genesis block and a fork ID.
The fork ID, defined in EIP-2124, is a short checksum of the forks a node has applied. Two nodes on different chains, or on different sides of an upgrade, can spot the mismatch at once and drop the link. This keeps nodes from wasting time on peers that cannot help them sync.
Ports and Peer Limits
Most execution clients listen on port 30303, using TCP for RLPx and UDP for discovery. Operators can change the port. A node behind a home router may need that port forwarded to accept inbound peers, although it can still connect outward without it.
Clients also cap how many peers they keep. Geth’s default limit is 50, for example. More peers can speed up sync and spread transactions faster, but each one uses bandwidth and memory.
Frequently Asked Questions
Is DevP2P the same as libp2p?
No. DevP2P is the networking stack used by Ethereum execution clients, built around discovery, RLPx sessions and sub-protocols such as eth and snap. Libp2p is a separate, modular networking library used by Ethereum consensus clients and many other projects. A full Ethereum node today runs both: DevP2P for transactions on the execution side and libp2p for blocks and attestations.
What does RLPx do?
RLPx sets up and maintains the connection between two DevP2P nodes. It starts with a cryptographic handshake that proves each node’s identity and creates shared keys, so the traffic is encrypted and authenticated. After a hello message, both nodes list the sub-protocols they support and use only the ones they share, such as the eth wire protocol.
Do regular users need to know about DevP2P?
Usually not. Wallet users reach the network through an RPC provider or their own node, and DevP2P works in the background between nodes. It matters mostly if you run a node, because peer counts, open ports and client settings affect how quickly the node syncs and how well it shares transactions with the rest of the network.
What port does DevP2P use?
Most Ethereum execution clients use port 30303 by default, with TCP for RLPx sessions and UDP for node discovery. The port can be changed in the client settings. If a firewall or router blocks it, the node can still make outbound connections, but other nodes cannot reach it, which usually means fewer peers and slower sharing of transactions.
Data sources: ethereum.org networking layer page (last updated October 16, 2026); ethereum/devp2p specifications on GitHub, including the eth protocol change log (read November 16, 2026); EIP-2124 (fork identifier); Geth documentation (default peer limit); Ethernodes execution node count as cited in the node glossary entry (November 16, 2026).