[ns] Segmentation fault

2009-01-03 Thread souhaj


Hello i am using ns2 2.30 and 2.29 under fedora 9..
i am using wireless roouting protocols AODV, DSDV, OLSR...
i have an error segmentation when using DSR...
i have tried to change Linux version by using Mandrake 9.2.. 
PLZ can you help me to solve this error..
thanks in advance..



-- 
View this message in context: 
http://www.nabble.com/Segmentation-fault-tp21263300p21263300.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] TraceGraph Helpppppp!!!

2009-01-03 Thread souhaj


to use the trace graph you have to do some operations:

- get the information taht you need from the trace file (*.tr) exemple
delay, loss ratio by using either awk langage or Perl langage. and you will
put this results by redirection on a file (*.xgr)
- you go under ns-allinone/bin and you put this command : 
./xgraph *.xgr (you have to look if there is some needed options)...

that is the general principle of using xgraph..

NB : i hope that i help you, because i have just began using ns..

good luck 

 
 


new2ns08 wrote:
> 
> Dear all,
> 
> I was trying to use trace graph to plot graph for my simulation. However,
> it seems like there is something i have not understood about it. Everytime
> i try to plot the graph say for one of my tracefiles and i do trgrpah
>  on the terminal it does launch the tracegrpah window but it
> doesn't plot anything. Now what i have done is create a .ip file but what
> i am not sure about is do i need to write my own awk file to make it plot
> a graph say for the delay or throughput. 
> 
> I am sure you can tell that i am way losttt so please please any help on
> tracegraph would be appreciated. I would be more happy if some one can
> tell me the basics in plotting a trace graph or the things i need to do or
> don't!
> 
> Anticipating for your kind cooperation, I would like to thank you very
> much thank you!
> 
> Best regards!!
> 

-- 
View this message in context: 
http://www.nabble.com/TraceGraph-Helpp%21%21%21-tp21243252p21263856.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Segmentation fault

2009-01-03 Thread souhaj



I have resolved the problem

Instead of, 
set opt(ifq)Queue/DropTail/PriQueue; 
use: 
set opt(ifq)CMUPriQueue; 




souhaj wrote:
> 
> Hello i am using ns2 2.30 and 2.29 under fedora 9..
> i am using wireless roouting protocols AODV, DSDV, OLSR...
> i have an error segmentation when using DSR...
> i have tried to change Linux version by using Mandrake 9.2.. 
> PLZ can you help me to solve this error..
> thanks in advance..
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Segmentation-fault-tp21263300p21263863.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Following an alternative path when a link down

2009-01-03 Thread Bil Geyts

Hi,

1  2  3
   |  |
   |  |
   4  5

Above is my topology.
1 is source.
4 is sink.
I can send packages from 1 to 4 over 2 ( The Followed Path is 1-2-4 ).
But when I down the link between 2-4. All packages dies.

When the link between 2-4 goes down, I want all packages to follow the path
1-2-3-5-4.

How can I do that?

Thanks in advance,

Bil


[ns] how to stop a particular node?

2009-01-03 Thread kavan sheth

Hi all,
 currently I am working on address allocation in MANET. for that I was
implementing an addressing agent MANETconf, which works above routing
protocol. As part of simulation scenario I need to simulate departure
of node so a node does not participate in packet forwarding. I tried
$node_(i) reset but it doesn't work.
can any one suggest me how to stop a node(or disable routing agent on a node)?



Re: [ns] how to set different transmit range for different node

2009-01-03 Thread Phenix

Hi Sidney,

After times of trials, I've succeeded in letting different nodes own different 
Tx Range by configuring different value of Pt_ for each node. I get different 
values of Pt_ from a script:
   # The transimssion radio range 
 Pt_ 6.9872e-4;# ?m
 Pt_ 8.5872e-4;# 40m
 Pt_ 1.33826e-3   ;# 50m
 Pt_ 7.214e-3 ;# 100m
 Pt_ 0.2818   ;# 250m

And in my script, I have test range of 250m and 40m. It really works well.
But It's a pity that I don't know how to obtain these values. The tool threshold
(~ns/lidep-utils/propagation/threshold.cc) only generate RXThresh_ other than 
Pt_.

Is there somebody knowing how to get value of Pt_?


[Here is my test script]

# ==
# Define options
# ==
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 2  ;# number of mobilenodes
set val(rp)MFlood  ;# routing protocol,DumbAgent
set val(chan)   Channel/WirelessChannel
set val(prop)   Propagation/TwoRayGround
set val(netif)  Phy/WirelessPhy
set val(mac)Mac/802_11
set val(ifq)Queue/DropTail/PriQueue
set val(ll) LL
set val(ant)Antenna/OmniAntenna
set val(stop) 150

# Initialize the SharedMedia interface with parameters to make
# it work 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 freq_ 914e+6 
Phy/WirelessPhy set L_ 1.0

# Pt_
set txpower_(0)  0.2818   ;# 250m
set txpower_(1)  8.5872e-4;# 40m
set txpower_(2)  7.214e-3 ;# 100m

# ==
# Main Program
# ==

#ns-random 0

# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open mflood_txRange.tr w]
$ns_ trace-all $tracefd

set namtrace[open mflood_txRange.nam w]
$ns_ namtrace-all-wireless $namtrace 1000 500

# set up topography
set topo [new Topography]
$topo load_flatgrid 1000 500

# Create God
create-god $val(nn)


# Create the specified number of mobilenodes [$val(nn)] and "attach" them
# to the channel. 
# configure node
set channel [new Channel/WirelessChannel]
$channel set errorProbability_ 0.0

$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channel $channel \
-topoInstance $topo \
-agentTrace ON \
-routerTrace OFF\
-macTrace OFF \
-movementTrace OFF  

 for {set i 0} {$i < $val(nn) } {incr i} {
  Phy/WirelessPhy set Pt_ $txpower_($i)
  set node_($i) [$ns_ node]
  $node_($i) random-motion 0; 
 }

# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
# 
#  N_0 <-- d ---> N_2 
#  srcdst

$node_(0) set X_ 0.0
$node_(0) set Y_ 200.0
$node_(0) set Z_ 0.0

$node_(1) set X_ 1.0
$node_(1) set Y_ 200.0
$node_(1) set Z_ 0.0

$ns_ at 1.5 "$node_(1) setdest 255.0 200.0 2.0"

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

set udp_(0) [new Agent/UDP]
set udp_(1) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_(0)
$ns_ attach-agent $node_(1) $udp_(1)

set null_(0) [new Agent/Null]
set null_(1) [new Agent/Null]
$ns_ attach-agent $node_(1) $null_(0)
$ns_ attach-agent $node_(0) $null_(1)

$ns_ connect $udp_(0) $null_(0)
$ns_ connect $udp_(1) $null_(1)

for {set i 0} {$i < $val(nn)} {incr i} {
 set cbr_($i) [new Application/Traffic/CBR]
 $cbr_($i) set packetSize_ 512
 $cbr_($i) set interval_ 2
 $cbr_($i) set random_ 1
 $cbr_($i) attach-agent $udp_($i)
 
}
$ns_ at 1.0 "$cbr_(0) start"
$ns_ at 1.1 "$cbr_(1) start"

# 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).0 "stop"
$ns_ at $val(stop).01 "puts \"NS EXITING...\" ; $ns_ halt"
proc stop {} {
global ns_ tracefd namtrace
$ns_ flush-trace
close $tracefd
 close $namtrace
}

puts "Starting Simulation..."
$ns_ run




Regards,
Phenix


From: Sidney Doria 
Sent: Saturday, January 03, 2009 12:01 AM
To: Phenix 
Subject: Re: [ns] how to set different transmit range for different node


Hi Phenix, 


In the TCL file, there's a loop for node creation. So, you can break this node 
in a manual creation, each node with specific characteristics.


Sidney Doria


UFCG / BRAZIL


2009/1/2 Phenix 



  Hi all,

  I'd like how to set different transmit range for different node in MANET.

  eg.
   Three nodes,N0,N1 and N2 are in a line:
 (N0) (N1)(N2)
   |---  20

[ns] Ns 2 installation problem

2009-01-03 Thread sajeeb saha

Hello,

I am trying to install the NS 2 (version 2.29) in fedora 8. Then i got the 
following error:
/*
g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG 
-DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 
-DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  
-DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std 
-DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/ns-allinone-2.29/tclcl-1.17 
-I/home/ns-allinone-2.29/otcl-1.11 -I/home/ns-allinone-2.29/include 
-I/home/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./wpan 
-o trace/trace..o trace/trace.cc
../sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member 
‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1
Ns make failed!

*/

Please help me to find out the bug.

, Sajeeb Saha
10th Batch,CSEDU
+8801914754181
     


  Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/