Tema 3.- CASTADIVA PROJECT
Transcript of Tema 3.- CASTADIVA PROJECT
Tema 3.- CASTADIVA PROJECTTema 3.- CASTADIVA PROJECTPerformance Evaluation of a MANET architecturePerformance Evaluation of a MANET architecture
Redes Inalámbricas Ad Hoc Máster Ingeniería de Telecomunicación, Universidad de Málaga 2008/2009Redes Inalámbricas Ad Hoc Máster Ingeniería de Telecomunicación, Universidad de Málaga 2008/2009
009
2Introduction.
MIT
200
8/20
M
Currently there are several routing protocols under development for MANETs.All th t l t t d i i l t lik NS 2 (N t kAll these protocols are tested in simulators like NS-2 (Network Simulator 2).
Does not generate fully realistic resultsDoes not generate fully realistic results. Need extra specific implementation for these simulators.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
3Objectives
MIT
200
8/20
M
Generate a test bed using a real network.This test bed can create real traffic among nodes.E l h bili f dEmulate the mobility of nodes.
Must be compatible with the most extended simulator – NS-2 –for comparison purposesfor comparison purposes.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
4Architecture.
MIT
200
8/20
M
Divided into the Castadiva core and network parts.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
5Architecture: core.
MIT
200
8/20
M
The core of Castadiva is a server.Main functions:
Allows the user to interact with the system.Coordinate all nodes during an experiment.
Objective:Objective:Easy interface.Low use of computational resourcesLow use of computational resources.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
6Architecture: nodes.
MIT
200
8/20
Low cost off-the-shelf devices.Must connect to both a wired network and a wireless one.M us co ec o bo a ed e o a d a e ess o eThe system must be easily scalable.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
7Architecture: networks.
MIT
200
8/20
M
Two different networks:Coordination Network: wired network to send instructions to all nodesnodes.Wireless Network: Composed by the wireless nodes and defined by the Castadiva’s GUI on each simulation.
The coordination network does not jam the simulation!
s A
d H
ocal
ámbr
icas
Red
es I
na
009
8Implementation.
MIT
200
8/20
The core is developed in a Linux System with a JavaM The core is developed in a Linux System with a Java Virtual Machine.The core connects to each node through both SSH and NFSNFS.
SSH: to coordinate the experiment among nodes.NFS: to share all files among nodes and the coreNFS: to share all files among nodes and the core. Use the coordination network for this purpose.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
9Implementation.
MIT
200
8/20
Each node is an OpenWRT system (Linux-based firmware)M Each node is an OpenWRT system (Linux based firmware).Supports both SSH and NFS connections.Allow executing BaSH scripts and our own applications in C or CC++.
Extra applications installed:Iptables to simulate network topologyIptables to simulate network topology.TcpFlow to generate TCP traffic among nodes (developed by our group).UdpFlow to generate UDP traffic among nodes (developed by our group).
s A
d H
ocal
ámbr
icas
Red
es I
na
009
10Implementation.
MIT
200
8/20
Ms
Ad
Hoc
alám
bric
asR
edes
In
a
009
11Implementation.
MIT
200
8/20
Ms
Ad
Hoc
alám
bric
asR
edes
In
a
009
12Castadiva’s GUI.
MIT
200
8/20
Objectives.
M
jEasy use and configure.Allows the user to generate different network topologies.E l t d bilitEmulates node mobility.Generates different traffic connections among nodes.Can also generate random scenariosCan also generate random scenarios.Integrates with different routing protocols.Allows to plug in external devices like webcams.
s A
d H
ocal
ámbr
icas
Red
es I
na
009 What can do Castadiva?
MIT
200
8/20
M
With an easy interface, we can define a network topology.p gyWith iptables Castadiva emulates the node visibility. If one node is out of range from other, iptables delete allone node is out of range from other, iptables delete all incoming packets with the MAC of this node.Changing the iptables each second, Castadiva emulatesChanging the iptables each second, Castadiva emulates the mobility among nodes.
s A
d H
ocal
ámbr
icas
Red
es I
na
009 What can do Castadiva?Simulation Variables Node configuration.
MIT
200
8/20
M
In the blackboard the usercan put the nodes only clicking
The user can
s A
d H
oc
by the mouse.The user canselect the routingprotocol
alám
bric
asR
edes
In
a
At last we can control the emulation.
...And Castadiva report the state of the emulation.
009
15GUI.Easily the user emulate the network topology in
MIT
200
8/20
y p gyall desired routers.
Ms
Ad
Hoc
alám
bric
asR
edes
In
a
All routers have been configured previously.
009 What can do Castadiva?
MIT
200
8/20
The user can define the traffic among nodes.
M
gDefine the starting and ending simulation time of each traffic flow.Select traffic TCP and UDP.Change the common parameters of traffic:
For TCP: total transfer size.For UDP: size of packet, packets per second and total packets.
C t di t th l bt i d i th l ti f hCastadiva returns the values obtained in the emulation for each traffic flow.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
17GUI.
MIT
200
8/20
Allows generating both UDP and TCP traffic among nodes.M Allows generating both UDP and TCP traffic among nodes.
s A
d H
ocal
ámbr
icas
Red
es I
na
009 GUI.
MIT
200
8/20
M Results of theemulation.
s A
d H
ocal
ámbr
icas
Red
es I
na
009 What can do Castadiva?
MIT
200
8/20
Castadiva can also make random emulations.
M
The user choose some parameters:How many nodes in each simulationHow many nodes in each simulation.How many times repeat each simulation.Protocols to compareProtocols to compare.How many traffic flows must to be in the simulation and the characteristic of each one.
Castadiva create new random simulations with this parameters.
s A
d H
oc
parameters.
alám
bric
asR
edes
In
a
009
20GUI.
MIT
200
8/20
All emulations can be done randomly to make severalM All emulations can be done randomly to make several tests.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
21GUI.
MIT
200
8/20
Allows to add extra devices to generate different traffic flowsM flows.
The extra device can be a laptopto add more specific trafficto add more specific traffic.
s A
d H
ocal
ámbr
icas
Red
es I
na
009 What can do Castadiva?
MIT
200
8/20
Other classic control functionality:L d/S th j tM Load/Save the project.Configure the system and the access points.I t t NS 2 C t di i t i d d bilitImport to NS-2: Castadiva can import scenarios and node mobility from NS-2.Export to NS-2: Castadiva can export traffic scenario and nodeExport to NS-2: Castadiva can export traffic, scenario and node mobility to NS-2.Etc.Etc.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
23Evaluation.
MIT
200
8/20
Verify the behavior of the entire system.M Verify the behavior of the entire system. Compare it with the NS-2 simulator: Can export/import NS scenarios. Create different experiments with UDP and TCP traffic.
s A
d H
ocal
ámbr
icas
Red
es I
na
009
24Evaluation.
MIT
200
8/20
UDP: packet delivery rate.
Ms
Ad
Hoc
Without routing protocol With routing protocol
alám
bric
asR
edes
In
a
009
25Evaluation.
MIT
200
8/20
TCP: throughput.
M
g p
s A
d H
oc
Without routing protocol With routing protocol
alám
bric
as
g p g p
Red
es I
na
009
26Conclusions.
MIT
200
8/20
Castadiva is a tool to improve research in MANETsM Castadiva is a tool to improve research in MANETs. It can generate both TCP and UDP traffic and supports external devices to inject real traffic.jIt is compatible with NS-2.We are currently using this tool to test attacks to MANETs.y g
s A
d H
ocal
ámbr
icas
Red
es I
na
009
27Download software and more.
MIT
200
8/20
Software download : http://www.grc.upv.es/6software.html
M http://castadiva.sourceforge.net/
s A
d H
ocal
ámbr
icas
Red
es I
na