LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-26-2009, 03:03 PM   #1
moekad
Member
 
Registered: Feb 2009
Posts: 64

Rep: Reputation: 15
squid delay pools


delay_pools 1
delay_class 1 2
delay_parameters 1 8500/102500 512000/512000

! hey mates
need help
i want to limit Download from 8K to 10K i though this mean
from 8K to 10K 8500/102500 if it achieve 500K download limit it from 8K to 10K
but didn't work
can anyone fix it for me
thanks
 
Old 08-26-2009, 07:21 PM   #2
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
# TAG: delay_parameters
# This defines the parameters for a delay pool. Each delay pool has
# a number of "buckets" associated with it, as explained in the
# description of delay_class. For a class 1 delay pool, the syntax is:
#
#delay_parameters pool aggregate
#
# For a class 2 delay pool:
#
#delay_parameters pool aggregate individual
#
# For a class 3 delay pool:
#
#delay_parameters pool aggregate network individual
#
# The variables here are:
#
# pool a pool number - ie, a number between 1 and the
# number specified in delay_pools as used in
# delay_class lines.
#
# aggregate the "delay parameters" for the aggregate bucket
# (class 1, 2, 3).
#
# individual the "delay parameters" for the individual
# buckets (class 2, 3).
#
# network the "delay parameters" for the network buckets
# (class 3).
#
# A pair of delay parameters is written restore/maximum, where restore is
# the number of bytes (not bits - modem and network speeds are usually
# quoted in bits) per second placed into the bucket, and maximum is the
# maximum number of bytes which can be in the bucket at any time.
#
# For example, if delay pool number 1 is a class 2 delay pool as in the
# above example, and is being used to strictly limit each host to 64kbps
# (plus overheads), with no overall limit, the line is:
#
#delay_parameters 1 -1/-1 8000/8000
#
# Note that the figure -1 is used to represent "unlimited".
#
# And, if delay pool number 2 is a class 3 delay pool as in the above
# example, and you want to limit it to a total of 256kbps (strict limit)
# with each 8-bit network permitted 64kbps (strict limit) and each
# individual host permitted 4800bps with a bucket maximum size of 64kb
# to permit a decent web page to be downloaded at a decent speed
# (if the network is not being limited due to overuse) but slow down
# large downloads more significantly:
#
#delay_parameters 2 32000/32000 8000/8000 600/8000
#



for me 512000/512000 = 262144000000
or 26214k/s!
 
Old 08-26-2009, 07:23 PM   #3
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
use HTB instead!!
 
Old 08-27-2009, 07:26 AM   #4
moekad
Member
 
Registered: Feb 2009
Posts: 64

Original Poster
Rep: Reputation: 15
thx for reply
then for mine :
delay_pools 1
delay_class 1 2
delay_parameters 1 8500/102500 512000/512000
can u help me for this i want to check if i got this:
8500 = min rate
102500 = max rate
512000 = what? i didn't got the last 2 or 512000
maybe u can help me regard this to understand thanks alot =)
 
Old 08-27-2009, 08:24 AM   #5
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
# For example, if delay pool number 1 is a class 2 delay pool as in the
# above example, and is being used to strictly limit each host to 64kbps
# (plus overheads), with no overall limit, the line is:
#
#delay_parameters 1 -1/-1 8000/8000

so for me it says that 8000/8000 = a strict limit of 64k (bits) per host,
and that -1/-1 means the total pool is unlimited (254 hosts @ 64k = 16megabits/s)


"i want to limit Download from 8K to 10K i though this mean
from 8K to 10K 8500/102500 if it achieve 500K download limit it from 8K to 10K"

so, (assuming your 8k is 8k/bytes and not 8k/bits)

delay_parameters pool aggregate individual
delay_parameters 1 512000/512000 8000/8000

so the pool gets 512k/b and each host gets 8k/b..

where 'pool' relates to your delay pool number
and 'aggregate' is the total amount in the bucket
and 'individual' is the total amount per host
 
Old 08-28-2009, 11:07 AM   #6
moekad
Member
 
Registered: Feb 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by evilted View Post
# For example, if delay pool number 1 is a class 2 delay pool as in the
# above example, and is being used to strictly limit each host to 64kbps
# (plus overheads), with no overall limit, the line is:
#
#delay_parameters 1 -1/-1 8000/8000

so for me it says that 8000/8000 = a strict limit of 64k (bits) per host,
and that -1/-1 means the total pool is unlimited (254 hosts @ 64k = 16megabits/s)


"i want to limit Download from 8K to 10K i though this mean
from 8K to 10K 8500/102500 if it achieve 500K download limit it from 8K to 10K"

so, (assuming your 8k is 8k/bytes and not 8k/bits)

delay_parameters pool aggregate individual
delay_parameters 1 512000/512000 8000/8000

so the pool gets 512k/b and each host gets 8k/b..

where 'pool' relates to your delay pool number
and 'aggregate' is the total amount in the bucket
and 'individual' is the total amount per host
//
hey Thanks alot
you are Master
i got you but i need to make sure
so
delay_parameters 1 512000/512000 8000/8000
mean if i got 512K each host will have 8K right?
thanks alot again
Take care
 
  


Reply


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
Squid 2.7 And Delay Pools Problem xtimox Linux - Networking 1 08-18-2009 09:35 AM
Squid delay pools suhas! Linux - Server 1 12-01-2007 12:49 PM
squid delay pools - what am I doing wrong? Sevensins Linux - Networking 0 07-24-2006 11:57 PM
Squid delay pools Bilal84 Linux - Security 1 04-27-2005 08:38 AM
Squid Delay pools Bilal84 Linux - Networking 1 04-26-2005 03:07 PM

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

All times are GMT -5. The time now is 12:48 PM.

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