Re: How does equal cost multipath works to route.

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

 



>>>>> "J" == Jorge Boncompte (DTI2) <jorge@dti2.net> writes:

    J>     How does equal cost multipath works (what algorithm is
    J> used) when it load balances on default gateways? Is the routing
    J> decission based by packet or by flow?

This is how I understood it (and I would greatly appreciate any
correction on this):

. if you specify two routes with an equal metric value (using the
"metric" or "preference" keyword), load balancing is done on a per
connection basis;

. if you specify the "equalize" keyword on two routes (which of course
must have the usual triplet matching) then load balancing is done on a
packet basis;

. I tried to analyze the code (net/ipv4/fib_semantics.c) but I
couldn't understand where the "weight" parameter came from, given also
that the "weight" keyword in the ip user level command refers to
multicast routes.

Bye,
-- 
Andrea Glorioso		sama(at)aglorioso(dot)com
			Padua, Italy

Attachment: pgp00006.pgp
Description: PGP signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux