[ns] patch Wi-Max installation with Cygwin

2006-11-28 Thread Elena Putzolu

Hi all,
I am trying to install the Patch NIST' S WIMAX Model on Cygwin for Ns-2 .29 
through the commands
-p0 patch-wimax-prerelease-092206 
-p1 patch-wimax-prerelease-092206 
but both do not work. 
can someone help me? 
thanks in advance 
Elena


[ns] problem with Patch Wimax

2006-11-30 Thread Elena Putzolu



thanks all,
I have tried the command -p0  patch-wimax-prerelease-092206 
 from the ns-allinone-2.29 directory
while the command  -p1 patch-wimax-prerelease-092206 
from the ns-2.29 directory, but doesn't work.
I have tried the command patch patch-wimax-prerelease-092206  and appears 
can't find file to patch at input line 4
perhaps you should have used the -p pr --strip option?
the text leading up to this was:
diff -Naur ns-2.29-0rg/common/packet.h   ns-2.29/common/pachet.h
---ns-2.29-org/common/packet.h
+++ ns-2.29/common/packet.h
file to patch:


I sincerely do not know how to interpret them because I am not very expert of 
Linux commands .
Bye
Elena


[ns] Wimax example simple.tcl

2006-12-01 Thread Elena Putzolu

finally I have installed Patch NIST' S WIMAX 
then however I have tried the simple.tcl  example  in the  
/usr/Local/Ns-Allinone-2 .29/ Ns-2 .29/ Tcl/Wimax/ Directory, but a the command
ns simple.tcl
I obtain as answer :
command name Mac/802_16
  while executing
Mac/802_16 set  debug_ 0
  (file simple.tcl). 
someone has tried this example?
Thanks in advance 
Elena


[ns] installazione ns 2.29.3 su Cygwin

2006-12-05 Thread Elena Putzolu

 I am trying again  to install ns-2.29 on cygwin but after to have given the 
./install command and created rows  .bash_profile (PATH=. LD_LIBRARY_PATH=.. 
TCL_PATH=..), logout, unfortunately to the ns command it does not work, it does 
not appear prompt %.
 according to you I have forgotten something?
Elena


[ns] problems with installation Ns-2 .29.3 under Cygwin

2006-12-06 Thread Elena Putzolu

Hi all,

when I did the ./validate, I obtained: 

These messages are NOT errors and can be ignored:

warning: using backward compatibility mode

This test is not implemented in backward compatibility mode

 


validate overall report: some tests failed:

 ./test-all-smac-multihop ./test-all-simultaneous ./test-all-wireless-tdma

to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME

Notice that some tests in webcache will fail on freebsd when -O is turned on.

This is due to some event reordering, which will disappear when -g is turned on.

 

Cygwin = 1.3.19 detected (1.5.21), all tests should have passed.

Please see http://www.isi.edu/nsnam/ns/ns-problems.html

for potential solutions.

Then with the Echo $PATH command I have had as answer: 

/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Programmi/ATI
 Technologies/ATI Control Panel:/usr/lib/lapack
I think that my Paths are set wrong , but   I have given in the Ns-Allinone-2 
.29 Directory the order: 

export PATH= 
/usr/local/ns-allinone-2.29/bin:/usr/local/ns-allinone-2.29/tcl8.4.11/unix:/usr/local//ns-allinone-2.29/tk8.4.11/unix

Where am I making a mistake? I thank you so for lo help which you are giving me 
Elena



[ns] Problem with Pach WiMax installation under Cygwin

2006-12-08 Thread Elena Putzolu

Hi all,
I run the command
patch -p0  patch-wimax-prerelease-092206 in ns-allinone-2.29 directory. Then, 
after the ./configure, I added in the Makefile  --DDEBUG_WIMAX to the DEFINE 
command (somewhere around line 62).
then I did:
$ make clean
and
$ make
g++ -c -g -Wall -Werror -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK 
-DTCLCL_CLASSINSTVAR \   -I. -I/usr/local/ns-allinone-2.29/tclcl-1.17 
-I/usr/local/ns-allinone-2.29/otcl-1.11 -I/usr/local/ns-allinone-2.29/include 
-I/usr/local/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp 
-I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace 
-I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main 
-I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns 
-I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite 
-I./wimax -I./wpan -o tools/random.o tools/random.cc
g++:  : No such file or directory
In file included from ./config.h:54,
 from tools/random.cc:40:
./autoconf.h:89: error: expected namespace-name before ';' token
./autoconf.h:89: error: `type error' is not a namespace
make: *** [tools/random.o] Error 1

when I did make install, the result was:

$ make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1

therefore when I did:
$ ns simple.tcl
gap size=1
invalid command name Mac/802_16
while executing
Mac/802_16 set debug_ 0
(file simple.tcl line 45)

what is there that he does not go? 
thanks in advance 
Elena


[ns] WiMax Patch installation...help!

2006-12-09 Thread Elena Putzolu

Hi all,

In the ns-2.29 directory, I did:
make clean; ./configure  -enable-debug; make
the result (after many lines) was:
trace/trace.cc: In member function `virtual void DequeTrace::recv(Packet*, 
Handler*)':
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:567: warning: int format, nsaddr_t arg (arg 6)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 5)
trace/trace.cc:586: warning: int format, nsaddr_t arg (arg 6)
make: *** [trace/trace.o] Error 1

then I edit the Makefile  and add the -DDEBUG_WIMAX switch in the DEFINE entry.
at last I run
ns simple.tcl(example in /tcl/wimax directory) but the result was :
invalid command name Mac/802_16
while executing
Mac/802_16 set debug_ 0
(file simple.tcl line 45)

In the site it is explained that recompiling the whole system, thing is 
necessary he means?

thanks in advantage
Elena


[ns] wireless link between Base-Stations

2007-02-08 Thread Elena Putzolu

 
  Hi, 

  I'm Elena, I want to use ns simulator for 
  Master thesis.

  I wanted to ask you how one can to 
  establish a wireless link between Base-Station. how have you set up it? 
  

  Thanks in advance!
regards

  Elena






 L'email della prossima generazione? Puoi averla con la  nuova 
Yahoo! Mail









___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html


[ns] communication between base stations

2007-02-22 Thread Elena Putzolu

Blank to all, 
I would want to simulate of the nodes furnitures that communicate with base 
station through protocol 802.b/g (2.4GHz), while the base stations communicates 
between they with protocol 802.11a (5GHz).
 unfortunately I do not succeed to implement the communication between base 
stations.
 someone può to help me please?there are of the extensions that make this? 
thanks

 elena






___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html



Re: [ns] ns nodes

2007-03-16 Thread Elena Putzolu

W.A. Iqbal ha scritto:
 could someone tell me in which directory i can find the code of all the nodes
 (basestation, mobile-nodes etc).
 and how do i create a new node, i basically want to create a wireless-node
 that stores and forwards the data it receives.
 thanks for your help.

 rgrds
 W.A. Iqbal
   
in ns-2.30  ~/ns-2.30/tcl/lib ns-bsnode.tcl
  ns-mobilenode.tcl
C:~/ns-2.30/common
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



[ns] I need help for my script with mw-node patch

2007-03-18 Thread Elena Putzolu

Hi ns-users,
I have installed in ns-2.30 pach MW-node, 
http://www.q2s.ntnu.no/~paquerea/ns.html
through my script, would purely like to simulate a net wireless, where 
presents of Access Point (2) and the mobile nodes(3). Access Point 
communicate between them through the standard 802.11a, while the mobile 
nodes only communicate cross Access Point with the standard 802.11b/gm. 
Therefore Access Point need 2 interfaces with different settings ( 
802.11a, 802.11b/g ) using pach and the commands I have found in the 
manual tried to set up all these elements in my script:

global val_
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy  ;# physical layer
set val_b(phy) Phy/WirelessPhy  ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type
set val_(ll) LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50   ;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr   ;# 
trace file
set val_(namtr)esercizi/out4.nam  ;# nam 
trace file
set val_(stopTime)   15


proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i  $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) $node_($i) reset
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128 ;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us
 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble
 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)
 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818
 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9
 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set DSSS_PLCPHeaderLength 40   
 #$val_b(phy) set DSSS_PLCPDataRate   6.0e6// 6Mbps
 #$val_b(phy) set DSSS_MaxPropagationDelay0.005// 0.5us

#---create topography
set topography_ [new Topography]
$topography_ load_flatgrid $val_(x) $val_(y)

$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 1
lappend cluster_num 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 3 2
AddrParams set nodes_num_ $eilastlevel
puts Configuration of hierarchical addressing done


# init GOD
create-god 5

$ns_ wireless-config-routing$val_(routing)\
-mac$val_a(mac)\
-phy$val_a(phy) 

[ns] I neeh help for my script with MW-node patch

2007-03-18 Thread Elena Putzolu

Hi ns-users,
I have installed in ns-2.30 patch MW-node, 
http://www.q2s.ntnu.no/~paquerea/ns.html
through my script, would purely like to simulate a net wireless, where 
presents of Access Point (2) and the mobile nodes(3). Access Point 
communicate between them through the standard 802.11a, while the mobile 
nodes only communicate cross Access Point with the standard 802.11b/gm. 
Therefore Access Point need 2 interfaces with different settings ( 
802.11a, 802.11b/g ) using pach and the commands I have found in the 
manual tried to set up all these elements in my script:

global val_
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy  ;# physical layer
set val_b(phy) Phy/WirelessPhy  ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type
set val_(ll) LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50   ;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr   ;# 
trace file
set val_(namtr)esercizi/out4.nam  ;# nam 
trace file
set val_(stopTime)   15


proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i  $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) $node_($i) reset
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128 ;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us
 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble
 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)
 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818
 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9
 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set DSSS_PLCPHeaderLength 40   
 #$val_b(phy) set DSSS_PLCPDataRate   6.0e6// 6Mbps
 #$val_b(phy) set DSSS_MaxPropagationDelay0.005// 0.5us

#---create topography
set topography_ [new Topography]
$topography_ load_flatgrid $val_(x) $val_(y)

$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 1
lappend cluster_num 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 3 2
AddrParams set nodes_num_ $eilastlevel
puts Configuration of hierarchical addressing done


# init GOD
create-god 5

$ns_ wireless-config-routing$val_(routing)\
-mac$val_a(mac)\
-phy$val_a(phy) 

[ns] my script MW-node

2007-03-19 Thread Elena Putzolu

Hi Laurent,
Thank you very much for the answer, I have changed my script, but 
doesn't work.
According to you, because I from this type of mistake?

ns: new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o21 _o33: 
invalid command name Phy/WirelessPhy]
while executing
Phy/WirelessPhy] create _o37 
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new [WirelessModule set wireless_param_(phy)]
(procedure _o36 line 11)
(BiConnector/NetworkInterface2/FullStack/ init line 11)
invoked from within
_o36 init 0 _o21 _o33
(Class create line 1)
invoked from within
BiConnector/NetworkInterface2/FullStack/Wireless create _o36 0 _o21 _o33
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o21 _o33


My Script:
global val_
global val_a
global val_b
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy ;# physical layer
set val_b(phy) Phy/WirelessPhy   ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type
set val_(ll) LL;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr;# trace file
set val_(namtr)esercizi/out4.nam   ;# nam trace file
set val_(stopTime)   15

set chan_a   [new $val_(channel)]
set chan_b   [new $val_(channel)]

proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i  $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) $node_($i) reset
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us
 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble
 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)
 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818
 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9
 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set 

Re: [ns] how to simulate 802.11a channels in NS2 ?

2007-03-21 Thread Elena Putzolu



tdinhtoan ha scritto:
 hi,

 I am going to simulate 802.11a channels in NS2, but i couldn't find out  
 any tutorials about 802.11a in NS2. Could anyone help me some guides or  
 examples about how to set up parameters in order to simulate 802.11a  
 channels in NS2?

 Thanks very much.

 -toan.


   
Hi Toan,
How to set up the wireless bandwidth (such as 802.11 a,b,g) in NS2?
Answer:

In ns2.26 and ns2.27, you can change (basicRate_ and dataRate_ ):

Mac/802_11 set basicRate_ 1Mb
Mac/802_11 set dataRate_  11Mb

in your tcl script.

FHSS (IEEE802.11a)
  Mac/802_11 set SlotTime_  0.50;# 50us
  Mac/802_11 set SIFS_  0.28;# 28us
  Mac/802_11 set PreambleLength_0   ;# no preamble
  Mac/802_11 set PLCPHeaderLength_  128 ;# 128 bits
  Mac/802_11 set PLCPDataRate_  1.0e6   ;# 1Mbps
  Mac/802_11 set dataRate_  1.0e6   ;# 11Mbps
  Mac/802_11 set basicRate_ 1.0e6   ;# 1Mbps

DSSS (IEEE802.11b)
  Mac/802_11 set SlotTime_  0.20;# 20us
  Mac/802_11 set SIFS_  0.10;# 10us
  Mac/802_11 set PreambleLength_144 ;# 144 bit
  Mac/802_11 set PLCPHeaderLength_  48  ;# 48 bits
  Mac/802_11 set PLCPDataRate_  1.0e6   ;# 1Mbps
  Mac/802_11 set dataRate_  11.0e6  ;# 11Mbps
  Mac/802_11 set basicRate_ 1.0e6   ;# 1Mbps

Note:

-if using the short preamble option: you can change the line as:
Mac/802_11 set PreambleLength_ 72

-  # frequency is 2.4 GHz
  Phy/WirelessPhy set freq_ 2.4e+9
  # transmit power
  Phy/WirelessPhy set Pt_ 3.3962527e-2
  # Receive sensitivity.
  Phy/WirelessPhy set RXThresh_ 6.309573e-12
  Phy/WirelessPhy set CSThresh_ 6.309573e-12

Note that the radio range that results from this configuration may or may
not coincide with open field tests. If you want setup a specific range,
use the program ~/indep-utils/propagation/threshold.cc to obtain the
desired RXThresh_ (rx sensitivity) based on the above frequency, transmit
power and your desired range.


802.11g:

#define DSSS_CWMin15
#define DSSS_CWMax1023
#define DSSS_SlotTime0.09
#define DSSS_CCATime 0.03
#define DSSS_RxTxTurnaroundTime0.02
#define DSSS_SIFSTime0.16
#define DSSS_PreambleLength 96
#define DSSS_PLCPHeaderLength40
#define DSSS_PLCPDataRate6.0e6// 6Mbps
#define DSSS_MaxPropagationDelay 0.005// 0.5us

Note: bandwidth is different with achievable throughput.

- In NS ACK are always sent at 1Mbps
- NS use always the long PLCP preamble format sent at 1Mbps
- by default NS uses RTS/CTS handshake
- Packet's size has also an impact in the % of overhead.

All this factor can  bound the achievable throughput




Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



[ns] my configuration 802.11a 802.11b

2007-03-22 Thread Elena Putzolu



Hi ns-users,
In my script I would want  set up the Access Point with 2 interfaces in 
2 different channels (chan_a,chan_b), one with the standard 802.11a and 
the other second standard 802.11b.
Please, I have need help in order to understand if my  configuration is 
correct! If isn't, can you give a suggestion to me?
(in my script the configuration of the nodes follows mw-node)

My script:

global val_
set val_(channel) Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model
set val_(phy) Phy/WirelessPhy  ;# physical layer
set val_(mac) Mac/802_11   ;# mac layer
set val_(ifq) Queue/DropTail/PriQueue  ;# interface queue type
set val_(ll)  LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen)  50   ;# max packet in ifq
set val_(routing) None;# routing
set val_(nMn)  2
set val_(nAP)  2
set val_(x)   150
set val_(y)   150
set val_(tr)  esercizi/out5.tr;# trace file
set val_(namtr)   esercizi/out5.nam;# nam trace file
set val_(stopTime)15

set chan_a   [new $val_(channel)]
set chan_b   [new $val_(channel)]


$ns_  wireless-config   -routing$val_(routing) \
-mac$val_(mac) \
-phy$val_(phy) \
-propagation[new $val_(propagation)] \
-topography $topography_ \
-ll $val_(ll) \
-ifq$val_(ifq) \
-ifq-length $val_(ifqlen) \
-antenna$val_(antenna) \
-xyz-trace  on \
-ifq-trace  on \
-mac-trace  on \
-rtm-trace  on \
-eot-trace  off

#---portal node
$ns_ node-config -wireless +Portal ;# enable Portal support
for {set i 0} {$i$val_(nAP)} {incr i} { ;#ACCESS POINT

$ns_ wireless-config -channel  $chan_a

   set node_AP($i) [$ns_ node 1.[expr $i+1].0]
   $node_AP($i) set-position [expr 100.0*$i*$i] 100.0 0.0
   set netif_a($i) [$node_AP($i) add-interface Wireless] ;# add 
wireless interface

##802.11a
   set mac_a($i) [new $val_(mac)]
   $mac_a($i) set SlotTime_  0.50;# 50us
   $mac_a($i) set SIFS_  0.28;# 28us
   $mac_a($i) set PreambleLength_0;# no preamble_
   $mac_a($i) set PLCPHeaderLength_  128   ;# 128 bits
   $mac_a($i) set PLCPDataRate_  1.0e6   ;# 1Mbps
   $mac_a($i) set dataRate_  54.0e6  ;# 54Mbps
   $mac_a($i) set basicRate_ 1.0e6   ;# 1Mbps

   $netif_a($i) set Pr_ 8.9175e-10   
   $netif_a($i) set Pt_ 0.2818 
   $netif_a($i) set freq_ 5.0e+9
   $netif_a($i) set RXThresh_  1.60607e-10 
   $netif_a($i) set CSThresh_ [expr 0.9*[$netif_a($i) set RXThresh_]]

   $mac_a($i) netif $netif_a($i)


$ns_ wireless-config -channel  $chan_b

  set netif_b($i) [$node_AP($i) add-interface Wireless] ;# add 
wireless interface

##802.11b/g
  $netif_b($i) set Pr_ 8.9175e-10 
  $netif_b($i) set Pt_ 0.007214 
  $netif_b($i) set freq_ 2.4e+9
  $netif_b($i) set RXThresh_  7.138e-11  
  $netif_b($i) set CSThresh_ [expr 0.9*[$netif_b($i) set RXThresh_]]

  $netif_b($i) set DSSS_CWMin 15
  $netif_b($i) set DSSS_CWMax 1023
  $netif_b($i) set DSSS_SlotTime 0.09   
  $netif_b($i) set DSSS_CCATime  0.03   
  $netif_b($i) set DSSS_RxTxTurnaroundTime 0.02   
  $netif_b($i) set DSSS_SIFSTime 0.16
  $netif_b($i) set DSSS_PreambleLength 96
  $netif_b($i) set DSSS_PLCPHeaderLength 40   
  $netif_b($i) set DSSS_PLCPDataRate 6.0e6;#// 6Mbps
  $netif_b($i) set DSSS_MaxPropagationDelay0.005  ;#   // 0.5us

  set mac_b($i) [new $val_(mac)]
  $mac_b($i) set SlotTime_  0.20;# 20us
  $mac_b($i) set SIFS_  0.10;# 10us
  $mac_b($i) set PreambleLength_144;# 144 bits preamble
  $mac_b($i) set PLCPHeaderLength_  48   ;# 48 bits
  $mac_b($i) set PLCPDataRate_  1.0e6  ;# 1Mbps
  $mac_b($i) set dataRate_  11.0e6  ;# 11Mbps oppure 
54Mbps(802.11g)
  $mac_b($i) set basicRate_ 1.0e6   ;# 1Mbps

  $mac_b($i) netif $netif_b($i)
}

..
.
thanks thanks thanks
Elena



[ns] I have need help in order to understand if my configuration is correct!

2007-03-22 Thread Elena Putzolu

Hi ns-users,
In my script I would want  set up the Access Point with 2 interfaces in 
2 different channels (chan_a,chan_b), one with the standard 802.11a and 
the other second standard 802.11b.
Please, I have need help in order to understand if my  configuration is 
correct! If isn't, can you give a suggestion to me?
(in my script the configuration of the nodes follows mw-node)

My script:

global val_
set val_(channel) Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model
set val_(phy) Phy/WirelessPhy  ;# physical layer
set val_(mac) Mac/802_11   ;# mac layer
set val_(ifq) Queue/DropTail/PriQueue  ;# interface queue type
set val_(ll)  LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen)  50   ;# max packet in ifq
set val_(routing) None;# routing
set val_(nMn)  2
set val_(nAP)  2
set val_(x)   150
set val_(y)   150
set val_(tr)  esercizi/out5.tr;# trace file
set val_(namtr)   esercizi/out5.nam;# nam trace file
set val_(stopTime)15

set chan_a   [new $val_(channel)]
set chan_b   [new $val_(channel)]


$ns_  wireless-config   -routing$val_(routing) \
-mac$val_(mac) \
-phy$val_(phy) \
-propagation[new $val_(propagation)] \
-topography $topography_ \
-ll $val_(ll) \
-ifq$val_(ifq) \
-ifq-length $val_(ifqlen) \
-antenna$val_(antenna) \
-xyz-trace  on \
-ifq-trace  on \
-mac-trace  on \
-rtm-trace  on \
-eot-trace  off

#---portal node
$ns_ node-config -wireless +Portal ;# enable Portal support
for {set i 0} {$i$val_(nAP)} {incr i} { ;#ACCESS POINT

$ns_ wireless-config -channel  $chan_a

   set node_AP($i) [$ns_ node 1.[expr $i+1].0]
   $node_AP($i) set-position [expr 100.0*$i*$i] 100.0 0.0
   set netif_a($i) [$node_AP($i) add-interface Wireless] ;# add 
wireless interface

##802.11a
   set mac_a($i) [new $val_(mac)]
   $mac_a($i) set SlotTime_  0.50;# 50us
   $mac_a($i) set SIFS_  0.28;# 28us
   $mac_a($i) set PreambleLength_0;# no preamble_
   $mac_a($i) set PLCPHeaderLength_  128   ;# 128 bits
   $mac_a($i) set PLCPDataRate_  1.0e6   ;# 1Mbps
   $mac_a($i) set dataRate_  54.0e6  ;# 54Mbps
   $mac_a($i) set basicRate_ 1.0e6   ;# 1Mbps

   $netif_a($i) set Pr_ 8.9175e-10   
   $netif_a($i) set Pt_ 0.2818 
   $netif_a($i) set freq_ 5.0e+9
   $netif_a($i) set RXThresh_  1.60607e-10 
   $netif_a($i) set CSThresh_ [expr 0.9*[$netif_a($i) set RXThresh_]]

   $mac_a($i) netif $netif_a($i)


$ns_ wireless-config -channel  $chan_b

  set netif_b($i) [$node_AP($i) add-interface Wireless] ;# add 
wireless interface

##802.11b/g
  $netif_b($i) set Pr_ 8.9175e-10 
  $netif_b($i) set Pt_ 0.007214 
  $netif_b($i) set freq_ 2.4e+9
  $netif_b($i) set RXThresh_  7.138e-11  
  $netif_b($i) set CSThresh_ [expr 0.9*[$netif_b($i) set RXThresh_]]

  $netif_b($i) set DSSS_CWMin 15
  $netif_b($i) set DSSS_CWMax 1023
  $netif_b($i) set DSSS_SlotTime 0.09   
  $netif_b($i) set DSSS_CCATime  0.03   
  $netif_b($i) set DSSS_RxTxTurnaroundTime 0.02   
  $netif_b($i) set DSSS_SIFSTime 0.16
  $netif_b($i) set DSSS_PreambleLength 96
  $netif_b($i) set DSSS_PLCPHeaderLength 40   
  $netif_b($i) set DSSS_PLCPDataRate 6.0e6;#// 6Mbps
  $netif_b($i) set DSSS_MaxPropagationDelay0.005  ;#   // 0.5us

  set mac_b($i) [new $val_(mac)]
  $mac_b($i) set SlotTime_  0.20;# 20us
  $mac_b($i) set SIFS_  0.10;# 10us
  $mac_b($i) set PreambleLength_144;# 144 bits preamble
  $mac_b($i) set PLCPHeaderLength_  48   ;# 48 bits
  $mac_b($i) set PLCPDataRate_  1.0e6  ;# 1Mbps
  $mac_b($i) set dataRate_  11.0e6  ;# 11Mbps oppure 
54Mbps(802.11g)
  $mac_b($i) set basicRate_ 1.0e6   ;# 1Mbps

  $mac_b($i) netif $netif_b($i)
}

..
.
thanks thanks thanks
Elena


[ns] configuration 2 interfaces (in 2 different channels) with 802.11a and 802.11b

2007-03-23 Thread Elena Putzolu




thanks Marcel,
but my demand did not refer to the values that variable statics must 
assume (the values they can modify easy), I need help for  the 
interface  set up in tcl languages.
Which are the commands who allow me to shape in way corrected the static 
tcl variable for every interface and in every channel from defined me 
(chan_a_, chan_b_). And moreover, Where I must put these commands in my 
script in way cha the configuration it is valid?
You can help me in this?
thanks for your interest
Elena
(My script is under)

Marcel Castro ha scritto:
 Elena and All,
  According to some 802.11a cards specification, the basicRate_ for 
 802.11a and g should be 6 Mbps.
  See 
 http://www.3com.com/products/en_US/detail.jsp?tab=prodspecsku=3CRDAG675Bpathtype=purchase
  
 http://www.3com.com/products/en_US/detail.jsp?tab=prodspecsku=3CRDAG675Bpathtype=purchase.
  Could anybody clarify that?
 
 Marcel
 


 On 3/22/07, *Elena Putzolu* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:




 Hi ns-users,
 In my script I would want  set up the Access Point with 2
 interfaces in
 2 different channels (chan_a,chan_b), one with the standard
 802.11a and
 the other second standard 802.11b.
 Please, I have need help in order to understand if
 my  configuration is
 correct! If isn't, can you give a suggestion to me?
 (in my script the configuration of the nodes follows mw-node)

 My script:

 global val_
 set val_(channel) Channel/Wireless;# channel
 set val_(propagation) Propagation/TwoRayGround ;#
 radio-propagation model
 set val_(phy) Phy/WirelessPhy  ;# physical layer
 set val_(mac) Mac/802_11   ;# mac layer
 set val_(ifq) Queue/DropTail/PriQueue  ;# interface queue
 type
 set val_(ll)  LL   ;# link layer type
 set val_(antenna) Antenna/OmniAntenna  ;# antenna model
 set val_(ifqlen)  50   ;# max packet in ifq
 set val_(routing) None;# routing
 set val_(nMn)  2
 set val_(nAP)  2
 set val_(x)   150
 set val_(y)   150
 set val_(tr)  esercizi/out5.tr;# trace file
 set val_(namtr)   esercizi/out5.nam;# nam trace file
 set val_(stopTime)15

 set chan_a   [new $val_(channel)]
 set chan_b   [new $val_(channel)]
 
 
 $ns_  wireless-config   -routing$val_(routing) \
 -mac$val_(mac) \
 -phy$val_(phy) \
 -propagation[new $val_(propagation)] \
 -topography $topography_ \
 -ll $val_(ll) \
 -ifq$val_(ifq) \
 -ifq-length $val_(ifqlen) \
 -antenna$val_(antenna) \
 -xyz-trace  on \
 -ifq-trace  on \
 -mac-trace  on \
 -rtm-trace  on \
 -eot-trace  off

 #---portal node
 $ns_ node-config -wireless +Portal ;# enable Portal support
 for {set i 0} {$i$val_(nAP)} {incr i} { ;#ACCESS POINT

 $ns_ wireless-config -channel  $chan_a

set node_AP($i) [$ns_ node 1.[expr $i+1].0]
$node_AP($i) set-position [expr 100.0*$i*$i ] 100.0 0.0
set netif_a($i) [$node_AP($i) add-interface Wireless] ;# add
 wireless interface

 ##802.11a
set mac_a($i) [new $val_(mac)]
$mac_a($i) set SlotTime_  0.50;# 50us
$mac_a($i) set SIFS_  0.28;# 28us
$mac_a($i) set PreambleLength_0;# no preamble_
$mac_a($i) set PLCPHeaderLength_  128   ;# 128 bits
$mac_a($i) set PLCPDataRate_   1.0e6   ;# 1Mbps
$mac_a($i) set dataRate_  54.0e6  ;# 54Mbps
$mac_a($i) set basicRate_ 1.0e6   ;# 1Mbps

$netif_a($i) set Pr_ 8.9175e-10
$netif_a($i) set Pt_ 0.2818
$netif_a($i) set freq_ 5.0e+9
$netif_a($i) set RXThresh_  1.60607e-10
$netif_a($i) set CSThresh_ [expr 0.9*[$netif_a($i) set RXThresh_]]

$mac_a($i) netif $netif_a($i)


 $ns_ wireless-config -channel  $chan_b

   set netif_b($i) [$node_AP($i) add-interface Wireless] ;# add
 wireless interface

 ##802.11b/g
   $netif_b($i) set Pr_ 8.9175e-10
   $netif_b($i) set Pt_ 0.007214
   $netif_b($i) set freq_ 2.4e+9
   $netif_b($i) set RXThresh_  7.138e-11
   $netif_b($i) set CSThresh_ [expr 0.9*[$netif_b($i) set RXThresh_]]

   $netif_b($i) set DSSS_CWMin 15
   $netif_b

[ns] Phy/WirelessPhy Segmentation Fault

2007-05-01 Thread Elena Putzolu

hi ns-users,

I work with ns-2.30 and Mw-Node patch (for interfaces/multiple channels).

When I try to write in ns:

% set phy_a [new Phy/WirelessPhy]
the  result is: Segmentation Fault.

Someone knows to tell me, why happens this?

Any help would be highly appreciated.
Thanks
Elena