Ntlafatso e kholo ho sistimi ea lefats'e ea lifaele e tekiloeng IPFS 0.5

Tsebisoa tokollo e ncha ea sisteme ea faele e fuoeng matla IPFS 0.5 (InterPlanetary File System), e etsang polokelo ea faele ea lefats'e ka bophara, e kentsoeng ka mokhoa oa marang-rang a P2P a thehiloeng ho litsamaiso tsa barupeluoa. IPFS e kopanya mehopolo e kileng ea kengoa tšebetsong litsamaisong tse kang Git, BitTorrent, Kademlia, SFS le Web, 'me e tšoana le "sehlopha" se le seng sa BitTorrent (lithaka tse kenyang letsoho kabong) tse fapanyetsanang lintho tsa Git. Ho fihlella IPFS FS ea lefats'e, ho ka sebelisoa protocol ea HTTP kapa FS /ipfs ea sebele e ka kenngoa ho sebelisoa FUSE module. Khoutu ea ts'ebetsong ea litšupiso e ngotsoe ho Go le ajoa ke tlasa lilaesense tsa Apache 2.0 le MIT. Ho phaella moo e tsoela pele ts'ebetsong ea protocol ea IPFS ho JavaScript e ka sebetsang ho sebatli.

Senotlolo tšobotsi IPFS ke aterese e thehiloeng ho litaba, moo sehokelo sa ho fihlella faele se amanang ka kotloloho le litaba tsa eona (ho kenyeletsoa li-cryptographic hash tsa litaba). IPFS e na le ts'ehetso e hahelletsoeng bakeng sa phetolelo. Aterese ea faele e ke ke ea reoa ka mokhoa o ikhethileng; e ka fetoha feela kamora ho fetola litaba. Ka mokhoa o ts'oanang, ho ke ke ha khoneha ho etsa phetoho ho faele ntle le ho fetola aterese (phetolelo ea khale e tla lula e le atereseng e le 'ngoe,' me e ncha e tla fumaneha ka aterese e fapaneng, kaha hash ea litaba tsa faele e tla fetoha). Ha ho nahanoa hore sekhetho sa faele se fetoha ka phetoho e 'ngoe le e' ngoe, e le hore u se ke ua fetisetsa lihokelo tse ncha nako le nako, ho fanoa ka litšebeletso bakeng sa ho hokahanya liaterese tse sa feleng tse nahanang ka mefuta e fapaneng ea faele (IPNS), kapa ho fana ka lebitso ka papiso le FS ea setso le DNS (MFS (Mutable File System) le DNSLink).

Ka papiso le BitTorrent, data e bolokiloe ka kotloloho lits'ebetsong tsa barupeluoa ba fapanyetsanang tlhahisoleseling ka mokhoa oa P2P, ntle le ho tlamelloa ho li-node tse bohareng. Haeba ho hlokahala ho fumana faele e nang le litaba tse itseng, tsamaiso e fumana barupeluoa ba nang le faele ena 'me ba e romela ho tloha lits'ebetsong tsa bona ka likarolo tsa likhoele tse ngata. Ka mor'a ho khoasolla faele tsamaisong ea hae, motho ea nkang karolo o fetoha e 'ngoe ea lintlha tsa kabo ea eona. Ho fumana hore na barupeluoa ba marang-rang ba na le litaba tsa thahasello life e sebelisoa tafole ea hash e ajoang (DHT).

Ntlafatso e kholo ho sistimi ea lefats'e ea lifaele e tekiloeng IPFS 0.5

Ha e le hantle, IPFS e ka nkoa e le ho tsoaloa hangata ha Websaete, ho sebetsana le litaba ho e-na le libaka le mabitso a sa tloaelehang. Ntle le ho boloka lifaele le ho fapanyetsana data, IPFS e ka sebelisoa e le motheo oa ho theha lits'ebeletso tse ncha, mohlala, ho hlophisa ts'ebetso ea libaka tse sa tlamelletsoeng ho li-server, kapa bakeng sa ho theha lits'ebeletso tse ajoang. ditshebediso.

IPFS e thusa ho rarolla mathata a kang ho tšepahala ha polokelo (haeba polokelo ea pele e theoha, faele e ka khoasolloa ho tsoa lits'ebetsong tsa basebelisi ba bang), ho hanyetsa tlhahlobo ea litaba (ho thibela ho hloka ho thibela lits'ebetso tsohle tsa basebelisi tse nang le kopi ea data) le ho hlophisa phihlello. ha ho se na khokahano e tobileng ho Marang-rang kapa haeba boleng ba mocha oa puisano bo fokola (o ka khoasolla data ka barupeluoa ba haufi le marang-rang a lehae).

Ka mofuta IPFS 0.5 e eketsehile haholo tlhahiso le ho tšepahala. Marang-rang a sechaba a thehiloeng ho IPFS a fetisitse letšoao la li-node tse likete tse 100 'me liphetoho ho IPFS 0.5 li bonahatsa ho ikamahanya le protocol ho sebetsa maemong a joalo. Ntlafatso e ne e tsepamisitse maikutlo haholo ho ntlafatsa mekhoa ea ho tsamaisa litaba e ikarabellang bakeng sa ho batla, ho bapatsa le ho fumana lintlha, hammoho le ho ntlafatsa ts'ebetso ea ts'ebetso. tafole ea hash e ajoang (DHT), e fanang ka tlhahisoleseling mabapi le li-node tse nang le data e hlokahalang. Khoutu e amanang le DHT e se e batla e ngotsoe bocha, e potlakisa haholo tlhahlobo ea litaba le ts'ebetso ea tlhaloso ea rekoto ea IPNS.

Haholo-holo, lebelo la ho etsa ts'ebetso ea ho eketsa data le eketsehile ka makhetlo a 2, ho phatlalatsa litaba tse ncha ho marang-rang ka makhetlo a 2.5,
ho khutlisa data ho tloha makhetlo a 2 ho isa ho a 5, le ho batla litaba ho tloha 2 ho isa ho makhetlo a 6.
Mekhoa e tsosolositsoeng ea ho tsamaisa le ho romela liphatlalatso e entse hore ho khonehe ho potlakisa marang-rang ka makhetlo a 2-3 ka lebaka la tšebeliso e ntle ea bandwidth le phetiso ea sephethephethe sa morao-rao. Phatlalatso e latelang e tla hlahisa lipalangoang tse thehiloeng ho protocol ea QUIC, e tla lumella phaello e kholoanyane ea ts'ebetso ka ho fokotsa latency.

Mosebetsi oa tsamaiso ea IPNS (Inter-Planetary Name System), e sebelisetsoang ho theha lihokelo tsa ka ho sa feleng ho fetola litaba, e potlakisitsoe le ho eketseha ho tšepahala. Pubsub e ncha ea liteko tsa lipalangoang e ile ea etsa hore ho khonehe ho potlakisa ho fana ka litlaleho tsa IPNS ka makhetlo a 30-40 ha ho hlahlojoa marang-rang a nang le li-node tse sekete (e khethehileng e ile ea etsoa bakeng sa liteko. Simulator ea marang-rang ea P2P). Tlhahiso ea Interlayer e batla e imenne habeli
Badger, e sebelisoang ho sebelisana le sistimi ea ts'ebetso ea FS. Ka ts'ehetso ea ho ngola asynchronous, Badger e se e potlakile ka makhetlo a 25 ho feta lera la khale la flatfs. Keketseho ea tlhahiso e ile ea boela ea ama mochine Bitswap, e sebelisetsoang ho fetisa lifaele pakeng tsa nodes.

Ntlafatso e kholo ho sistimi ea lefats'e ea lifaele e tekiloeng IPFS 0.5

Har'a lintlafatso tsa ts'ebetso, ho buuoa ka ts'ebeliso ea TLS ho patala likhokahano lipakeng tsa bareki le li-server. Ts'ehetso e ncha bakeng sa li-subdomain tse ka har'a heke ea HTTP - bahlahisi ba ka amohela lits'ebetso tse ikhethileng (dapps) le litaba tsa webo ka li-subdomain tse ka thoko tse ka sebelisoang ka liaterese tsa hash, IPNS, DNSLink, ENS, jj. Ho kentsoe sebaka se secha sa mabitso /p2p, se nang le data e amanang le liaterese tsa lithaka (/ipfs/peer_id → /p2p/peer_id). Ts'ehetso e ekelitsoeng bakeng sa lihokelo tse thehiloeng ho ".eth" tse thehiloeng ho blockchain, tse tla atolosa tšebeliso ea IPFS lits'ebetsong tse ajoang.

The Startup Protocol Labs, e ts'ehetsang nts'etsopele ea IPFS, le eona e nts'etsapele morero ona ka ho ts'oana. FileCoin, e leng tlatsetso ho IPFS. Le hoja IPFS e lumella barupeluoa ho boloka, ho botsa le ho fetisetsa data har'a bona, Filecoin e ntse e fetoha e le sethala se thehiloeng ho blockchain bakeng sa polokelo e tsitsitseng. Filecoin e lumella basebelisi ba nang le sebaka sa disk se sa sebelisoang ho fana ka marang-rang bakeng sa tefo, le basebelisi ba hlokang sebaka sa polokelo ho e reka. Haeba tlhoko ea sebaka e nyametse, mosebelisi a ka e rekisa. Ka tsela ena, 'maraka oa sebaka sa polokelo o thehoa, moo libaka tsa bolulo li entsoeng ka li-tokens Filecoin, e hlahisoang ke merafo.

Source: opennet.ru

Eketsa ka tlhaloso