[Day 1 - 02] Decentralized storage based on erasure combinatorial batch code

BUIDL Vietnam 2022 · September 2022 · 32:28

Dung Tran and Thuc D. Nguyen from the University of Science, VNU-HCMC present research on decentralized storage built on erasure combinatorial batch codes. The talk explains why a single centralized store is a point of failure, then introduces combinatorial batch codes and their erasure-tolerant extension, which let a system retrieve any batch of items from servers even when some nodes are inactive. It covers the mathematical basis, including Hall's marriage theorem, and two pilot systems: IoT data storage and file storage for a university.

Speakers

Topics

From BUIDL Vietnam 2022, hosted by Kryptoplanet.

Transcript

[Music] thank you uh hello everyone uh first upon I want to say thank you for the invitation from the organizer uh and uh we are from a university of Zion

uh National University Ho Chi Minh City I am Le fool from DIC love decentralized apply ripped off and today I want to resend some of our work being done for four years the the centralized stories based on eraser combination robust course yes this is the one that is the topic of

uh the presentation now um okay so uh first off on uh I want to talk about decentralized and centralized storage and then I want to introduce about CBC and ecbc problem uh and some of mathematical tone that's we try to to solve this problem and apply in the central line and then uh we have two pilots system

um iot data storing and five storing for CBC and ecbc and uh as so sorry if I focus a lot in theory with a lot of mathematical formula because uh for easy to understand the constant I want to give some mathematical formula uh so first of all about centralized and decentralized storage we know that data are very important in on up expect of light today and later ever have a

property of individual and business data can be stored on the centralized storage centralized storage and we know that's the risk of centralized storage it has if the system has only one's voice and therefore if if that's for have some issues so we cannot accept the file anymore the system will be crossed so decentralized suspenders solution the next word North system in which is not uh is responsible for storing uh speeches of data the north we work

together we work together and for the centralized stories we notice that is have two men's property the first of all we have the security aspect uh data is distributed distributed as store in the mainly not many notes on the network so um this satisfy the first uh like uh uh is the security right and data is divided and uh in groups so there is an extra layer of security of the data

and uh about um availability and efficient is a consume data from multi-bonus and uh risk reducing uh conversion congression of the system and uh I want to talk about a solution for the decentralized stories uh this is the CBC based storage CBC based stories okay so about the storage problem uh we have an item and item NM server M server and uh which of items store in some server

uh the best cost is Arrangement the basically arrangement basically the arrangement for touring item on the server so that's uh if we want to take Case Case 5 among N5 K5 a success of N5 uh we can retrieve on of D5 by listing at multi item from every server from each server and the work CBC CBC stands for combination robust scores come next robust course it provides by submitted vacations

many years ago and uh is purely combinatorial version of the best course best course okay so here's the uh uh feature of the storage you can say uh we have some item item one two three and this can be considered as the five and we have M server and uh some uh we we will store which we will store each item in one or a loss of server

so the CBC problem we consider in informally that's is Phi S5 can start in store the copy of uh we will start a copy of n uh n data item and this is the optimization optimization problem that's uh we try to find a way to start find a way to start showed us that the end the number n we see the total storage the number of story is a as many possible it's minimal for the given

value n m k and t and mknt and uh domains tone to solve this problem uh it's a mathematical tone uh we use a theorem in computer science era and we record that the machine the machine from the and at the rough with two parts Sly we have the first machine from X and Y so the perfect machines is the size of

edge that's connects and River test uh of the the set as to a unique vertex of Y and the theorem says that for each subset a of of S if we denounce V A is the the says advertised advertised in y that's connected to some advertise in the subset as so uh this is the matching from s to Y if and only if the PSI of V I desire VA uh result equal to the side of of I the side of a his this also calls the horn Matrix theorem

like some some boys uh has a feeling to some girl and we can consider uh here five is the five the five so the boy and the server the server is the girls so we have some relation with this theorem with our problem here you can see we have an uh example for this we have five item one two three and four to five and uh we have three server we have three server

so so we can see the uh the value k equal to 2 and t equal to one so what's decay case is mean we want to uh access to any two item on five item among five item so uh the condition here is we just we just allowed to assess a smart one a smart one file in the server okay so you can say we have five eyes five item we have the storage like this so if we if we want to check the five one and

five two find number one and find number two so we can take for find number one from the first server and find number two from the second server they satisfy the condition that every server we just access export one time see equal to one uh and for example if we uh take a 5 2 and 3 so we can set the first and the second also if we take uh five four and five so we we consider the the second and the third server so this uh this story certify the the given

condition of a CBC problem Okay so if we have an issue what happened if the server file is inactive so we we cannot we cannot uh accept the server the server tree the third server anymore so the ice temp file in uh in the data server cannot be accepted anymore cannot be accepted anymore so in this problem we have another problem like ecbc ecbc we will try to solve this this situation

like if we have the c2s and that storm some Observer some like at smart R server among M server can be in active um that's the term so we we try to start a file we would sort of are suitable also certify the given condition okay so ecbc ecbc stands for eraser combination robotical it's the family of course for the distributed storage system and this not

only is on the condition of CBC problem also consider about the issue issue so that's some of server can be inactive in some time and ecbc allowed us allow us recover any match any batch of K item and the best of K item in the in the situation that we have our inactive nodes by reading a small T item as multi item from the remaining the remaining active enough and uh you know until uh 2020 this problem this is the optimization problem

uh just uh just uh solve this problem for t equal to 1 t equal to one so this is a special the Special K of the problem uh okay so we Recons the the definition of the barometer here we have uh five parameter in the total and in the number of item the number of server uh sorry m m is number of server and K is number of the item that's we we try to rechive each term and T is the maximum number of items uh that's

allowed to risk from each server and also the parameter oh that's the maximum number of the inactive server okay so uh from the given condition we can see that we must have k K less than or equal to n right because k k Phi the subsets of n5s and uh uh less than equal to m and uh because we can we can have the situation that our server can be inactive so one five has has to be stored in at least uh plus one server plus one server for example if we have

or equal to five so r equal to seven level uh for example so every five have to store in at least uh Ace server a server and we can group that we can drop that uh M uh a minus uh has has to be richer than equal to the selling of K Over T this is the condition and uh when the number of server the number server is very very big it's it's more than the number of five so the problem will be trivial

the problem we retrieve and we we will will not consider this case because in the in the real world the number of five maybe uh very big and the number of servers smaller and uh for the uh that's the application of the haunt theorem we have some some related books in case t equal to one and r equal to zero this original problem this is the original problem uh this means we don't have any server uh

can be inductive every server Works uh verbally verbally and for t equal to one and our richer than zero so we have we have uh the changing of condition we have uh the chain guitar condition uh that's a this success of the site came from of K5 original k5s so the union of uh that says that's contain less contains those five have the sign at least K from let's say at least K from by directly apply the haunt hero and we have some realistic related

results here and for the richer than one and are richer than zero uh is the best of our knowledge uh this is the new new result that's a we consider T not not just only equal to one so it can be any number and uh also richer than zero it's been we have the Eraser eraser aspect of of the system and uh by apply this proposed Serum by applying this proper serum we can we can build

some storage model we can build some storage model satisfy the minimum specify the optimization problem and here I will present one of uh one of a lot of a lot of case for this model that's m equal to this number m equal to this number and the number of five is very big the number five is richer than or equal to c t m so we can group that we can group that the optimization problem here we can we have the minimize minimum rubber uh storage in this number

TM time plus one plus M times n minus TM okay so maybe it is hard to follow so I will show the example for this storage we have here 17 17 item and uh server server and we can assume that we can assume that we have at some time we have uh equal to two it's been two server can be in FC in one time

okay so we we can start uh start of five in uh in the server edit picture fire one two three we start in the first server and five three four five sorry uh three four five seconds and uh one two three uh sorry one two three and uh 14 15 the first server

uh three four five six one two three four five in the second server in this case we have uh if we if we have the situation that's a two server here in active inactive so we can check K server case K5 sorry K5 in the the remaining server in the remaining server uh here's the in this example we have k

equal to it's the same with uh sorry oh no no no sorry uh how can I yeah oh it's okay it's okay uh

uh This original um situation that we don't have any we don't have any uh server inactive and k equal to 2 and t equal to one so we can have the storage like this and if we have uh two two server yeah can be inactive so we have another storage like this uh so we have some uh related problem for this one we can consider some action some chain gain on the storage models certify when we have M and K o and t uh

in recent or the reason so we have we have some way to uh to modify the storage model and we can have the situation that's some stable server that's uh that's never inactive never inactive so we can store a lot of five in that server in that server and uh if uh the the the storage model is given we can give some algorithm about the machine store uh perfect matching to uh to to take the need this file in the server if we are

given the storage model and the last uh if the files are stored in some liningly order linearly order we can consider the aspect of the config consecutive file because maybe in in the real in real world uh some uh some five have the related property so so they they can can be stored in the database in a consecutive consecutive file so maybe we can consider this this aspect and for this effect for for this situation we can prove that we can solve this problem

completely we can see on the problem completely in this in this the special case in the space okay and the last I have two applications I will resend you two applications of ecbc problem uh the first one the first one here we have we can try to apply we can try to apply ecbc to the real-time storage of iot device of iot device so this can be a deployed to the domains of healthcare

agriculture smart building and especially what we have and uh iot device and ltd5 and M server which we have a smart R server that can be energy at the same time so here we have iot device we can consider it's the same either the files and M server M server so we have the we have the situation that's maybe we have a uh and uh so N5 can be stored in AMD Pokemon in the building so we can handle the c2s and

that's maybe uh some so during the time a server can be inactive and the data cannot be stored anymore so anymore so we need to sound some tasks the first one we have to store each item in at least uh plus one server and for the situation that H server in active so data cannot cannot stop on This Server anymore so we have to store in another server and when s server are reactive so maybe we try to update a place that the data

because we know that's the iot system the data uh updates a in time so we we will try to update the new data that's not not been stopped in the tab so this can be taken from another another server hey we can see the uh historic model we have like four historic notes and with the F the mobile app and the web app

and we have the iot blockchain so uh in in this situation we can we also consider we can see the if sum of historic model here in active so we also uh check the information take the data from the remaining the remaining system oh okay the next one the next one we uh I will introduce you about a bit five story so we consider the storing the five storing problem uh that's uh so that's

the a small K uh recalls will be accepted uh from the file and the system also similar to the original definition we have M storage not and we also have asthma uh so storage notes can be inactive at the same time in this situation we can consider as in the University like the medicine University we have a lot of uh this is the loss of five of the students and we have to head to this distribute the file to the

corresponding professional corresponding faculty and because you know we know that the medicine the medical data is very sensitive and uh valuable so we have to try to find the the good way to start that uh the the disease that the files of the student and here I I we have we have the same the the same solution we also use ecbc uh ecbc solution and the value of n can be confused the

value of n can be confused uh based on the given K and M so certified that the the Redundant of the resources it's been the number of stories as feel as possible here is the approach we have we have the storage the algorithm so to start a file to the server so we have we can test we can has the index of file and we will start to the server we started to the server and we can apply some algorithm like binary surgery

to make the inserts and update more convenient and here you can see the the system more we have in the University we have a live faculty one two three and and uh the story with the um the Texas the data of the student and also if we have the medicine medicine University so we have the data of uh uh that the customer the customer and uh this uh this uh

storage model have have to be certified certified uh privacy reserving privacy reserve it and uh for example if we apply this storage model in the University so the student the student can uh can make the basis session by session chapter by chapter and they uploads upload to the system and choose the professional corresponding to the student can access to this file and his his the

is the some interface of the system that's what we are we we build from up apply the ecbc problem so we have two we have to uh application of ecbc and widgets we will have another application we have in the future we can use ecbc for another application in in the real world and if you have some question about this topic you can uh

uh technique contest of Maze and another another teacher in our University thank you very much okay thank you for your listening [Music]