Hi, find attached some messages from ns-users-mail archives. They will probably answer your question. Hope this will help you. -------------- Vicent Pla
- To: Vicent Pla <[email protected]>
- Subject: ns-users.archive.9904: Re: Token Bucket Filter
- From: Vicent Pla <[email protected]>
- Date: Fri, 18 Jun 1999 20:35:23 -0400
- Sender: [email protected]
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9904/0206.htmlBodog Gyula wrote:
>
> Dear all,
>
> I used token bucket filter to my simulation. I'd lie to simulate some
> scheduling algorithm which is implemented in NS. I used CBR sources which are
> leaky bucket constrained.
>
> During the simulation I have a big problem. There are 7 session (7 CBR
> sources). Each can send packets from the begining of the simulation.
> But when used tbf, some sources doen't send any packet. However it should send
> packets with a specified rate.
>
> Has somybody know what could be the problem?
>
> Thanks ind advance,
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * Gyula Bodog *
> * e-mail: [email protected] *
> * tel.: (06 1) 3-691-839 *
> * Student at Technical University of Budapest *
> * *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * *A recently sent message mentionned this:
Hi,
We believe to have just found a bug in tbf.cc. Function TBF::recv has a
static variable "init", which gives wrong results when there is more
than one TBF object. We moved the "init" variable to the class
declaration in tbf.h as a protected variable, so that it can now work
fine with multiple TBF objects.Lidia Yamamoto
Ludovic KutyThe problem is: The first tbf starts with a full bucket and others tbfs start
with an empty bucket though they should also start with a full bucket.Change the tbf code that way and it may resolve your problem.
Ludovic Kuty
Title: ns-users.archive.9904: Re: Token Bucket FilterRe: Token Bucket Filter
Ludovic Kuty ([email protected])
Wed, 28 Apr 1999 14:55:39 +0200
Bodog Gyula wrote:
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Andree Jacobson: "Obstacles in mobile networks"
- Previous message: Huang Hai: "Re: Error, scoreboard too large"
- Maybe in reply to: Bodog Gyula: "Token Bucket Filter"
>
> Dear all,
>
> I used token bucket filter to my simulation. I'd lie to simulate some
> scheduling algorithm which is implemented in NS. I used CBR sources which are
> leaky bucket constrained.
>
> During the simulation I have a big problem. There are 7 session (7 CBR
> sources). Each can send packets from the begining of the simulation.
> But when used tbf, some sources doen't send any packet. However it should send
> packets with a specified rate.
>
> Has somybody know what could be the problem?
>
> Thanks ind advance,
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * Gyula Bodog *
> * e-mail: [email protected] *
> * tel.: (06 1) 3-691-839 *
> * Student at Technical University of Budapest *
> * *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * *
A recently sent message mentionned this:
Hi,
We believe to have just found a bug in tbf.cc. Function TBF::recv has a
static variable "init", which gives wrong results when there is more
than one TBF object. We moved the "init" variable to the class
declaration in tbf.h as a protected variable, so that it can now work
fine with multiple TBF objects.
Lidia Yamamoto
Ludovic Kuty
The problem is: The first tbf starts with a full bucket and others tbfs start
with an empty bucket though they should also start with a full bucket.
Change the tbf code that way and it may resolve your problem.
Ludovic Kuty
- Next message: Andree Jacobson: "Obstacles in mobile networks"
- Previous message: Huang Hai: "Re: Error, scoreboard too large"
- Maybe in reply to: Bodog Gyula: "Token Bucket Filter"
- To: Vicent Pla <[email protected]>
- Subject: ns-users.archive.9903: Re: filter and token bucket filter
- From: Vicent Pla <[email protected]>
- Date: Fri, 18 Jun 1999 20:37:37 -0400
- Sender: [email protected]
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9903/0123.html> Hi
>
> Where and how do we use filter in ns?
> Where can i get details on token bucket filter in ns?Take a look the files: tbf.h, tbf.cc, and tcl/ex/test-tbf.tcl
Thanks.
Title: ns-users.archive.9903: Re: filter and token bucket filter
--Zhenhai
>
> thanks
>
> with Regards
> Anurag,
>
>Re: filter and token bucket filter
Zhenhai Duan ([email protected])
Fri, 12 Mar 1999 10:06:41 -0600 (CST)
> Hi
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sambit Sahu: "RIO support NS"
- Previous message: Anurag: "filter and token bucket filter"
>
> Where and how do we use filter in ns?
> Where can i get details on token bucket filter in ns?
Take a look the files: tbf.h, tbf.cc, and tcl/ex/test-tbf.tcl
Thanks.
--Zhenhai
>
> thanks
>
> with Regards
> Anurag,
>
>
- Next message: Sambit Sahu: "RIO support NS"
- Previous message: Anurag: "filter and token bucket filter"
- To: Vicent Pla <[email protected]>
- Subject: ns-users.archive.9903: Re: about TBF(Token Bucket Filter)
- From: Vicent Pla <[email protected]>
- Date: Fri, 18 Jun 1999 20:40:24 -0400
- Sender: [email protected]
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9903/0186.htmlHI Zhen,Did u consider the two token rate tbf (as defined in )
ftp://lohi.eng.telia.fi/tmp/draft-heinanen-diffserv-trtcm-00.txt
It is simple...
Just put two tbfs in succession::
Pkt flow----> TBF1 ----> TBF2---->Pkt Flow
TBF1 parameters: rate = average rate of the flow= token rate
TBF2 parameters: rate = peak rate of the flow= token rateThe bucket depths are left to your choice...
Will this work for u?? Just thought I should tell you..
Arni
On Tue, 2 Mar 1999, Zhenhai Duan wrote:
> I just checked the code of tbf, and I want to add in the Peak Rate
Title: ns-users.archive.9903: Re: about TBF(Token Bucket Filter)
> contraint. But I am not sure how I should use this value. The way in my
> mind is this: Whenever I have enough tokens to send one packet, I postpone
> (scheduling a event) the sending by a delay(packetLength/peakRate), after
> timeout, I call target_->recv(p).
>
> Any comments are appreciated.Re: about TBF(Token Bucket Filter)
[email protected]
Wed, 17 Mar 1999 23:16:31 -0500 (EST)
HI Zhen,
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Chadi M. BARAKAT: "command function"
- Previous message: Gang Wu: "Re: how to repeat trial?"
Did u consider the two token rate tbf (as defined in )
ftp://lohi.eng.telia.fi/tmp/draft-heinanen-diffserv-trtcm-00.txt
It is simple...
Just put two tbfs in succession::
Pkt flow----> TBF1 ----> TBF2---->Pkt Flow
TBF1 parameters: rate = average rate of the flow= token rate
TBF2 parameters: rate = peak rate of the flow= token rate
The bucket depths are left to your choice...
Will this work for u?? Just thought I should tell you..
Arni
On Tue, 2 Mar 1999, Zhenhai Duan wrote:
> I just checked the code of tbf, and I want to add in the Peak Rate
> contraint. But I am not sure how I should use this value. The way in my
> mind is this: Whenever I have enough tokens to send one packet, I postpone
> (scheduling a event) the sending by a delay(packetLength/peakRate), after
> timeout, I call target_->recv(p).
>
> Any comments are appreciated.
> --Zhenhai
> --------------------------------------------------------------
> Zhenhai Duan [email protected]
> Computer Science Department http://www.cs.umn.edu/~duan
> University of Minnesota, TC Phone: (612)626-7526(O)
> --------------------------------------------------------------
>
>
- Next message: Chadi M. BARAKAT: "command function"
- Previous message: Gang Wu: "Re: how to repeat trial?"