10.1 What is Mesh?
1. DasarTheoretical TeoriBackground
1.1 ApaWhat ituis Jaringana Mesh?Mesh Network?
A Jaringanmesh meshnetwork adalahis sebuaha topologitopology diwhere manaeach setiap perangkatdevice (node) salingis terhubunginterconnected, satucreating samamultiple lainpaths dan menciptakan banyak jalur untukfor data. BerbedaUnlike dengantraditional jaringannetworks biasathat yangrely bergantungon padaa satusingle titikcentral pusatpoint (sepertisuch as a router), jaringana mesh bersifatnetwork is terdesentralisasidecentralized.
CaraHow KerjaIt Works
DalamIn a mesh network, each ESP32 node acts as both a sender and receiver, functioning as a repeater. This differs from a star network where communication only goes through one central hub. A mesh network setiapis nodemore decentralized, thus improving coverage and network reliability.
In this setup, one ESP32 berfungsiacts sebagaias pengirim sekaligus penerima data sehingga berperan sebagai repeater. Mesh network berbeda dengan star network di mana komunikasi hanya melalui satu pusat atau hub. Mesh network lebih terdesentralisasi sehingga meningkatkan jangkauan dan keandalan jaringan.
Dalam jaringan ini, salah satu ESP32 bertindak sebagaithe root nodenode, yangwhich menghubungkanconnects the mesh network denganto jaringanan eksternal,external sementaranetwork, while other nodes can serve as intermediate parents that forward data or as leaf nodes that only send and receive their own data. Data in the network is automatically routed through available nodes until it reaches the final destination, either another node lainnyawithin dapatthe berperanmesh sebagaior intermediatean parentexternal yangnetwork meneruskanvia data atau leaf node yang hanya mengirim dan menerima data sendiri. Data dalam jaringan ini akan otomatis diarahkan melalui node-node yang tersedia hingga mencapai tujuan akhir, baik itu antar node di dalam jaringan maupun ke jaringan luar melaluithe root nodenode. sehinggaThis menciptakancreates jaringanan yangefficient, efisien,flexible, fleksibel,and danfault-tolerant tahan terhadap kegagalan node.network.
KarakteristikKey utamanyacharacteristics adalah:include:
- Self-Healing:
JikaIfsatuone nodemati,fails, datasecaraisotomatisautomaticallyakanreroutedmencarithroughjaluranotherlainavailableyang tersedia.path. JangkauanWideLuasCoverage:SetiapEach nodeberfungsifunctionssebagaias a repeater,memperluassignificantlyjangkauanextendingsinyalsignalsecara signifikan.range.
1.2 PerbandinganTopology Topologi:Comparison: Mesh vs. Star
UntukTo memahamiunderstand keunggulannya,the mariadvantages, kitalet’s bandingkancompare denganit topologiwith the commonly used Star yangtopology umumin digunakan padahome Wi-Fi rumahan.Fi.
-
Mesh
MenghubungkanConnectsperangkatdevicessecaradirectly,langsungcreatingyangmultiplemenciptakanpathsbeberapa jalur untukfor data.MeshA mesh networklebihisfleksibelmoredaripadaflexible than a star networkdanandmembutuhkanrequireslebihfewersedikitgatewaysgatewaytountukcommunicateberkomunikasiwithdenganthejumlahsameperangkatnumberyangofsama.devices.TetapiHowever,meshitnetworkislebihmorekomplekscomplexdanandmahalcostlydaripadacompared to a star network. Meshnetworknetworksjugaalsotidaklackmemilikiuniversalstandarstandards,yangwhichsamamaysehinggacauseperangkatcompatibilitydariissuesvendorbetweenyangdevicesberbedafrommungkindifferenttidak kompatibel.vendors. -
Star
MenghubungkanConnectsperangkatdevicesmelaluithroughhubapusat.centralStarhub. A star networklebihissederhanasimplerdanandlebihcheapermurahthandaripadaa mesh networktetapibutbergantungdependspadaheavily on the central hub. Device failures in a star network do not affect the rest of the system, but if the hubpusat.fails,Kegagalantheperangkat dalam meshentire networkdapatgoesmemengaruhidown.seluruhStarjaringannetworkstetapiareperangkatbestlainsuitedtidakforterpengaruhdevicesjikathatadaneedperangkattoyangcommunicategagaldirectlydalamwithjaringanamesh.centralJaringannode,starsuchsangatascocokofficeuntukequipment,menghubungkansecurityperangkatcameras,yangandperlumedicalberkomunikasi dengan node pusat, seperti peralatan kantor, kamera keamanan, dan peralatan medis.devices.
1.3 TipeTypes Nodeof dalamNodes Jaringanin a Mesh Network
DalamIn praktikumthis ini,lab, kitawe akanwill mengenallearn about 4 tipetypes node,of yaitu:nodes:
-
Root Node
RootThe root nodeadalahis the highest-level nodetertinggiindalama Wi-Fi mesh networkWi-Fianddanactsberfungsiassebagaithesatu-satunyaonlypenghubunglinkantarabetween the mesh networkdanandnetworkthe external IPeksternal.network.NodeItiniconnectsterhubungdirectlylangsungtokearouterconventional Wi-Fikonvensionalrouterdanandberfungsi untuk meneruskan paketforwards dataantarapackets between the external networkeksternalanddan node-node dalamthe meshnetwork.nodes.DalamTheresatumust only be one root node in a mesh network, and it can only have one upstream connection—to the router. The root node is crucial in ensuring that all mesh networkhanyadatabolehcanadabesatuaccessedrootby external devices. -
Leaf Nodes
Leaf nodes are nodes that have no child nodes (no downstream connections). They can only send or receive their own data packets and do not forward data from other nodes. Typically, leaf nodes are located at the farthest edge of the mesh where no new downstream connections are possible. If a nodedanonlyroothasnodeaini hanya memiliki satu koneksi upstream, yaitu ke router. Root node ini sangat penting dalam memastikan semua data dari dalam mesh network dapat diakses oleh perangkat eksternal. Leaf Nodes Leaf node adalah node yang tidak memiliki child node (tidak ada koneksi downstream) dan hanya bisa mengirim atau menerima paket data sendiri, tanpa meneruskan data dari node lain. Biasanya, leaf node berada pada lapisan network paling jauh yang diizinkan sehingga tidak dapat membentuk koneksi downstream baru. Selain itu, jika node hanya memilikistation interfacesebagai stasiun(station-only node)danandtidaklacksmemilikiainterfacesoftAPsoftAP,interface,makaitiaisakandesignatedditetapkanassebagaia leaf nodekarena koneksisince downstreammemerlukanconnectionsinterfacerequire a softAP.-
Intermediate Parent Nodes
Intermediate parent nodesadalaharenode yang bukanneither rootnode ataunor leafnode.nodes.NodeTheyinihavememiliki satu koneksione upstream connection (keto a parent node)dananddapatmaymemilikihavebeberapa koneksimultiple downstream connections (keto child nodes).Intermediate parentThese nodesdapatcanmengirim,send,menerima,receive,danandmeneruskan paketforward databaikfromdari koneksiboth upstreammaupunanddownstream.downstreamJikaconnections. Unlike leaf nodes, they can still form downstream connections in the future. They serve as bridges in the mesh network, enabling data to flow between different layers. -
Idle Nodes
Idle nodes are nodes that have not yet joined the mesh network. They attempt to establish an upstream connection with an existing intermediate parent nodetidakormemilikitrykoneksitodownstreambecomemaka akan berbeda dari leaf node karena masih bisa membentuk koneksi downstream di waktu mendatang. Node jenis ini berfungsi sebagai penghubung dalam mesh network yg membuat data mengalir antar lapisan dalam mesh network. Idle Nodes Idle nodes adalah node yang belum bergabung dalam mesh network. Node ini akan mencoba membuat koneksi upstream dengan intermediate parent node yang sudah ada di network atau berusaha menjadithe root nodejikaifkondisicertaintertentuconditionsterpenuhiare met (contohnyaforsaatexample,tidakwhenadano root nodedalamexists in the network). Idle nodesbersifatremainpasifpassivehinggauntilmerekatheybergabungsuccessfullyataujoindiintegrasikanorkearedalamintegrated into the mesh network.