[ns] Bandwidth of Physical and MAC layer

2009-06-30 Thread Ravit Sachasiri

Hi,

The parameter Phy/WirelessPhy set bandwidth_ 28.8*10e3 sets the
bandwidth of the channel, however, could someone tell me what is the
capacity of the 802.15.4 MAC layer? I tried to increase the bandwidth
parameter by a factor of 1000 but saw no improvement in the average
throughput of the system.

Can someone explain the reason to me?

Thanks.
-Ravit



[ns] Buffer play back iin tcl

2009-06-30 Thread El hadi Cherkaoui

hi all,

i have a simulation to do please help me ;

i want to write a tcl code which simulate a buffer playback

Rate_playBack is set of [100,200,300,400] kbps
the size of buffer is 10* (Rate_playback) ; ie 10 seconds of content media.
the traffic can be FTP / CBR.
the buffer should be monitored by a mobil node. 

Can someone send me  tcl code of this.

Best regards.



  


[ns] Fw : Buffer play back iin tcl

2009-06-30 Thread El hadi Cherkaoui

NO one ?



--- En date de : Mar 30.6.09, El hadi Cherkaoui e_cherka...@yahoo.fr a écrit :

De: El hadi Cherkaoui e_cherka...@yahoo.fr
Objet: [ns] Buffer play back iin tcl
À: NS user ns-users@ISI.EDU
Date: Mardi 30 Juin 2009, 13h53


hi all,

i have a simulation to do please help me ;

i want to write a tcl code which simulate a buffer playback

Rate_playBack is set of [100,200,300,400] kbps
the size of buffer is 10* (Rate_playback) ; ie 10 seconds of content media.
the traffic can be FTP / CBR.
the buffer should be monitored by a mobil node. 

Can someone send me  tcl code of this.

Best regards.



      



  


[ns] Greis tutorial as to defining new protocols

2009-06-30 Thread Oliver Göbel

Hello,
i am working with the Marc Greis' tutorial and i stick with section VII
where a new protocol ought to be defined. There are several files
mentiones in the tutorial and all of them are provided for download.
When I execute the make command as described, I just get the following
error:
apps/ping.cc:64: error: 'off_ip_' was not declared in this scope
apps/ping.cc:93: error: no match for 'operator' in
'hdrip-hdr_ip::src_  *(A
ddress::instance() -Adress::NodeSHift_ +4u)'
make: *** [apps/ping.o] Error 1

I do not know how to handle these error and do not know where their
origin is.
Please help me with that problem.
Thanks in Advance,
Oliver




[ns] NAM in Ubuntu

2009-06-30 Thread LiViAn ZaH

Hello

How can I use NAM in ubuntu ? I m using ubuntu 9.04 and my ns version is 2.33. 

Regards
Liv


  


[ns] Handoff Info to Transport Layer

2009-06-30 Thread LiViAn ZaH

Dear All

Is there any procedure through which  mobile node can pass the states of 
Handoff events ...to transport layer.

In case of disconnection .if link gets reconnected --- how can we pass this 
reconnection information to TCP layer 

Expecting some response.

Livian


  


Re: [ns] using trace file for results

2009-06-30 Thread ali bala

hi
you can use jtrana or boonmotion or tracegraph tools for trace processing
 mr.ali.balador
homepage:www.balador.org 


  


[ns] Error:Please guide me...

2009-06-30 Thread umang singh


hi all,

When i am recompiling my code using make.it gives me an error 

cd ns-allinone-2.29

cd ns-2.29

make clean

./configure

make

come error :

make: *** No targets. Stop.

please help me..if am missing something

regards

umang

_
Stay updated! Add Facebook, LinkedIn, MySpace  Hi5  friends to your Windows 
Live network instantly. Add Now!
http://profile.live.com/webactivities/?mkt=en-in


[ns] Urgent:TORA Simulation hangs/stops at a point

2009-06-30 Thread Lokendra S

Hi all,

Whenver I try to simulate TORA in ns2, after some time, the execution 
hangs/stops at some point and doesnot proceed. There is NO error shown as such, 
but program doesnot proceed.
The tcl script is also attached below.
If anyone faced similar problem before or knows the solution, please reply. Its 
urgent for my project.

---
num_nodes is set 20
found DATA
16384 data points read
fm0 = 30.00 fm = 0.00  fs = 1000.00
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
node 0 received `QRY` for itself.
node 0 received `QRY` for itself.
node 0 received `QRY` for itself.


EXECUTION STOPS HERE AND DOESNT PROCEED FURTHER.
--

TORA Tcl Script:

proc getopt {argc argv} { 
global argv0 seed rate cp sc 
if {$argc  4} { 
puts \nusage: $argv0 seed rate cbr-connection_file node-movement_file\n 
exit 
} 
set seed [lindex $argv 0] 
set rate [lindex $argv 1] 
set cp [lindex $argv 2] 
set sc [lindex $argv 3] 
#puts \n $seed $rate $cp $sc \n 
} 

#  
# Define options 
# 

set val(chan) Channel/WirelessChannel 
set val(prop) Propagation/Ricean ;# radio-propagation model 
set val(netif) Phy/WirelessPhy 
set val(mac) Mac/802_11 
set val(ifq) Queue/DropTail/PriQueue ;# for aodv 
set val(ll) LL 
set val(ant) Antenna/OmniAntenna 
set val(x) 500 ;# X dimension of the topography 
set val(y) 500 ;# Y dimension of the topography 
set val(ifqlen) 50 ;# max packet in ifq 
set val(adhocRouting) TORA 
set val(nn) 20 ;# how many nodes are simulated 
set val(cn) 20 ;# how many connections 
set val(stop) 200 ;# simulation time 
# unity gain, omni-directional antennas 
# set up the antennas to be centered in the node and 1.5 meters above it 
Antenna/OmniAntenna set X_ 0 
Antenna/OmniAntenna set Y_ 0 
Antenna/OmniAntenna set Z_ 1.5 
Antenna/OmniAntenna set Gt_ 1.0 
Antenna/OmniAntenna set Gr_ 1.0 
# Initialize the SharedMedia interface with parameters to make 
# It works like the 914MHz Lucent WaveLAN DSSS radio interface 
Phy/WirelessPhy set CPThresh_ 10.0 
Phy/WirelessPhy set CSThresh_ 1.559e-11 
Phy/WirelessPhy set RXThresh_ 3.652e-10 
Phy/WirelessPhy set Rb_ 2*1e6 
Phy/WirelessPhy set Pt_ 0.2818 
Phy/WirelessPhy set freq_ 914e+6 
Phy/WirelessPhy set L_ 1.0 

#  
# Main Program 
#  
# 
# Initialize Global Variables 
# 
getopt $argc $argv 

# create simulator instance 
set ns_ [new Simulator]
$ns_ use-newtrace; 

# setup topography object 
set topo [new Topography] 

# create trace object for ns and nam 
set tracefd [open out${sc}_nn${val(nn)}_mc${val(cn)}.tr w] 
set namtrace [open out${sc}_nn${val(nn)}_mc${val(cn)}.nam w] 
$ns_ trace-all $tracefd 
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y) 
# define topology 
$topo load_flatgrid $val(x) $val(y) 
 
# Create God 
set god_ [create-god $val(nn)] 

# Create channel #1 
set chan_1_ [new $val(chan)] 

#global node setting 

# Create node attached to channel #1 
$ns_ node-config -adhocRouting $val(adhocRouting) \ 
-llType $val(ll) \ 
-macType $val(mac) \ 
-ifqType $val(ifq) \ 
-ifqLen $val(ifqlen) \ 
-antType $val(ant) \ 
-propType $val(prop) \ 
-phyType $val(netif) \ 
-channel $chan_1_ \ 
-topoInstance $topo \ 
-agentTrace ON \ 
-dsrTrace OFF \ 
-routerTrace OFF \ 
-macTrace ON \ 
-movementTrace OFF \
-toraDebug ON 

### 
# Set Ricean and Rayleigh fading propagation parameter 
##  
set prop_inst [$ns_ set propInstance_] 
$prop_inst MaxVelocity 2.5; 
$prop_inst RiceanK 0; 
$prop_inst LoadRiceFile rice_table.txt; 
# 
# Create the specified number of nodes [$val(nn)] and attach them 
# to the channel. 
for {set i 0} {$i  $val(nn) } {incr i} { 
set node_($i) [$ns_ node] 
$node_($i) random-motion 0 ;# disable random motion 
} 

# 
# Define traffic model 
# 
source $cp#taken as argument
if { $sc != 0} { 
source $sc
 
#taken as argument
} 

# Define node initial position in nam 
for {set i 0} {$i  $val(nn)} {incr i} { 
$ns_ initial_node_pos $node_($i) 20 
} 

# 
# Tell nodes when the simulation ends 
# 
for {set i 0} {$i  $val(nn) } {incr i} { 
$ns_ at $val(stop).0 $node_($i) reset; 
}
$ns_ at $val(stop).0001 $ns_ nam-end-wireless $val(stop).0001 

puts $tracefd M 0.0 nn=$val(nn) x=$val(x) y=$val(y) rp=$val(adhocRouting) 
puts $tracefd M 0.0 sc=$sc cp=$cp seed=$seed 
puts $tracefd M 0.0 prop=$val(prop) ant=$val(ant) 

#Define a 'finish' procedure 
proc finish {} { 
global ns_ tracefd namtrace val(stop) 
$ns_ flush-trace