Mean Hop Count

91 views
Skip to first unread message

Ohoud

unread,
Feb 17, 2015, 2:43:07 PM2/17/15
to ns-3-...@googlegroups.com
Hello,

In flow monitor, the mean hop count per flow can be calculated using the following formula
hopCount = (timesForwarded / rxPackets +1)
Does timesForwarded value include non-received packets in the flow?

Konstantinos

unread,
Feb 17, 2015, 3:19:34 PM2/17/15
to ns-3-...@googlegroups.com
No, 
if a packet is not received, it is not accounted in the hop-count or delay calculations.

Micheal Ulasi

unread,
Nov 7, 2015, 1:45:31 PM11/7/15
to ns-3-users
Hi Konstantinos,

I have a problem, and it has to do with the mean hop count that I saw in "FlowMonitor - a network monitoring framework for the
Network Simulator 3 (NS-3) mean hop count: hopcount = 1 + timesForwarded rxPackets" 

Please, can you explain to me why the "1 +" in the formula?

Kind regards 

Michael

Konstantinos

unread,
Nov 7, 2015, 2:04:24 PM11/7/15
to ns-3-users
Hi Micheal,

The variable timesForwarded is defined as: "timesForwarded Contains the number of times a packet has been reportedly forwarded, summed for all packets in the flow;"
So, in order to account also the 'first hop' that the packet is not forwarded, we add this +1. 

Regards,
K.

Tommaso Pecorella

unread,
Nov 7, 2015, 2:52:59 PM11/7/15
to ns-3-users
In other words, if you have a 1-hop node (sender and receiver are connected directly), the hop count is 1, but the packet have never been forwarded.
In a 2-hop network (sender, repeater, receiver), the packet will be forwarded one time, but we have 2 hops.
By induction, the above formula can be derived.

Cheers,

T.

Micheal Ulasi

unread,
Nov 7, 2015, 3:39:22 PM11/7/15
to ns-3-users
Hi Konstantinos and Tommaso, 
thanks for your quick responds.

So, the "1 +" is just the movement of the packet from the sending node to the first receiving node in the flow, right?

Kind regards

Michael


On Saturday, November 7, 2015 at 8:04:24 PM UTC+1, Konstantinos wrote:

Tommaso Pecorella

unread,
Nov 7, 2015, 3:50:40 PM11/7/15
to ns-3-users
yes.

T.

Micheal Ulasi

unread,
Nov 7, 2015, 3:54:10 PM11/7/15
to ns-3-users
Thanks a lot.

Kind regards

Michael
Reply all
Reply to author
Forward
0 new messages