Received: with ECARTIS (v1.0.0; list netdev); Mon, 09 Feb 2004 14:51:28 -0800 (PST) Received: from tiger.cybersurf.com (tiger.cybersurf.com [209.197.145.194]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i19MpMKO021244 for ; Mon, 9 Feb 2004 14:51:23 -0800 Received: from mail.cyberus.ca (mail.cyberus.ca [209.197.145.21]) by tiger.cybersurf.com (8.12.8/8.12.8) with ESMTP id i19MpGJB017625 for ; Mon, 9 Feb 2004 15:51:16 -0700 Received: from cpe0030ab124d2f-cm014500000962.cpe.net.cable.rogers.com ([24.103.99.32] helo=[10.0.0.21]) by mail.cyberus.ca with esmtp (Exim 4.20) id 1AqKFF-0008Fa-4Y; Mon, 09 Feb 2004 17:51:13 -0500 Subject: Re: Change proxy_arp to respond only for valid neighbours From: jamal Reply-To: hadi@cyberus.ca To: Julian Anastasov Cc: netdev@oss.sgi.com, Alexey Kuznetsov In-Reply-To: References: <1076338874.1026.36.camel@jzny.localdomain> Content-Type: text/plain Organization: jamalopolis Message-Id: <1076367038.1037.15.camel@jzny.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 09 Feb 2004 17:50:38 -0500 Content-Transfer-Encoding: 7bit X-archive-position: 3167 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: hadi@cyberus.ca Precedence: bulk X-list: netdev On Mon, 2004-02-09 at 17:23, Julian Anastasov wrote: > Hello, > > On Mon, 9 Feb 2004, jamal wrote: > > > It should probably be a sysctl example proxy_arp_validate_neigh. > > I am happy with the way it is right now in the situation i use it in. > > I assume you need to probe with ARP request whether for some > IP we have: > > - proxy entry > > or > > - we can respond for this target IP due to indev/proxy_arp set to 1 > > Then where is better such flag to exist, for indev or > for outdev? parse error. Are you agreeing it should be a sysctl? what i meant was i am happy with the slight delay in some cases i get now; example host we are parping for sends a unicast probe - we would immediately respond. Host sends a resolved IP packet - we attempt to route and worst case we find that we dont have the target entry in our cache; we arp at that point. In your case, you will amortize that cost at arp time. In the case of unicast probes (assuming a sane arp implementation on the other side) you will actually be adding cost since mostly that entry will be in the cache. In the case of broadcasts you could achieve the same effect by setting the proxy_delay in /proc to zero. > > Could the neighbor be removed while we have the packet in the proxy > > queue? > > It doesnt seem like theres any harm done in redoing the neigh_event_ns > > twice. > > You are right, if proxy_delay is large the requestor can > disappear from our cache but it is not fatal for us to send reply, > we do not need cache entry for this. I'm not sure what is better, is > it right to confirm the requestor without receiving recent event > from it? If will be visible for too large proxy_delay values. I guess you could look at one view as possibly doing 2 neigh_event_ns() and correct whereas the other is doing 1 but with the above side effect. cheers, jamal