[ns] Correct use of mac 802.11 in MANET network (script included)

2008-11-15 Thread Massimo Reineri

Hello to everybody!
I would know your opinion about my solution.
I'm working in MANET routing context and I'm simulating a simple network made up
by 4 fixed wireless nodes (A,B,C,D) with mac layer 802_11 (dataRate_ set to 
11Mb) 
and a mobile node (E) with mac layer 802_11 but dataRate_ set to 1Mb that moves 
from the
left side to the right side of the network as shown in the next picture:

| A | | B || C |  | D |

->>| E |--->>->>-

Now I want to check the data throughput for the communication among node A and 
node E and viceversa.
The simulator seams to run correctly but I'm not sure that the current 
implementation
of the mac layer mac-802_11.{h,cc} allows me to deal with this scenario, i.e. 
it allows me to
use different channel capacities in the same wireless network.

The used simulation script is the following one:

# ==
# Define options
# ==
# following options are to define a network feature: default values
set opt(chan) Channel/WirelessChannel ;# channel type
set opt(prop) Propagation/TwoRayGround ;# radio-propagation model
set opt(netif) Phy/WirelessPhy ;# network interface type
set opt(mac) Mac/802_11 ;# MAC type
set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type
set opt(ll) LL ;# link layer type
set opt(ant) Antenna/OmniAntenna ;# antenna model
set opt(ifqlen) 50 ;# max packet in ifq
set opt(nn) 5 ;# number of mobilenodes
set opt(rp) OLSR ;# routing protocol
set opt(x) 500 ;# X-dimention for the topology
set opt(y) 550 ;# Y-dimention for the topology
set opt(packetSize) 400 ;# packet size for CBR traffic in Bytes
set opt(rate) 80Kb ;# CBR traffic bit rate
set opt(speed) 3.0 ;# mobile node linear speed in m/sec
set opt(startCBR) 100 ;# CBR flow start time in seconds
set opt(stopCBR) 600 ;# CBR flow end time in seconds
set opt(stopSimulation) 650 ;# Simulation end time in seconds

proc usage {} {
puts {manet_net.tcl: Usage> ns manet_net.tcl }
puts {PARAMETERS NEED NOT BE SPECIFIED... DEFAULTS WILL BE USED}
exit
}
if {[string compare $opt(rp) "OLSR"] == 0} {
Agent/OLSR set 
use_mac_ true
}
puts "This is a basic manet network"
# =
# Main Program
# ==


# Initialize a network simulator
set ns_ [new Simulator]
set tracefd [open manet_net.tr w]
$ns_ trace-all $tracefd

# Initialize nam trace for netwrok visualization
set namtrace [open manet_net.nam w]
$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)

# Set up topography object
set topo [new Topography]
$topo load_flatgrid $opt(x) $opt(y)

# Create God
set god_ [create-god $opt(nn)]
set chan_1_ [new $opt(chan)]

# Create the specified number of mobilenodes [$opt(nn)] and "attach" them
# to the channel.

# Configure the node features
Mac/802_11 set dataRate_ 11Mb
Mac/802_11 set PLCPdataRate_ 11Mb
$ns_ node-config -adhocRouting $opt(rp) \
 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channel $chan_1_ \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace OFF \
 -movementTrace ON

#in order to compute this threshold run the program in 
indeep-utils/propagation/threshold 
#command ./threshold -m TwoRayGround 200

Phy/WirelessPhy set RXThresh_ 1.42681e-08 ;# 100 m
set node_(0) [$ns_ node]
$node_(0) random-motion 0

Phy/WirelessPhy set RXThresh_ 1.42681e-08 ;# 100 m
set node_(1) [$ns_ node]
$node_(1) random-motion 0

Phy/WirelessPhy set RXThresh_ 1.42681e-08 ;# 100 m
set node_(2) [$ns_ node]
$node_(2) random-motion 0

Phy/WirelessPhy set RXThresh_ 1.42681e-08 ;# 100 m
set node_(3) [$ns_ node]
$node_(3) random-motion 0

Phy/WirelessPhy set RXThresh_ 1.42681e-08 ;# 100 m
Mac/802_11 set dataRate_ 1Mb
Mac/802_11 set PLCPdataRate_ 1Mb
$ns_ node-config -adhocRouting $opt(rp) \
  -llType $opt(ll) \
  -macType $opt(mac) \
  -ifqType $opt(ifq) \
  -ifqLen $opt(ifqlen) \
  -antType $opt(ant) \
  -propType $opt(prop) \
  -phyType $opt(netif) \
  -channel $chan_1_ \
  -topoInstance $topo \
  -agentTrace ON \
  -routerTrace ON \
  

[ns] Correct use of mac 802.11 in MANET network

2008-11-15 Thread Massimo Reineri

Hello to everybody!
I would know your opinion about my solution.
I'm working in MANET routing context and I'm simulating a simple network made up
by 4 fixed wireless nodes (A,B,C,D) with mac layer 802_11 (dataRate_ set to 
11Mb) 
and a mobile node (E) with mac layer 802_11 but dataRate_ set to 1Mb that moves 
from the
left side to the right side of the network as shown in the next picture:

| A | | B || C |  | D |

->>| E |--->>->>-

Now I want to check the data throughput for the communication among node A and 
node E and viceversa.
The simulator seams to run correctly but I'm not sure that the current 
implementation
of the mac layer mac-802_11.{h,cc} allows me to deal with this scenario, i.e. 
it allows me to
use different channel capacities in the same wireless network.
Any help can be very useful and so thank you in advance for your attention!

Best regards,
 Massimo


[ns] Different RXThreshold for each physical radio interface belonging to the same wireless node

2008-10-09 Thread Massimo Reineri

Dear all,

I'm working in MANET context and I'm using the solution proposed by Ramon 
Aguero Calvo
(http://personales.unican.es/aguerocr/files/ucMultiIfacesSupport.pdf) to 
support Multi Interface in wireless node. 
Now I want to assign a different RXThreshold for each wireless physical 
interface belonging to the same wireless node. 
Is it possible? How I can implement this idea? 
Any suggestion will be considered.

Thank you very much!

Massimo


[ns] AODV and OLSR with Multiple Interface Support

2008-10-07 Thread Massimo Reineri

Dear All,

I would compare the performances of traditional AODV and OLSR manet routing 
protocols with the correspective versions able to provide multiple interface 
support as explained in the document "Adding Multiple Interface Support" 
(http://personales.unican.es/aguerocr/files/ucMultiIfacesSupport.pdf) written 
by Ramon Aguero Calvo. 
Now my question is: "Is it possible to retrive the source code for AODV and 
OLSR modified to implement the multiple interface support? If the answer will 
be yes, please let me know from where I can download it.
Thank you in advance.

Best regards,
Massimo Reineri


Re: [ns] Node with more than one network interface

2008-09-09 Thread Massimo Reineri

Thank you Andreas for your suggestion!
I will inspect it and I will let you know.

Massimo

- Original Message - 
From: "Andreas J Kassler" <[EMAIL PROTECTED]>
To: "'Massimo Reineri'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2008 12:28 PM
Subject: RE: [ns] Node with more than one network interface


> Massimo,
> You could use ns-miracle which supports multiple interfaces.
> Best, Andreas
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Massimo Reineri
> Sent: Dienstag, 9. September 2008 11:25
> To: ns-users@ISI.EDU
> Subject: [ns] Node with more than one network interface
>
>
>
> Dear all,
> I'm working on Ad-Hoc Mesh Network scenario, I want to use more than one
> network interfaces per node and I want to provide an IP address for
> each interfaces. Naturally, the interfaces installed in the same node will
> work in different channels to avoid interference.
> I tried to modify the C++ code but I realized that it was not the correct
> solution because the routing agent allows only a single identifier
> per node and so some packets have been lost.
> Another idea should be to connect many nodes equipped with only one 
> network
> interface by a "piece of cable" to build a macronode with more
> than one network interfaces. The idea seems good but I'm not able to
> implement the ns script that allows to do it.
> Do you have some suggestions or some smarter idea for me?
> Thank you all in advance!
> Best regards.
>
> Massimo Reineri
>
>
>
> 



Re: [ns] Node with more than one network interface

2008-09-09 Thread Massimo Reineri

Thank you Ramon!
I've already implemented your solution and it's great when I want to work in 
a scenario that I can
call "Multi Interfaces Single IP address". The problem arises when I try to 
work in the scenario in which each
interface (network card) is equipped with own ip address because the 
solution that you have suggested to me
does not allow to do it. I call this scenario "Multi Interfaces Multiple IP 
Address".
In your solution the node has only one IP address and many physical 
interfaces that are
able to work in different channels. In my solution I would to have node with 
different physical interfaces each one
equipped with its own IP address. Is it possible in your opinion?
Best regards,

Massimo

- Original Message - 
From: "Ramon Aguero" <[EMAIL PROTECTED]>
To: "Massimo Reineri" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2008 12:07 PM
Subject: Re: [ns] Node with more than one network interface


Hi Massimo,

maybe you would like to take a look at:
http://personales.unican.es/aguerocr/

Cheers,
Ramón

At 11:24 09/09/2008, you wrote:

>Dear all,
>I'm working on Ad-Hoc Mesh Network scenario, I want to use more than one 
>network interfaces per node and I want to provide an IP address for
>each interfaces. Naturally, the interfaces installed in the same node will 
>work in different channels to avoid interference.
>I tried to modify the C++ code but I realized that it was not the correct 
>solution because the routing agent allows only a single identifier
>per node and so some packets have been lost.
>Another idea should be to connect many nodes equipped with only one network 
>interface by a "piece of cable" to build a macronode with more
>than one network interfaces. The idea seems good but I'm not able to 
>implement the ns script that allows to do it.
>Do you have some suggestions or some smarter idea for me?
>Thank you all in advance!
>Best regards.
>
>Massimo Reineri



[ns] Node with more than one network interface

2008-09-09 Thread Massimo Reineri

Dear all,
I'm working on Ad-Hoc Mesh Network scenario, I want to use more than one 
network interfaces per node and I want to provide an IP address for
each interfaces. Naturally, the interfaces installed in the same node will work 
in different channels to avoid interference.
I tried to modify the C++ code but I realized that it was not the correct 
solution because the routing agent allows only a single identifier
per node and so some packets have been lost.
Another idea should be to connect many nodes equipped with only one network 
interface by a "piece of cable" to build a macronode with more
than one network interfaces. The idea seems good but I'm not able to implement 
the ns script that allows to do it. 
Do you have some suggestions or some smarter idea for me?
Thank you all in advance!
Best regards.

Massimo Reineri