This repo contains a set of network protocol dissectors for Ethereum that you can load into the widely popular Wireshark to begin inspecting Ethereum traffic.
Currently we support the UDP-based discovery protocol, but support for the RLPx Wire protocol and the ETH subprotocol are in the works.
Here are the features currently supported by the Ethereum Discovery dissector (we're working on more):
PING
, PONG
, FIND_NODE
and NODES
packet, breaking the messages into its elements, with the appropriate datatypes.PING
=> PONG
frames, as well as FIND_NODE
=> NODES
interactions in protocol trees.Protocol | Version | Status | Notes |
---|---|---|---|
discovery | v4 | ✅ | |
discovery | v5 | ? | v5 is work-in-progress in clients. Refer to issues and PRs labelled discv5. |
wire | v1 | ? | wip branch: devp2p-wire |
We're working to enable building the plugin separately from Wireshark. In the meantime, you will need to clone the Wireshark repo.
cmake
and ninja
. On macOS, you can run brew install cmake ninja
if you use Homebrew.$ cd ${WIRESHARK_SRC}
$ # check out the latest 2.6 tag (could be higher)
$ git checkout wireshark-2.6.2
$ mkdir ../wireshark-ninja
$ cd ../wireshark-ninja
$ cmake -G Ninja ../wireshark
$ ninja
${WIRESHARK_SRC}/plugins/epan/ethereum
, i.e. ln -s ${THIS_REPO} ${WIRESHARK_SRC}/plugins/epan/ethereum
.${WIRESHARK_SRC}/CMakeLists.txt
file to add the plugins/epan/ethereum
directory under the PLUGIN_SRC_DIRS
variable, i.e.: ...
set(PLUGIN_SRC_DIRS
plugins/epan/ethercat
plugins/epan/ethereum
plugins/epan/gryphon
...
wireshark-ninja
, and run the full Wireshark build again repeating step 3.wireshark-ninja/run
directory.Ordered alphabetically by surname.
In the Protocol Engineering Groups and Systems team (PegaSys) at ConsenSys, we specialise in the low-level, deep aspects of the Ethereum technology. Some of the challenges we tackle are: scalability, secrecy, modularity, finality, permissioning, etc.
To perform our job we need tooling to x-ray into different parts of the system. One of those parts is the networking layer. No central authority exists in public chain Ethereum, hence all communication is peer-to-peer (P2P), which gives rise to both RPC-style and gossip-like communication patterns we need full insight of during development, research and testing.
devp2p is the name of the networking subsystem of Ethereum, along with its collection of core protocols on top of which subprotocols like ETH, Whisper, Swarm, Light Ethereum, etc. are layered.
Wireshark is a popular tool for network packet analysis. Users can initiate network dumps and navigate through a wealth of packet data via its powerful GUI. The architecture of Wireshark is modular, and it revolves around the concept of dissectors: components capable of decoding a concrete protocol, which can be in use at any layer of the OSI model.
Unfortunately no Wireshark dissectors exist yet for Ethereum devp2p protocols. This project changes that.
PegaSys’ mission is to build blockchain solutions ready for production in business environments. We are committed to open source, and are creating a framework for collaborative innovation for the public-chain community and leading enterprises.
Our team is composed of engineers leading in the areas of big data processing, applied cryptography, open source computing, cloud services, and blockchain development.
Learn more about PegaSys.
This project is licensed under GPLv2.