First IPv6 support for IPVS and ipvsadm
Hi,
It's not ready for prime time, but we wanted to throw some of our IPv6 code for IPVS out there... We now actually have a lot of working IPv6 functionality in IPVS. While I have mainly been working on the kernel part, Vince Busam has been converting ipvsadm to support the new kernel features from userspace. You can find the whole, big patches here (unfortunately, we haven't reworked them into sane pieces yet, sorry):
- Kernel patch against davem's net-2.6:
http://www-user.tu-chemnitz.de/~volz/ipvs_ipv6/ipvs_ipv6.patch
- It depends on this patch that moves the "ipvs" directory to "net/netfilter":
http://www-user.tu-chemnitz.de/~volz/ipvs_ipv6/move_ipvs_to_netfilter.patch
- ipvsadm patch and tar.gz:
http://www-user.tu-chemnitz.de/~volz/ipvs_ipv6/ipvsadm-1.25-ipv6-1.patch
http://www-user.tu-chemnitz.de/~volz/ipvs_ipv6/ipvsadm-1.25-ipv6-1.tar.gz
Enable CONFIG_IP_VS_IPV6 for IPv6 support in IPVS.
Short overview:
What works with IPv6:
- forwarding mechanisms: NAT, DR, maybe Tunnel (not fully tested yet)
- protocols: TCP, UDP, ESP, AH (last two not tested)
- manipulation and inspection of both IPv4 and IPv6 entries with ipvsadm
- 6 out of 10 schedulers
What is not supported with IPv6:
- handling fragmentation or other extension headers
- FTP application helper (can be loaded, but only operates on v4)
- sync daemon (can be started, but only operates on v4)
- probably some incorrect handling of ICMPv6 or other corner cases
Since fragmentation and extension headers should not occur very often, things should "mostly" work. I tested HTTP and DNS over NAT and DR with various supported schedulers without encountering any problems. But we didn't test any exotic situations. Also, there are some TODOs in the code for things that haven't been tested or implemented yet.
I copied and changed many IPv4 methods into corresponding IPv6 versions, so the duplication is quite high. I chose to go that way in order to not break too much of the existing IPv4 code. The upside of that is that v4 should hopefully still work exactly as before. All relevant data structures have an added 'af' fields for specifying the address family - see my previous thread about that for details. That means the kernel<->userspace interface changed and you absolutely need to use the new ipvsadm with these kernel changes, even for IPv4-only operation.
Feel free to comment, question, criticize, ridicule... but please remember that this our first real shot at a kernel project!
Julius & Vince
Signature · 1 line
Google Switzerland GmbH
Quoted 3 lines · Julius Volz
Since fragmentation and extension headers should not occur very often, things should "mostly" work. I tested HTTP and DNS over NAT and DR with various supported schedulers without encountering any problems.
great step forward.
Thanks Joe
Signature · 4 lines
Joseph Mack NA3T EME(B,D), FM05lw North Carolina jmack (at) wm7d (dot) net - azimuthal equidistant map generator at http://www.wm7d.net/azproj.shtml Homepage http://www.austintek.com/ It's GNU/Linux!
Quoted 7 lines · On Fri, May 23, 2008 at 5:36 PM, Joseph Mack NA3T <[email protected]> wrote:
Quoted 3 lines · Julius Volz
Since fragmentation and extension headers should not occur very often, things should "mostly" work. I tested HTTP and DNS over NAT and DR with various supported schedulers without encountering any problems.
great step forward.
Thanks! I hope breaking the userspace<->kernel interface is ok for this? It would get much messier otherwise. This just means that starting with a kernel version that contains these patches, you'll have to use the new ipvsadm version (ipvsadm already has provisions for detecting this by comparing version numbers).
Now how to proceed further? It would probably be helpful if people could test their existing v4 setups with the patches to make sure that the old functionality still works identically. That seems like the most important thing for getting it accepted from the functionality standpoint, so anyone who can give it a try in their test lab would help (I will contact the people who were once interested in a v6 version). I'll also try splitting up the patch into smaller pieces so it becomes somewhat more reviewable. It would also be cool to hear from Horms if the direction in which this code is going is acceptable at all or if we have to do things really differently...
Julius
Signature · 1 line
Google Switzerland GmbH
Quoted 4 lines · Julius Volz
Quoted 1 line
great step forward.
Thanks! I hope breaking the userspace<->kernel interface is ok for this?
sure. first step is to get it to work at all. Getting it to work well is another step.
Quoted 3 lines
It would also be cool to hear
from Horms if the direction in which this code is going is acceptable at all or if we have to do things really differently...
you should cc Horms individually. He doesn't respond a whole lot lately
Joe
Signature · 4 lines
Joseph Mack NA3T EME(B,D), FM05lw North Carolina jmack (at) wm7d (dot) net - azimuthal equidistant map generator at http://www.wm7d.net/azproj.shtml Homepage http://www.austintek.com/ It's GNU/Linux!
Quoted 5 lines · On Mon, May 26, 2008 at 8:04 PM, Joseph Mack NA3T <[email protected]> wrote:
Quoted 2 lines
Thanks! I hope breaking the userspace<->kernel interface is ok for this?
sure. first step is to get it to work at all. Getting it to work well is another step.
Yes. But this particular bit is not about dirty first and clean later, the interface breakage would be permanent.
Quoted 1 line
you should cc Horms individually. He doesn't respond a whole lot lately
I did with this last mail. And noticed that, too...
Julius
Signature · 1 line
Google Switzerland GmbH