dumbbell topology

550 views
Skip to first unread message

madhu-dora

unread,
Jul 6, 2012, 4:35:40 AM7/6/12
to ns-3-...@googlegroups.com
hi everyone,
                I m currently working on dumbbell topology. I ve created the topology using PointToPointDumbbellHelper class with three leaves. We have to pass a PointToPointHelper for the leaves link and i specified the delay for the channel. But if i want to specify 3 different delays for 3 channel, then how should i do it. Someone please help me?

John Abraham

unread,
Jul 6, 2012, 11:25:50 AM7/6/12
to ns-3-...@googlegroups.com
there is  no way to do that currently, if it would be better if you made the topology without the dumbbell helper. The dumbbell helper helps you quickly create topologies, where the right-set of leaves share the same characteristics and the left-set of leaves shares another set of characteristics. Within the right-set of leaves there is no way to set individual characteristics for each leaf, using the dumbbell helpers.
src/netanim/examples/dumbbell-animation.cc


On Fri, Jul 6, 2012 at 1:35 AM, madhu-dora <madh...@gmail.com> wrote:
hi everyone,
                I m currently working on dumbbell topology. I ve created the topology using PointToPointDumbbellHelper class with three leaves. We have to pass a PointToPointHelper for the leaves link and i specified the delay for the channel. But if i want to specify 3 different delays for 3 channel, then how should i do it. Someone please help me?

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/GgHKCWbgEWkJ.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

madhu-dora

unread,
Jul 7, 2012, 3:58:08 AM7/7/12
to ns-3-...@googlegroups.com


Thanks John.
                    Actually I thought of another way. In that I m getting stuck with the usage of Config::Set. That I can't understand how to give The Path to match the attributes. Till the device list I can get it. What about the rest of the path. I thought i can extract each and every node from the left side of dumbbell topology and set the delay attribute for it.
and I gave Config::Set("NodeList/i/DeviceList/0/ns3::PointToPointChannel/Delay", TimeValue(Milliseconds(i*10))); Will this work?
                     

John Abraham

unread,
Jul 7, 2012, 9:36:06 AM7/7/12
to ns-3-...@googlegroups.com
i typically don,t use config::set because it never indicates if there was an error.
src/netanim/model/animation-interface.cc (StartAnimation) retrieves the p2p channel. after getting the Ptr to the channel you can use SetAttribute.
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/WSRylWPnRykJ.

madhu-dora

unread,
Jul 9, 2012, 1:43:26 AM7/9/12
to ns-3-...@googlegroups.com
hey,
    I saw that example. But i don't know how to set a Delay attribute to a Channel object. We can do that only if we have PointToPointChannel object. I don'tknow how to retrieve a PointToPointChannel object from a Channel object. Sorry i got stuck with issue so long.

John Abraham

unread,
Jul 9, 2012, 9:46:03 AM7/9/12
to ns-3-...@googlegroups.com
#include "ns3/point-to-point-channel.h"
#include "ns3/point-to-point-net-device.h"

Ptr <PointToPointChannel> pChannel  = DynamicCast<PointToPointChannel> (channel);
NS_ASSERT (pChannel);
pChannel->SetAttribute ("Delay", TimeValue (MilliSeconds (20)));


But i still feel, the right way to do it is , by constructing the links one by one, or in some for loop , by using PointToPointHelper.

On Sun, Jul 8, 2012 at 10:43 PM, madhu-dora <madh...@gmail.com> wrote:
hey,
    I saw that example. But i don't know how to set a Delay attribute to a Channel object. We can do that only if we have PointToPointChannel object. I don'tknow how to retrieve a PointToPointChannel object from a Channel object. Sorry i got stuck with issue so long.

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ns-3-users/-/r1j-HW-kMBcJ.

madhu-dora

unread,
Jul 10, 2012, 8:30:04 AM7/10/12
to ns-3-...@googlegroups.com
thanx john....... you helped me a lot....:)

Sameer Shaikh

unread,
Apr 1, 2015, 1:12:52 PM4/1/15
to ns-3-...@googlegroups.com
Hi madhu
Can u send me documentation report or file of dumbbell topilogy
Bz my project on that topic..
So please send me file..on my email id
samee...@gmail.com
Thanks for fast reply

Sameer Shaikh

unread,
Apr 1, 2015, 1:19:16 PM4/1/15
to ns-3-...@googlegroups.com
Hi john
Can u send me right link
Where i can download whole information abt dumbbell topology..
So please send link..
Thanks for fast reply..
Reply all
Reply to author
Forward
0 new messages