Re: [ns] segmentation fault with dsr

2010-08-07 Thread tiongsquare


hi,

Solution:

In yr tcl script, include the following:

if { $val(rp) == “DSR” } {
set val(ifq)CMUPriQueue
} else {
set val(ifq)Queue/DropTail/PriQueue
}

http://cromagnonlife.wordpress.com/2010/08/08/solution-ns2-segmentation-fault-core-dumped-when-using-dsr/


sriram balakrishnan wrote:
 
 
 i tried to simulate the wireless1.tcl file given in marcs tutorial and ran
 it for 50 nodes and 20 connections but when the protocol is set to dsr it
 gives segmentation fault any idea why
 
 -- 
 B Sriram
 Wing Commander
 mob : 09733706981
 
 

-- 
View this message in context: 
http://old.nabble.com/segmentation-fault-with-dsr-tp19852112p29375655.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] segmentation fault with dsr

2008-10-07 Thread sriram balakrishnan

i tried to simulate the wireless1.tcl file given in marcs tutorial and ran
it for 50 nodes and 20 connections but when the protocol is set to dsr it
gives segmentation fault any idea why

-- 
B Sriram
Wing Commander
mob : 09733706981


Re: [ns] Segmentation fault in DSR Routing protocol

2007-04-16 Thread Bryan Hogan

Hello Shailesh,

Are you using Queue/DropTail/PriQueue in your TCL file? if so, change to 
CMUPriQueue.

Regards,

Bryan
Bryan's Dynamic Source Routing FAQ - http://www.geocities.com/b_j_hogan/

On Wed, 28 Mar 2007, Shailesh Gamit wrote:


 I have a problem with the DSR protocol in ns2.29
 when i run the tcl script sometimes it gives the segmentation fault error.
 I think that this segmentation error is giving only when there is a path break
 is it ture ... or what  is the problem.
 thanks..

 -- 
 Shailesh Gamit
 M.Tech (CSE),
 Nirma Institute of Technology,
 Ahmedabad, India




[ns] Segmentation fault in DSR Routing protocol

2007-03-27 Thread Shailesh Gamit

I have a problem with the DSR protocol in ns2.29
when i run the tcl script sometimes it gives the segmentation fault error.
I think that this segmentation error is giving only when there is a path break
is it ture ... or what  is the problem.
thanks..

-- 
Shailesh Gamit
M.Tech (CSE),
Nirma Institute of Technology,
Ahmedabad, India



[ns] Segmentation Fault in DSR

2006-10-13 Thread eoliveira

Hello,

I am working with ad hoc protocols in point-to-multipoint and
multipoint-to-point scenario with 1, 2, 5, 10, 20 and 50 nodes. The
simulation take 1020 seconds.

With few nodes, there is no problem.  But with 20 and 50 nodes, the
segmentation fault occurs with 400, 600, 800 seconds.  Anybody has any
idea?

I am appending a shell script file and the TCL file.

Thanks in advance.

Etienne Oliveira

# ==
# Define options
# ===
set opt(chan)   Channel/WirelessChannel
set opt(prop)   Propagation/TwoRayGround
set opt(netif)  Phy/WirelessPhy
set opt(mac)Mac/802_11
set opt(ll) LL
set opt(ant)Antenna/OmniAntenna
set opt(ifqlen) 50  ;# max packet in ifq

set opt(filters) DSR
set opt(adhocRouting)DSR
set opt(ifq) CMUPriQueue
set opt(x)  1898
set opt(y)  770
set opt(nn) 51
set opt(stop)   1020
set opt(tr) wireless.tr
set opt(sndr)   50
set opt(rcvr)   1


# ==

$opt(mac) set dataRate_ 11Mb
$opt(mac) set basicRate_ 11Mb

LL set mindelay_50us
LL set delay_   25us
LL set bandwidth_   0   ;# not used

#Queue/DropTail/PriQueue set Prefer_Routing_Protocols1

# 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 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 Pt_ 0.2818
Phy/WirelessPhy set freq_ 914e+6
Phy/WirelessPhy set L_ 1.0

# ==
# Main Program
# =

#
# Initialize Global Variables
#

set ns_ [new Simulator]
set topo[new Topography]

set tracefd [open $opt(tr) w]
$ns_ trace-all $tracefd

$topo load_flatgrid $opt(x) $opt(y)

# [... + 2] Problema no DSR - Resposta no google
set god_ [create-god [expr $opt(nn) + 2]]

#
# Global node setting
#

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

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

for {set i 0} {$i = $opt(nn) } {incr i} {
set node_($i) [$ns_ node $i]
$node_($i) random-motion 0  ;# disable random motion
$god_ new_node $node_($i)
}

#
# Scennario File
#

$node_(0) set X_ 949.00
$node_(0) set Y_ 385.00
$node_(0) set Z_ 0.0
$node_(1) set X_ 1635.91
$node_(1) set Y_ 662.36
$node_(1) set Z_ 0.0
$node_(2) set X_ 1459.13
$node_(2) set Y_ 139.45
$node_(2) set Z_ 0.0
$node_(3) set X_ 280.60
$node_(3) set Y_ 697.29
$node_(3) set Z_ 0.0
$node_(4) set X_ 1861.14
$node_(4) set Y_ 214.13
$node_(4) set Z_ 0.0
$node_(5) set X_ 1736.59
$node_(5) set Y_ 582.57
$node_(5) set Z_ 0.0
$node_(6) set X_ 1005.10
$node_(6) set Y_ 58.01
$node_(6) set Z_ 0.0
$node_(7) set X_ 1252.78
$node_(7) set Y_ 300.35
$node_(7) set Z_ 0.0
$node_(8) set X_ 1565.76
$node_(8) set Y_ 219.67
$node_(8) set Z_ 0.0
$node_(9) set X_ 1513.90
$node_(9) set Y_ 92.29
$node_(9) set Z_ 0.0
$node_(10) set X_ 1522.73
$node_(10) set Y_ 653.42
$node_(10) set Z_ 0.0
$node_(11) set X_ 1410.50
$node_(11) set Y_ 148.86
$node_(11) set Z_ 0.0
$node_(12) set X_ 1081.79
$node_(12) set Y_ 620.04
$node_(12) set Z_ 0.0
$node_(13) set X_ 917.08
$node_(13) set Y_ 688.20
$node_(13) set Z_ 0.0
$node_(14) set X_ 846.38
$node_(14) set Y_ 554.51
$node_(14) set Z_ 0.0
$node_(15) set X_ 152.46
$node_(15) set Y_ 48.60
$node_(15) set Z_ 0.0
$node_(16) set X_ 1561.04
$node_(16) set Y_ 559.50
$node_(16) set Z_ 0.0
$node_(17) set X_ 1316.64
$node_(17) set Y_ 585.48
$node_(17) set Z_ 0.0
$node_(18) set X_ 1529.37
$node_(18) set Y_ 407.81
$node_(18) set Z_ 0.0
$node_(19) set X_ 1824.51
$node_(19) set Y_ 38.28
$node_(19) set Z_ 0.0
$node_(20) set X_ 1601.04
$node_(20) set Y_ 305.16
$node_(20) set Z_ 0.0
$node_(21) set X_ 1027.40
$node_(21) set Y_ 240.27
$node_(21) set Z_ 0.0
$node_(22) set X_ 25.83
$node_(22) set Y_ 94.53