LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-25-2006, 04:24 PM   #1
TonyBerry
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
DG/UX and RedHat Linux Having TCP/IP Stack Issues


I know this will probably be a reach asking for help on something like this, but you never know. The public community can sometimes steer you in the right direction.

For the sake of this issue, I'll narrow the picture down to just what's involved. I have a DG/UX 4.20MU07 AViiON machine and a RedHat Linux ES 3.0 machine. Both are patched as well as can be and otherwise run fine with no errors. I have a 3rd party database application that runs on both machines (different binaries of course). The app talks between the machines with a dedicated listener on each machine and clients below that. Basically, a standard 2 tier database solution... middle tier (DG) provides user interface and database tier (Linux) provides database access.

The process is as follows:
1) A user on the DG requests information from the database.
2) The request is passed to the local database client app which hands it off to the local network app.
3) The local network app sends it across the network to the remote network app which in turn drops it down to the remote client app.
4) The remote client app gathers the requested information and hands it back up to the remote network app which sends it back, once again, to the local network app, then to the local client app, then to the user.

This process works great 24/7, 99.9% of the time. Every once in a great while a process gets "hung" on the middle tier. Our database software vendor used some debugging tools to determine that (as far as he can tell) the packet is making it from the user, to the local client, to the local network client, across the wire to the remote network client, to the remote client, the information is pulled from the database, the returning packet is then sent to the remote network client where it is dropped on the Linux TCP/IP stack and that's as far as it can be traced with the tools he has. He best guess is that the packet is a) not leaving the Linux box or b) not being received by the DG box. He determined that the local process is sitting there waiting for that return packet (which never arrives), so it appears to be "hung".

About the only thing I can come up with to help troubleshoot something of this nature is a massive network packet capture program. Only thing is, I can't replicate the issue and it happens at random, infrequently. I would have to run the capture 24/7 and purge every day (or less) to keep capture log sizes manageable. Is there a better way? Am I barking up the wrong tree? I have contacted our DG Support Team and our Database Support Team, but RedHat/Linux doesn't have much of a support offering.

Thanks in advance for any suggestions.
 
Old 01-25-2006, 05:41 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Could you filter the packet capture on the source/dest ports in question? That'd at least not capture *all* traffic seen at the interface.
 
Old 01-25-2006, 05:55 PM   #3
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
As an example, I just compared tcpdump with tethereal. I prefer tethereal. The command I used was:

tethereal -i eth0 -f "port 25"

It produced this:
Code:
[root@osprey src]# tethereal -i eth0 -f "port 25"
Capturing on eth0
1   0.000000  192.168.1.4 -> 192.168.1.3  TCP 59382 > smtp [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=9075429 TSER=0 WS=2
2   0.001372  192.168.1.3 -> 192.168.1.4  TCP smtp > 59382 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=10320123 TSER=9075429 WS=2
3   0.000054  192.168.1.4 -> 192.168.1.3  TCP 59382 > smtp [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSV=9075429 TSER=10320123
4   0.029081  192.168.1.3 -> 192.168.1.4  SMTP Response: 220 osprey ESMTP Postfix
5   0.029156  192.168.1.4 -> 192.168.1.3  TCP 59382 > smtp [ACK] Seq=1 Ack=27 Win=5840 Len=0 TSV=9075436 TSER=10320130
6   0.029268  192.168.1.4 -> 192.168.1.3  SMTP Command: EHLO kite
7   0.029283  192.168.1.3 -> 192.168.1.4  TCP smtp > 59382 [ACK] Seq=27 Ack=12 Win=5792 Len=0 TSV=10320130 TSER=9075436
8   0.030107  192.168.1.3 -> 192.168.1.4  SMTP Response: 250-osprey
9   0.030244  192.168.1.4 -> 192.168.1.3  SMTP Command: MAIL FROM:<jcliburn@kite> SIZE=283
10   0.068993  192.168.1.3 -> 192.168.1.4  SMTP Response: 250 Ok
11   0.069169  192.168.1.4 -> 192.168.1.3  SMTP Message Body
12   0.098182  192.168.1.3 -> 192.168.1.4  SMTP Response: 250 Ok: queued as 6E17DB10040
13   0.098430  192.168.1.4 -> 192.168.1.3  TCP 59382 > smtp [FIN, ACK] Seq=373 Ack=201 Win=5840 Len=0 TSV=9075454 TSER=10320148
14   0.098876  192.168.1.3 -> 192.168.1.4  TCP smtp > 59382 [FIN, ACK] Seq=201 Ack=374 Win=6864 Len=0 TSV=10320148 TSER=9075454
15   0.098947  192.168.1.4 -> 192.168.1.3  TCP 59382 > smtp [ACK] Seq=374 Ack=202 Win=5840 Len=0 TSV=9075454 TSER=10320148
 
  


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
TCP cannections in TCP stack hegdeshashi Linux - Networking 1 01-04-2006 07:24 PM
getting new tcp/ip stack on linux cdp Linux - Networking 7 06-29-2005 12:50 PM
TCP/IP stack source code tarazan Linux - Networking 3 05-11-2005 02:56 PM
tune TCP stack for HTTP connections naijaguy Linux - General 0 02-01-2005 06:42 PM
TCP/IP Stack on Linux? Rossak Linux - Networking 2 07-27-2003 06:20 PM

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

All times are GMT -5. The time now is 09:48 PM.

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