[FUG-BR] Priorização de trafego
Neerlan Amorim
neerlan em gmail.com
Segunda Maio 18 02:21:00 BRT 2009
Olá pessoal,
Estou fazendo alguns testes com priorização de trafego. Mas até o momento
não notei nenhuma diferença.
O link de internet é de 512kbps.
Li algumas documentações e gerei as seguintes regras:
# Pipe de 512Kbps
$fw pipe 1 config bw 512Kbit/s queue 30
$fw pipe 2 config bw 512Kbit/s queue 30
# Queue DNS
$fw add 400 queue 10 all from any to any 53 out via ${Ext_Interface}
$fw add 401 queue 11 all from any 53 to any in via ${Ext_Interface}
$fw queue 10 config weight 30 pipe 1
$fw queue 11 config weight 30 pipe 2
# Queue HTTP, HTTPS
$fw add 410 queue 20 all from any to any 80,443 out via ${Ext_Interface}
$fw add 411 queue 21 all from any 80,443 to any in via ${Ext_Interface}
$fw queue 20 config weight 20 pipe 1
$fw queue 21 config weight 20 pipe 2
# Queue SMTP, POP3
$fw add 420 queue 30 all from any to any 25,110 out via ${Ext_Interface}
$fw add 421 queue 31 all from any 25,110 to any in via ${Ext_Interface}
$fw queue 30 config weight 10 pipe 1
$fw queue 31 config weight 10 pipe 2
# Queue OTHER
$fw add 430 queue 40 all from any to any out via ${Ext_Interface}
$fw add 431 queue 41 all from any to any in via ${Ext_Interface}
$fw queue 40 config weight 5 pipe 1
$fw queue 41 config weight 5 pipe 2
# Controle de banda
$fw add 23000 pipe 23000 ip from 192.168.1.0/24 to any in via
${Int_Interface}
$fw add 23001 pipe 23001 ip from any to 192.168.1.0/24 out via
${Int_Interface}
$fw pipe 23000 config mask src-ip 0x000000ff bw 128Kbit/s queue 10KBytes
$fw pipe 23001 config mask dst-ip 0x000000ff bw 128Kbit/s queue 10KBytes
Quando estava só com o controle de banda estava funcionando “normal”.
Com as regras de priorização de trafego o desempenho diminuiu.
--
Neerlan Amorim
Mais detalhes sobre a lista de discussão freebsd