Identification
A storage node uses the combination of multiaddress
and peerid
to uniquely identify itself, as shown in the following example:
/ip4/127.0.0.1/tcp/80/p2p/16Uiu2HAkucvAj8FaUwfMZunCnKB8dGTE4GzX91hVuRV33zLxzZq6
ip4: means that communication is based on an ipv4 address
127.0.0.1: means the IP address for communication
tcp: means that communication is using the TCP protocol
p2p: means that this is a P2P communication
16Uiu2HAkucvAj8FaUwfMZunCnKB8dGTE4GzX91hVuRV33zLxzZq6: is the node ID
The unique identifier of a node not only enables the peer to establish a correct connection with itself, but also verifies the peer's identity and data information.
For more information on multiaddress
, please refer to: libp2p-Addressing
For more information about peerid
, please refer to: libp2p-PeerID