How to quickly download resources from i-Book.in? What is the IPFS network?
2020-05-09 · 842 · 14 minThe main content of this article is how to improve the download speed of resources in the search engine i-Book.in, introduce the IPFS network and some tricks.
# Preface
This is the beginning of a series of articles. I will explain everything about IPFS from shallow to deep. If I am wrong, please correct me. The official documentation is here. If you want to learn more about IPFS, it is recommended to study it carefully.
What is the IPFS network? Why does i-Book.in use it as an infrastructure? This article will explain in detail, first look at Wikipedia's summary of IPFS:
InterPlanetary File System (IPFS for short) is a network transmission protocol designed to create persistent and distributed storage and shared files. It is a content-addressable peer-to-peer hypermedia distribution protocol. The nodes in the IPFS network will form a distributed file system. It is an open source project developed by Protocol Labs with the help of the open source community since 2014. It was originally designed by Juan Benet.
The main advantage of distributed storage is that the security and maintainability of files are very strong, and files will not become invalid because the source site cannot be accessed. If a gateway(will be explained in detail later)
cannot be accessed, then switch to other gateways to access the file. Of course, this is not without cost, that is, the delay will become higher, because the gateway needs to retrieve the entire distributed network , to find the real location of the file.
This is why i-Book.in uses it as the technical foundation. The results given by most resource search engines are often inaccessible, and the links that have been found with great effort cannot be downloaded. Such a user experience is quite poor. The reason for this is that the storage of files is maintained by each site. When a site fails to operate and goes offline, all links that have indexed its resources will become invalid and cannot be restored unless the source site is back online.
The IPFS distributed network is a quick solution for file storage "security" and "sustainability". All index links of i-Book.in are uploaded to the IPFS network by netizens. i-Book.in does not Store any file itself, only store the Qmhash of the file, anyone can take this Qmhash to any gateway to download the file.
# How to quickly download resources from i-Book.in?
Anyone reading this article should have downloaded resources from i-Book.in, so they must have experienced the slow speed of the IPFS network. So how to speed up the download speed?
First of all, you need to choose an easy-to-use gateway. Not all gateways given by search engines are very fast. If you are an outside user, you can try to use gateway 1 directly, but gateway 4 is the fastest according to current tests. And it was not dropped by the wall. Of course, I also recommend that you try to build a gateway yourself, so that if your gateway network performance is strong enough, then the download speed is also very fast.
You can check all available gateways here Check.ipfs-peer.online.
The second is to use the correct download tool. If you are on a mobile terminal, you can only use the downloader that comes with the browser. Downloading small files is okay, but large files will not be able to do what you want. My suggestion is to use IDM multi-threaded download, the speed will be much faster, but it can only be used on the desktop.
# What is IPFS?
Gateways & Nodes
Seeing this, some friends who don’t understand technology must want to ask: “What is [Gateway]? Next, the picture below is to download files using traditional HTTP.
The picture below is to use the IPFS gateway to download files.
You can use node A, which is the purple path to download files, you can also use the green path, of course you can also use the red path, and each node can help the source node to fix (PIN) the file as needed. The advantage of this is that as long as the source site is not down Online, files exist forever, and because of the particularity of the IPFS network, the source station is hidden behind each node, so the security is greatly improved.
*Are you looking in the clouds? Isn't it talking about a gateway? How did it become a node again? *
Simply put, gateways and nodes are twins. The current go-ipfs implementation encapsulates the gateway and the node together. The node is public access, and the gateway is local access. Except for 127.0.0.1, no other ip access is allowed, but a reverse proxy can be used for external access. (Dig a hole first, one-click build IPFS public gateway script is being handwritten)
Some people must say: "What's the difference between you and a CDN?" Of course there is a difference. CDN uses the domain name as the basic unit, and the service provider will only cache the domain name. All customers accessing the domain name will directly connect to the CDN service provider to obtain resources, which greatly speeds up the access speed. And the traffic of not the domain name
will be ignored. This caused the node pointed to by the domain name to hang up, and the CDN service provider was helpless.
IPFS is different, it is a DHT network
, it does not have any major nodes, as long as you open it, it will automatically connect to the nearest node that uses the same protocol as it, and the nodes will communicate with each other Exchange the routing map
that each masters, so that your own node can use other people's nodes as a microphone to spread
your data to farther places, and other nodes can also obtain all your data at any time if necessary Save it so you have a backup of your data.
Isn’t IPFS mining?
Hey🤦, why do I say hey
here? Because the boiling media in China know that they are bragging. They don’t understand the details at all and just brag all day long, and they don’t know what they are bragging about.
Here I want to explain again! IPFS is the name of the protocol. The one that is mined is Filecoin. It is still in the stage of Testnet.
Before looking at this matter, you must first understand that if Filecoin is yellow, IPFS can still live well, even if it doesn’t live well, it can survive like the current BT and ZeroNet, but without IPFS, Filecoin will die yellow**!
Filecoin's incentive policy will reward every node that stores files for the entire DHT network, but based on my shallow knowledge, eventually cloud service providers will become the largest IPFS nodes, and data security and storage prices will return to normal. It is under the control of major cloud service providers, so Fliecoin can only be regarded as a large-scale social experiment
, to test whether retail investors or bookmakers are the most powerful.
But I think that in the end, the banker takes all, because there is a paradox: "If you don't help other nodes store files, your income will not be high. If your income is not high, then will you help other nodes store data? ".
At present, there is no data to show that the monthly income of putting an IPFS mining machine at home and hanging IPFS will exceed the electricity bill. And the major cloud service providers have a lot of free resources, and the storage price can be kept very low, so retail investors must not be able to compete, and the home broadband of retail investors cannot do business broadband at all, whether it is delay or speed, so I think in the end it's the house that takes all.
# Postscript
This will be the beginning of a series of articles, because the current Chinese circle about IPFS is not only mining, but mining, can rice not be so ugly? For the mining machines that have not been launched on Vendor.com, this sale is really thoughtful, and I think the people who buy it are quite abnormal.
If you are interested in this technology, then carefully read the official documents, specific implementation, and basic principles. If you are interested in making money, you should carefully read the white paper
and circuit diagram
of this technology, rather than being caught by those who sell mining machines. It’s a fool to buy a mining machine. IPFS can run on any computer. It only requires two things, network and storage space, so as long as it is a decent computer, it can be used as a Filecoin mining machine. , There is no need to buy assembled ones at all.
-EOF-
Copyright Notice :
This article is written by SaltyLeo. If the content is incorrect, please leave a message for feedback. When reprinting or quoting this article, please comply with the CC BY-NC-SA agreement, must be attributed, used non-commercially and share alike!Comment :
Readmore :
This is the first article in the old machine utilization series, and it is also a very important article, because the server is on the internal network, this article will configure FRP internal network penetration for it.
The network has also been upgraded and the equipment has been debugged. What if I want to access local files on the external network?
Use pip to install
Because it was boring, I wanted to try a private cloud disk. Immediately tb bought a 5T OneDrive account. The front end uses OneIndex to realize shared cloud storage based on the cloud disk.
write about the latest trifles.
Popular Tags
Site info
Tags: 180
Total page views: 12,889,859
Loading time: 17.08 ms
Ver : 4.0.1