|
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.
important choose the right balance
between the desired accuracy and complexity and speed.
NS-3 models are abstract representations real-world objects, protocols, devices
etc. [1]
To achieve high level modularity and flexibility, callbacks, downcasting and
object aggregation are supported NS-3 and are widely used the models. The simula-
tion engine manages the proper order the execution and offers comprehensive
framework for managing the execution and defining new simulation scenarios using
the existing models.1 Simulation Model Design
The NS-3 architecture event-driven, i. That approach helps modularity because one model does
not need keep pointer other model’s object given type, instead just
keeps the callback reference. One
Node has NetDevice for both them, the two others are only connected one
of the types. Both downcasting and getting the aggregated objects are done using
the NS-3 method GetObject(). [2] general, these representations are implemented classes, sets classes,
with given interface that are programmed mimic certain aspects the real
objects.
A short overview few other open-source network simulators the Ap-
pendix The NS-3 simulator was chosen the most mature one with potential
for stable future development.1.g.e.
2. Call-
backs allow functions passed parameters and are often used set up
inter-layer data exchange. Down-
casting allows retrieve pointer derived class using pointer its base
(parent) class. The diagram shows example
where there are two types Channel used (e.
A diagram their relations the Figure 2.The design NS-3 also allows run real-time while connected virtual
machines running real networking stacks. The choice which aspects simulate and how faithfully major
concern when creating and using models.
In addition the above, NS-3 defines concept Node, Application,
a Channel, NetDevice and Topology Helpers aid developing simulations and
implementing models [3].
12
. Aggregation two objects allows the programmer to
retrieve pointer one the objects using the pointer the other. Application can use any Channel depending the address and
its function. wired and wireless channel)
and therefore two types NetDevice have exist, will explained below. the simulation, broadly speaking, consists
of functions that schedule other functions run certain time. Topology Helpers are not included the diagram