Re: [ns] TCL Script - No Slot Error

2008-11-22 Thread Waleed Tuffaha

Hello Aniruddha,

  I don't know about NSIS, but i had an error that might be similar. I
was building a simple routing agent that at some point modified the IP
header of the packet by changing the IP-destination-addr with the
IP_BROADCAST address. And I forgot to restore the original IP header before
handing the packet to the port classifier , so I got the following error:

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o30: no target for slot 0
_o30 type: Classifier/Port
content dump:
classifier _o30
0 offset
0 shift
2147483647 mask
1 slots
slot 255: _o17 (Agent/AllBroadcast)

AllBroadcast is the name of my agent.

So all i can say about your case is that somewhere a Classifier/Hash/Dest
(node's address classifier?) is being used and it is passed a packet that it
doesn't know how to classify !

Sorry I couldn't be of more help.
Good luck.

On Sat, Nov 22, 2008 at 5:25 PM, Aniruddha Niranjan
<[EMAIL PROTECTED]>wrote:

>
> Hi.
>
>  I am implementing a new protocol over the NSIS module on ns-2. The source
> code has compiled successfully. Now, I am running a sample script. The
> output starts off properly (first 6 lines of output below) but then I am
> getting an error as follows. Please give me some hints about this issue.
> (Script used is inline after the output message)
>
> Node n0 sent Pbs query to Node n1.
> The requested volume is 20.
> Api Call mode will be execed
> MRI: IPVersion must be 4 or 6
> ***Node 0 send 'query' message (Dmode with rao) ***
> Send with UDP
>
> --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
>_o13: no target for slot -1
>_o13 type: Classifier/Hash/Dest
> content dump:
> classifier _o13
>0 offset
>0 shift
>2147483647 mask
>2 slots
>slot 0: _o19 (Classifier/Port)
>slot 1: _o30 (Connector)
>-1 default
> -- Finished standard no-slot{} default handler --
>
> -End of Output
>
> pbs-example.tcl Script:
>
> set ns [new Simulator]
> $ns rtproto DV
> set tracefd [open example.tr w]
> $ns trace-all $tracefd
> #Open the nam trace file
> set nf [open out.nam w]
> $ns namtrace-all $nf
>
> #Define a 'finish' procedure
> proc finish {} {
>global ns nf tracefd
>$ns flush-trace
>#Close the trace file
>close $tracefd
>close $nf
>#Execute nam on the trace file
>exec nam out.nam &
>exit 0
> }
>
>
>  Create Eight nodes #
> set n0 [$ns node]
> set n1 [$ns node]
>
> $n0 color blue
> $n1 color red
>
> ### Trans with UDP 
> set udp0 [new Agent/UDP]
> set udp1 [new Agent/UDP]
>
> $ns attach-agent $n0 $udp0
> $ns attach-agent $n1 $udp1
>
>  Trans with TCP ###
> set tcp0 [new Agent/TCP/SimpleTcp]
> set tcp1 [new Agent/TCP/SimpleTcp]
>
> $ns attach-agent $n0 $tcp0
> $ns attach-agent $n1 $tcp1
>
> $tcp0 set fid_ 0
> $tcp1 set fid_ 0
>
> $tcp0 listen
> $tcp1 listen
>
> set app0 [new Application/TcpApp/GistTcpApp $tcp0]
> set app1 [new Application/TcpApp/GistTcpApp $tcp1]
>
> ### Set Gist ##
> set gist0 [new Application/Gist]
> set gist1 [new Application/Gist]
>
> $gist0 attachAgent $udp0
> $gist1 attachAgent $udp1
>
> $app0 setapp $gist0
> $app1 setapp $gist1
>
> $gist0 pbs-install
> $gist1 pbs-install
>
> ### Create a duplex link between the nodes #
> $ns duplex-link $n0 $n1 1Mb 100ms DropTail
>
> $ns duplex-link-op $n0 $n1 orient right
>
> ### Run the simulation ###
>
> #debug 1;
> $ns at 1.0 "$gist0 pbs query n1 20"
> #debug 2;
>
> $ns at 5.0 "finish"
>
> $ns run
>
>
>
>
>


-- 
Waleed Tuffaha.


[ns] TCL Script - No Slot Error

2008-11-22 Thread Aniruddha Niranjan

Hi.

  I am implementing a new protocol over the NSIS module on ns-2. The source 
code has compiled successfully. Now, I am running a sample script. The output 
starts off properly (first 6 lines of output below) but then I am getting an 
error as follows. Please give me some hints about this issue. (Script used is 
inline after the output message)

Node n0 sent Pbs query to Node n1.
The requested volume is 20.
Api Call mode will be execed
MRI: IPVersion must be 4 or 6
***Node 0 send 'query' message (Dmode with rao) ***
Send with UDP

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o13: no target for slot -1
_o13 type: Classifier/Hash/Dest
content dump:
classifier _o13
0 offset
0 shift
2147483647 mask
2 slots
slot 0: _o19 (Classifier/Port)
slot 1: _o30 (Connector)
-1 default
-- Finished standard no-slot{} default handler --

-End of Output

pbs-example.tcl Script:

set ns [new Simulator]
$ns rtproto DV
set tracefd [open example.tr w]
$ns trace-all $tracefd
#Open the nam trace file
set nf [open out.nam w]
$ns namtrace-all $nf

#Define a 'finish' procedure
proc finish {} {
global ns nf tracefd
$ns flush-trace
#Close the trace file
close $tracefd
close $nf
#Execute nam on the trace file
exec nam out.nam &
exit 0
}


 Create Eight nodes #
set n0 [$ns node]
set n1 [$ns node]

$n0 color blue
$n1 color red

### Trans with UDP 
set udp0 [new Agent/UDP]
set udp1 [new Agent/UDP]

$ns attach-agent $n0 $udp0
$ns attach-agent $n1 $udp1

 Trans with TCP ###
set tcp0 [new Agent/TCP/SimpleTcp]
set tcp1 [new Agent/TCP/SimpleTcp]

$ns attach-agent $n0 $tcp0
$ns attach-agent $n1 $tcp1

$tcp0 set fid_ 0
$tcp1 set fid_ 0

$tcp0 listen
$tcp1 listen

set app0 [new Application/TcpApp/GistTcpApp $tcp0]
set app1 [new Application/TcpApp/GistTcpApp $tcp1]

### Set Gist ##
set gist0 [new Application/Gist]
set gist1 [new Application/Gist]

$gist0 attachAgent $udp0
$gist1 attachAgent $udp1

$app0 setapp $gist0
$app1 setapp $gist1

$gist0 pbs-install
$gist1 pbs-install

### Create a duplex link between the nodes #
$ns duplex-link $n0 $n1 1Mb 100ms DropTail

$ns duplex-link-op $n0 $n1 orient right

### Run the simulation ###

#debug 1;
$ns at 1.0 "$gist0 pbs query n1 20"
#debug 2;

$ns at 5.0 "finish"

$ns run 


  



[ns] DropTail information

2008-11-22 Thread Abfalterer A.

Hi all,

for a RED queue I know that one can make a trace file by the "attach"
command, for example

set queue [$ns_ link $n1 $n2 queue]
$queue attach [open red.tr w]


Is there a possibility to get information about queue size, ect. fo a
DropTail queue, too? I know (and I've already used) the QueueMonitor,
but this is much more effort.

Regards, Armin





[ns] tcl8.4.5 make failed!

2008-11-22 Thread Dr.Ahmed Mohamed


hello
 
I installed fedora 6
then trying to install ns-allinone 2.28
 
i have the following error
 
./install: line 410: make: command not found
tcl8.4.5 make failed! Exiting ...
 
 
I don't know what to do please help be to solve this
 
thanks in advance
 
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE


[ns] puzzled about two kinds of flooding code

2008-11-22 Thread Phenix


Hi, all

Can anybody tell me the differences of between 
$NS_HOME\sensor-nets\flood-agent.cc(h) and

$NS_HOME\diffusion\flooding.cc(h) ?

If I'd like to apply flooding technique for Vehicle Safety Communication, 
which should I choose?


Regards,
Phenix 





[ns] Trace the sequence number of received TCP packets

2008-11-22 Thread Davide

I'm using ns2 with nsmiracle extension. i've been already able to
trace the congestion window (i'm exploiting some tips coming from
nsmiracle samples).

now i don't know how to trace the sequence number of received packets
at the TCPSink

any suggestion?

BR

Davide