Hi Lars,
In ipvs netfilter module (0.9.2) there is the ip_vs_sync.c specifying the
connection table exchange between Master and multiple backup servers.
Using ipvsadm you start the sync daemon on to the master director. So it
send adverts to the backups servers using multicast : 224.0.0.81.
You need to start ipvsadm sync daemon on the backups servers too...
the packet format is :
/*
The master mulitcasts messages to the backup load balancers in the
following format.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Count Conns | Reserved | Size |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| IPVS Sync Connection (1) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| . |
| . |
| . |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| IPVS Sync Connection (n) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
The code is nice but need to be improved. I have planed to add an ICV like
in IPSEC-AH (with anti-replay and all strong dataexchange format) but I
steel very busy :/ I am finishing rewritting all the keepalived code so I
will try to contribute to that nice part in a next effort :).
Regards,
Alexandre
|