[LARTC] Load Balance simply doesn´t work...

2004-08-25 Thread favero
i´ve been searching for a load balance solution since a month 
ago... what i can say is that it simply doesn´t work. I was 
unable to find one guy that did it with sucess. When "load 
balance" is the subject of the message on the list, the 
message is simply ignored.
So... if it doesn´t work... why LARTC don´t delete it from the 
HOW TO and answer us with some "it simply doesn´t work... 
give up man!". This can save the time of a lot of guys, 
including me
Tks anyway
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Problems with QOS

2004-08-25 Thread XMundo - Soporte Tecnico



Hi.
 
I´m making an script for load 
balancing of twocablemodems internet connections toward my LAN.
 
The problem is that when I try to 
'equalize' thethe two internet connections with the weight=1 itdoesn´t 
work. On the other hand, if I put 5 and 5it works, but not at 100%, it does 
intermittlently,some times works and others don´t.
 
example:
 
ip route add default 
equalize\ nexthop via $P1 dev $IF1 weight 5\ nexthop via $P2 
dev $IF2 weight 5
 
Besides, when I open, for example, 
the firefox browser, it takes a lot to start navigating, sometimes it works 
and othertimes gives an error and I can´t navigate.
 
From the server it works properly, 
but form the clients PCsdoesn´t.
 
By the way, I´m making NAT toward 
the Client PCs.
 
Do you have any idea why does it 
take so long to startnavigating and why sometimes it works and sometimes 
doesn´t.
 
This is the current script running in my server:
 
#=
 
P0_NET=10.0.1.0/24IF0=eth1IP0=10.0.1.1
 
IF1=eth0IP1=xxx.xxx.xxx.7P1_NET=xxx.xxx.xxx.0/24P1=xxx.xxx.xxx.1
 
IF2=eth2IP2=yyy.yyy.yyy.21P2_NET=yyy.yyy.yyy.0/24P2=yyy.yyy.yyy.1
 
echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filterecho 0 > 
/proc/sys/net/ipv4/conf/eth2/rp_filter
 
echo 3 > /proc/sys/net/ipv4/route/gc_elasticityecho 1 > 
/proc/sys/net/ipv4/route/gc_intervalecho 0 > 
/proc/sys/net/ipv4/route/gc_timeout
 
ip route flush cacheip route flush allip route flush table 
modem0ip route flush table modem1
 
ip rule add from $IP1 lookup modem0ip rule add from $IP2 lookup 
modem1
 
ip route add $P1_NET dev $IF1 src $IP1ip route add $P2_NET dev $IF2 src 
$IP2ip route add $P0_NET dev $IF0 src $IP0
 
ip rule add from $P1_NET lookup modem0ip route add $P0_NET dev $IF0 
table modem0ip route add 0/0 via $P1 table modem0
 
ip rule add from $P2_NET lookup modem1ip route add $P0_NET dev $IF0 
table modem1ip route add 0/0 via $P2 table modem1
 
ip route add default equalize\ nexthop via $P1 dev $IF1 weight 
5\ nexthop via $P2 dev $IF2 weight 5
 
#=


Re: [LARTC] University Project: QoS with Ai

2004-08-25 Thread adi
or use this link :
http://www.tranexp.com:2000/InterTran?type=url&url=http%3A%2F%2Frainbow.mimuw.edu.pl%2FSR%2Fprace-mgr%2Fkaszynski%2F&text=&from=pol&to=eng

adrian

> Witam
>
> There is similar, finished project that also uses concept of neural
> networks.
> http://rainbow.mimuw.edu.pl/SR/prace-mgr/kaszynski/
>
> Unfortunately, this is all in polish.
>
>
> --
> Pozdrawiam
>  Marcinmailto:[EMAIL PROTECTED]
>
> ___
> LARTC mailing list / [EMAIL PROTECTED]
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] University Project: QoS with Ai

2004-08-25 Thread Marcin Sura
Witam

There is similar, finished project that also uses concept of neural networks.
http://rainbow.mimuw.edu.pl/SR/prace-mgr/kaszynski/

Unfortunately, this is all in polish.


-- 
Pozdrawiam
 Marcinmailto:[EMAIL PROTECTED]

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Question about htb class

2004-08-25 Thread Hideaki Nemoto

On Tue, 24 Aug 2004 09:15:56 +0100
Andy Furniss <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] wrote:

snip

> > On Mon, 23 Aug 2004 23:58:51 +0100
> > Andy Furniss <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > Thanks for the answer, Andy.
> > I think I'm starting to understand.
> > 
> > Does the "transmit time" here, mean "time the kernel should take in
> > order to send out the packet" ?
> > 
> > OK, so here's how I understood. Please correct me if I'm wrong.
> > 
> > 1. When the kernel receives a packet, it gets the transmit time
> > corresponding to the packet length.
> > 
> > xmit_time = rtab[pkt_len>>cell_log];
> > 
> > 2. Then, the kernel sends that packet using xmit_time ?
> > (If xmit_time was like 10 milli sec, it consumes 10 milli sec to
> > sends the packet ? Or does it wait for xmit_time to send it)
> > 
> > Is my understanding correct ?
> > 
> 
> It's the qdisc that uses the rate table(s). On my setup with HTB  a
> table is generated for the rate and ceil of each class.
> 
> When HTB dequeues a packet it doesn't always know how long it is until
> it's gone (eg. I use SFQ on leafs), so I guess it will look up the time
> from the len of the skb that sfq returns and delay dequeueing the next
> packet from that class until that time has passed.
> 
> I suppose burst an requeue complicate things - I don't really know how
> HTB does things :-)
> 

Thanks again Andy.
I still can't understand the burst stuff, but I think I got the point
about the rtable.
I'll try to see the burst. Thanks !!

> Andy.
> 


-- 
Hideaki Nemoto <[EMAIL PROTECTED]>

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] University Project: QoS with Ai

2004-08-25 Thread Brian Carrig
GoMi,

For an ongoing project on QoS we looked at something similar but were weary of 
complex decisions being made at high speeds, particularly as most users questioned 
would prefer to have a guaranteed equal share of the bandwidth. Currently we are 
working on a GUI that allows users to mark their traffic as belonging to Gold/Silver 
or 
Bronze classes of service. They are then charged appropriately per volume. The 
results obtained by this approach thus far are quite satisfactory.

Regards
Brian

On 24 Aug 2004 at 18:47, GoMi wrote:

> Hi there guys, i am on my last year of career, and as my final Project i am
> interested in doing something about QoS.
> 
> The thing is, I have a couple of QoS solutions working, and since the
> beginning I though it was great but it lacked some kind of dynamicity. 
> 
> Let me explain myself.. I was thinking in creating a classful queue that
> based on some parameters (kind of users, bw, packets, etc...) could "learn"
> in some way the kind of traffic passing through the box, and change the
> parameters of the classes, classifying also not only the packets, but the
> users.
> 
> For example there could be p2p users, HTTP users, etc.. and if the queue
> itself could create classes for those users, maybe increase productivity.
> 
> 
> What do you think? Am I talking bullocks or it makes some sense? All critics
> welcome :)
> 
> 
> ___
> LARTC mailing list / [EMAIL PROTECTED]
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


-- 
Brian Carrig
Department of Computing & Networking
Institute of Technology, Carlow
Tel. No.: +353 59 9176209
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/