<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>este by som dodal, ze nechcel by som to riesit 
nastavenim priority cez prio, lebo to som skusal a vtedy sa konekcia s nizsou 
prioritou nema sancu, a timeoutne sa, kedze sa nedostane vobec ku 
slovu.</FONT></DIV>
<DIV><BR>jmi<BR>-----------------------<BR>ICQ# 100611036</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=minaroviech9@kepler.fmph.uniba.sk 
  href="mailto:minaroviech9@kepler.fmph.uniba.sk">jmi</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=linux@lists.linux.sk 
  href="mailto:linux@lists.linux.sk">linux.sk</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, August 30, 2003 12:51 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [linux] htb problem</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>caute</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>chcem delit 12kbps (96kbit) internetovu linku 
  medzi viac PC a mam takyto problem:</FONT></DIV>
  <DIV><FONT face=Arial size=2>(pouzity aj uplne najnovsi patch na htb v 
  kombinacii s imq)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>trieda 1:14 by mala mat 100bps</FONT></DIV>
  <DIV><FONT face=Arial size=2>trieda 1:12 by mala mat 1kbps</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>problem je, ze realne si pozicaju od parenta 
  priblizne rovnako, teda tahaju&nbsp;priblizne&nbsp;po 5kbps</FONT></DIV>
  <DIV><FONT face=Arial size=2>a ja som chcel aby tahali 1kbps a 10kbps (vsak 
  podla pomerov ratio sa to ma delit)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>problem by mohol byt tam, ze nestihne prist 
  ziaden paket pre tu rychlejsiu konekciu a tak to ta, ktora ma byt pomala, 
  dokonale zneuzije</FONT></DIV>
  <DIV><FONT face=Arial size=2>asi by to chcelo nejake spomalenie, alebo nieco 
  take .. </FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>(mtu mam normalne 1500 ale prepal som ho na 500 
  aj na interfacoch, no problem sa mi nevyriesil)</FONT></DIV>
  <DIV><FONT face=Arial size=2>nejake napady? </FONT></DIV>
  <DIV><FONT face=Arial size=2>dik moc</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>pouzity konfigurak (ako su v nom sprostosti co sa 
  tyka klasifikacie paketov, ale na pokus mi to staci)</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>modprobe imq numdevs=2</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>tc qdisc del dev imq0 root</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>tc qdisc add dev imq0 root handle 1:0 htb default 
  11</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>tc class add dev imq0 parent 1:0 classid 1:1 htb 
  rate 11kbps ceil 11kbps mtu 500</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>tc class add dev imq0 parent 1:1 classid 1:11 htb 
  rate 2kbps ceil 11kbps prio 0 mtu 500<BR>tc class add dev imq0 parent 1:1 
  classid 1:12 htb rate 1kbps ceil 11kbps prio 1 mtu 500<BR>tc class add dev 
  imq0 parent 1:1 classid 1:13 htb rate 1kbps ceil 11kbps prio 1 mtu 500<BR>tc 
  class add dev imq0 parent 1:1 classid 1:14 htb rate 100bps ceil 11kbps prio 1 
  mtu 500</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>tc qdisc add dev imq0 parent 1:11 handle 101: sfq 
  <BR>tc qdisc add dev imq0 parent 1:12 handle 102: sfq<BR>tc qdisc add dev imq0 
  parent 1:13 handle 103: sfq<BR>tc qdisc add dev imq0 parent 1:14 handle 104: 
  sfq</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT face=Arial size=2>
  <DIV><BR>tc filter add dev imq0 protocol ip parent 1:0 handle 1 fw classid 
  1:11<BR>tc filter add dev imq0 protocol ip parent 1:0 handle 2 fw classid 
  1:12<BR>tc filter add dev imq0 protocol ip parent 1:0 handle 3 fw classid 
  1:13<BR>tc filter add dev imq0 protocol ip parent 1:0 handle 4 fw classid 
  1:14</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>iptables -t mangle -F<BR>iptables -t mangle -A POSTROUTING -o eth0 -d 
  192.168.6.2 -s 195.146.99.135 -j MARK --set-mark 1<BR>iptables -t mangle -A 
  POSTROUTING -o eth0 -d 192.168.6.2 -s 195.146.99.135 -j IMQ</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>iptables -t mangle -A POSTROUTING -o eth0 -d 192.168.6.2 -s ! 
  195.146.99.135 -j MARK --set-mark 2<BR>iptables -t mangle -A POSTROUTING -o 
  eth0 -d 192.168.6.2 -s ! 195.146.99.135 -j IMQ</DIV>
  <DIV><BR>iptables -t mangle -A POSTROUTING -o eth0 -d 192.168.3.1 -s ! 
  192.168.0.0/16 -m connbytes ! --connbytes 300000: -j MARK --set-mark 
  3<BR>iptables -t mangle -A POSTROUTING -o eth0 -d 192.168.3.1 -s ! 
  192.168.0.0/16 -m connbytes ! --connbytes 300000: -j IMQ</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>iptables -t mangle -A POSTROUTING -o eth0 -d 192.168.3.1 -s ! 
  192.168.0.0/16 -m connbytes --connbytes 300000: -j MARK --set-mark 
  4<BR>iptables -t mangle -A POSTROUTING -o eth0 -d 192.168.3.1 -s ! 
  192.168.0.0/16 -m connbytes --connbytes 300000: -j IMQ</FONT></DIV><FONT 
  face=Arial size=2>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>ip link set imq0 up</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><BR>jmi<BR>-----------------------<BR>ICQ# 100611036</DIV>
  <DIV>&nbsp;</DIV>
  <DIV></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>