Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Kademlia peers are not utilised adequately during retrieval #1533

@nonsense

Description

@nonsense

I started a 30 node network, uploaded 100MB to node 0, and tried to download the content from node 24.

It appears that 1/2 of all chunks were found on node 24, because it is in the 0 bin of node 0.
The other 1/2 were all delivered again through node 0, and a small amount from a different node.

Screenshot 2019-07-03 at 14 51 05

➜  ~ kubectl -n tony exec -ti swarm-private-0 -- /geth --exec="console.log(bzz.hive)" attach /root/.ethereum/bzzd.ipc
Defaulting container name to swarm.
Use 'kubectl describe pod/swarm-private-0 -n tony' to see all of the containers in this pod.
INFO [07-03|12:52:35.782] Bumping default cache on mainnet         provided=1024 updated=4096

=========================================================================
commit hash: de1c601d5
Wed Jul  3 12:52:36 UTC 2019 KΛÐΞMLIΛ hive: queen's address: c3d437a5f2358e60da01e92108139a6bfb056aae74dfda7f0bac595a953fc0ba
population: 23 (30), NeighbourhoodSize: 2, MinBinSize: 2, MaxBinSize: 4
000 16 2f7d 0f69 04af 1f0f          | 17 2f7d (0) 0f69 (0) 04af (0) 1f0f (0)
001  2 889a b560                    |  5 90d7 (0) 8757 (0) 889a (0) b87b (0)
002  2 fe02 ef84                    |  5 faef (0) ff9f (0) fe02 (0) e3f5 (0)
============ DEPTH: 3 ==========================================
003  0                              |  0
004  0                              |  0
005  2 c62c c7e3                    |  2 c62c (0) c7e3 (0)
006  0                              |  0
007  0                              |  0
008  1 c37a                         |  1 c37a (0)
009  0                              |  0
010  0                              |  0
011  0                              |  0
012  0                              |  0
013  0                              |  0
014  0                              |  0
015  0                              |  0
=========================================================================
undefined
➜  ~

Idea of where this problem comes from: Looks like our suggest peer functionality might not work as expected.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions