question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add indicators for bitswap status: which peers

See original GitHub issue

It would be nice to be able to see which peers we are exchanging data with. We can get this information with ipfs bitswap stat and ipfs bitswap ledger.

Context: https://github.com/ipfs/go-ipfs/issues/3330.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lidelcommented, Aug 25, 2020

@jessicaschilling fysa we are able to tell how much data was sent / received per peer historically, and “at the moment”.

  • Perhaps we could display RateIn / RateOut next to the green dot? (or on hover, like we do for Connection column)
    • It is useful to know if peer’s transfer is a little droplet, or a river
  • Should we also display TotalIn / TotalOut for peers which don’t have green dot, but have those values above zero?
  • (loose thought) by comparing In/Out we are able to tell the dominant direction of the data flow, perhaps we could reuse In/Out colors from bandwidth graph on Status page?

Some examples below, for your reference.

Stat source examples

Realtime stats per peer

(we use ipfs stats bw for bandwidth graph on Status page, but we don’t filter per peer, just get global stats)

$ ipfs stats bw -p QmPeer1
Bandwidth
TotalIn: 207 kB
TotalOut: 940 kB
RateIn: 0 B/s
RateOut: 0 B/s

Historical stats

ipfs bitswap ledger keeps track of past transfers, most numbers will overlap with totals from ipfs stats bw.

Peer that did not exchange data with us yet (no icon):

$ ipfs bitswap ledger QmPeer2
Ledger for QmPeer2
Debt ratio:	0.000000
Exchanges:	0
Bytes sent:	0
Bytes received:	0

Peer that fetched stuff from us (sent vs received, or just look at ratio)

$ ipfs bitswap ledger QmPeer3
Ledger for QmPeer3
Debt ratio:	561.000000
Exchanges:	1
Bytes sent:	561
Bytes received:	0
0reactions
jessicaschillingcommented, Aug 26, 2020

Closing this one in favor of general Peers page table enhancement in https://github.com/ipfs-shipyard/ipfs-webui/issues/1602.

Read more comments on GitHub >

github_iconTop Results From Across the Web

feat: Peers page table enhancements · Issue #1602 · ipfs/ipfs-webui ...
Summary Enhance Peers page by adding table columns for transfer rates and IPFS version, ... Add indicators for bitswap status: which peers #1037....
Read more >
Bitswap - IPFS Docs
Bitswap is a core module of IPFS for exchanging blocks of data. It directs the requesting and sending of blocks to and from...
Read more >
A Case Study of IPFS - arXiv
By collecting the BitSwap traffic of a peer, we learn which. CIDs it requested, and at which times. Our monitoring nodes produce, using...
Read more >
Cisco 4000 Series ISRs Software Configuration Guide
These are the two main methods to install the software: ... For information on LEDs on the router, see "LED Indicators" in the...
Read more >
Calix E-Series (E7 OS R3.1-3.2) Maintenance and ...
Viewing xDSL Associated Interface Status . ... Relocating an ERPS Link When Adding a Second Card to E7-2 . ... BITSWAP_DROP: bitswap issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found