mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ARP timeout value, why 1 minute ?
@ 2002-02-18 10:01 John Brosnan
  2002-02-18 21:19 ` Bernd Eckenfels
  0 siblings, 1 reply; 2+ messages in thread
From: John Brosnan @ 2002-02-18 10:01 UTC (permalink / raw)
  To: linux-kernel


Hi, 

I may not be correct but isn't the traditional ARP timeout value 20 minutes in many Unix versions such as BSD, freeBSD 
and early version of Linux. But from a certain point, Linux(only?) changed from 20 minutes to one minute. This changes the system configuration to shorten the ARP expiration timer to one minute instead of the default 20 minutes. 

Why was it changed to 1 minute ? 

thanks in advance, 

John. 


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

* Re: ARP timeout value, why 1 minute ?
  2002-02-18 10:01 ARP timeout value, why 1 minute ? John Brosnan
@ 2002-02-18 21:19 ` Bernd Eckenfels
  0 siblings, 0 replies; 2+ messages in thread
From: Bernd Eckenfels @ 2002-02-18 21:19 UTC (permalink / raw)
  To: linux-kernel

In article <E16ckba-0001mi-00@mcclure.tinet.ie> you wrote:
> and early version of Linux. But from a certain point, Linux(only?) changed from 20 minutes to one minute. This changes the system configuration to shorten the ARP expiration timer to one minute instead of the default 20 minutes. 

> Why was it changed to 1 minute ? 

Thei neighbouring subsystem of Linux 2.4 is a bit more "complex" than a simple
timeout:

/proc/sys/net/ipv4/neigh/default/anycast_delay:100
/proc/sys/net/ipv4/neigh/default/app_solicit:0
/proc/sys/net/ipv4/neigh/default/base_reachable_time:30
/proc/sys/net/ipv4/neigh/default/delay_first_probe_time:5
/proc/sys/net/ipv4/neigh/default/gc_interval:30
/proc/sys/net/ipv4/neigh/default/gc_stale_time:60
/proc/sys/net/ipv4/neigh/default/gc_thresh1:128
/proc/sys/net/ipv4/neigh/default/gc_thresh2:512
/proc/sys/net/ipv4/neigh/default/gc_thresh3:1024
/proc/sys/net/ipv4/neigh/default/locktime:100
/proc/sys/net/ipv4/neigh/default/mcast_solicit:3
/proc/sys/net/ipv4/neigh/default/proxy_delay:80
/proc/sys/net/ipv4/neigh/default/proxy_qlen:64
/proc/sys/net/ipv4/neigh/default/retrans_time:100
/proc/sys/net/ipv4/neigh/default/ucast_solicit:3
/proc/sys/net/ipv4/neigh/default/unres_qlen:3

It is actually probing hosts on a regularbut random time. Multiple retries are
done until a neighbour is marked as not reachable.

If the kernel sends any payload packet to a host, a neighbour is in delay
state, if the delay timer expires, it will suspect that something is not ok.
It will send an arp request and go into probe state.

This has the advantage, that as long as the system is up and used, the entry
will never be expired, and as soon as it fails to respond, it will marked dead
quickly. This will also affect all queued packets and all routes, so it can
recover from an unreachable router. It is also not spamming the network with
unneeded unicast or multicast arp requests, because normal payload ip packets
are accounted.

If you are curious what is going on try "/sbin/ip -s neigh"

The times for an entry show "last used"/"last confirmed"/"last updated"

Greetings
Bernd


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

end of thread, other threads:[~2002-02-18 21:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-18 10:01 ARP timeout value, why 1 minute ? John Brosnan
2002-02-18 21:19 ` Bernd Eckenfels

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®