From: Jay Vosburgh <fubar@us.ibm.com>
To: stefan novak <lms.brubaker@gmail.com>
Cc: Eric Dumazet <dada1@cosmosbay.com>,
linux-kernel@vger.kernel.org,
Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: bond interface arp, vlan and trunk / network question
Date: Mon, 20 Apr 2009 17:01:52 -0700 [thread overview]
Message-ID: <22462.1240272112@death.nxdomain.ibm.com> (raw)
In-Reply-To: <1ef444010904201439i60f9e918j760d94eeca428ece@mail.gmail.com>
stefan novak <lms.brubaker@gmail.com> wrote:
>ip route get 172.21.0.254
>172.21.0.254 dev bond0.600 src 172.21.0.1
> cache mtu 1500 advmss 1460 hoplimit 64
>
>ifconfig -a :
>bond0 Link encap:Ethernet HWaddr 00:30:48:94:7D:1A
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:62221072 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1152153 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:4037489679 (3.7 GiB) TX bytes:124861822 (119.0 MiB)
>
>bond0.200 Link encap:Ethernet HWaddr 00:30:48:94:7D:1A
> inet addr:172.22.0.1 Bcast:172.22.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:5 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:250 (250.0 b) TX bytes:252 (252.0 b)
>
>bond0.500 Link encap:Ethernet HWaddr 00:30:48:94:7D:1A
> inet addr:172.20.0.1 Bcast:172.20.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:26448 errors:0 dropped:0 overruns:0 frame:0
> TX packets:33570 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:6278388 (5.9 MiB) TX bytes:6429404 (6.1 MiB)
>
>bond0.600 Link encap:Ethernet HWaddr 00:30:48:94:7D:1A
> inet addr:172.21.0.1 Bcast:172.21.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:1911 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8665 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:98604 (96.2 KiB) TX bytes:1208395 (1.1 MiB)
>
>eth0 Link encap:Ethernet HWaddr 00:30:48:94:7D:1A
> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
> RX packets:881723 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1074651 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:108550619 (103.5 MiB) TX bytes:115574099 (110.2 MiB)
> Memory:f8220000-f8240000
>
>eth1 Link encap:Ethernet HWaddr 00:30:48:94:7D:1A
> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
> RX packets:61339352 errors:0 dropped:0 overruns:0 frame:0
> TX packets:77510 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:3928939240 (3.6 GiB) TX bytes:9290795 (8.8 MiB)
> Memory:f8260000-f8280000
>
>lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:105468 errors:0 dropped:0 overruns:0 frame:0
> TX packets:105468 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:7016087 (6.6 MiB) TX bytes:7016087 (6.6 MiB)
This looks pretty much as expected.
[...]
>> There's no "self test" or anything like that, if that's what you
>> mean. If the ARPs work (make the round trip) the link is up, if they
>> don't, the link is down. That's subject to some details related to
>> arp_validate, but is basically it.
>
>Ok. my interfaces are now up with arp_validate set to 0/none.
>Everything works as expected, thank you.
>But with arp_validate set to all the interfaces are always down. :(
>I think that i have to use the all option because i have many servers
>in that vlan?
Well, you'll probably want to run with arp_validate, otherwise
the probe traffic can fool the arp monitor into thinking the path is up
when it isn't.
But...
I know what your problem with arp_validate is, though, and it's
something I've been working on as time permits (and forgot to mention
previously). Basically, the VLAN receive path assigns the VLAN device
to the received packet before doing receive processing on it, so the
"slave" identity is lost before the bonding ARP receive function looks
at it, so it never counts the ARP (for validate purposes).
I've been chewing on the least bad way to fix this, mostly
trying to figure out if its possible to resolve without adding a hook
into bonding that basically replaces and extends skb_bond_should_drop
(which does work, it's just not very elegant).
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com
next prev parent reply other threads:[~2009-04-21 0:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 17:50 stefan novak
2009-04-20 18:16 ` Eric Dumazet
2009-04-20 18:37 ` Jay Vosburgh
2009-04-20 20:00 ` stefan novak
2009-04-20 20:36 ` Jay Vosburgh
2009-04-20 21:03 ` stefan novak
2009-04-20 21:15 ` Eric Dumazet
2009-04-20 21:23 ` Jay Vosburgh
2009-04-20 21:39 ` stefan novak
2009-04-21 0:01 ` Jay Vosburgh [this message]
2009-04-22 8:29 ` stefan novak
2009-04-23 1:12 ` Jay Vosburgh
2009-04-23 5:58 ` Eric Dumazet
2009-04-23 15:38 ` Jay Vosburgh
2009-04-23 7:48 ` Jiri Pirko
2009-04-23 14:59 ` Jay Vosburgh
2009-04-23 15:20 ` Jiri Pirko
2009-04-23 18:34 ` Jay Vosburgh
2009-04-23 19:22 ` Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22462.1240272112@death.nxdomain.ibm.com \
--to=fubar@us.ibm.com \
--cc=dada1@cosmosbay.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lms.brubaker@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®