[ns] Problem compiling ns-2.29 with WFQ mod for Nortel Diffserv
Alexander Sayenko
sayenko at cc.jyu.fi
Thu Mar 2 22:25:10 PST 2006
RE: [ns] Problem compiling ns-2.29 with WFQ mod for Nortel DiffservHi
Nice to hear that they work in NS v2.29. I had no time to test these modules in the new version.
Sincerely,
Alexander Sayenko (PhD)
Assistant
Telecommunication laboratory, MIT department
University of Jyvaskyla, Finland
----- Original Message -----
From: Dahshan, Mostafa H.
To: Alexander Sayenko ; ns-users at ISI.EDU
Sent: Friday, March 03, 2006 5:47 AM
Subject: RE: [ns] Problem compiling ns-2.29 with WFQ mod for Nortel Diffserv
OK I downloaded http://www.cc.jyu.fi/~sayenko/src/diffserv_wfq.diff and http://www.cc.jyu.fi/~sayenko/src/dsred.diff to the ns-allinone-2.29 directory. Edited both files replacing 2.28 with 2.29. Then:
patch -p0 < diffserv_wfq.diff
patch -p0 < dsred.diff
That worked!
Thank you very much for your help.
Mostafa Dahshan
-----Original Message-----
From: Alexander Sayenko [mailto:sayenko at cc.jyu.fi]
Sent: Thu 3/2/2006 2:00 AM
To: Dahshan, Mostafa H.; ns-users at ISI.EDU
Subject: Re: [ns] Problem compiling ns-2.29 with WFQ mod for Nortel Diffserv
Hi
Use the following implementation of WFQ for DiffServ, it works
http://www.cc.jyu.fi/~sayenko/src/dsred.diff
Sincerely,
Alexander Sayenko (PhD)
Assistant
Telecommunication laboratory, MIT department
University of Jyvaskyla, Finland
>
> Hello,
>
> I need to use WFQ scheduler for Diffserv simulation. The only module
available seems to be the "WFQ Scheduler for Nortel DiffServ" available at
http://nsnam.isi.edu/nsnam/index.php/Contributed_Code
http://www.tik.ee.ethz.ch/~fiedler/provisioning.html. That module seems to
have outdated versions of dsred.cc and dsred.h. When I overwrite the files
that come with the ns-allinone distribution package, I get compilation
errors like this:
>
> diffserv/dsred.h: In constructor `dsREDQueue::dsREDQueue()':
> diffserv/dsred.h:219: warning: `dsREDQueue::link_' will be initialized
after
> diffserv/dsred.h:180: warning: `WFQdsHandler dsREDQueue::wfq_hand'
> diffserv/dsred.cc:87: warning: when initialized here
> diffserv/dsred.cc: In member function `virtual int
dsREDQueue::command(int, const char* const*)':
> diffserv/dsred.cc:799: error: no matching function for call to
`redQueue::config(int, const char* const*&)'
> diffserv/dsredq.h:66: note: candidates are: void redQueue::config(int,
int, const char* const*)
> make: *** [diffserv/dsred.o] Error 1
> Ns make failed!
> See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
>
>
> I have tried to import the modifications from the dsred.h and dsred.cc
into the ones that come with the current dist but I was never successful to
get it to compile.
>
> I would appreciate any help.
>
> Thank you.
>
> Mostafa Dahshan
>
More information about the Ns-users
mailing list