Hermes #
Hermes is a light-node for libp2p-based networks that can be used to monitor the effectiveness and performance of the GossipSub message propagation protocol. The tool behaves like a light-node in the network, connecting to other participants in the network, relying on a trusted local node that ensures we can reply to any incoming request and maintain stable connections. The tool currently supports any Ethereum network (at the Consensus Layer
), although there might me more networks coming in the future.
Components #
Hermes operates as a single component, the light-node, for each network it is deployed in. However, it has two major requirements to work: 1) a trusted local node that will provide the right view of the chain’s state and 2) an event consumer that will receive all the libp2p traces and will store them. The light-node is responsible for discovering peers, maintain connections with them, and monitor the internal events at the libp2p host.
How does it work? #
Light-node #
Hermes operates like a standard libp2p node, discovering and connecting to the network while supporting all libp2p protocols to ensure reliable and secure communication. It connects to a trusted local, or remote node for certain RPCs that require chain state information, leveraging these trusted sources to enhance its capabilities.
Hermes subscribes to all available GossipSub topics, allowing it to comprehensively receive, unveil and trace all the interactions with the network. This enables the tool to keep track of network activity efficiently.
Additionally, Hermes can submit these traces to any defined consumer, with current support for AWS Kinesis and Xatu from the Ethereum Foundation (EF). This feature facilitates the integration of network data with analytics and monitoring tools, aiding in the overall security and functionality of the network.
What data does Hermes gather? #
As Hermes
maintains stable connections with the rest of the network nodes, it can emit debugging traces of how libp2p and GossipSub work in the wild.
Hermes
gathers the following information from the libp2p host and the GossipSub protocol:
-
Connections and Disconnections from the libp2p host
-
Control GossipSub messages:
-
Subscriptions from other nodes to topics
-
GRAFT and PRUNE control messages
-
GossipSub peer scores
-
IHAVE and IWANT control messages
-
-
Sent and received messages
-
Protoco RPCs
Deployment #
Hermes
has been developed with the intention of leaving it running for an indefinite time duration. If you are interested in the data from other networks, reach out to us through any of the channels listed at the Contact page.
Contributing #
Feel free to head over to the GitHub repository and dive in! Open an issue or submit PRs.
GitHub