Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Troubleshooting network/app connection failure

Posted on 2010-08-31
10
Medium Priority
?
308 Views
Last Modified: 2012-08-13
Hi

We have a Windows 2003 Server running an application. The server is at 192.168.1.1 and is named server1.domain.com

The app running on the server needs to speak with another host (server2.domain.com) at 192.168.1.2, however whenever I try to open the app I get the following error: "cannot reach server2.domain.com"

So I ran Wireshark on Server1, filtered for 192.168.1.2, and can see the following:

1. Server1 > Server2 SYN
2. Server2 > Server1 SYN-ACK
3. Server1 > Server2 ACK

4. Server1 > Server2 > PSH-ACK

5. Server2 > Server1 > FIN, ACK
6. Server1 > Server2 > ACK
7. Server 1> Server2 > FIN, ACK
8. Server2 > Server1 > ACK

How can I find out what and who is causing the connection collapse?
0
Comment
Question by:neil4933
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 32

Expert Comment

by:Kamran Arshad
ID: 33569489
Hi,

The basic test of pinging from Server1 to Server2 are, and from server2 to server1 is ?
 From your wireshark output, everything seems ok. Please paste a long ping result between the two servers.
0
 
LVL 32

Expert Comment

by:Kamran Arshad
ID: 33569495
Also check the windows firewall on both machines, if they are turned ON. Also the external firewall application or firewall device should be checked.
0
 

Author Comment

by:neil4933
ID: 33570020
Hi

Thanks for answering.

I did run a long PING earlier - no packets were dropped. Also, no FW's configured on either the servers or in between.

Based on the output of the Wireshark, which server is the one that is terminating the connection, Server1 or Server2?
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 32

Accepted Solution

by:
Kamran Arshad earned 1000 total points
ID: 33570531
The sequence suggests;

1- Server1 sends a SYN packet to server2
2- Server2 sends back the ACK (Acknowledgment) of SYN
3- Server1 send ACK of the SYN-ACK

After this the connection is established and actual data transfer has started.

4- PSH - Push function, causes the Server1 to push all unsent data to the server2 rather than sends segments when it gets around to them i.e. when the buffer is full.
5- FIN - End of data transfer initiated by the server2 with ACK on 6,7,8

The below link can be helpful for you to understand. I suspect a firewall or application level error. The Network is smooth once the ping is stable.
0
 
LVL 32

Expert Comment

by:Kamran Arshad
ID: 33570533
0
 

Author Comment

by:neil4933
ID: 33570601
Thanks...

Regarding this;

5. Server2 > Server1 > FIN, ACK
6. Server1 > Server2 > ACK
7. Server 1> Server2 > FIN, ACK
8. Server2 > Server1 > ACK


I always though that there would be a FIN (from the server initiating the termination), following by a FIN,ACK, then ACK.

Not straight to FIN,ACK and then ACK?

[hope that makes sense]
0
 
LVL 32

Expert Comment

by:Kamran Arshad
ID: 33572520
Can you share the portion of code on application at server1, which the application calls to connect to the server2?
0
 
LVL 24

Assisted Solution

by:rfc1180
rfc1180 earned 1000 total points
ID: 33582691
>I always though that there would be a FIN (from the server initiating the termination), following by a FIN,ACK, then ACK.

Nope, there can be a three way termination and this is the most common method.
What you should have seen is that when host A sends a FIN, host B replies back with a FIN & ACK (merely combines 2 steps into one) and then host A replies with an ACK.

As long as you are connecting via a 3 way handshake and the fact that the session is terminating with FIN and ACKs indicates that the port is open, listening and is able to accept and process connections. So it does not appear to be a firewall issue.

What protocol are you using for the communication (RDP, web application, etc)
What is in the path between the servers.
Are you able to post the contents of the packet capture, there is so much we can do with a picture of what is going on.

Billy
0
 

Author Comment

by:neil4933
ID: 33598409
Please see attached.

There is nothing in the path between the servers, just routers.

I think one of the servers is terminating the connection but not sure which one?
FIN.doc
0
 

Author Comment

by:neil4933
ID: 33622598
Any word guys?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question