From mboxrd@z Thu Jan 1 00:00:00 1970 From: Date: Sat, 27 Dec 2003 01:43:03 +0000 Subject: RE: [LARTC] Dynamic Ratelimiting Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org > I am working in a script to do something like that, can you post=20 > your script > for us? I have my own hard-stuff for solve that problem. I measure all of my clients for long time (tc+parser+sql) After some period of time, 90% of my LAN clients get large autmated bandwid= th speeds , thus the rest about 10% has much worst speeds. My system increase/decrese client speeds based on per client policy (kept i= n DB): It is Per User Policy : Array ( "LBS_TBS_MAX_ANDOR" =3D> Array ( "T1"=3D>"OR", "NIGHT"=3D>"OR",= "COMB"=3D>"OR", ), "LBS_TBS_MIN_ANDOR" =3D> Array ( "T1"=3D>"AND", "N= IGHT"=3D>"AND", "COMB"=3D>"AND", ), "LBS_MIN_OK" =3D> Array ( "T1"=3D>"= 2000", "NIGHT"=3D>"1500", "COMB"=3D>"4000", ), "LBS_MAX_OK" =3D> Array = ( "T1"=3D>"4000", "NIGHT"=3D>"5000", "COMB"=3D>"9000", ), "TBS_MIN_O= K" =3D> Array ( "T1"=3D>"1800", "NIGHT"=3D>"2000", "COMB"=3D>"4000", ),= "TBS_MAX_OK" =3D> Array ( "T1"=3D>"3000", "NIGHT"=3D>"2500", "COMB"=3D= >"8000", ), "INC_STEP" =3D> Array ( "T1"=3D>"10", "NIGHT"=3D>"0", "COM= B"=3D>"0", ), "DEC_STEP" =3D> Array ( "T1"=3D>"30", "NIGHT"=3D>"30", = "COMB"=3D>"3", ), "MAX_SPD" =3D> Array ( "T1"=3D>"150", "NIGHT"=3D>"1= 50", "COMB"=3D>"150", ), "MIN_SPD" =3D> Array ( "T1"=3D>"50", "NIGHT"= =3D>"50", "COMB"=3D>"50", ), "LBS_DELTA_MIN" =3D> Array ( "T1"=3D>"3600= ", "NIGHT"=3D>"3600", "COMB"=3D>"3600", ), )=20 The speeds are collected that way in MYSQL: Array ( "TB" =3D> Array ( "COMB"=3D>"22739678964", "T1"=3D>"3339908691", = "COMBNIGHT"=3D>"33319656215", "NIGHT"=3D>"5217145438", "COMBLNIGHT"=3D>"601= 6054440", "LNIGHT"=3D>"1541492392", "COMBT1"=3D>"0", ), "LB" =3D> Array ( = "COMB"=3D>"416211349", "T1"=3D>"201458741", "COMBNIGHT"=3D>"395545975", "NI= GHT"=3D>"228162616", "COMBLNIGHT"=3D>"2270334036", "LNIGHT"=3D>"3614076", "= COMBT1"=3D>"88073956", ), "TT" =3D> Array ( "COMB"=3D>"7290365", "T1"=3D>"= 10701292", "COMBNIGHT"=3D>"6348749", "NIGHT"=3D>"8714890", "COMBLNIGHT"=3D>= "4005954", "LNIGHT"=3D>"7909108", "COMBT1"=3D>"0", ), "LD" =3D> Array ( "C= OMB"=3D>"33763", "T1"=3D>"33763", "COMBNIGHT"=3D>"25194", "NIGHT"=3D>"25194= ", "COMBLNIGHT"=3D>"27538", "LNIGHT"=3D>"27538", "COMBT1"=3D>"8880", ), "TS= " =3D> Array ( "COMB"=3D>"1072420867", "T1"=3D>"1072420867", "COMBNIGHT"= =3D>"1072454577", "NIGHT"=3D>"1072454577", "COMBLNIGHT"=3D>"1072393354", "L= NIGHT"=3D>"1072393354", "COMBT1"=3D>"1056198868", ), )=20 Which i can see from user-level managment appz: hub3:~# abo "inder Ark" all 192.168.190.122; Binder Arkadiusz * sqix * sqix@chelmnet.pl * xxxxxx87,3xxxx82 * hub3.xxxxx.pl * 00:50:xxxx:51:65 * CI50/24 [CI50B-I] * S= PD87 * FIXED (as you can see currently i have EIR=87 Kbits), yesterday i had over 130 Kb= its, just because i downloaded too-much as T1 policy (201.46Mb). But tommorrow i will have it back ! PRECIOSION-INFORMATIONS: * T_WHEN_CONNECTED=3D 2002-06-30 * T_WHO_CONNECTED=3D Szarmach * A_RECORD_CREATE_DATE=3D 2002-06-14-10-56-32 * A_RECORD_CREATE_AUTHOR=3D bzyk * N_AVG_TRAFFIC =3D { Total_BYTES(COMB) 22.74_Gbytes, during 2.81_Months AVG_T=3D3.12_kbps Last Bytes(COMB) 416.21_Mbytes, during 9.38_Hours L_AVG_T=12.33_kbps Updated 2003-12-26 17:3.50 Total_BYTES(T1) 3.34_Gbytes, during 4.13_Months AVG_T12.10_bps Last Bytes(T1) 201.46_Mbytes, during 9.38_Hours L_AVG_T=3D5.97_kbps Updated 2003-12-26 17:3.50 Total_BYTES(COMBNIGHT) 33.32_Gbytes, during 2.45_Months AVG_T=3D5.25_kbps Last Bytes(COMBNIGHT) 395.55_Mbytes, during 7.00_Hours L_AVG_T=15.70_kbps Updated 2003-12-27 0:2.51 Total_BYTES(NIGHT) 5.22_Gbytes, during 3.36_Months AVG_TY8.65_bps Last Bytes(NIGHT) 228.16_Mbytes, during 7.00_Hours L_AVG_T=3D9.06_kbps Updated 2003-12-27 0:2.51 Total_BYTES(COMBLNIGHT) 6.02_Gbytes, during 1.55_Months AVG_T=3D1.50_kbps Last Bytes(COMBLNIGHT) 2.27_Gbytes, during 7.65_Hours L_AVG_T=82.44_kbps Updated 2003-12-26 7:41.32 Total_BYTES(LNIGHT) 1.54_Gbytes, during 3.05_Months AVG_T=194.90_bps Last Bytes(LNIGHT) 3.61_Mbytes, during 7.65_Hours L_AVG_T=131.24_bps Updated 2003-12-26 7:41.32 Total_BYTES(COMBT1) 0.00_bytes, during 1.00_secs AVG_T=3D0.00_bps Last Bytes(COMBT1) 88.07_Mbytes, during 2.47_Hours L_AVG_T=3D9.92_kbps Updated 2003-6-21 17:2.28 } =3D TOTAL_AVERAGE 1.68_k_bps hub3:~# If anyone is interested in such stuff visit http://nsm.pl/~arek/superedit -for other shots and contact me. I can't put it free, just because i've been writing that for 2 years, but i= can share with other such projects/communities. A.Binder _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/