LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2014, 12:47 AM   #1
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Rep: Reputation: Disabled
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
 
Old 01-31-2014, 03:48 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,322

Rep: Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089
Quote:
Originally Posted by sandeep10 View Post
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.
 
Old 02-01-2014, 12:54 AM   #3
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
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..
 
Old 02-01-2014, 02:07 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,322

Rep: Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089Reputation: 8089
Quote:
Originally Posted by sandeep10 View Post
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".
 
Old 02-04-2014, 11:46 AM   #5
sandeep10
LQ Newbie
 
Registered: Nov 2013
Posts: 19

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TBF (Token Bucket Filter) and Netem. Netem removed on TBF param change scoops Linux - Wireless Networking 1 03-16-2012 09:26 AM
Socket read into a bit bucket? Ronayn Programming 6 08-01-2011 07:50 AM
LXer: A Big Drop in the Bucket for Drupal LXer Syndicated Linux News 0 12-28-2007 04:11 PM
token bucket algorithm vs Leaky bucket algorithm xeon123 Linux - Networking 2 03-26-2007 05:57 AM
can't start ALSA (output goes to the bit bucket) yggdrasilos Linux - Software 2 01-31-2004 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration