Re: [LARTC] Trying understand the HTB

2007-08-14 Thread Eriberto
Hi! Thanks for your response. I used your suggestion but the traffic
was 2.71 MB/s (21.680 Kb/s). I need 500 Kb/s. What is the error???

Thanks in advance.

Regards,

Eriberto - Brazil

2007/8/14, Flechsenhaar, Jon J <[EMAIL PROTECTED]>:
> The commands work but the structure doesn't seem right to me.
>
> Try this ...
> tc qdisc del dev eth1 root
> tc qdisc add dev eth1 root handle 1: htb default 40
> tc class add dev eth1 parent 1: classid 1:1 htb rate 10mbit
> tc class add dev eth1 parent 1:1 classid 1:40 htb rate 500kbit
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] Trying understand the HTB

2007-08-13 Thread Eriberto
Hi!

I am studying HTB. I used the topology showed below:

10.1.0.1 -- 10.1.14.25 (eth1) / 192.168.10.10 (eth0) - 192.168.10.11
(host 1)  (router)
  (host 2)

All machines use Debian Etch. Has a Iptables masquerading rule to eth1
in the router machine . The NICs are 100 Mb/s. The host 1 has Apache 2
and a file with 670 MB (CD ISO image) to download.

When I used wget to get http://10.1.0.1/file.iso from 192.168.10.11.
Without tc the speed showed by wget was 9.15 M/s (= 73.2 Mbits/s). The
iptraf confirmed it. Then I used these lines to control the traffic:

tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: htb default 40
tc class add dev eth1 root classid 1:0 htb rate 10mbit
tc class add dev eth1 parent 1:0 classid 1:40 htb rate 500kbit

After tc rules, when I got file.iso, the speed showed by wget was 2.77
M/s (= 22.16 Mbits/s). But I used 500kbit (= 62.5 KB/s) in default
class.

My question is: why tc default class was configured with 500 Kb/s and
the real speed (confirmed by wget and Iptraf) was 22.16 Mb/s?

Thanks in advance.

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


Re: [LARTC] Two ADSL links and one gateway only

2007-02-17 Thread Eriberto

Yes! I have two modems acting as bridge. Then my Linux box connects to
the ISP and receives the same gateway address. I need to balance these
links.

Thanks!

Eriberto - Brazil

2007/2/17, Manish Kathuria <[EMAIL PROTECTED]>:

Don't you have different modems for each of the ADSL links ? Or do you
mean to say that they assign you IPs from the subnet and have the same
IP as their gateway ?

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


[LARTC] Two ADSL links and one gateway only

2007-02-16 Thread Eriberto

Hello!

I read the Split access and Load balancing sections into LARTC
(Chapter 4). However I have one gateway only and the LARTC says about
2 links. I need to know how to make a load  balance with my links.

Thanks in advance.

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