The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: about tcp connection
Ajeet
Newbie
Rank: 1



UID 43
Digest Posts 0
Credits 0
Posts 8
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:43 AM  Profile | P.M. 
about tcp connection



about tcp connection



hi experts,

need help about release or refresh tcp connection:

i have the sample like below :

application log connection:

0500 ( 192.168.0.1:36053) 00919 2007/05/10 23:30:25 112 13 2007/05/10 23:30:25 1969/12/31 17:00:00
0500 ( 192.168.0.1:36054) 00920 2007/05/10 23:30:26 000 00 1969/12/31 17:00:00 1969/12/31 17:00:00
0500 ( 192.168.0.1:36055) 00921 2007/05/10 23:30:26 000 00 1969/12/31 17:00:00 1969/12/31 17:00:00
0500 ( 192.168.0.1:42699) 00314 2007/05/14 07:07:23 097 13 2007/05/14 07:07:23 1969/12/31 17:00:00
0500 ( 192.168.0.1:36057) 00923 2007/05/10 23:30:26 000 00 1969/12/31 17:00:00 1969/12/31 17:00:00
0500 ( 192.168.0.1:49175) 26426 2007/05/10 23:54:46 000 00 1969/12/31 17:00:00 1969/12/31 17:00:00

netstat -a | grep 500
hostname.500 192.168.0.1.36053 16560 0 66608 0 established
hostname.500 192.168.0.1.36054 5840 0 66608 0 established
hostname.500 192.168.0.1.36055 5840 0 66608 0 established
hostname.500 192.168.0.1.36057 5840 0 66608 0 established
hostname.500 192.168.0.1.36067 5840 0 66608 0 established
hostname.500 192.168.0.1.36073 16560 0 66608 0 established


the application connection its connect through port 500 to another application, but if we see the bold one is mean that the tcp connection not binded to the another application server.

how to release or refresh the tcp connection to not bind "bold" ?

please advices

thank you


Top
jmweb
Newbie
Rank: 1



UID 206
Digest Posts 0
Credits 0
Posts 31
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:43 AM  Profile | P.M. 
give us header of "application log connection:". example
local-port remote-ip:port ??? connection-time ??? ?? ????
0500 ( 192.168.0.1:36053) 00919 2007/05/10 23:30:25 112 13 2007/05/10 23:30:25 1969/12/31 17:00:00

pseudo code of your server will be very helpful to help you

you can use tcpdump/ethereal to see what is happening b/w both client and server... simply "snoop" packets for "port 500".

at instance i can think of tunning kernel-tcp/ip parameters and reduce idle-timeout. in sunos you can use ndd and in linux you can use sysctl (/proc/sys/net/ipv4)
Top
Bombaywala
Newbie
Rank: 1



UID 75
Digest Posts 0
Credits 0
Posts 25
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:43 AM  Profile | P.M. 
hi sumitpandya,

local-port is 500 and remote port is depend on the application is can 36053, 45050,etc and connection time is 23:30:25, pid is 00919 (919), application id is 112.

how to check that the tcp connection is stuck (means no transaction on the tcp ?

note : using solaris 8 sparc 5.8

please advice

thank you

bucci


quote:
originally posted by sumitpandya
give us header of "application log connection:". example
local-port remote-ip:port ??? connection-time ??? ?? ????
0500 ( 192.168.0.1:36053) 00919 2007/05/10 23:30:25 112 13 2007/05/10 23:30:25 1969/12/31 17:00:00

pseudo code of your server will be very helpful to help you

you can use tcpdump/ethereal to see what is happening b/w both client and server... simply "snoop" packets for "port 500".

at instance i can think of tunning kernel-tcp/ip parameters and reduce idle-timeout. in sunos you can use ndd and in linux you can use sysctl (/proc/sys/net/ipv4)

all the best.
Top
 

 

All times are GMT, the time now is Mar 22, 2010 01:58 PM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005083 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP