Ho lokolloa ha libtorrent 2.0 ka tšehetso ea protocol ea BitTorrent 2

Tsebisoa ho lokolloa ha laeborari ea bohlokoa Libtorrent 2.0 (e tsejoang hape e le libtorrent-rasterbar), e fanang ka ts'ebetsong ea protocol ea BitTorrent e sebetsang hantle mabapi le ts'ebeliso ea mohopolo le mojaro oa CPU. Laebrari amehang ho bareki ba torrent joalo ka Moroallo, qBittorrent, Batho, Lynx, Miro и Pula (ha ea lokela ho ferekanngoa le laebrari e 'ngoe libtorrent, e sebedisoang ho rTorrent). Khoutu ea libtorrent e ngotsoe ka C ++ le ajoa ke tlas'a laesense ea BSD.

Ho lokolloa hoa hlolla ho eketsa tšehetso ea protocol BitTorrent v2, e qobang ho sebelisa algorithm ea SHA-1, e nang le проблемы ka khetho ea ho thulana molemong oa SHA2-256. SHA2-256 e sebelisoa ka bobeli ho laola botšepehi ba li-blocks tsa data le ho kenya li-index (info-dictionary), e khahlanong le ho lumellana le DHT le li-trackers. Bakeng sa likhokahano tsa makenete le melapo e phoroselang e nang le li-hashes tsa SHA2-256, ho hlahisoa sehlongoapele se secha "urn:btmh:" (bakeng sa SHA-1 le melapo e nyalisitsoeng, "urn:btih:"e sebelisoa).

Ho tloha ha ho nkela sebaka sa ts'ebetso ea hash ho senya ho lumellana ha protocol (sebaka sa hash ke 32 byte ho e-na le li-byte tse 20), tlhaloso ea BitTorrent v2 e ile ea qaptjoa ntle le ho lumellana ka morao kelellong 'me ho ile ha amoheloa liphetoho tse ling tsa bohlokoa, tse kang tšebeliso ea lifate tsa Merkle hash ka li-index. ho fokotsa boholo ba lifaele tsa torrent le ho hlahloba data e jarollotsoeng boemong ba block.

Liphetoho ho BitTorrent v2 li boetse li kenyelletsa phetoho ea ho abela lifate tse arohaneng tsa hash faeleng ka 'ngoe le ts'ebeliso ea ho loants'a lifaele ka likarolo (ntle le ho eketsa padding ka mor'a faele ka' ngoe), e felisang ho pheta-pheta ha data ha ho na le lifaele tse ts'oanang le ho etsa hore ho be bonolo ho li khetholla. mehloli e fapaneng ea lifaele. Ts'ebetso e ntlafalitsoeng ea khouto ea sebopeho sa torrent directory le lintlafatso tse ekelitsoeng bakeng sa ho sebetsana le lifaele tse nyane tse ngata.

Ho theola ho ba teng ha BitTorrent v1 le BitTorrent v2, bokhoni ba ho theha lifaele tsa hybrid torrent bo kentsoe ts'ebetsong, ho kenyelletsa, ho kenyelletsa le meaho e nang le li-hashes tsa SHA-1, li-index tse nang le SHA2-256.
Linonyana tsena tse nyalisitsoeng li ka sebelisoa le bareki ba tšehetsang protocol ea BitTorrent v1 feela. Ts'ehetso bakeng sa protocol ea WebTorrent e lebelletsoeng ho libtorrent 2.0 ka lebaka la mathata a botsitso a sa rarolloang chechisitsoe morao ho fihlela tokollo e latelang e kholo, e ke keng ea tsoa ho fihlela qetellong ea selemo.

Source: opennet.ru

Eketsa ka tlhaloso