QoS not working

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a setup based on htb and sfq qdiscs.

When more than 100 users get connected to my lan, my internet setup
works considerably bad. 
 - I have a linux box with 1 eth card going to my switch (where the hubs
connect to) and to eth cards to both adsl (2Mbit each) doing load
balancing
 - My question is, is there a possibility the single ethcard cant cope
with all the load? I have found no answers


My setup:

My adsl are 2Mbit down / 300kbit up -> but i only let each eth card send
to each adsl router 150kbit to avoid collapsing during high load.

DEV=eth1

tc qdisc add dev ${DEV} handle 1: root htb default 20
tc class add dev ${DEV} parent 1:1 classid 1:1 htb rate 150kbit burst 6k

########################################
## Interactive traffic
 tc class add dev ${DEV} parent 1:1 classid 1:10 htb rate 50kbit ceil
150kbit b
 tc qdisc add dev ${DEV} parent 1:10 handle 10: sfq perturb 10
 tc filter add dev ${DEV} protocol ip  parent 1:0 handle 1 fw classid
1:10

########################################
## Non-Interactive Trafic
tc class add dev ${DEV} parent 1:1 classid 1:20 htb rate 50kbit ceil
100kbit qu
tc qdisc add dev ${DEV} parent 1:20 handle 20: esfq perturb 10 depth 15
tc filter add dev ${DEV} protocol ip  parent 1:0 handle 2 fw classid
1:20
tc filter add dev ${DEV} protocol ip  parent 1:0 handle 6 fw classid
1:20


########################################
##  SYN,ACK Trafic
tc class add dev ${DEV} parent 1:1 classid 1:30 htb rate 45kbit ceil
100kbit qu
tc qdisc add dev ${DEV} parent 1:30 handle 30: sfq perturb 10
tc filter add dev ${DEV} protocol ip parent 1:0 handle 3 fw classid 1:30

########################################
## ICMP Trafic 
tc class add dev ${DEV} parent 1:1 classid 1:40 htb rate 5kbit quantum
1500 bur
tc qdisc add dev ${DEV} parent 1:40 handle 40: pfifo
tc filter add dev ${DEV} protocol ip parent 1:0 handle 4 fw classid 1:40


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux