Re: [ns] delaySamp_ object and Delay samples
- Yes, I did. I had the same problem and the same day I posted the question, I also found a solution to this matter and to another one concerning using monitor objects to measure average queue length in a wireline network. I have posted a thread to ns-users mailing list concerning the description of both problems. You can find it here: http://mailman.isi.edu/pipermail/ns-users/2006-August/056736.html I hope that I have answered your question. Kind Regards, Renata. -Fk On 9/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Renata Vidal [EMAIL PROTECTED] To: Filippos Kolovos [EMAIL PROTECTED] Date: Sat, 9 Sep 2006 14:24:20 -0300 Subject: Re: [ns] delaySamp_ object and Delay samples Hi Filippos, Did you solve your problem? Can you help me? I'm trying to get Delay Samples from monitor-queue, with these commands: set qm [$ns monitor-queue $n1 $n2 $qt 0.5] set integratorObjectDelay [$qm get-delay-samples] set delayfila [$integratorObjectDelay set delaySamp_] but when I run, I get the error: ns: queueLog: invalid command name while executing $integratorObjectDelay get delaySamp_ (procedure queueLog line 20) invoked from within queueLog According to NS DOC, the object it returns is delaySamp_. Any clue!? On 8/6/06, Filippos Kolovos [EMAIL PROTECTED] wrote: Dear all, has anybody used, or tried to use the delaySamp_ object that is provided with a queuemonitor object? In the manual it states that this object can be used to measure queue delays (page 76 of ns-manual). It has two methods: $queuemonitor get-delay-samples, which says it returns a Samples object delaySamp_ to record delays about queues and $queuemonitor set-delay-samples delaySamp_, is to set up the delay samples object to record delay statistics about queues. Also, it states that delaySamp_ is a handle to a samples object, which must have been previously created (supposedly with the get-delay-samples method above). However I have the following code: #Setting a queue-monitor object for a specific queue set monitorQueue2_3 [$simulation monitor-queue $node2 $node3 stdout] #Setting the integrator for the average queue size - this works ok set integratorObject [$monitorQueue2_3 get-pkts-integrator] #using the get-delay-samples method of the queuemonitor object to get a delay samples set delaySamples [$monitorQueue2_3 get-delay-samples] #using the set-delay-samples method on, supposedly, the returned object to set-it up, #according to the manual $monitorQueue2_3 set-delay-samples delaySamples more code When I simulate the tcl code I get the following error: (_o59 cmd line 1) invoked from within _o59 cmd set-delay-samples delaySamples invoked from within catch $self cmd $args ret invoked from within if [catch $self cmd $args ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o59 line 2) (SplitObject unknown line 2) invoked from within $monitorQueue2_3 set-delay-samples delaySamples (file simulation-Class-AverageQueue.tcl line 80) What Could be the cause of this? I use ddd as my debugger and I have come to the conclusion that the get-delay-samples method does not return anything, since the delaySamp_ object is initialized to NULL upon initialization of the queuemonitor object. The code is in the queue-monitor.cc file in ns-directory/tools/ How can one use the delaySamp_ objects of queuemonitor to measure queue delays? Am I correct, or I am erroneously using these methods? Any help would be appreciated. Kind Regards, -Fk -- Renata Vidal Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN TSU – pg 102) -- Filippos N Kolovos Software Systems Analyst Engineer M.Sc. (Eng.) in Data Communications Automation Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] --
Re: [ns] delaySamp_ object and Delay samples
Hi Filippos, Did you solve your problem? Can you help me? I'm trying to get Delay Samples from monitor-queue, with these commands: set qm [$ns monitor-queue $n1 $n2 $qt 0.5] set integratorObjectDelay [$qm get-delay-samples] set delayfila [$integratorObjectDelay set delaySamp_] but when I run, I get the error: ns: queueLog: invalid command name while executing $integratorObjectDelay get delaySamp_ (procedure queueLog line 20) invoked from within queueLog According to NS DOC, the object it returns is delaySamp_. Any clue!? On 8/6/06, Filippos Kolovos [EMAIL PROTECTED] wrote: Dear all, has anybody used, or tried to use the delaySamp_ object that is provided with a queuemonitor object? In the manual it states that this object can be used to measure queue delays (page 76 of ns-manual). It has two methods: $queuemonitor get-delay-samples, which says it returns a Samples object delaySamp_ to record delays about queues and $queuemonitor set-delay-samples delaySamp_, is to set up the delay samples object to record delay statistics about queues. Also, it states that delaySamp_ is a handle to a samples object, which must have been previously created (supposedly with the get-delay-samples method above). However I have the following code: #Setting a queue-monitor object for a specific queue set monitorQueue2_3 [$simulation monitor-queue $node2 $node3 stdout] #Setting the integrator for the average queue size - this works ok set integratorObject [$monitorQueue2_3 get-pkts-integrator] #using the get-delay-samples method of the queuemonitor object to get a delay samples set delaySamples [$monitorQueue2_3 get-delay-samples] #using the set-delay-samples method on, supposedly, the returned object to set-it up, #according to the manual $monitorQueue2_3 set-delay-samples delaySamples more code When I simulate the tcl code I get the following error: (_o59 cmd line 1) invoked from within _o59 cmd set-delay-samples delaySamples invoked from within catch $self cmd $args ret invoked from within if [catch $self cmd $args ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o59 line 2) (SplitObject unknown line 2) invoked from within $monitorQueue2_3 set-delay-samples delaySamples (file simulation-Class-AverageQueue.tcl line 80) What Could be the cause of this? I use ddd as my debugger and I have come to the conclusion that the get-delay-samples method does not return anything, since the delaySamp_ object is initialized to NULL upon initialization of the queuemonitor object. The code is in the queue-monitor.cc file in ns-directory/tools/ How can one use the delaySamp_ objects of queuemonitor to measure queue delays? Am I correct, or I am erroneously using these methods? Any help would be appreciated. Kind Regards, -Fk -- Filippos N Kolovos Software Systems Analyst Engineer M.Sc. (Eng.) in Data Communications Automation Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] Phone: +30-2310-891-826 -- -- Renata Vidal Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN TSU – pg 102)
[ns] delaySamp_ object and Delay samples
Dear all, has anybody used, or tried to use the delaySamp_ object that is provided with a queuemonitor object? In the manual it states that this object can be used to measure queue delays (page 76 of ns-manual). It has two methods: $queuemonitor get-delay-samples, which says it returns a Samples object delaySamp_ to record delays about queues and $queuemonitor set-delay-samples delaySamp_, is to set up the delay samples object to record delay statistics about queues. Also, it states that delaySamp_ is a handle to a samples object, which must have been previously created (supposedly with the get-delay-samples method above). However I have the following code: #Setting a queue-monitor object for a specific queue set monitorQueue2_3 [$simulation monitor-queue $node2 $node3 stdout] #Setting the integrator for the average queue size - this works ok set integratorObject [$monitorQueue2_3 get-pkts-integrator] #using the get-delay-samples method of the queuemonitor object to get a delay samples set delaySamples [$monitorQueue2_3 get-delay-samples] #using the set-delay-samples method on, supposedly, the returned object to set-it up, #according to the manual $monitorQueue2_3 set-delay-samples delaySamples more code When I simulate the tcl code I get the following error: (_o59 cmd line 1) invoked from within _o59 cmd set-delay-samples delaySamples invoked from within catch $self cmd $args ret invoked from within if [catch $self cmd $args ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o59 line 2) (SplitObject unknown line 2) invoked from within $monitorQueue2_3 set-delay-samples delaySamples (file simulation-Class-AverageQueue.tcl line 80) What Could be the cause of this? I use ddd as my debugger and I have come to the conclusion that the get-delay-samples method does not return anything, since the delaySamp_ object is initialized to NULL upon initialization of the queuemonitor object. The code is in the queue-monitor.cc file in ns-directory/tools/ How can one use the delaySamp_ objects of queuemonitor to measure queue delays? Am I correct, or I am erroneously using these methods? Any help would be appreciated. Kind Regards, -Fk -- Filippos N Kolovos Software Systems Analyst Engineer M.Sc. (Eng.) in Data Communications Automation Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] Phone: +30-2310-891-826 --