|
Kategorie: Diplomové, bakalářské práce |
Tento dokument chci!
Tato práce zkoumá vhodnost a požadavky návrhu simulací pro simulátor NS-3 pro případ bezdrátových sítí používaných v měřící infrastruktuře společnosti Kamstrup. V práci jepopsán simulátor NS-3 a je vytvořena základní implementace dvou protokolů. WirelessM-Bus jako příklad jednosměrného protokolu pro zařízení napájené z baterií. Simulace Wireless M-Bus je porovnána s daty naměřenými v reálném systému. NS-3 poskytuje flexibilní prostředí pro vývoj simulací různých síťových protokolů, včetně těch určených pro sítě inteligentních měřidel.
This class models the physical layer WiFi.
In order create model the protocol, Simple CSMA/CA Protocol for NS3,
further referred Simple Wireless, implementation Junseok Kim [4] was used
and modified. Models
the MAC layer and most removed for use the project, because there is
no CSMA the WM-Bus.
• SwPhy, derived class Object.
2.
It features the following classes:
• SwChannel, derived class Channel, described above. the new model
is derived from the Application class, should have defined functions that are
called when the simulation runs. setting callback
function another model, changing the code existing models scheduling the
new model’s methods called when the simulation started.3: sample inheritance diagram showing hierarchy propagation models.
17
. Most has
been reused the models created this project. 2. Parts were reused, parts
were removed.
• Related helper functions easily create set nodes equipped with the
above.g.
• SwMacCsma, derived SwMac that itself derived class Object. the less specific cases, the
model has hooked into the simulation some way, e.
• SwNetDevice, derived class NetDevice.
Most was reused and expanded, the WiFi-specific parts were removed. While this advantage when
using these modules, becomes disadvantage when attempting modify them.Fig.
drop-in replacement for any other model that type. The model simulates WiFi and implemented allow easy modifi-
cation.3 Simple Wireless Module
Even though NS-3 contains considerable amount modules for different network-
ing protocols, most them are quite complex