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


  Search this Thread
Old 08-31-2005, 04:45 AM   #1
avirup dasgupta
Registered: Aug 2003
Distribution: Redhat , Fedora Core4, DSL,Solaris
Posts: 49

Rep: Reputation: 15
squid + bandwidth cutoff at specific times of day

I am trying to figure out a way a method which might decrease the speed of internet gradually in my office LAN.

At 9am- 6 pm daily it is 55 Kbps,
From 6pm -7 pm daily it is 5 Kbps

Finally it becomes 55 kbps again at 7 pm

I changed squid.conf like this below
delay_pools 2
acl day time 18:00:19:00
delay_access 1 allow innove day
delay_access 2 allow innove day
delay_class 2 2
delay_parameters 2 5000/500000 5000/500000
delay_class 1 2
delay_parameters 1 55000/100000 55000/100000

It seems to work for new transfers made after 6pm.
BUT ,when I started downloading a software at 5:50 pm,its initial speed was 50Kbps and it continued to be that even after 6:10 pm when downloading finished(but i had hoped that it should be dropping to lower speed ..below 5k)

When i started downloading another file at 6:05 pm it stared at speed of around 4k which was fine.

SO DOES this imply,that once a file was being downloaded,it continues to have it's same transfer rate even after the timing of low bandwidth speed become effective.
OR it was my observation mistake
OR my configuration is wrong.

I am using :

1) Squid Cache: Version 2.5.STABLE1
configure options: --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --exec_prefix=/usr --bindir=/usr/sbin --libexecdir=/usr/lib/squid --localstatedir=/var --sysconfdir=/etc/squid --enable-poll --enable-snmp --enable-removal-policies=heap,lru --enable-storeio=aufs,coss,diskd,ufs --enable-ssl --with-openssl=/usr/kerberos --enable-delay-pools --enable-linux-netfilter --with-pthreads --enable-basic-auth-helpers=LDAP,NCSA,PAM,SMB,SASL,MSNT --enable-ntlm-auth-helpers=SMB,winbind --enable-external-acl-helpers=ip_user,ldap_group,unix_group,wbinfo_group,winbind_group

2)redhat 9
Old 08-31-2005, 09:53 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
I believe the bandwidth throttling is based on when the download started. I am curious as to why you are doing this, just for my own education.
Old 09-01-2005, 03:42 AM   #3
avirup dasgupta
Registered: Aug 2003
Distribution: Redhat , Fedora Core4, DSL,Solaris
Posts: 49

Original Poster
Rep: Reputation: 15
Basically the idea is to make the employees of an organisation know that it is time of office closing(indicated by drop in internet surfing) & they can go home.
After 7 pm , internet speed is again increased as it needed to run some cron jobs.


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
Day Specific Access control for Squid Bobbychat Linux - Networking 2 04-04-2011 11:58 AM
Auto-login at specific times Vorik Linux - Software 6 12-11-2007 02:04 AM
Ximian Evolution cannot fetch email- error several times per day Maxei Linux - Software 0 09-03-2005 11:40 AM
My system is crashing 5 times a day! Is linux really more stable than windows? little_penguin Linux - Software 25 07-29-2005 05:15 AM
iptables : Restrict access at certain times of day J-Ben Linux - Newbie 1 03-28-2004 10:38 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:53 AM.

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