Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-31-2014, 12:47 AM
|
#1
|
LQ Newbie
Registered: Nov 2013
Posts: 19
Rep:
|
Token bucket in NS2
I want to use token bucket algorithm in the NS2, by searching on google I found the NS2 code for token bucket algorithm..It consist of the file such as
dsshaper.h
dsshaper.cc
dsshaper.tcl
Now I want to use them in NS2, they are provided the steps to add them to some folder in NS2 and to use MAKE command..but its not clear..do you know any references where the steps to adding new algorithm is available or the actual steps??
Thank you in advance
|
|
|
01-31-2014, 03:48 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,322
|
Quote:
Originally Posted by sandeep10
I want to use token bucket algorithm in the NS2, by searching on google I found the NS2 code for token bucket algorithm..It consist of the file such as
dsshaper.h
dsshaper.cc
dsshaper.tcl
Now I want to use them in NS2, they are provided the steps to add them to some folder in NS2 and to use MAKE command..but its not clear..do you know any references where the steps to adding new algorithm is available or the actual steps??
|
Well, you say that you already have the instructions that came with the patch...if you don't understand them, there's not much we can tell you. Post a SPECIFIC thing you don't understand, and we can try to explain it, but just saying "its not clear", tells us nothing.
|
|
|
02-01-2014, 12:54 AM
|
#3
|
LQ Newbie
Registered: Nov 2013
Posts: 19
Original Poster
Rep:
|
okay the document says that dsshaper.cc and dsshaper.h should be placed in ns folder...am running ns 2.35, so I think I should paste them into /home/username/ns-allinone-2.35/ns-2.35...I don't know its correct or not...because there are bunch of folders in ns-2.35..
so my question is, do I need to paste them open in ns-2.35 folder or prep any separate folder for this one??
after that, document says add the dsshaper.o into makefile,then execute configure and make...
am not understanding, dsshaper.o into makefile part of this statement..
|
|
|
02-01-2014, 02:07 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,322
|
Quote:
Originally Posted by sandeep10
okay the document says that dsshaper.cc and dsshaper.h should be placed in ns folder...am running ns 2.35, so I think I should paste them into /home/username/ns-allinone-2.35/ns-2.35...I don't know its correct or not...because there are bunch of folders in ns-2.35..
so my question is, do I need to paste them open in ns-2.35 folder or prep any separate folder for this one??
|
The documentation tells you to place it in the NS folder...and you just said that you have NS in /home/username/ns-allinone-2.35/ns-2.35. Doesn't that question answer itself??
Quote:
after that, document says add the dsshaper.o into makefile,then execute configure and make... am not understanding, dsshaper.o into makefile part of this statement..
|
You open the file named "makefile", and insert the dsshaper.o file with the other .o files in there. This is in the instructions. Then you run "configure" then "make".
|
|
|
02-04-2014, 11:46 AM
|
#5
|
LQ Newbie
Registered: Nov 2013
Posts: 19
Original Poster
Rep:
|
thank you sir, I got the result...
I have one more doubt, is it possible to change the link or node parameter once the simulation is performed. My work is to use token bucket algorithm to shape the traffic, is there is more packet loss then source throughput has to be reduced
In all the ns2 example I have traced, they first set all the network parameters, once everything is defined they will go for the simulation. My question is, is it possible to alter those network paramaters once the simulation is done, like a feedback to source??
Thank you again
|
|
|
All times are GMT -5. The time now is 08:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|