Simulation dccp

Fermé
ines8989 - 27 mars 2013 à 14:06
Bonjour,

Salut . Je suis débutante avec ns2.35 . Je veus exécuter le tcl suivant : dccp-wireless.tcl
# A simple example for wireless simulation

# ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 2 ;# number of mobilenodes
set val(rp) DSDV ;# routing protocol

# ======================================================================
# Main Program
# ======================================================================


#
# Initialize Global Variables
#
set ns_ [new Simulator]
set tracefd [open simple.tr w]
set namtrace [open simple.out w]
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace 500 500

# set up topography object
set topo [new Topography]

$topo load_flatgrid 500 500

#
# Create God
#
create-god $val(nn)

#
# Create the specified number of mobilenodes [$val(nn)] and "attach" them
# to the channel.
# Here two nodes are created : node(0) and node(1)

set chan_1_ [new $val(chan)]
# configure node

$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 $chan_1_ \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace OFF

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}

#
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
#
$node_(0) set X_ 5.0
$node_(0) set Y_ 2.0
$node_(0) set Z_ 0.0

$node_(1) set X_ 390.0
$node_(1) set Y_ 385.0
$node_(1) set Z_ 0.0

#
# Now produce some simple node movements
# Node_(1) starts to move towards node_(0)
#
$ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0"
$ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0"

# Node_(1) then starts to move away from node_(0)
$ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0"

# Setup traffic flow between nodes
# TCP connections between node_(0) and node_(1)

#set dccp [new Agent/TCP]
set dccp [new Agent/DCCP/TCPlike]
#$tcp set class_ 2
set sink [new Agent/DCCP/TCPlike]
#set sink [new Agent/TCPSink]
$ns_ attach-agent $node_(0) $dccp
$ns_ attach-agent $node_(1) $sink

set ftp [new Application/FTP]
$ftp attach-agent $dccp

$ns_ connect $dccp $sink

# Add agent traces and variabale trace
$dccp set nam_tracevar_ true
$dccp attach $namtrace
$dccp add-agent-trace dccp
$dccp trace s_p_

$ns_ at 1.0 "$sink listen"
$ns_ at 10.0 "$ftp start"

#
# Tell nodes when the simulation ends
#
for {set i 0} {$i < $val(nn) } {incr i} {
$ns_ at 150.0 "$node_($i) reset";
}
$ns_ at 150.0 "stop"
$ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt"
proc stop {} {
global ns_ tracefd namtrace
$ns_ flush-trace
close $tracefd
close $namtrace
}

puts "Starting Simulation..."
$ns_ run
Mais lorsque je l'éxécute sous ns2.35 ; J'ai l'affichage suivant :
num_nodes is set 2

INITIALIZE THE LIST xListHead

Starting Simulation...

channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0

SORTING LISTS ...DONE!

*** buffer overflow detected ***: ns terminated

======= Backtrace: =========

/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x3268d5]

/lib/i386-linux-gnu/libc.so.6(+0xe66d7)[0x3256d7]

/lib/i386-linux-gnu/libc.so.6(+0xe5a0d)[0x324a0d]

ns(_ZN8CMUTrace10nam_formatEP6Packeti+0x97)[0x81fb527]

ns(_ZN8CMUTrace6formatEP6PacketPKc+0x66)[0x81fbdf6]

ns(_ZN8CMUTrace4recvEP6PacketP7Handler+0x44)[0x81fc124]

ns(_ZN9DCCPAgent6outputEb+0x240)[0x81893c0]

ns(_ZN5Agent7commandEiPKPKc+0x3c9)[0x81471c9]

ns(_ZN8TclClass12dispatch_cmdEPvP10Tcl_InterpiPPKc+0x32)[0x82da146]

/usr/lib/libotcl.so.1(+0x2221)[0x9ac221]

/usr/lib/libtcl8.5.so.0(TclInvokeStringCommand+0x77)[0xaccfb7]

/usr/lib/libtcl8.5.so.0(+0x1e95e)[0xace95e]

/usr/lib/libtcl8.5.so.0(+0x675d8)[0xb175d8]

/usr/lib/libtcl8.5.so.0(+0x64863)[0xb14863]

/usr/lib/libtcl8.5.so.0(+0x69263)[0xb19263]

/usr/lib/libtcl8.5.so.0(TclObjInterpProcCore+0x131)[0xb604a1]

/usr/lib/libtcl8.5.so.0(TclObjInterpProc+0x69)[0xb60359]

/usr/lib/libtcl8.5.so.0(TclInvokeObjectCommand+0xe3)[0xacd0c3]

/usr/lib/libotcl.so.1(+0x23a1)[0x9ac3a1]

/usr/lib/libtcl8.5.so.0(TclInvokeStringCommand+0x77)[0xaccfb7]

/usr/lib/libtcl8.5.so.0(+0x1e95e)[0xace95e]

/usr/lib/libtcl8.5.so.0(+0x675d8)[0xb175d8]

/usr/lib/libtcl8.5.so.0(TclObjInterpProcCore+0x131)[0xb604a1]

/usr/lib/libtcl8.5.so.0(TclObjInterpProc+0x69)[0xb60359]

/usr/lib/libtcl8.5.so.0(TclInvokeObjectCommand+0xe3)[0xacd0c3]

/usr/lib/libotcl.so.1(+0x2221)[0x9ac221]

/usr/lib/libtcl8.5.so.0(TclInvokeStringCommand+0x77)[0xaccfb7]

/usr/lib/libtcl8.5.so.0(+0x1e95e)[0xace95e]

/usr/lib/libtcl8.5.so.0(+0x1f7d4)[0xacf7d4]

/usr/lib/libtcl8.5.so.0(Tcl_EvalEx+0x3b)[0xacf16b]

/usr/lib/libtcl8.5.so.0(Tcl_Eval+0x3e)[0xad028e]

/usr/lib/libtcl8.5.so.0(Tcl_GlobalEval+0x37)[0xad13e7]

ns(_ZN3Tcl4evalEPc+0x1b)[0x82d9753]

ns(_ZN9AtHandler6handleEP5Event+0x1b)[0x813307b]

ns(_ZN9Scheduler3runEv+0x3f)[0x813348f]

ns(_ZN9Scheduler7commandEiPKPKc+0x3e4)[0x8133954]

ns(_ZN8TclClass12dispatch_cmdEPvP10Tcl_InterpiPPKc+0x32)[0x82da146]

/usr/lib/libotcl.so.1(+0x2221)[0x9ac221]

/usr/lib/libtcl8.5.so.0(TclInvokeStringCommand+0x77)[0xaccfb7]

/usr/lib/libtcl8.5.so.0(+0x1e95e)[0xace95e]

/usr/lib/libtcl8.5.so.0(+0x675d8)[0xb175d8]

/usr/lib/libtcl8.5.so.0(+0x64863)[0xb14863]

/usr/lib/libtcl8.5.so.0(+0x69263)[0xb19263]

/usr/lib/libtcl8.5.so.0(TclObjInterpProcCore+0x131)[0xb604a1]

/usr/lib/libtcl8.5.so.0(TclObjInterpProc+0x69)[0xb60359]

/usr/lib/libtcl8.5.so.0(TclInvokeObjectCommand+0xe3)[0xacd0c3]

/usr/lib/libotcl.so.1(+0x23a1)[0x9ac3a1]

/usr/lib/libtcl8.5.so.0(TclInvokeStringCommand+0x77)[0xaccfb7]

/usr/lib/libtcl8.5.so.0(+0x1e95e)[0xace95e]

/usr/lib/libtcl8.5.so.0(+0x675d8)[0xb175d8]

/usr/lib/libtcl8.5.so.0(TclObjInterpProcCore+0x131)[0xb604a1]

/usr/lib/libtcl8.5.so.0(TclObjInterpProc+0x69)[0xb60359]

/usr/lib/libtcl8.5.so.0(TclInvokeObjectCommand+0xe3)[0xacd0c3]

/usr/lib/libotcl.so.1(+0x2221)[0x9ac221]

/usr/lib/libtcl8.5.so.0(TclInvokeStringCommand+0x77)[0xaccfb7]

/usr/lib/libtcl8.5.so.0(+0x1e95e)[0xace95e]

/usr/lib/libtcl8.5.so.0(+0x1f7d4)[0xacf7d4]

/usr/lib/libtcl8.5.so.0(Tcl_EvalEx+0x3b)[0xacf16b]

/usr/lib/libtcl8.5.so.0(Tcl_FSEvalFileEx+0x29c)[0xb3ef9c]

/usr/lib/libtcl8.5.so.0(Tcl_Main+0x426)[0xb466c6]

ns(nslibmain+0x1f)[0x82d94df]

ns(main+0x1b)[0x812ab6b]

/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x258113]

======= Memory map: ========

00110000-00113000 r-xp 00000000 08:01 1065 /lib/i386-linux-gnu/libdl-2.13.
so

00113000-00114000 r--p 00002000 08:01 1065 /lib/i386-linux-gnu/libdl-2.13.so
00114000-00115000 rw-p 00003000 08:01 1065 /lib/i386-linux-gnu/libdl-2.13.
so

00115000-0011d000 r-xp 00000000 08:01 1091 /lib/i386-linux-gnu/libnss_compat-2.13.so
0011d000-0011e000 r--p 00007000 08:01 1091 /lib/i386-linux-gnu/libnss_compat-2.13.so
0011e000-0011f000 rw-p 00008000 08:01 1091 /lib/i386-linux-gnu/libnss_compat-2.13.so
0012a000-00152000 r-xp 00000000 08:01 1084 /lib/i386-linux-gnu/libm-2.13.so
00152000-00153000 r--p 00028000 08:01 1084 /lib/i386-linux-gnu/libm-2.13.
so

00153000-00154000 rw-p 00029000 08:01 1084 /lib/i386-linux-gnu/libm-2.13.so
00154000-00232000 r-xp 00000000 08:01 142011 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
00232000-00233000 ---p 000de000 08:01 142011 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
00233000-00237000 r--p 000de000 08:01 142011 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
00237000-00238000 rw-p 000e2000 08:01 142011 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
00238000-0023f000 rw-p 00000000 00:00 0
0023f000-003b5000 r-xp 00000000 08:01 1054 /lib/i386-linux-gnu/libc-2.13.so
003b5000-003b7000 r--p 00176000 08:01 1054 /lib/i386-linux-gnu/libc-2.13.so
003b7000-003b8000 rw-p 00178000 08:01 1054 /lib/i386-linux-gnu/libc-2.13.so
003b8000-003bb000 rw-p 00000000 00:00 0
003bb000-003d0000 r-xp 00000000 08:01 1089 /lib/i386-linux-gnu/libnsl-2.13.so
003d0000-003d1000 r--p 00015000 08:01 1089 /lib/i386-linux-gnu/libnsl-2.13.so
003d1000-003d2000 rw-p 00016000 08:01 1089 /lib/i386-linux-gnu/libnsl-2.13.so
003d2000-003d4000 rw-p 00000000 00:00 0
0046e000-00479000 r-xp 00000000 08:01 1095 /lib/i386-linux-gnu/libnss_files-2.13.so
00479000-0047a000 r--p 0000a000 08:01 1095 /lib/i386-linux-gnu/libnss_files-2.13.so
0047a000-0047b000 rw-p 0000b000 08:01 1095 /lib/i386-linux-gnu/libnss_files-2.13.so
00538000-00542000 r-xp 00000000 08:01 1099 /lib/i386-linux-gnu/libnss_nis-2.13.so
00542000-00543000 r--p 00009000 08:01 1099 /lib/i386-linux-gnu/libnss_nis-2.13.so
00543000-00544000 rw-p 0000a000 08:01 1099 /lib/i386-linux-gnu/libnss_nis-2.13.so
0057b000-00599000 r-xp 00000000 08:01 1041 /lib/i386-linux-gnu/ld-2.13.so
00599000-0059a000 r--p 0001d000 08:01 1041 /lib/i386-linux-gnu/ld-2.13.so
0059a000-0059b000 rw-p 0001e000 08:01 1041 /lib/i386-linux-gnu/ld-2.13.so
0068e000-0068f000 r-xp 00000000 00:00 0 [vdso]
009aa000-009b3000 r-xp 00000000 08:01 194229 /usr/lib/libotcl.so.1.14
009b3000-009b4000 r--p 00008000 08:01 194229 /usr/lib/libotcl.so.1.14
009b4000-009b5000 rw-p 00009000 08:01 194229 /usr/lib/libotcl.so.1.14
00ab0000-00bc3000 r-xp 00000000 08:01 194457 /usr/lib/libtcl8.5.so.0
00bc3000-00bc5000 r--p 00113000 08:01 194457 /usr/lib/libtcl8.5.so.0
00bc5000-00bc9000 rw-p 00115000 08:01 194457 /usr/lib/libtcl8.5.so.0
00bc9000-00bca000 rw-p 00000000 00:00 0
00d74000-00d90000 r-xp 00000000 08:01 1075 /lib/i386-linux-gnu/libgcc_s.so.1
00d90000-00d91000 r--p 0001b000 08:01 1075 /lib/i386-linux-gnu/libgcc_s.so.1
00d91000-00d92000 rw-p 0001c000 08:01 1075 /lib/i386-linux-gnu/libgcc_s.so.1
00e28000-00e3f000 r-xp 00000000 08:01 1114 /lib/i386-linux-gnu/libpthread-2.13.so
00e3f000-00e40000 r--p 00016000 08:01 1114 /lib/i386-linux-gnu/libpthread-2.13.so
00e40000-00e41000 rw-p 00017000 08:01 1114 /lib/i386-linux-gnu/libpthread-2.13.so
00e41000-00e43000 rw-p 00000000 00:00 0
08048000-083b4000 r-xp 00000000 08:01 153100 /usr/bin/ns
083b4000-083b5000 r--p 0036b000 08:01 153100 /usr/bin/ns
083b5000-08439000 rw-p 0036c000 08:01 153100 /usr/bin/ns
08439000-08441000 rw-p 00000000 00:00 0
09d24000-0a0df000 rw-p 00000000 00:00 0 [heap]
b6e23000-b6e24000 rw-p 00000000 00:00 0
b6e24000-b6e2b000 r--s 00000000 08:01 142349 /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
b6e2b000-b6e2c000 ---p 00000000 00:00 0
b6e2c000-b762c000 rw-p 00000000 00:00 0
b762c000-b762d000 r--p 00859000 08:01 144669 /usr/lib/locale/locale-archive
b762d000-b766d000 r--p 002bd000 08:01 144669 /usr/lib/locale/locale-archive
b766d000-b786d000 r--p 00000000 08:01 144669 /usr/lib/locale/locale-archive
b786d000-b7871000 rw-p 00000000 00:00 0
b7885000-b7887000 rw-p 00000000 00:00 0
bf94b000-bf96c000 rw-p 00000000 00:00 0 [stack]
Aborted

J'ai pas compris qu'est ce que ca signifie . Est ce que quelqu'un peut m'aider s'il vous plait ?