LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2014, 02:37 AM   #1
toramanand
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
How to configure time for NH (nexthop) delete from FAILED state


Hi,
I have observed that NH (nexthop) entry deletion (in linux stack) from FAILED state is 9-10 min. Can anybody let me know what is default value for this and how to change this. I can reproduce this scenario by sending the traffic to host which is not available. For the unavailable host stack try to resolve the ARP(NH) and move the entry into FAILED state. Now I check the time stack is taking to delete this NH entry. I am putting some of the /proc parameters value from my system.

/proc/sys/net/ipv4/neigh/default/gc_stale_time = 60
/proc/sys/net/ipv4/neigh/default/gc_interval = 30
/proc/sys/net/ipv4/neigh/testDev/gc_stale_time = 120 >> testDev is the L3 interface (netdevice) on which I am testing the case
/proc/sys/net/ipv4/neigh/testDev/base_reachable_time = 175
/proc/sys/net/ipv4/neigh/testDev/base_reachable_time_ms = 17500

Ramanand
 
Old 09-17-2014, 02:38 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
The time to remove stale ARP entry is complicated. It is relative to /proc/sys/net/ipv4/route/gc_timeout, base_reachable_time, gc_stale_time and gc_interval. The big one could gc_timeout, normal is 5 minutes.
 
Old 09-26-2014, 10:03 AM   #3
toramanand
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
The time to remove stale ARP entry is complicated. It is relative to /proc/sys/net/ipv4/route/gc_timeout, base_reachable_time, gc_stale_time and gc_interval. The big one could gc_timeout, normal is 5 minutes.
Thanks. I want to get the FAILED to Delete time around 1 sec. Can you suggest some values for these parameters to achieve this value.
 
Old 09-29-2014, 02:19 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
The FAILED to delete time around 1 second isn't reasonable value. Why do you want this kind of fast deletion?
 
Old 09-30-2014, 01:03 AM   #5
sujonreja58@gmail.com
LQ Newbie
 
Registered: Sep 2014
Posts: 4

Rep: Reputation: Disabled
It's nice. Thanks a lot.
 
Old 09-30-2014, 01:26 AM   #6
toramanand
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi Nini,
My application configure hardware on Delete notification. There I need this timing
 
Old 09-30-2014, 02:47 PM   #7
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
If hardware configuration is changed and it trigger ARP flush, ARP API should be called to flush these ARP entry and shouldn't use timeout mechanics to clean up.
 
Old 10-02-2014, 08:43 AM   #8
toramanand
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Requirement is not ARP flush. Scenario is slightly different. Its a complex application, where I need to trigger some operations in application and hardware when ARP is FAILED to resolved.
 
Old 10-06-2014, 02:14 PM   #9
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,853

Rep: Reputation: 161Reputation: 161
It has a hard way to do it, adding a hook in ARP code when ARP resolve is fail.
 
Old 10-07-2014, 01:52 AM   #10
toramanand
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok, Well meanwhile I changed my application now. So whatever processing I was doing earlier on NH Delete notification, started doing that on FAILED notification also.
Thanks for your support.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] total process time and time in present state(sleep/running/ uninterruptible). satyadev75 Linux - Server 1 05-16-2013 06:03 AM
HW RAID : Firmware state: Failed linux2man Linux - Server 1 03-25-2013 12:43 AM
update fstab failed ?... pleas it emergency state linux trainer Linux - Newbie 3 11-09-2009 09:59 AM
Configure Failed logins to lock accounts after 5 failed attempts mccartjd Linux - Newbie 5 05-05-2008 08:02 AM
Time out in Connection established state asurya Linux - Newbie 1 04-10-2005 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration