Active Queue Management Simple Tree-like Topology

160 views
Skip to first unread message

Hamid

unread,
Dec 3, 2010, 10:50:31 AM12/3/10
to ns-3-users
Dear all,

I've recently got acquainted with the ns-3. I delve into the src codes
to get as much as I could. It seems that in any ns-3 simulation (say a
udp-client+server) each node schedules an event by means of the
scheduler in order to send a packet.
But this is not what I'm going to do. I need the nodes to have their
own queues so that I can do AQM techniques. This requires that each
node have it's own scheduler not a global one !

Here is my idea about resolving this issue, but I feel like I'm doing
something redundant, so could you please help me on this?

My solution is simple but leads to even a bigger problem.
concisely, that is to derive a new class (say MyNode) from the Node
class and add a Queue object (of another new class) to it. I should
also incorporate both the udp-client and udp-server functionalities
into a new class leading to a new Application class so that a node can
receive packet from its children and transmit them to the upstream
node. More specifically, in the HandleRead function I should add the
packets to the queue and continously deque each node and schedule a
transmit event. But this implies a multi-threaded functionality which
is even more complex and I don't know how to implement it, anyway.

Any body ran into the same problem ?

Regardcs

Lalith Suresh

unread,
Dec 3, 2010, 8:22:41 PM12/3/10
to ns-3-...@googlegroups.com
Hello,

ns-3-click lets you run Click modular router instances on top of ns-3 nodes. One of the advantages with this is that it lets you use Click's queuing capabilities with ns-3. Click has support for Adaptive RED and normal RED, but in any case, you can build your own complex queuing systems as well.
 

Regardcs

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
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.




--
Lalith Suresh
Department of Computer Science and Engineering
Instituto Superior Técnico
www.lalith.in

Lalith Suresh

unread,
Dec 3, 2010, 8:23:19 PM12/3/10
to ns-3-...@googlegroups.com
Hello,

 
 

Regardcs

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
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.




--
Lalith Suresh
Department of Computer Science and Engineering
Instituto Superior Técnico
www.lalith.in

Hamid

unread,
Dec 4, 2010, 1:28:54 AM12/4/10
to ns-3-users
Thanks for your help

On Dec 4, 4:23 am, Lalith Suresh <suresh.lal...@gmail.com> wrote:
> Hello,
>
> On Sat, Dec 4, 2010 at 1:22 AM, Lalith Suresh <suresh.lal...@gmail.com>wrote:
>
>
>
> > Hello,
>
> >> ns-3-users+...@googlegroups.com<ns-3-users%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/ns-3-users?hl=en.
>
> > --
> > Lalith Suresh
> > Department of Computer Science and Engineering
> > *Instituto Superior Técnico*
> >www.lalith.in
>
> --
> Lalith Suresh
> Department of Computer Science and Engineering
> *Instituto Superior Técnico*www.lalith.in

Tom Henderson

unread,
Dec 5, 2010, 12:18:24 AM12/5/10
to ns-3-...@googlegroups.com
On 12/03/2010 07:50 AM, Hamid wrote:
> Dear all,
>
> I've recently got acquainted with the ns-3. I delve into the src codes
> to get as much as I could. It seems that in any ns-3 simulation (say a
> udp-client+server) each node schedules an event by means of the
> scheduler in order to send a packet.
> But this is not what I'm going to do. I need the nodes to have their
> own queues so that I can do AQM techniques. This requires that each
> node have it's own scheduler not a global one !

I don't think that having a global simulation scheduler precludes in any
way a per-node or per-device AQM implementation.

You may be interested in this repository:
http://code.nsnam.org/duy/ns-3-dev-queues/

- Tom

Hamid

unread,
Dec 6, 2010, 4:59:05 AM12/6/10
to ns-3-users
Tom,

You're right, It appears that the AQM can be implemented inside the
Enqueue Dequeue functions through the network-devices.
Is that what you mean?

Regards
Reply all
Reply to author
Forward
0 new messages