calculate multicast throughput and delay

467 views
Skip to first unread message

amine zouaoui

unread,
Aug 5, 2013, 7:50:17 PM8/5/13
to ns-3-...@googlegroups.com
Hi;

I wrote a scirpt which build a wireless multicast tree (on a grid topology) and allows nodes to join and leave the multicast session. and now is time for evaluation.

I want to know how to calculate the network throughput and delay knowing that multicast receivers are variable, each 5 seconds the simulation randomly selects a node to join or leave the multicast session. and which is the best tool to do it.

I would greatly appreciate any help.

Konstantinos

unread,
Aug 6, 2013, 5:00:09 AM8/6/13
to ns-3-...@googlegroups.com
You can use the TRACEMETRIC tool (http://tracemetrics.net/) which analyses ASCII trace files. However, on their website they say that it only supports previous versions of NS-3. You may need to test it to make sure that the trace file gets parsed properly.

The second option is to create your own traces using CALLBACKS. So, whenever a node sends or receives a packet, print this in the terminal (you can print the time, packet ID, SEND/RECEIVE). Then you can analyse it with own tools (for example awk scripts).

Regards,
K.

amine zouaoui

unread,
Aug 12, 2013, 3:29:01 PM8/12/13
to ns-3-...@googlegroups.com
thank you for reply Konstantinos,

I want to calculate throughput at multicast receivers nodes and TRACEMETRIC tool always gives 0 throughput at each receiver.
I'm developing a tool (C++) to calculate the throughput and I don't what's the appropriate throughput formula to use, there is this formula : "throughput = TotalDataReceived / TotalTime" but this formula does not use number of lost packets and in my results, number of lost packets is considerable. is there any other throughput formula which use lost packets number as a factor??

thank you very much!

Konstantinos

unread,
Aug 12, 2013, 5:19:49 PM8/12/13
to ns-3-...@googlegroups.com
No really. However, you can define a metric the way you want it.

Generally, throughput shows how many packets are received in the unit of time https://en.wikipedia.org/wiki/Throughput
If you want to measure lost packets, you can use other metrics such as Packet Delivery or Loss Ratio. In addition, the fact that you are working with multicast, you have also to normalise your metric to consider the number of users in your multicast group. See in the literature which metrics and how they are defined.

amine zouaoui

unread,
Aug 12, 2013, 6:52:57 PM8/12/13
to ns-3-...@googlegroups.com
Hi;

I will consider throughput the number of packets received in the unit of time. I will compute the throughput of each multicast receiver in the portion of time where he was part of the multicast group, and compute the throughput in the multicast tree (sum of throughput divided by number of receivers).
for the number of relay nodes in the multicast group I treat it separately => number of relay nodes in time elapsing.

thank you Kanstantinos!




--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/Ygnyv2pU1x8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Xiaochen Li

unread,
Sep 19, 2013, 6:47:13 PM9/19/13
to ns-3-...@googlegroups.com
Hi amine,

I am also doing something which requires wireless multicast. How did you implement nodes join and leaving a multicast group?
The MulticastJoingGroup() method hasn't been implemented yet in ns3.17.

Thank you!

Xiaochen
Reply all
Reply to author
Forward
0 new messages