All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC1812 and CLUSTERIP
@ 2006-10-25 12:05 Oskar Andreasson
  2006-10-25 22:26 ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Oskar Andreasson @ 2006-10-25 12:05 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

Hi all again,

I've snowed in on the CLUSTERIP target to some extent, and I am still
figuring it out to some extent. 

One question that came to mind is its use of multicast MAC addresses. Is
it really allowed to make use of them in the way that it is right now?

From RFC 1812 section 3.3.2:

------
   A router MUST not believe any ARP reply that claims that the Link
   Layer address of another host or router is a broadcast or multicast
   address.
------

As I understand it, this is exactly what the CLUSTERIP target does? 
Behaves as if a single host has a multicast address?


-- 
Oskar Andreasson <oan@frozentux.net>
www.frozentux.net

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RFC1812 and CLUSTERIP
  2006-10-25 12:05 RFC1812 and CLUSTERIP Oskar Andreasson
@ 2006-10-25 22:26 ` Patrick McHardy
  2006-10-26 11:41   ` Oskar Andreasson
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2006-10-25 22:26 UTC (permalink / raw)
  To: oan; +Cc: netfilter-devel

Oskar Andreasson wrote:
> Hi all again,
> 
> I've snowed in on the CLUSTERIP target to some extent, and I am still
> figuring it out to some extent. 
> 
> One question that came to mind is its use of multicast MAC addresses. Is
> it really allowed to make use of them in the way that it is right now?
> 
> From RFC 1812 section 3.3.2:
> 
> ------
>    A router MUST not believe any ARP reply that claims that the Link
>    Layer address of another host or router is a broadcast or multicast
>    address.
> ------
> 
> As I understand it, this is exactly what the CLUSTERIP target does? 
> Behaves as if a single host has a multicast address?

I'm not too familiar with the CLUSTERIP target, what behaviour
exactly are you refering to?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RFC1812 and CLUSTERIP
  2006-10-25 22:26 ` Patrick McHardy
@ 2006-10-26 11:41   ` Oskar Andreasson
  0 siblings, 0 replies; 4+ messages in thread
From: Oskar Andreasson @ 2006-10-26 11:41 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]

Hi Patrick,

It seems to me that the CLUSTERIP target relies on multicast mac to
receive packets to several hosts at the same time. Without it, only a
single machine would actually get the data? According to RFC 1812, as
you could see in the snippet, this seems to be a prohibited behavior,
more or less. 

According to the RFC 1812 snippet below, it is prohibited for a router
to handle or believe in ARP replies from another (in this case) host
that basically says, send data for this host ip address to this
multicast mac address. 

If a router is perfectly RFC 1812 compliant, it should to my
understanding simply not send the packets to the host in this case. It
does however not state what to do with the packets from what i've seen. 

I guess this isn't a big deal yet (maybe never, who knows), but I'd
wander and make a guess that it would be a bugger to try and find out
what the hell is going on if you actually did find yourself in the
situation?

How about either document that the (possible) problem exists,
alternatively to write some kind of check for iptables to only allow
multicast ip addresses together with the CLUSTERIP target? Since the
second suggestion probably will break some users implementations, i'd at
least suggest documenting it and/or give off a warning if people do it?

On Thu, 2006-10-26 at 00:26 +0200, Patrick McHardy wrote:
> Oskar Andreasson wrote:
> > Hi all again,
> > 
> > I've snowed in on the CLUSTERIP target to some extent, and I am still
> > figuring it out to some extent. 
> > 
> > One question that came to mind is its use of multicast MAC addresses. Is
> > it really allowed to make use of them in the way that it is right now?
> > 
> > From RFC 1812 section 3.3.2:
> > 
> > ------
> >    A router MUST not believe any ARP reply that claims that the Link
> >    Layer address of another host or router is a broadcast or multicast
> >    address.
> > ------
> > 
> > As I understand it, this is exactly what the CLUSTERIP target does? 
> > Behaves as if a single host has a multicast address?
> 
> I'm not too familiar with the CLUSTERIP target, what behaviour
> exactly are you refering to?

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* re: RFC1812 and CLUSTERIP
@ 2006-11-30 15:36 Ben Grimm
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Grimm @ 2006-11-30 15:36 UTC (permalink / raw)
  To: netfilter-devel

Hi Oskar,

I found myself in this situation -- and if it weren't for your message
I wouldn't have
figured it out.  Using tcpdump, I can see the router (not sure of the
brand) sending
arp requests, and one of the nodes in the cluster responding, but the
router apparently
ignores that response.  Other hosts in the same segment as the
clustered ip address
use the multicast mac address, but the router just keeps asking who
has the ip.

I would agree that this should definitely be noted in the netfilter
documentation.

There is another method: http://www.ultramonkey.org/papers/active_active/
It doesn't go against the RFC since it uses regular mac addresses.
But it fools the
switch by preventing it from tying the mac address to a particular port.

Ben



> Hi Patrick,
>
> It seems to me that the CLUSTERIP target relies on multicast mac to
> receive packets to several hosts at the same time. Without it, only a
> single machine would actually get the data? According to RFC 1812, as
> you could see in the snippet, this seems to be a prohibited behavior,
> more or less.
>
> According to the RFC 1812 snippet below, it is prohibited for a router
> to handle or believe in ARP replies from another (in this case) host
> that basically says, send data for this host ip address to this
> multicast mac address.
>
> If a router is perfectly RFC 1812 compliant, it should to my
> understanding simply not send the packets to the host in this case. It
> does however not state what to do with the packets from what i've seen.
>
> I guess this isn't a big deal yet (maybe never, who knows), but I'd
> wander and make a guess that it would be a bugger to try and find out
> what the hell is going on if you actually did find yourself in the
> situation?
>
> How about either document that the (possible) problem exists,
> alternatively to write some kind of check for iptables to only allow
> multicast ip addresses together with the CLUSTERIP target? Since the
> second suggestion probably will break some users implementations, i'd at
> least suggest documenting it and/or give off a warning if people do it?
>
> On Thu, 2006-10-26 at 00:26 +0200, Patrick McHardy wrote:
> > Oskar Andreasson wrote:
> > > Hi all again,
> > >
> > > I've snowed in on the CLUSTERIP target to some extent, and I am still
> > > figuring it out to some extent.
> > >
> > > One question that came to mind is its use of multicast MAC addresses. Is
> > > it really allowed to make use of them in the way that it is right now?
> > >
> > > From RFC 1812 section 3.3.2:
> > >
> > > ------
> > >    A router MUST not believe any ARP reply that claims that the Link
> > >    Layer address of another host or router is a broadcast or multicast
> > >    address.
> > > ------
> > >
> > > As I understand it, this is exactly what the CLUSTERIP target does?
> > > Behaves as if a single host has a multicast address?
> >
> > I'm not too familiar with the CLUSTERIP target, what behaviour
> > exactly are you refering to?
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-30 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 12:05 RFC1812 and CLUSTERIP Oskar Andreasson
2006-10-25 22:26 ` Patrick McHardy
2006-10-26 11:41   ` Oskar Andreasson
  -- strict thread matches above, loose matches on Subject: below --
2006-11-30 15:36 Ben Grimm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.