1855734 Members
1877 Online
104103 Solutions
New Discussion

Connection Keep Alive

 
Matt Slane
Occasional Advisor

Connection Keep Alive

Are there any alternatives to find out the Connection Keep Alive time other than the nettune command. Currently I do not have the netman driver loaded and I can't reboot to add this driver, since this is on a production server. Any help would be appreciated...

Thanks,
Matt Slane
8 REPLIES 8
Matt Slane
Occasional Advisor

Re: Connection Keep Alive

To be exact this is what I am looking for:


tcp_keepstop:
The number of seconds keep-alive packets will be sent on a TCP connection without the receipt of a packet after which the connection will be dropped.

Thanks,
Matt Slane
Vincenzo Restuccia
Honored Contributor

Re: Connection Keep Alive

from HP-UX 10.X onwards you can use the nettune command:

#nettune -s tcp_keepstart 300 # set it to 300 secs; default is 7200

Just do a man nettune to get all info.

excerpt:
tcp_keepstart:
The number of seconds that a TCP connection can be idle
(that is, no packets received) before keep-alive packets
will be sent attempting to solicit a response. When a packet
is received, keep-alive packets are not longer sent unless
the connection is idle again for this period of time.
tcp_keepfreq:
The interval in seconds at which keep-alive packets will
be sent on a TCP connection once they have been started.
The receipt of a packet will stop the sending of keep-alive
packets.
If both tcp_keepfreq and tcp_keepstop are being increased,
then tcp_keepstop should be increased first. If both are being
decreased, then tcp_keepfreq should be decreased first.
tcp_keepstop:
The number of seconds keep-alive packets will be sent on a
TCP connection without the receipt of a packet after which
the connection will be dropped.
If both tcp_keepfreq and tcp_keepstop are being increased,
then tcp_keepstop should be increased first. If both are being
decreased, then tcp_keepfreq should be decreased first.
Matt Slane
Occasional Advisor

Re: Connection Keep Alive

This is the problem, I cannot run the nettune command without the netman driver loaded. I've man'd the nettune command to quite a bit. I have done further investigation and have resolved that HPUX 11 uses ndd instead of nettune (is this correct info?). In that case I need to find out what the default idle tcp connection drop is, since there is no entry in /etc/rc.config.d/nddconf for this type of thing. Thanks for the help anyways...

Matt Slane
Vincenzo Restuccia
Honored Contributor

Re: Connection Keep Alive

For equivalent to nettune -s tcp_receive and tcp_send in ndd see http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0870dfe5920fd5118fef0090279cd0f9,00.html
Juan González
Trusted Contributor

Re: Connection Keep Alive

Hi Matt,
are you sure that you don't have netman loaded? Did you check it with lsdev?
If you see it with lsdev perhaps creating /dev/netman will be enougth.

#mknod /dev/netman c 0x000000

I tried to find tcp_keepstop symbol in the kernel with adb but it didn't work.

Good luck

JGM
Matt Slane
Occasional Advisor

Re: Connection Keep Alive

Yep, checked that already, I didn't know about the lsdev command, I just did a cat on /stand/system. Thanks for the tip....

Matt
Juan González
Trusted Contributor

Re: Connection Keep Alive

Hi Matt,
I think that your server's Connection Keep Alive time migth be the default value, i. e. , 600 minutes. If your server doesn't have the netman loaded, tcp_keepstop couldn't be changed.

Best regards,
Juan Gonzalez
Juan González
Trusted Contributor

Re: Connection Keep Alive

Sorry 600 seconds, no minutes.

JGM