Wednesday, March 21, 2012

Re: [ns] Fwd: Implementing Round Robin Scheduler

The question is:

Are the lines I have commented to solve the problem important or can't
affect simulations in any other way?


ns-ib.tcl:

#
# Also reset every queue
#

#foreach qn [array names link_] {
#set q [$link_($qn) queue]
#$q reset
#}

If so, there is an alternative way to solve the problem?

Regards,

2012/3/20 Teerawat@UBC <teerawat@ece.ubc.ca>

> HI Richard,
>
> So, what is the question?
>
> Best Wishes,
>
> Teerawat Issariyakul
> http://www.ns2ultimate.com/
> http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
> http://twitter.com/T_Bear
> http://www.t-issariyakul.blogspot.com
> http://www.ece.ubc.ca/~teerawat
>
>
> On Mar 19, 2012, at 11:43 PM, Ricard Alegre wrote:
>
> >
> > Dear all,
> >
> > I wanted to implement a Round Robin packet scheduler just following the
> > process in the book Introduction to Network Simulator ns2 from Ekran
> > Hossain:
> >
> > According to the process I have created the following *.cc and *.h files:
> >
> > *//classifier-flow.h*
> >
> > #ifndef ns_gw_flow_classifier_h
> > #define ns_gw_flow_classifier_h
> >
> > #include "packet.h"
> > #include "ip.h"
> > #include "classifier.h"
> >
> > class FlowClassifier : public Classifier {
> > protected:
> > int classify(Packet *p);
> > };
> >
> >

No comments:

Post a Comment

Counter

blogger analytics