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

Re: Multicast Packet Counter



Hi Lori,

I tested the McastMonitor in ns2.1b4 with the example file ~ns/tcl/ex/newmacast/pktintran.tcl. It works fine. 

When I tried with your script. Yes, it gives 0 packet all the time. So I tried trace-topo, and I use the node Id of $n0 :
set mcastmonitor [$ns McastMonitor]
$mcastmonitor set period_ 0.01
$mcastmonitor trace-topo [$n0 id] [expr $group]

And it's working fine.

I tried trace-tree on the example file pktintran.tcl. It gave me the same result : Packet count = 0.

I also tried to see if trace-tree in ns2.1b5. This function has desappered. The class McastMonitor has chaged a bit.

Hope it helps,

Abdelhamid JOUMDANE


--

On Thu, 20 May 1999 16:25:26   Lori Flynn wrote:
>Hi,
>
>I'm trying to use McastMonitor and having trouble. I set it up like this:
>set mcastmonitor [$ns McastMonitor]
>$mcastmonitor set period_ 0.01
>$mcastmonitor trace-tree $n0 $group
>
>but it doesn't print out counts of packets for the fields (data, prune,
>join, etc.).  Instead, everything is 0, incorrectly.  (even the nam
>simulator shows packets flying, plus the trace-all shows packets as well.)
>
>You wrote to the ns2 newsgroup about the McastMonitor.  I have tried to
>use it, using 'trace-tree' mode, and it does indeed print out a trace for
>every time period as the simulation runs... however, the counts of packets
>are 0 for each and every field (data, prune, etc.).  Even though true
>counts are above 0.
>
>Here's part of what I get:
>1.2200000000000009 0 0 0 0 _o10 0x8000
>1.2300000000000009 0 0 0 0 _o10 0x8000
>1.2400000000000009 0 0 0 0 _o10 0x8000
>
>The _o10 is not what I would expect the source to be (I have defined the
>source as $n0, which is a UDP CBR sender, if that makes a difference).
>I have attached my code (which is *very* short) in case you have any
>questions about it.
>
>
>Thanks for any advice!
>Lori
>
>
>---------- Forwarded message ----------
>Date: Thu, 20 May 1999 02:18:40 -0700
>From: Joumdane Abdelhamid <[email protected]>
>To: [email protected]
>Subject: Multicast Packet Counter
>
>Hi ns-users,
>
>I'm trying to evaluatre losses due to Core migration in a Core Based Forwarding Protocol. What I'd like to know is : 
>1- There is a way to count how many multicast packets a node had received from the group ?
>
>2- I also found that McastMonitor provides a way to know many packets were sent to a specific group. But are join, prune packets included in this count ?
>
>
>Thanks in advance,
>Abdelhamid JOUMDANE
>
>
>


-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums