What does IPFS contain? What are the application scenarios of IPFS?
With the official launch of the mainnet in 2020 and the implementation of various IPFS applications, our understanding of IPFS has finally reached a substantive stage. Now that we have entered the true sense of 2021, IPFS has, after all, attracted more rapid development, and our understanding of IPFS must be clearer and deeper in order to keep up with the pace of Internet development.
What does IPFS contain?
1, node identity. Each IPFS node has a unique identity ID, which uses a cryptographic hash generated by the public key of the node. The ID is used for the activities of the node, such as the ID of the node in the IPFS network.
2, network. IPFS nodes need to communicate with thousands of other nodes inside the network. The network structure is very complex. IPFS uses ICE NAT penetration technology to ensure connectivity.
3, routing. One node can quickly find other nodes. The IPFS network routing uses the DHT protocol and the S/Kademlia protocol.
4, data exchange protocol. IPFS draws on the BitTorrent protocol and uses a data exchange protocol called BitSwap. It uses several lists, namely the wanted data block (want_list) and my data block (have_list) to exchange data with other nodes.
5. Object storage. When storing data, IPFS adopts the MerkleDAG structure, which enables IPFS to have functions such as content addressing, tamper-proofing, and deduplication.
6, version control system. On MerkleDAG, IPFS adds the Git version control function, so that IPFS files have a time series function, and you can easily view the historical changes of the files.
7. Authentication naming system. IPFS uses the SFS self-certification system to name files, and at the same time solves the transmission problem for IPNS, and is compatible with the existing domain name system.
How does IPFS solve the defect of the central server?
1, download speed is fast, no longer rely on backbone network and central server
The entire IPFS system is a distributed file storage system. When downloading related data, it will be downloaded from multiple nodes at the same time, which is much faster than HTTP downloading from a central server.
2, low-cost storage space
Because IPFS uses blockchain technology, Filecoin is used to incentivize miners to share their own hard drives, and IPFS eliminates redundant storage from the entire network, so compared to our current cloud disks, various center CNDs, and future IPFS storage costs Will be lower.
The central server is now difficult to resist DDoS attacks. When a large number of access requests from all quarters flood in, the central server will be paralyzed in an instant. And IPFS is inherently capable of resisting such attacks. Because all visits are scattered on various nodes. Even the attacker himself is a node. In some respects, IPFS can even resist quantum computing attacks.
4, open up
It is well known that Bitcoin is a decentralized and anonymous data currency. These characteristics make Bitcoin unregulated and transactions cannot be tampered with. Similarly, IPFS is built on a decentralized distributed network, so it is difficult for IPFS to be centrally managed and restricted, and the Internet will be more open.
What are the application scenarios of IPFS?
combines IPFS and blockchain. The biggest problem with most current public chains is that they cannot store large amounts of hypermedia data on their own chains. Dapp wants to develop into a super application, which is greatly restricted, and the IPFS protocol can provide a storage solution.
For traditional applications, IPFS can also provide a distributed caching solution. IPFS-GEO is a project that provides a distributed cache for traditional LBS applications. It can convert geographic coordinate data into a one-dimensional string through the GeoHash algorithm, and store the relevant data with retrieval value into the IPFS network. The IPFS network identifies uniqueness and distributes it on neighboring nodes.
Currently, according to IPFS official disclosures, there are more than 100 ecological applications based on the IPFS protocol.