Re: [ns] Help for analysis of tracefile (delfryanto delfry)

2010-08-18 Thread Manoj srivatsav

Hi,
Depending upon the wireless format for the trace file that you have chosen
for the wimax module, you just have to match the columns

thanks
manoj


[ns] Cannot simulate more than 45 nodes

2010-05-08 Thread Manoj srivatsav

Hi all,
i was trying to simulate wimax enivronment for 64 nodes to get the Initial
Ranging delay, but only 45 nodes are receiving the RNG-RSP packet. Can
anyone tell why is this happening? plz someone reply its urgent for my
project


thanks
manoj


[ns] segmentation fault

2010-05-02 Thread Manoj srivatsav

hi all,
i am getting segmentation fault when i add these following lines of code...
its code for configuring the wimax ctrl agent...

$wimaxctrl add-neighbor [$bstation2 set mac_(0)] $bstation2
$wimaxctrl2 add-neighbor [$bstation set mac_(0)] $bstation

can anyone explain why i am getting the segmentation fault?... plz its
urgent for my project...

thanks guys,
manoj


[ns] wimax throughput

2010-04-30 Thread Manoj srivatsav

Hi all,
Can anyone tell how can i calculate the throughput in a WiMAX network...?
 and this throughput should be calculated for the base station plz
anyone help...

thanks
manoj


[ns] seeds in ns

2010-04-23 Thread Manoj srivatsav

Hi all,
Can anyone tell me how the seed in the random number generator work
internally.. i.e i want to know the internal working for seeds in random
generator..?


[ns] seeds in wimax

2010-04-16 Thread Manoj srivatsav

Hi all,
i am trying to simulate the initial ranging part of wimax. for that i need
to know what seed is ?.. if anyone knows what a seed is and
a good set of seeds.. please tell me how it works in the wimax
enivronment..

thanks
manoj


[ns] route to base station not found error

2010-04-10 Thread Manoj srivatsav
Station node created"
#provide some co-ord (fixed) to base station node
$bstation1 set X_ 250.0
$bstation1 set Y_ 250.0
$bstation1 set Z_ 0.0
[$bstation1 set mac_(0)] set-channel 0
set bs1addr [$bstation1 node-addr]
puts "bstation1=$bs1addr"

# creation of the mobile nodes

$ns node-config -macType Mac/802_16/SS \
-wiredRouting ON \
-macTrace ON  ;# Mobile nodes cannot do
routing.

#create a node that sends data to other domain
set node1 [$ns node 1.0.1]
set node2 [$ns node 1.0.2]
$node1 random-motion 0
$node2 random-motion 0
$node1 set X_ 200.0
$node1 set Y_ 150.0
$node1 set Z_ 0.0

$node2 set X_ 300.0
$node2 set Y_ 150.0
$node2 set Z_ 0.0

$node1 base-station [AddrParams addr2id [$bstation1 node-addr]]
[$node1 set mac_(0)] set-channel 0
[$node1 set mac_(0)] set-diuc $diuc
set node1addr [$node1 node-addr]
puts "Address of node1 in domain 1 : $node1addr"

$node2 base-station [AddrParams addr2id [$bstation1 node-addr]]
[$node2 set mac_(0)] set-channel 0
[$node2 set mac_(0)] set-diuc $diuc

#create an agent and the cbr traffic source and attach it to node1
set udp [new Agent/UDP]
$udp set packetSize_ $packet_size
$ns attach-agent $node1 $udp

set cbr1 [new Application/Traffic/CBR]
$cbr1 set packetSize_ $packet_size
$cbr1 set rate_ 5Mb
$cbr1 attach-agent $udp

set udp1 [new Agent/UDP]
$udp set packetSize_ $packet_size
$ns attach-agent $node2 $udp1

set cbr2 [new Application/Traffic/CBR]
$cbr2 set packetSize_ $packet_size
$cbr2 set rate_ 5Mb
$cbr2 attach-agent $udp1

set null [new Agent/Null]
$ns attach-agent $sinkNode $null

set null1 [new Agent/Null]
$ns attach-agent $sinkNode1 $null1

$ns connect $udp $null
$ns connect $udp1 $null1

$ns duplex-link $sinkNode $bstation1 100Mb 1ms DropTail
$ns duplex-link $sinkNode1 $bstation1 100Mb 1ms DropTail
#$sinkNode base-station [AddrParams addr2id [$bstation1 node-addr]]
#$sinkNode1 base-station [AddrParams addr2id [$bstation1 node-addr]]



puts "starting the flows"

$ns at 5.0 "$cbr1 start"
$ns at 5.0 "$cbr2 start"
$ns at 7.0 "$cbr2 stop"
$ns at 7.0 "$cbr1 stop"



$ns at $simulation_stop "finish"
puts "Running simulation.."
$ns run

and one more thing.. what is this wiredRouting in node-config... for mobile
nodes if i make the wiredRouting OFF... it gives me an error saying that
mobiles nodes have not be defined...
anyone plz help.. its urgent for my project...

thanks all
Manoj Srivatsav


[ns] nam 1.12 error

2010-04-02 Thread Manoj srivatsav

Hi all,
  This is the error I get when I try to use nam, or a tcl file that
uses namtrace. This right after I have installed ns2.30 in ubuntu 9.10. Any
help would be appreciated.

sh...@shyam-laptop:~/Documents/ns-allinone-2.30/ns-2.30/tcl/ex$ ns
simple.tcl
210
0.0037499
running nam...
sh...@shyam-laptop:~/Documents/ns-allinone-2.30/ns-2.30/tcl/ex$ nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox  {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox  {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."



thanks.


[ns] problem in installing xgraph 12.1

2010-03-28 Thread Manoj srivatsav

Hi all,
when i tired installing xgraph 12.1 on fedora 12.. i get the following error
when i execute the make command... ./configure excutes without any errors..

[ma...@localhost xgraph-12.1]$ make
gcc -DHAVE_CONFIG_H -I. -I. -I.-g-c dialog.c
dialog.c: In function ‘make_msg_box’:
dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible
pointer type
/usr/include/stdio.h:653: note: expected ‘size_t * __restrict__’ but
argument is of type ‘char *’
dialog.c:780: error: too few arguments to function ‘getline’
dialog.c: In function ‘getline’:
dialog.c:899: error: argument ‘lptr’ doesn’t match prototype
/usr/include/stdio.h:653: error: prototype declaration
dialog.c:899: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:653: error: prototype declaration
make: *** [dialog.o] Error 1

plz some one help..

thanks..
manoj


[ns] problem in installing ns 2.34 on fedora 12

2010-03-12 Thread Manoj srivatsav

hi all,
i am getting the following error.. while installing ns 2.34 on fedora 12
/ns-allinone-2.30/include -o Tcl.o Tcl.cc

Tcl.cc: In member function ‘void Tcl::eval(char*)’:

Tcl.cc:182: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*,
TclObject*)’:
Tcl.cc:421: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*,
Tcl_Interp*, int, const char**)’:
Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:511: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int
TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:566: error: invalid conversion from ‘const char*’ to ‘char*’
Tcl.cc:571: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:605: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.18 make failed! Exiting ...

Please tell how do i work around this one?...


thanks
Manoj


[ns] WiMAX simulation in NS2

2010-03-04 Thread Manoj srivatsav

hi all,
if anyone has worked on simulating WiMAX on NS2... please give me some
suggestion on how to start.. it would be really helpful.

thanks
manoj