When I publish a new file to IPFS network with my node, only my node owns a copy of this file. How do other nodes find this file on my node?
I read the IPFS white paper. IPFS should use KADEMLIA DHT, so according to my understanding, the block should be stored on the corresponding node according to the hash value, So that other nodes can quickly find the node that stores the data.
But from the current analysis, the blocks are not actively backed up to the corresponding nodes. Feeling incompatible with the design of KAD.
No. Each peer keeps its own blocks. Peers only store blocks that they added or requested.
The corresponding node stores info about where to find the block (aka who to ask, not the block itself.
So basically when I want to find other nodes on a network does IPFS do keep a tracker file stored on a server or it hopes through differnent nodes to find the content? @hecto
It hopes from node to node. There is no tracker file or server.
You ask a few nodes, and if they have the content, they provide, if not, they give you the addresses of nodes more likely to have the content. Then you contact these nodes, etc. Until yiu have the content or you realise nobody online does. No server involved.
You should be able to find some insight here: