[squid-users] bandwidth cutoff according to time of day

From: Avirup Dasgupta <asoke_dasgupta@dont-contact.us>
Date: Wed, 14 Sep 2005 08:42:14 +0100 (BST)

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 till 9 am he
next day

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

        
        
                
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Received on Wed Sep 14 2005 - 01:42:16 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:03 MDT