Questions tagged [devp2p]

Questions about devp2p, the secure networking suite used by Ethereum.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Ethereum network on TCP vs QUIC protocol (UDP-based) on data transferring

I'm new to the Geth p2p network (devp2p). Devp2p uses both TCP and UDP to run it's networking protocol. The TCP is for the data transferring between each node and the UDP is for nodes discovery. I ...
0 votes
0 answers
282 views

Node not connecting to static/trusted peers etherum geth [ public network ]

I followed all the steps of adding trusted and static peers: Manually adding the peers to configuration file config.toml Using addTrustedPeers and addPeers of the geth console set the --nodiscover ...
0 votes
0 answers
39 views

Querying for Ethereum nodes (like how ethernodes.org does it)

I'm wondering how https://ethernodes.org/nodes works on the backend. Did they just have a script using devp2p discovery.py (https://github.com/ethereum/pydevp2p/blob/develop/devp2p/discovery.py) or ...
0 votes
1 answer
21 views

Understanding how different networks work on a technical level

This is a weird question so bare with me: Assume I purchased some ETH from Coinbase and want to send it to a private wallet This basically means that Coinbase, as a CEX, provided my off-chain ...
0 votes
0 answers
33 views

Possibility of spoofing miners in Ethereum

Ethereum uses node IDs to identify nodes uniquely and to route traffic between nodes based on the node discovery protocol (https://github.com/ethereum/devp2p/blob/master/discv4.md) built on Kademlia-...
8 votes
1 answer
1k views

How does Ethereum client select which peers to synchronise with?

On start up the discovery protocol uses a Kademlia style approach to find peers. Thus we obtain a local routing table which holds the (IP address, UDP port, and node ID) of some online and alive peers....
28 votes
2 answers
10k views

What are the peer discovery mechanisms involved in Ethereum?

There are several implementations of Ethereum clients. How do these clients find each other? What are the algorithms and peer-to-peer protocols involved in this peer discovery process?
5 votes
1 answer
332 views

DEVp2p Wire Protocol tutorial on geth or Web3.js/Web3.py

I was looking to develop an application using ÐΞVp2p Wire Protocol and I'm having trouble finding an example or tutorial. I was able to find only ÐΞVp2p Wire Protocol's wiki. [Q] Does anybody has a ...
1 vote
0 answers
65 views

Ethereum peer to peer load balancer

Is there any existing TCP load balancer product that is enode aware?
2 votes
1 answer
156 views

What is the network layer in which RLPx is used for peering in Ethereum

We had a question from our client as such they need to know in which Network layer is the RLPx protocol being used for the peering process I have got to know that peering process happens using RLPx ...
1 vote
1 answer
115 views

What is rpc and p2p code for Ethereum token? What to give as GitHub source code of an Ethereum token in exchange?

I’m new to Ethereum development. From ethereum token docs I came to know the process of deploying the token. But at some exchanges they ask for RPC and P2P port as well as the github source of the ...
35 votes
3 answers
8k views

What is the distinction between libp2p, devp2p and RLPx?

What is the distinction between libp2p and devp2p? Do they refer to the same thing? How are they related to RLPx? In the libp2p whitepaper, dated Nov 2014, they appear to be the same thing: libp2p ...
3 votes
1 answer
153 views

Best Discovery Protocol implementation

Do you guys know an easy Discovery Protocol implementation that is not deprecated and is powerful enough. I've checked some, but all of them are not suitable for my task (reasons below). Checked ...
2 votes
0 answers
38 views

Re-Sync with same enodeId

Is there any benefit or detriment to keeping the same endodeId by maintaining the keystore when performing a fresh sync on an otherwise already in sync node? By maintaining the endodeId does it ...
3 votes
0 answers
167 views

How to get node info by 30303 port?

I need to create something like ethernodes.org or etherscan.io/nodetracker. First of all, I tried to implement Discovery Protocol by own, but after couple of minutes I realized that specs are too hard ...
4 votes
0 answers
361 views

Relationship between TCP, RLPx transport protocol and subprotocol packet

I'm currently trying to understand the structure of the rlpx transport protocol messages, so I depicted these scheme, based on my understanding of the description of the single frame packet at this ...
3 votes
2 answers
2k views

How to post to the blockchain without a third party API like infura

I have been using web3 nodejs and infura.io to build apps that interact w/ the Ethereum Blockchain and it is all great but I don't like the idea of a failure point my my apps because they rely on a ...
4 votes
1 answer
452 views

LibP2P v DevP2P

Why is are new projects (ETH 2.0, Polkadot (Substrate) ) favouring Libp2p over DevP2P? I have seen this answer, but it doesnt really drawn strict comparisons. What is the distinction between libp2p, ...
1 vote
0 answers
85 views

RLPx - Capability Messaging

I am currently having a look into the RLPx protocol and trying to understand on how two nodes exchange their capabilities. Each subprotocol has a number of defined messages. eth has 12 messages (ids ...
2 votes
1 answer
977 views

RLPx Handshake vs DevP2P Hello Message

I'm trying to understand the algorithms underlying the ethereum overlay network and how do the peers communicate between each other. By looking around I arrived finally to the RLPx and devp2p ...
7 votes
2 answers
956 views

How does reputation work in the Ethereum P2P network?

Nodes in the Ethereum P2P network assign their peers reputation in order to keep track of how well they behaved in the past and evaluate whether it would be preferable to disconnect from them. What ...
3 votes
2 answers
379 views

ÐΞVp2p / DApps - why is it in "Ð" not "D"? Any special significance of using Ð?

ÐΞVp2p / DApps - why is it in "Ð" not "D"? Any special significance with using Ð instead of the normal D?
0 votes
1 answer
361 views

How does a program determine if the peer node is a bootnode or full node?

Looking at the DEVp2p protocol, I see that a peer can return info on capabilities ETH or SHH . I do not see in the protocol docs what those mean. How does a client discover if the peer is only ...
0 votes
1 answer
263 views

What is the different between P2P server and Node?

I checked go-ethereum code and I see 2 files: /go-ethereum/p2p/server.go: type Server struct { // Config fields may not be modified while the server is running. Config // Hooks for ...
1 vote
1 answer
408 views

What happens to a transaction after you clicked 'send' in Ethereum network?[Transaction life cycle at the EVM and P2P networking level]?

Ref: What happens when you type in an URL in the browser So in a web browser, it's kinda easy to reason the life cycle of an HTTP request, how it moves down the network stack, reach the server, get ...
3 votes
1 answer
564 views

geth inter-node communication (devp2p/rlpx) encryption

I am currently analysing the encryption mechanisms used in geth. Currently I have gathered the following information from the source code (https://github.com/ethereum/go-ethereum/blob/master/p2p/rlpx....
15 votes
1 answer
9k views

How many transactions per second can Ethereum currently handle? What changes will allow the network to be able to handle more? [duplicate]

I've been searching for a more precise answer to this question, but I've seen a lot of conflicting information stating that Ethereum can currently handle anywhere from 12-45 transactions per second. ...
5 votes
0 answers
189 views

Why aren't bootnodes responding to my ping?

I have impemented custom Ethereum node and I've been trying to ping bootnodes, but sometime in the past three months they stopped responding to me. The specific bootnode I've been trying to ping is ...
3 votes
2 answers
305 views

devp2p protocol: support for data compression?

I am just wondering if the devp2p protocol, which is used for node to node communication, has support for data compression? I am asking this, because it could be useful for faster block propagation ...
4 votes
1 answer
273 views

How whisper messages being routed in Ethereum Network?

Does the Whisper messages are broadcasted to all Ethereum nodes? or is there any internal routing, if yes how?
3 votes
0 answers
419 views

How to simulate p2p network for blockchain systems?

I am wondering how to build a simulator to simulate P2P network for blockchain such as Bitcoin or Ethereum. Specifcally, how to simulate transaction processing and propogation. Also, the same thing ...
6 votes
2 answers
5k views

What's limiting my peer count?

I see on ethstats that some node are connected to 100, or even 500+ peers. I figured I'd try to increase my peer counts, e.g., in the hope of getting blocks and transactions broadcasted more widely ...
7 votes
1 answer
1k views

What underlying protocols are used to send packets between nodes, and how are messages encrypted?

In Ethereum, when we make transactions, which underlying protocol is used to send the packages over the network? And another question, are those messages are encrypted or not? TCP, UDP, others? All? ...
0 votes
1 answer
101 views

How does it the geth ethereum platform to automatically connect to the nodes that are in the main network of Ethereum?

I have tried to make connection between several nodes in my private network, but I do it with a enode direction, but Ethereum network does it without knowing my enode, I want to know what kind of p2p ...
7 votes
1 answer
664 views

Ethereum network messaging

I am trying to "join the dots" around the networking aspect of Ethereum. From the documents, it seems, the underlying protocol is RLPx that powers the ÐΞVp2p Wire Protocol. Though TCP provides a ...
5 votes
1 answer
680 views

Why does java Ethereum use UDP? - isn't devp2p TCP only

Looking through the source code for java ethereum I see UDPListener is part of the org.ethereum.net.rlpx.discover package and that this seems to use NioDatagramChannel (Netty's way of handling UDP ...
3 votes
1 answer
1k views

Is Geth nodiscovery mode redundant behind a firewall without port forwarding

I'm trying to understand the peer discovery process, especially for a private network with majority of the nodes having dynamic IP addresses and behind typical wifi router firewall. If I run a Geth ...
1 vote
0 answers
442 views

Why nodes are not discovering each other in my private network?

I have created a private network with my own Genesis file. My private network has totally 4 systems(1 bootnode and other 3 are nodes). I am running the bootnode in v4 using these two commands. ...
3 votes
0 answers
53 views

DEVP2P character encoding - please clarify 'ASCII'

Please can someone clarify if DEVP2P wire protocol specifies byte-sized 7 bit encoding when it refers to 'ASCII'? i.e. 3 bytes
2 votes
2 answers
317 views

Classification of the information flows and protocols within the Ethereum platform

I've been attempting to classify the information flows and protocols within the Ethereum system. To do this, I extended the OSI model to include 4 extra layers: consensus (the algorithm by which ...
2 votes
1 answer
2k views

What geth command options have been depreciated/removed?

I'm looking at this tutorial. It includes this line: geth --genesis %PATH%/Ethereum/testnet/genesisblock.json --datadir %SAME_PATH%/Ethereum/stateinfo --networkid 1234 --nodiscover console As I ...
5 votes
1 answer
755 views

How do the protocols used in Ethereum (e.g. Whisper, P2P protocol suite) map onto the OSI model?

It would be useful to have a mapping of all of the protocols involved with the Ethereum implementations on to the OSI model (or equivalent). The protocols might include: Whisper, devP2P, IPC, RPC, ...
5 votes
1 answer
416 views

Differences between RLPx v3 and v4

I'm working on an implementation of a blockchain reader that will be operating in a limited environment; as such, I can't use any of the regular implementations. I'm running into issues with ...
14 votes
1 answer
2k views

At any given time, how many nodes is my node connected to? As the number of nodes in the network increases, will communication between them be faster?

I have been reading through the DEVp2p documentation and cannot seem to wrap my head around some aspects of the network. Specifically, how many nodes is my node connected to? Does this number change ...