[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: different behavior between two ns version
John Heidemann wrote:
>
> On Fri, 28 Aug 1998 19:06:23 +0200, Arnaud Legout wrote:
> >hi,
> >when I run the attached script with the ns2.1b3 daily snapshot from may
> >25, 1998
> >everything is ok.
> >But when I run the same script with the *real* daily snapshot I have
> >the following
> >message :
> >warning: classifier _o31 unknown flow s:0, d:256, fid:0, bucket:0
> >_o31: no target for slot -1
> >
> >have you an idea about that?
>
> The default target of an agent was changed from 0 (the first created
> sink) to -1 (nowhere) in the last week.
>
> I would guess that some source (probably attached to the node with
> classifier _o31) doesn't have its sink specified. Use gen-map to dump
> the agents and which should be apparent.
>
> -John Heidemann
John,
when I use gen-map I have :
% $ns gen-map
Node _o10(id 0)
classifier__o11(Classifier/Addr)
address_0()
dmux__o26(Classifier/Addr)
Agents at node (possibly in order of creation):
_o24 Agent/TCP portID: 0(0)
Link _o15, fromNode_ _o10(id 0) -> toNode_ _o12(id 1)
Components (in order) head first
_o30 ErrorModule
_o14 Queue/DropTail
_o16 DelayLink
_o18 TTLChecker
---
Node _o12(id 1)
classifier__o13(Classifier/Addr)
address_1()
dmux__o27(Classifier/Addr)
Agents at node (possibly in order of creation):
_o25 Agent/TCPSink portID: 0(256)
Link _o20, fromNode_ _o12(id 1) -> toNode_ _o10(id 0)
Components (in order) head first
_o19 Queue/DropTail
_o21 DelayLink
_o23 TTLChecker
---
I have no classifier _o31. So I don't know what to do.
It seems to me that the problem comes from the loss module part but as
I don't really understand how loss module work I am not able to find the
problem (for instance I don't understand what is the meaning of the line
:
$em bind $errmodel 1
in my script).
Thanks for any help
Arnaud.
Here is my simple script :
------------------------------------------------------------------
set ns [new Simulator]
set n(1) [$ns node]
set n(2) [$ns node]
$ns duplex-link $n(1) $n(2) 8Mb 10ms DropTail
set tcp_source1 [new Agent/TCP]
set tcp_sink1 [new Agent/TCPSink]
$ns attach-agent $n(1) $tcp_source1
$ns attach-agent $n(2) $tcp_sink1
$ns connect $tcp_source1 $tcp_sink1
set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp_source1
set puit [new Agent/LossMonitor]
set lossylink [$ns link $n(1) $n(2)]
set em [new ErrorModule Fid]
set errmodel [new ErrorModel/List]
$errmodel unit pkt
$errmodel droplist "1"
$errmodel drop-target $puit
$em bind $errmodel 1
$em insert $errmodel
$lossylink errormodule $em
$ns at 0 "$ftp1 start"
$ns at 10.0 "exit 0"
$ns run
------------------------------------------------------------------
Here is the message I have when I run the script with ns (recent
snapshot):
warning: classifier _o31 unknown flow s:0, d:256, fid:0, bucket:0
_o31: no target for slot -1
--
----------------------------------------------------------------------
Arnaud Legout
Institut Eurecom Phone : 00.33.4.93.00.26.61
2229, route des Cretes Fax : 00.33.4.93.00.26.27
BP 193 E-mail: [email protected]
06904 Sophia Antipolis cedex Web : http://www.eurecom.fr/~legout
FRANCE
----------------------------------------------------------------------