Giter Club home page Giter Club logo

Comments (10)

marten-seemann avatar marten-seemann commented on June 12, 2024 1

Can you post the gossipsub-related question in the gossipsub repo please? And please let me know what insights you get from the BandwidthReporter.

from go-libp2p.

master255 avatar master255 commented on June 12, 2024

I don't think it has anything to do with the DHT. In any case, you can make your own DHT network and have only the traffic that it is necessary for you and your users.

from go-libp2p.

marten-seemann avatar marten-seemann commented on June 12, 2024

Is this internet traffic or does it include local network (e.g. mDNS) traffic?

from go-libp2p.

b00f avatar b00f commented on June 12, 2024

There is no mDNS enabled at those servers (off by default).

from go-libp2p.

marten-seemann avatar marten-seemann commented on June 12, 2024

Can you try enabling the bandwidth counter: https://github.com/libp2p/go-libp2p/blob/master/core/metrics/bandwidth.go? It's accessible via the libp2p.BandwithReporter option, and should allow you to find out which protocol and peer are responsible for the traffic.

from go-libp2p.

b00f avatar b00f commented on June 12, 2024

Thanks for your suggestion. We were not aware oft this option. We will enable it and will share the result here.

However, we tried to reduce the traffic in the latest release through these modifications:

  1. Removing the Signature (64 bytes).
  2. Removing the PID author (38 bytes).
  3. Defining the Message ID as the first 20 bytes of the message hash.
  4. Introducing a new type of node: Node Gossip (experimental).

Node Gossip nodes are a type of node that gossips the message. Meanwhile, non-gossip nodes only consume incoming messages, and they don't broadcast the message. This is experimental, but it appears to be working fine so far.

There are some questions:

  1. In certain situations (like block announcements), consensus nodes might produce the exact message with the exact message ID. We assumed that identical messages emitted by different nodes would be ignored by the network, but it seems that this is not the case. We still observe nodes receiving the same message repeatedly. Any thoughts on this?

  2. It appears that the node gossip sends messages to all nodes, regardless of whether they have the message or not. Is there any way to reduce outgoing traffic? I'm not sure, but maybe using the WithFloodPublish(false) config could help?

from go-libp2p.

github-actions avatar github-actions commented on June 12, 2024

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

from go-libp2p.

b00f avatar b00f commented on June 12, 2024

Unfortunately, we were unable to install the metrics using BandwidthReporter.
I've been told that it didn't reveal any new information.
We apologize if our efforts couldn't be of assistance in this case.

from go-libp2p.

github-actions avatar github-actions commented on June 12, 2024

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

from go-libp2p.

github-actions avatar github-actions commented on June 12, 2024

This issue was closed because it is missing author input.

from go-libp2p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.