WFQ
hi,
Can anyone tell me where i can find patch for WFQ scheduling in ns2 Thanx |
Google .. WFQ scheduling in ns2 ..
Contributed_Code http://nsnam.isi.edu/nsnam/index.php/Contributed_Code Save page as | Filter = Text | >> Contributed_Code.txt grep -ni wfq Contributed_Code.txt → line 836 , 910 ( Chapter 'Scheduling and Queue Management') But : The patch links are not valid any more , sorry. Google .. wfq patch ns2 .. finds this right away ( for ns229 ) : http://en.pudn.com/downloads137/sour...587127_en.html So I guess, you may find something usable, if you do a lot of searching. .. |
Thank u :)
|
|
please anyone know where i can get wfq patch for ns2.33?
i didnt find it anywhere, or is it other way to use wfq? i got wfq.cc from wfq how to get it worked when i compile it? cause after i compile.tcl it seems doesnt work ot it need to be patched? i already change ns-default and change it like drr one and i make install again... my project is lte in NS2 tq |
Post #5, @deVacto
Probably use a new install of ns-allinone version 2.33 or 2.34 : Do not expect other patches / changes to live together with LTE. You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. But: Do not add any of them to a *PATH. Binaries ns can be copied / renamed to new names to recognize versions. Copy to /usr/local/bin/ as ns, ns233, ns-lte, ns-wfq, etc. etc. Adding wfq : cd ns-allinone-2.33/ns-2.33/ && mkdir wfq wfq.cc : Edit line 20 to : friend class WFQ; Copy the modified wfq.cc to ns-2.33/wfq/ Edit the Makefile.in, line 325 to : apps/pbc.o wfq/wfq.o \ Then you can go to the top directory, ns-allinone-2.33/, and do ./install, and wfq will be compiled into the binary 'ns' ( "ns-wfq" ). wfq http://www.cse.iitb.ac.in/~varsha/al...cheduling/src/ > examples http://www.cse.iitb.ac.in/~varsha/al...ling/examples/ > graphs wfq http://www.cse.iitb.ac.in/~varsha/al...amples/graphs/ . |
tq again @knudfl
i dont want another ns version for now, so i skip to adding wfq -in wfq.cc is it mean Edit line 20 to : friend class WFQ; is that mean to delete that line? -in makefile.in in ns233 folder, is it only edit line 325? cause i see queue/drr i dont need edit there to? -after i ./install i got fatal eror : iostream.h no such file or directory compilation termination make : *** [wfq/wfq.o] error 1 Ns make failed so i need delete line iostream.h in wfq.cc? tq |
Add # 6
Using the whole package : final.tgz , with wfq.cc, bsfq.cc, drr.cc http://www.cse.iitb.ac.in/~varsha/al...ling/sim_code/ > http://www.cse.iitb.ac.in/~varsha/al...code/final.tgz Line 325 in Makefile.in / Makefile : apps/pbc.o wfq/wfq.o wfq/bsfq.o \ cp bsfq.cc ns-2.33/wfq/ cp -f drr.cc ns-2.33/queue/ Edits ... bsfq.cc : Added line 16 : #include <iostream> bsfq.cc : Line 30 : friend class BSFQ; bsfq.cc : Added below line 3 : using namespace __gnu_cxx; drr.cc : Line 37 : friend class DRR; . |
Post # 7
Quote:
Please edit to : friend class WFQ; Quote:
? May be your install works with #include <iostream> Which OS are you using ? Name and version, please. And which compiler ? . |
@knudfl
i use slackware 13, gcc 4.5.2 after i follow #6 i got many warning like "common/packet.h warning : deprecated conversion from string constant" what have i done is: -Adding wfq : cd ns-allinone-2.33/ns-2.33/ && mkdir wfq -wfq.cc : Edit line 20 to : friend class WFQ; i edit to #include <iostream> and add using namespace __gnu_452; below the last #include -Copy the modified wfq.cc to ns-2.33/wfq/ -Edit the Makefile.in, line 325 to : apps/pbc.o wfq/wfq.o \ i got that warning, but my ns2 installed at least, is it will any error in future? or is any other way without ./install cause i just need that wfq code and i already success installed package lte in the past cause it so hard to installed it |
# 9
No problem, there is a g++34 for Slackware .. http://www.slackware.com/~alien/slackbuilds/ > http://www.slackware.com/~alien/slackbuilds/gcc34/ > pkg/ > 12/ for a 32bits OS, > pkg64/ for 64bits. So it's # installpkg gcc34-3.4.6-i486-2compat.tgz gcc34-g++34-3.4.6-i486-2compat.tgz Or # installpkg gcc34-3.4.6-x86_64-2compat.tgz gcc34-g++34-3.4.6-x86_64-2compat.tgz .... Then reboot, and you can do : export CC=gcc34 CXX=g++34 . |
Add # 9
Quote:
LTE may still work with with the wfg patched ns ? But the LTE patched ns-2.33/ns may not work with wfq tcl files. Please make sure that you have a backup of the "ns-lte" binary. P.S. : Slackware 13 has gcc-4.3.3, Slackware 13.37 has gcc-4.5.2. . |
#11
tq again, i think i`ll keep in gcc 4.5.2 for now @kundfl, can i have your contact or social media chat like ym?... i dont know how to pm in this forum |
@knudfl
i got eror [code omitted because of length] : invalid command name "session/RTP::debug_" while executing "session/RTP::RTP_ set 0" after write ns in terminal, how to fix it? |
Post # 13 : It's the same for compilers :
You can have as many versions as you want, installed at the same time. They all have unique file names and locations. Example g++34 : /usr/gcc34/bin/g++34. No conflicts. Post # 14 : I have no idea. But : You are not supposed to write 'ns' in the terminal. At this time you should have 3 "ns copies" in /usr/local/bin/ : Like : ns233-orig, ns233-lte, ns233-wfq. I still don't think that you can mix modifications, and expect ns to work. But : I will have a look into wrq / ns-2.33 / Slackware 13.?? later. The command 'cat /etc/slackware-version' : Will reply with version. The command 'uname -m' : The architecture ( i686 or x86_64 ). Please show the output from both commands. . |
#15
slackware 13.37 i686 in /usr/local/bin/ i only have 1 ns, but now i rename it ns233 i have folder backup ns233 after patch latest event, can i start install from there |
i have 2 file ns in ns-2.33
first ns and ns233 first time, i copy ns file to /usr/local/bin wether i rename it or not i got error like my post before and second time i copy ns233 to /usr/local/bin i rename it or not my ns worked as usual is it my ns installed properly? and how to call wfq in code in folder /ns233/wfq ? |
# 17
One of the files from the package "final.tgz" works, when wfq.cc only is added: ns ex_wfd.tcl The result is shown in xgraph. Xgraph install http://www.linuxquestions.org/questi...34-a-862233/#2 . |
Note : gcc34-g++34-3.4.6 cannot compile ns-2.33.
A g++ version 4.1.2 seems to be the best choice. Packages, Slackware 13.37 : 1) lte-ns-2.33-S1337.i486.txz , 2.9 MB https://docs.google.com/open?id=0B7S...jlxelBRMVZ5XzA .. providing /usr/local/bin/ ns-orig ns-lte .. where ns-orig is the unpatched version. 2) wfq-ns-2.33-S1337.i486.txz, 2.5 MB, patched with bsfq.cc, drr.cc, wfq.cc https://docs.google.com/open?id=0B7S...2J5ZlhYNW13STA .. providing /usr/local/bin/ns-wfq . |
#18
can you give me detail tutorial how to use final.tgz, where to put it final.tgz and #8 etc and my post #17 is it my ns already installed? i`m use ns233 not ns from ns233 folder? |
# 20
"final.tgz" : The link is in post #8. Uncompressed it is a folder "final/". Can be located anywhere in /home/deVacto/. The package contains src/ : The three files bsfq.cc, drr.cc, wfq.cc. And examples/ : Use the tcl files with $ ns-wfq file.tcl , .. and find out, if you get a result. According to post #14, the combined lte / wfq binary cannot work. Please try out the binary packages listed in post #19. They will have no conflicts with your current installs : "lte-ns-2.33" : /usr/local/lte/ns-allinone/lib/, /usr/local/lte/ns-allinone/bin/tclsh8.4. "wfq-ns-2.33" : /usr/local/wfq/ns-allinone/lib/, /usr/local/wfq/ns-allinone/bin/tclsh8.4. And the executable : /usr/local/bin/ Installs with : # installpkg <package-name>.txz . |
#21
after i extract final.gz i got 1 file executeable final, so what do i do next? sorry i got confused after i package those two file lte and wfq, is that mean i dont need follow your post in #6 and #8? cause it got ns? |
# 22
There is no executable by name 'final' that can be used to anything ? The package "final" is mostly examples. ** How to use the src/ files : See posts #6, #8. And the files cannot be used in an lte patched ns-2.33. And : You don't have to build anything, just install the Slackware packages, #19. .... And use the provided commands : $ ns-wfq ex1.tcl : xgraph will open, and show the result. $ ns-wfq ex_wfd.tcl : xgraph ... $ ns-lte eyana.tcl : nam opens. $ ns-lte lte.tcl ; $ nam out.nam . |
#23
tq again knudfl, sorry i got the wrong final package i`ll try again install it, and what do you mean "the files cannot be used in an lte patched ns-2.33" does that mean the code is not compatible with lte? and, the package those for is... if i got you can say lte.tcl and i got ns-wfq which is it already have wfq code i just execute like ns-wfq lte.tcl and it run?? is it simple like this?? so you say there is 2 way to use wfq, first patch it to makefile.in and second use the package you gave? and i can say the second way it more simple, cause it doesnt need ./isntall? can i ask oot from this topic? i see in ns-default.tcl (tcl/lib) it got parameter like drr one, i can add something like wfq but after ./install or it must be do before it? tq again |
Did you find the solution to post 14, I am having pretty much the same problem
|
All times are GMT -5. The time now is 08:38 PM. |