- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Configuring TCP KeepAlive Parameters
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 03:58 AM
тАО02-10-2011 03:58 AM
I need to change some TCP parameters(KEEPALIVE_ TIME KEEPALIVE_INTERVAL KEEPALIVE_PROBES). The default values arent suitable for our softwares and oracle connection is active after lost connection.
I read several article, such as:
http://www.sybase.com/detail?id=611
http://www.starquest.com/Supportdocs/techStarLicense/SL002_TCPKeepAlive.shtml
http://oraforecast.com/orawiki/index.php/How_to_enable_Dead_Connection_Detection
So is it secure if i will change it on HP-UX 11.3? should i reboot my server after changing these values?
are steps in article ok? does HP have official docs for this?
Regards,
Rustam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 06:00 AM
тАО02-10-2011 06:00 AM
SolutionThe parameters you're probably interested in are:
# ndd -get /dev/tcp ? | grep -i keep
tcp_keepalive_interval (read and write)
tcp_keepalives_kill (read and write)
tcp_keepalive_detached_interval(read and write)
tcp_keepalive_ext (read and write)
And, you can get informative help with "ndd -h":
# ndd -h tcp_keepalive_interval
tcp_keepalive_interval:
Interval for sending keep-alive probes.
If any activity has occurred on the connection or if there is
any unacknowledged data when the time-out period expires, the
timer is simply restarted. If the remote system has crashed
and rebooted, it will presumably know nothing about this
connection, and it will issue an RST in response to the ACK.
Receipt of the RST will terminate the connection.
If the keepalive packet is not ACK'd by the remote TCP, the normal
retransmission time-out will eventually exceed threshold R2,
and the connection will be terminated.
With this keepalive behavior, a connection can time-out and
terminate without actually receiving an RST from the remote TCP.
[10000, 10*24*3600000] Default: 2 * 3600000 (2 hours)
See "man ndd" for even more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 04:11 PM
тАО02-10-2011 04:11 PM
Re: Configuring TCP KeepAlive Parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 10:10 PM
тАО02-10-2011 10:10 PM
Re: Configuring TCP KeepAlive Parameters
Jack challen, so for keeping these parameters for all time (after several reboots) I need to edit file /etc/rc.config.d/nddconf instead ndd? I saw that there are help information, and no parameters. So should I add new parameters in this file with vi? I must have these values: KEEPALIVE_TIME =12 min, KEEPALIVE_PROBES= 7 min, KEEPALIVE_INTERVAL= 15 min. I should add these values in file?:
1)For keepalive_interval=15min ( 900 000 msec)
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_keepalive_interval
NDD_VALUE[0]= 900 000
2)I couldnt find parameter KEEPALIVE_TIME in ndd ├в h, so I can add these parameter in nddconf file? I need to add keepalive_time with 720 000 value.
3)Also couldnt find parameter keepalive_probes. But read some the same parameter tcp_keepalives_kill - (Types of keep-alive probe to use). Are they the same keepalive_probes and tcp_keepalives_kill? If aren├в t how can I set this value?
># ndd -get /dev/tcp ? | grep -i keep
>tcp_keepalive_interval (read and write)
>tcp_keepalives_kill (read and write)
>tcp_keepalive_detached_interval(read and write)
>tcp_keepalive_ext (read and write)
What means read and write? I didnt find information about keepalive_ext, for what I can use it?
># ndd -h tcp_keepalive_interval
>With this keepalive behavior, a connection can time-out and
>terminate without actually receiving an RST from the remote TCP.
>[10000, 10*24*3600000] Default: 2 * 3600000 (2 hours)
Yeah, thanks, I read that many OS has the value 2 hours.
Yeah, rick jones, I will hope that I dont need to reboot system and If I reboot in few years then these parameters will be alive from file /etc/rc.config.d/nddconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2011 08:21 AM
тАО02-11-2011 08:21 AM
Re: Configuring TCP KeepAlive Parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 10:30 PM
тАО02-14-2011 10:30 PM
Re: Configuring TCP KeepAlive Parameters
Thank you for reading and helping.
Regards,
rustam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2011 09:59 AM
тАО02-15-2011 09:59 AM
Re: Configuring TCP KeepAlive Parameters
BTW, the read and write bit says that one can both read the parameter with ndd and write (aka set) the parameter with ndd.