[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] RE: FWD: rtproto-LS (I would appreciate your help)



Hi Padmaparna:


Thanks for your help, I tried your idea but unfortunately I still receiving an 
error. 
In this case when I run the simulation the program compute the paths using 
rtproto-ls algorithm, and I realize that the program finish with the 
simulation, but collapse at the end�
This is the error that I receive::


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


I think that probably I need to change something in the �ns-lib.tcl� file,  do 
you have any idea where is the problem????
I hope hear from you soon


Daniel











>===== Original Message From Padmaparna Haldar <[email protected]> =====
>Hi,
>I think there is a typo in the LS code. a pair of braces are reqd to
>create a list of nodes.
>
>so try this out:
>
>In file ~ns/tcl/rtglib/ns-rtprotoLS.tcl,
>in proc : Agent/rtProto/LS proc init-all args
>
>inline
>eval "set nodeslist $args"
>
>add braces for the arguments, i.e
>eval "set nodeslist { $args }"
>
>Hope this helps,
>--Padma
>
>>
>> ---------- Forwarded message ----------
>> Date: Tue, 11 Sep 2001 16:14:39 -0600
>> From: dvivanco <[email protected]>
>> To: [email protected]
>> Subject: rtproto-LS (I would appreciate your help)
>>
>> Hi Debojyoti Dutta:
>>
>> My name is Daniel A. Vivanco, I am Master Student at CSU.
>> I am a NS user, I currently I am facing a problem using the rtproto-LS, I
>> couldn�t find any solution in the NS-manual ,neither I got any response 
from
>> the list. I fond your e-mail from the list, and I believe that you have
>> experience with this topic, for that reason I would want to ask if you have
>> any idea about how to solve this problem:
>>
>>
>> Currently I am trying to simulate a network using a unicast routing in NS. 
I
>> am using the LS routing in my simulation as we know this protocol force the
>> nodes to send rtProtoLS packets from one node to the adjacent node, in ALL 
the
>> network.
>> I am using the command :
>>
>> $ns rtproto LS ; as far as I know this command enable the LS routing to ALL
>> the nodes of my simulation. But in my case I only need to enable this 
routing
>> protocol in specific nodes. For that reason I was trying to use the command 
:
>>
>> $ns rtproto LS $n1 $n2 $n3; as it is mentioned in the Unicast Routing 
chapter
>> of the NS Manual (Chap. 24). This should enable nodes 1, 2 and 3 to send 
and
>> receive rtProtoLS packets only, and at the same time this would avoid the
>> distribution of this kind of packets to other nodes. But unfortunately when 
i
>> run the simple-eqp1.tcl example I receive this error from the software:
>>
>> juan68% ns simple-eqp1.tcl
>> wrong # args: should be "set varName ?newValue?"
>> while executing
>> "set nodeslist _o13 _o16"
>> ("eval" body line 1)
>> invoked from within
>> "eval "set nodeslist $args""
>> (procedure "Agent/rtProto/LS" line 5)
>> (Agent/rtProto/LS init-all line 5)
>> invoked from within
>> "Agent/rtProto/LS init-all _o13 _o16"
>> ("eval" body line 1)
>> invoked from within
>> "eval Agent/rtProto/$proto init-all $rtprotos_($proto)"
>> (procedure "_o140" line 5)
>> (RouteLogic configure line 5)
>> invoked from within
>> "[$self get-routelogic] configure"
>> (procedure "_o3" line 4)
>> (Simulator run line 4)
>> invoked from within
>> "$ns run
>> "
>> (file "simple-eqp1.tcl" line 138)
>>
>>
>> I receive the same error using ns-2.7 and ns-2.8.
>> My question is: Do you know how to implement a routing table (LS) only in
>> particular nodes??????? I believe that must be a way to do it,but i can 
find
>> it.....
>>
>> I would really appreciate any help, right now I am stacked.
>>
>> Thanks in advantage,and sorry for bother you....:)
>>
>>
>>
>> Daniel
>>
>> i
>>
>
>--
>------------------------------------------------
>Be true to your work, your word, and your friend.
>--Thoreau
>
>Padmaparna Haldar