当前位置:网站首页>BSN IPFs (interstellar file system) private network introduction, functions, architecture and characteristics, access instructions
BSN IPFs (interstellar file system) private network introduction, functions, architecture and characteristics, access instructions
2022-07-27 04:28:00 【BSN Institute】

Today, , With information technology 、 The Internet is increasingly developed , The way of human communication and cooperation has undergone disruptive changes . Whether it's numbers , Or words 、 picture 、 music 、 video , Can be obtained from the Internet , You can master all this with a little finger . information technology 、 The Internet has greatly facilitated our production 、 life .
One side , We are enjoying Internet dividends . On the other hand , After decades of development , Once we were proud of the Internet technology has also exposed many drawbacks . When we open a web page , I often meet Caton 、 Data has been tampered with , Even if the file is deleted , Not to mention the problem of data leakage . In addition, the cost is high , Unstable service . Today, more and more attention is paid to the value of data , This problem is particularly serious .
Is there a technology , Low cost 、 Store our data efficiently , Safe and stable 、 Never lose , Of course, privacy protection is essential .
The answer is yes , This is it. IPFS( Interstellar file system ) technology . Compared with traditional centralized storage technology , Based on decentralization IPFS Technology has low cost 、 high efficiency 、 Security 、 Privacy 、 Permanent and other advantages .
The present , Blockchain is a disruptive and innovative technology , It has great application potential in all walks of life . But due to high storage costs 、TPS Limit , The full data link obviously has no reality and price advantage . Large file hashes are chained , The original document is written in IPFS Storage ,IPFS Technology can be said to be the perfect complement of blockchain .
2021 year 1 month ,BSN IPFS Service private network commercial release , It is BSN be based on IPFS A private network built by distributed file services , For application development IPFS Service gateway of common native service interface . It has high efficiency 、 compliance 、 Obvious price advantage and many other advantages .
that ,IPFS What is it ?IPFS What is the function of ? How about its architecture and features ?Filecoin What's the matter ? How to access BSN in IPFS Private network services ?
1. What is? IPFS
understand IPFS, Understand first HTTP.HTTP( Hypertext transfer protocol HyperText Transfer Protocol,Http) Used in Internet Send and receive messages on . It is designed for hypertext transmission 、 be based on TCP/IP Implementation of application layer protocol .
The data transmitted by this protocol can be in the form of ordinary text 、 Hypertext 、 Audio 、 Video and so on . The user to use http:// or https:// Links to web pages 、 Images 、 The spreadsheet 、 Data sets or tweets , Users identify content by its location , This is location addressing . The link points to web Identifier of a specific location on , It corresponds to web A specific server or server group somewhere on , The person who controls the position controls the content .
Corresponding to location addressing ,IPFS(InterPlanetary File System, Interstellar file system ) It's a content-based addressing 、 Distributed 、 New hypermedia transmission protocol . The principle is to replace the address based on domain name with the address based on content , In other words, what users are looking for is not an address, but a content stored in a certain place , It aims to make the network faster 、 More secure 、 More open .
2.IPFS The function of
Why IPFS?
as everyone knows , The Internet is built on HTTP Agreement on the . But with the progress of the Internet ,HTTP Gradually show its shortcomings .
HTTP Very central , Users rely on a few service providers , Low efficiency and high cost ;W e b Files are often deleted ; Centralized service providers are extremely vulnerable to attack , For the normal operation of the server , Need to adopt all kinds of expensive security solutions , The cost of prevention is getting higher . These three points have become HTTP Insurmountable problems .
contrast HTTP,IPFS Nature is distributed 、 Point to point architecture , No longer rely on backbone and centralized servers .IPFS Divide the file into many small pieces , Stored on many nodes . When downloading , Many nodes can provide download services at the same time , Faster .
second ,IPFS Optimized storage space , Sustainable data preservation .IPFS Store the data by establishing hash and de duplication for the data content . stay IPFS in , The same data will be in IPFS Filtering in the network , This reduces the cost of storage space .IPFS It provides a way for sustainable storage of Internet data , It also provides the function of data historical version tracing .
Third , Based on decentralization IPFS More secure , Born to resist DDOS( Distributed denial of service attacks ).
Blockchain and IPFS The relationship between ?
One of the functions of blockchain itself is to reach consensus among participants without centralization , Participants jointly maintain a set of account books . Its efficiency is not high . If IPFS Work together with blockchain , It can make up for the two defects of blockchain .
The first defect is the low storage efficiency of blockchain 、 The high cost . and HTTP similar ,IPFS Is based on TCP/IP Application layer protocol . Encounter large file uplink , You can use I P F S Store the file data itself , And will be the only permanent available I P F S Address is placed in blockchain .
The second defect is that traditionally, cross chain blockchain requires collaboration between various chains , It's hard to reconcile .I P F S adopt I P L D Define different distributed data structures , It can help transfer information and documents between chains .
3.IPFS Architecture and features
IPFS framework
IPFS It includes a seven tier architecture , Each layer has different functions .

IPFS characteristic — Distributed hash table (DHT)
A hash table is a data structure , It is the KEY and VALUE Correspond in some way . Use hash() Function to put a KEY Value maps to a index On , namely hash(KEY) = index. So you can put one KEY Value is the same as a index correspond . Then put it with this KEY Value corresponding VALUE Store in index In the marked storage space . such , Every time I want to find KEY The corresponding VALUE When the value of , Just do it once hash() Operation can be found .
for instance : Books in the library will be borrowed by someone , such “ Title ” and “ The person's name ” Between the formation of KEY And VALUE The relationship between .

IPFS characteristic — Block switching protocol (BitTorrent)
It is far from enough to realize the distributed storage of data , Data also needs to be effectively exchanged between nodes , So that the whole system can operate efficiently .IPFS Agreement subject to BitTorrent Inspired by the , Data is distributed by exchanging data blocks between peer nodes .

How to encourage nodes to share data ?IPFS stay BitTorrent On the basis of , Added including credit 、 Strategy 、 The system including the bill , The new data exchange protocol based on this system is called BitSwap.
stay BitSwap Under the agreement , Sending data to other nodes can increase the credit value of nodes , Receiving data from other nodes will reduce the credit value of the node . in other words , If a node continues to share data , The probability of other nodes sending data to it will be greater and greater ; If a node only receives data and does not share data , The probability of other nodes sending data to it will be lower and lower , Until it is low enough to be ignored by other nodes .
IPFS characteristic — Self validating file system SFS
Self validating file system (Self-Certifying File System,SFS) It is to design a complete set of file system shared by the Internet , Global SFS All systems are in the same namespace . stay SFS in , Sharing files can be very simple , Just provide the file name . To achieve a globally shared file system , The biggest obstacle is how to make the server provide authentication for the client . One of the simplest ideas , All servers generate a pair of public and private keys , Then let each client use the public key to verify the security of the server , But how to make all clients get the public key of the server ?SFS Use a new solution , Embed the public key information into the file name , This is named “ Self validating file name ”. In this way, there is no need to implement key management inside the file system . The function of secret key management is added to the rules of file naming by users . Users can choose the encryption method according to their own needs .
IPFS The solution is as follows :
NodeID = hash(node.PubKey)
Assign a variable namespace to each user , In this way : /ipns/
A user can publish an object signed with his private key under this path , such as :
/ipns/XLF2ipQ4jD3UdeX5xp1KBgeHRhemUtaA8Vm/
When other users get objects , They can detect whether the signature matches the public key and NodeID matching , Verify the authenticity of user published objects , The acquisition of variable state is achieved .
IPFS characteristic -MerkleDAG
Merkle DAG Characteristics :1、 Content addressing 2、 tamper-proof 3、 duplicate removal .

4.Filecoin: be based on IPFS Public chain of Technology (IPFS Public network ) project
IPFS and Filecoin They are all projects created by the protocol Laboratory ,IPFS And Filecoin The relationship between blockchain and bitcoin is somewhat similar .Filecoin The birth of is to promote through the mechanism of economic incentives IPFS The development of .Filecoin We have adopted the public chain certificate system and issued Token,Token abbreviation FIL, Total number of issues 20 Billion .
Virtual currency is just an application based on blockchain Technology , It does not represent blockchain . Just like using blockchain technology without buying bitcoin , We use IPFS Technology does not need to be purchased FIL, Not to mention compliance issues .
5.BSN in IPFS Private Network Overview and docking instructions
2021 year 1 month ,BSN IPFS Service private network commercial release , It is BSN be based on IPFS A private network built by distributed file services , For application development IPFS Service gateway of common native service interface . And IPFS Compared with the public network , It has high efficiency 、 compliance 、 Obvious price advantage and many other advantages .
There are two ways to open
There are two ways to open IPFS service : Open when publishing the service ; stay 【IPFS service 】 The interface is opened separately . After opening the service , The system will automatically generate upload key And download key.
Mode one : stay BSN Gateway (bsnbase.com) Open when publishing the service .

Mode two : stay 【IPFS service 】 The interface is opened separately .
open BSN Official website home page (bsnbase.com), Log in and click 【IPFS service 】.

choice 【 establish IPFS service 】 Enter the service creation page .

Select capacity , Click on 【 next step 】, Choose to pay monthly or yearly

· Check 【 I have read and agree to 《BSN Service release agreement 》】, Click on 【 determine 】 after , The system generates bills , And prompt the user to pay the service fee , After the user confirms , The system deducts money from the user's account , After the deduction is successful, the service is opened in real time . If the service deduction fails , The bill corresponding to the service will be retained 72 Hours , expired . If you still want to use the service , You need to re open the service and pay ;
· If there is no balance or insufficient balance in the user account , You need to recharge first . And then to 【 My bill 】 Make payment ;
· The service charge is mainly the capacity charge , The traffic usage fee is deducted weekly according to the actual usage of the service , There is no need to pay when the service is opened , There is a certain discount when paying annually ;
· After opening the service , The system will return to upload Key、 download Key And gateway address information . Upload key And download key It can be updated according to users' needs .

Be careful : If users only need to download files , It can not be opened IPFS service , Click only 【 Create downloads key】 Generate downloads key that will do .
About BSN IPFS Any problems with private network services , You can click the help manual on the home page .

From Chapter 8 of the help manual “IPFS Private network services ” Get detailed guidance in .

----------
About BSN IPFS Service private network ,BSN A special training has been held , You can click the link to watch the learning at any time .
【 on-line 】IPFS Talking about and based on BSN Of IPFS Private network operation demonstration
Address :
http://kb.bsnbase.com/webdoc/view/Pub2c908ad371c6396b0176979c260e2ae0.html
边栏推荐
- Using webmvcconfigurer to intercept interface requests is being enhanced (with source code)
- Elastic开源社区:开发者招募
- 452 pages, 130000 words, the overall solution of modern smart Township Xueliang project 2022 Edition
- 使用WebMvcConfigurer进行接口请求拦截进行中增强(附源码)
- 好用的shell快捷键
- Detailed explanation of TCP protocol knowledge
- Is VR panorama just needed now? After reading it, you will understand
- [small sample segmentation] msanet: multi similarity and attention guidance for boosting few shot segmentation
- EVT interface definition file of spicy
- 【小样本分割】MSANet: Multi-Similarity and Attention Guidance for Boosting Few-Shot Segmentation
猜你喜欢

Learning route from junior programmer to architect + complete version of supporting learning resources

E-commerce system combined with commodity spike activities, VR panorama continues to bring benefits

JS three methods of traversing arrays: map, foreach, filter

Session&Cookie&token

Brightcove appoints Dan Freund as chief revenue Officer

shel自动设置目录权限

HEAD detached from origin/...导致push失败

e.target与e.currentTarget的区别

2022 retraining question bank and answers for main principals of hazardous chemical business units

How CentOS installs mysqldump
随机推荐
JVM调优中的一些常见指令
P1438 无聊的数列 线段树+差分
BSN IPFS(星际文件系统)专网简介、功能、架构及特性、接入说明
人很话不多,工程师不耍嘴皮子
JMeter学习笔记004-CSV文件行数控制循环次数
记一次TCP丢包带来的重大性能问题
[MySQL series] MySQL index transactions
项目参数做成可配置项,@ConfigurationProperties注解的使用
js三种遍历数组的方法:map、forEach、filter
Standard C language 11
356 pages, 140000 words, weak current intelligent system of high-end commercial office complex, 2022 Edition
Ribbon load balancing principle and some source codes
Navicat将MySQL导出表结构以及字段说明
BigDecimal pit summary & Best Practices
js修改对象数组的key值
ros 相机标定 sensor_msgs/CameraInfo Message 数据类型及含义
JS to realize page Jump and parameter acquisition and loading
Ribbon load balancing strategy and configuration, lazy loading and hungry loading of ribbon
电商分账系统重要吗,平台应该如何选择分账服务商呢?
ROS camera calibration sensor_ Msgs/camerainfo message data type and meaning