[ns] Classifier no slot.

Teerawat Issariyakul teerawat at ece.ubc.ca
Thu Mar 12 08:42:57 PDT 2009


On 3/12/2009, "Mayank Daga" <dagamayank at gmail.com> wrote:
Hi,

Basically, you are accessing the slot -1 which does not exist. I posted
the details at

http://t-issariyakul.blogspot.com/2009/03/no-slot-error-for-classifiers.html

For more information about Classifiers, see Chapter 6 in the following
book from Springer:

T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
NS2", Springer 2008.
http://www.springer.com/engineering/signals/book/978-0-387-71759-3

You may also find the following website useful:
http://www.ece.ubc.ca/~teerawat/NS2.htm

Best,
Teerawat

>
>Hey all,
>
>I have been trying to implement normal wireless scenario using DSDV
>protocol. The scenario has 49 equispaced nodes and there is some traffic
>applied. The problem is when I run the TCL script, i get the following
>output:
>
>linux-v1gr:~/tcl # ns test_soma.tcl
>num_nodes is set 49
>warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
>INITIALIZE THE LIST xListHead
>Starting Simulation...
>channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
>highestAntennaZ_ = 1.5,  distCST_ = 550.0
>SORTING LISTS ...DONE!
>--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
>    _o139: no target for slot -1
>    _o139 type: Classifier/Port
>content dump:
>classifier _o139
>    0 offset
>    0 shift
>    2147483647 mask
>    2 slots
>        slot 0: _o875 (CMUTrace/Recv)
>        slot 255: _o130 (Agent/DSDV)
>---------- Finished standard no-slot{} default handler ----------
>
>
>Please help.
>
>--
>Regards,
>Mayank Daga
>Senior Undergraduate Student,
>Department of Information Technology,
>National Institute of Technology, Durgapur,
>India
>



More information about the Ns-users mailing list