- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TCP Keepalive support
Operating System - HP-UX
1758014
Members
2167
Online
108866
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО12-21-2007 07:39 AM
тАО12-21-2007 07:39 AM
TCP Keepalive support
I have to implement TCP keepalive on a unix listener process. I would consequently like to set up the timeout probe interval, keepalive interval at the SOCKET_TCP level like TCP_KEEPIDLE, TCP_KEEPCNT, TCP_KEEPINTVL etc.
But my system is HPUX 11 version 1. But these parameters seem to be available only from version 3 onwards.
Also I do not want to change kernel parameters like tcp_keepalive_detached_interval, tcp_keepalive_interval etc as the effect would be system wide.
Are there any workarounds or patches available to implement this??
Any help would be greatly appreciated.
Rgds
Arun
But my system is HPUX 11 version 1. But these parameters seem to be available only from version 3 onwards.
Also I do not want to change kernel parameters like tcp_keepalive_detached_interval, tcp_keepalive_interval etc as the effect would be system wide.
Are there any workarounds or patches available to implement this??
Any help would be greatly appreciated.
Rgds
Arun
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-26-2007 01:32 PM
тАО12-26-2007 01:32 PM
Re: TCP Keepalive support
Arun,
11.11 yes, I believe so.
I set other parameters, for security reasons by adding entries into the nddconf file in /etc/rc.config.d.
Follows in an excerpt from a script I created;
#!/bin/ksh
cd /etc/rc.config.d
cat < nddconf
# Increase size of half-open connection queue
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_syn_rcvd_max
NDD_VALUE[0]=4096
# Reduce the half-open timeout
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_ip_abort_cinterval
NDD_VALUE[1]=60000
# Reduce timeouts on ARP cache
TRANSPORT_NAME[2]=arp
NDD_NAME[2]=arp_cleanup_interval
NDD_VALUE[2]=60000
# Don't send ICMP redirects
TRANSPORT_NAME[3]=ip
NDD_NAME[3]=ip_send_redirects
NDD_VALUE[3]=0
you can query with
# ndd -get /dev/arp arp_cleanup_interval
Where transport names goes after the /dev and the parameter name is last.
nddconf needs a reboot to take affect, or set with -set command and the value last.
11.11 yes, I believe so.
I set other parameters, for security reasons by adding entries into the nddconf file in /etc/rc.config.d.
Follows in an excerpt from a script I created;
#!/bin/ksh
cd /etc/rc.config.d
cat <
# Increase size of half-open connection queue
TRANSPORT_NAME[0]=tcp
NDD_NAME[0]=tcp_syn_rcvd_max
NDD_VALUE[0]=4096
# Reduce the half-open timeout
TRANSPORT_NAME[1]=tcp
NDD_NAME[1]=tcp_ip_abort_cinterval
NDD_VALUE[1]=60000
# Reduce timeouts on ARP cache
TRANSPORT_NAME[2]=arp
NDD_NAME[2]=arp_cleanup_interval
NDD_VALUE[2]=60000
# Don't send ICMP redirects
TRANSPORT_NAME[3]=ip
NDD_NAME[3]=ip_send_redirects
NDD_VALUE[3]=0
you can query with
# ndd -get /dev/arp arp_cleanup_interval
Where transport names goes after the /dev and the parameter name is last.
nddconf needs a reboot to take affect, or set with -set command and the value last.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2007 10:46 AM
тАО12-31-2007 10:46 AM
Re: TCP Keepalive support
I'm a triffle surprised but only a triffle that 11iV3 has made those per-socket.
Frankly, the "best" thing to do is to implement an _application-level_ keepalive mechanism and use that. I have heard reports but cannot provide the cites, about firewalls and the like which "recognize" TCP keepalives and will _still_ timeout a connection. An application-level keepalive would not look like a TCP keepalive.
Frankly, the "best" thing to do is to implement an _application-level_ keepalive mechanism and use that. I have heard reports but cannot provide the cites, about firewalls and the like which "recognize" TCP keepalives and will _still_ timeout a connection. An application-level keepalive would not look like a TCP keepalive.
there is no rest for the wicked yet the virtuous have no pillows
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP