Datapalvelimen luominen mesh-verkkoon
Piipponen, Samuli (2022)
Piipponen, Samuli
2022
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-202205139033
https://urn.fi/URN:NBN:fi:amk-202205139033
Tiivistelmä
Opinnäytetyö tehtiin KajaProlle käytettäväksi muihin projekteihin. Tarkoituksena oli tutkia, mitä haasteita ja mahdollisuuksia mesh-verkon rakentamisesta voisi yritykselle olla.
Opinnäytetyössä tutkittiin ensin hajautettujen verkkojen periaatetta teoriassa ja eri topologioiden eroja. Tämän jälkeen selvitettiin, mitä vaatii mesh-verkon rakentaminen ja pääpalvelimen pystyttäminen siihen. Samalla tutkittiin olemassa olevia ja mahdollisia mesh-teknologian käyttökohteita.
Työn mesh-verkko rakennettiin käyttämällä KajaPron hankkimia Arduino-pohjaisia piirilevyjä ja kyseiseen verkkoon liitettiin Raspberry Pi -palvelin. Lopputuloksena oli jokseenkin toimiva demonstraatioverkko, joka kuitenkin kaipaa vielä hiomista ennen oikeaa käyttöä.
Demonstraatioverkon rakentamisen aikana huomattiin, että vaikka mesh-verkot ovat melko joustavia yhteyksiltään, on palvelinta lisätessä otettava huomioon monia asioita, jotta yhteydet pääpalvelimeen muodostuvat dynaamisesti, sulavasti ja luotettavasti. Demonstraatioverkon päälle voidaan nykyisessäkin tilassa jo alkaa rakentaa toiminnallisuuksia. Demonstraatioverkon perusteella jatkokehitettävää olisi varsinkin yhteyksien asynkronisuudessa ja kirjastojen koodin tuomisessa lähemmäksi rautaa parempaa yhteydenhallintaa varten. This Bachelor’s thesis was done for KajaPro for utilization in other projects. The purpose was to research the possible disadvantages and opportunities building a mesh network would give to the company.
At the beginning, the thesis goes through the research of the main ideas of and the differences between distributed and decentralized networks. After this, an attempt was made to figure out what building the mesh network and attaching the server to it actually requires. At the side, the existing and possible usage cases of mesh networks were considered.
The network of this work was built using Arduino based circuit boards KajaPro had acquired. A Raspberry Pi server was then attached to this network. The work resulted in rather functional demonstration network, which still needs some adjusting before it can be used.
During the building phase of the network, it occurred that even though mesh networks are quite flexible in terms of connectivity, there are many things to concider so that the connections to the main server can be made dynamically, smoothly and reliably. The demo network is now at the state that it can be used to build some sort of functionality on top of it already. Based on the experience with the demonstration network, the asynchronous behaviour of the connections must still to be further developed and the code of the now used high level libraries should be brought closer to the hardware for better control of the connections.
Opinnäytetyössä tutkittiin ensin hajautettujen verkkojen periaatetta teoriassa ja eri topologioiden eroja. Tämän jälkeen selvitettiin, mitä vaatii mesh-verkon rakentaminen ja pääpalvelimen pystyttäminen siihen. Samalla tutkittiin olemassa olevia ja mahdollisia mesh-teknologian käyttökohteita.
Työn mesh-verkko rakennettiin käyttämällä KajaPron hankkimia Arduino-pohjaisia piirilevyjä ja kyseiseen verkkoon liitettiin Raspberry Pi -palvelin. Lopputuloksena oli jokseenkin toimiva demonstraatioverkko, joka kuitenkin kaipaa vielä hiomista ennen oikeaa käyttöä.
Demonstraatioverkon rakentamisen aikana huomattiin, että vaikka mesh-verkot ovat melko joustavia yhteyksiltään, on palvelinta lisätessä otettava huomioon monia asioita, jotta yhteydet pääpalvelimeen muodostuvat dynaamisesti, sulavasti ja luotettavasti. Demonstraatioverkon päälle voidaan nykyisessäkin tilassa jo alkaa rakentaa toiminnallisuuksia. Demonstraatioverkon perusteella jatkokehitettävää olisi varsinkin yhteyksien asynkronisuudessa ja kirjastojen koodin tuomisessa lähemmäksi rautaa parempaa yhteydenhallintaa varten.
At the beginning, the thesis goes through the research of the main ideas of and the differences between distributed and decentralized networks. After this, an attempt was made to figure out what building the mesh network and attaching the server to it actually requires. At the side, the existing and possible usage cases of mesh networks were considered.
The network of this work was built using Arduino based circuit boards KajaPro had acquired. A Raspberry Pi server was then attached to this network. The work resulted in rather functional demonstration network, which still needs some adjusting before it can be used.
During the building phase of the network, it occurred that even though mesh networks are quite flexible in terms of connectivity, there are many things to concider so that the connections to the main server can be made dynamically, smoothly and reliably. The demo network is now at the state that it can be used to build some sort of functionality on top of it already. Based on the experience with the demonstration network, the asynchronous behaviour of the connections must still to be further developed and the code of the now used high level libraries should be brought closer to the hardware for better control of the connections.