All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] share bandwith fairly
@ 2005-10-14 11:01 TAYLAN  KIRAN
  2005-10-14 11:12 ` Peter Surda
  2005-10-14 11:35 ` TAYLAN  KIRAN
  0 siblings, 2 replies; 3+ messages in thread
From: TAYLAN  KIRAN @ 2005-10-14 11:01 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 1477 bytes --]

Dear members,

  I am trying to share the bandwith for all users fairly. because some users heavily uses p2p programs and a few hosts consume most of bandwith.  when we limit each flow it does not work as one client has many connection at same time.

 Firstly I tried  to write a script that use 
the ipfm(which accounts traffic usage) logs as follow
.extract  ip addresses heavy bandwith users from log file
.create a new class with 128kbit for that  Ip address 
. add tc filter for that IP by classify the ip addres with 'match ip dst' parameter.

it works for a few IP. After 4 or 5 ip addresses added it does not work for last added ip addresses.

let me show the lines that I used.

—------- creation of qdisc and parent —------------
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1 classid 1:1 htb rate 10mbit ceil 10mbit


—----works for each IP address found in ipfm logs that exceed the desired bandwith usage —---
 tc class add dev eth0 parent 1:1 classid 1:$index htb rate 128kbit ceil 128kbit
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 \match ip dst $ipaddress classid 1:$index

but it does not work good. then I tried to find better solution in maillist. there are some solutions there. but not appropriate to us as they required patching kernel like esfq,routehat,wrr.

 
is there any suggestion.

Thanks 
Note: sorry for my poor english.


Taylan

[-- Attachment #1.2.1: Type: text/html, Size: 2097 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-14 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 11:01 [LARTC] share bandwith fairly TAYLAN  KIRAN
2005-10-14 11:12 ` Peter Surda
2005-10-14 11:35 ` TAYLAN  KIRAN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.