Hello everyone, I am troubleshooting an issue with slow and sometimes no connectivity, when a end user tries to open a file (PDF) on a file server over the internet. The users has internet connection, the problem only happens when accessing a specific site to view files. I've confirmed the issue is not on the end users workstation as the issue happens from my PC as well. Network is as shown : User-> switch -> (in)firewall(out) -> switch -> gateway router Here are some of the packets: The packets shown are from a trace on the switchport connected to the outside port of the firewall.
Here is the location of the PCAPS and network diagram: https://drive.google.com/folderview?id=0B41R9G9kL5L-S1JWZ0Z2bTFKN3c&usp=sharing asked 06 Jan ‘16, 09:25 Lewis Travieso edited 08 Jan ‘16, 12:53 showing 5 of 7 show 2 more comments |
One Answer:
I feel a bit weird answering a Question based on a capture file provided by a 3rd party, but the world isn't black and white. The first question would be what kind "firewall" do you use (and @Lewis Travieso, if you are still interested, the same question applies to you)? Looking at the captures, I can see that the device is as if filtering out the turbulences happening at the WAN side so that they wouldn't affect the LAN side. But obviously the primary goal is not the filtering but either caching or, even more likely, analysing the files as they are downloaded for possible malicious contents. If you apply a display filter The "firewall" device at the client end is also responsible for the crash of the TCP session. The last incoming packet from WAN side to be properly retransmitted to LAN side is the one in frame 462 (WAN)/frame 464 (LAN); after that, the firewall sends (inevitably impersonating the remote server) a locally generated RST, although at the WAN side, subsequent packets (frames 463 and 464) have arrived from the remote server in the meantime. But the firewall stops talking to the server completely, so after a short while, the server starts retransmitting the last packet it didn't get acknowledged, and it sends a RST itself after still getting no acknowledge for almost 20 seconds. So my conclusion is that the "firewall" is actually a more sophisticated security device, which analyses the HTTP responses as it forwards them, and it either does not like or merely does not understand the contents of the pdf file, so it causes the TCP session to fail as a consequence, either intentionally or due to a bug. Notably, Wireshark's The url ( answered 07 Aug '16, 03:13 sindy edited 07 Aug '16, 12:55 hi @sindy thank you for the lead. the firewall is cisco ASA. upon furher inspection on the logs and firewall configuration; the culprit is the 'http inspection policy' that dropping the packet prior to policy violation and mismatch body size (200). currently are seeking principle advise on fine-tuning the configuration. (10 Aug '16, 17:13) zareefaqmar I'm not an expert on http, but as Wireshark was unable to identify the pdf file in the HTTP 200, can you check whether a browser on a PC bypassing the ASA can display the pdf properly? I mean, the ASA is most likely right and there is really something wrong about the way the http body is encoded, so the fix should be done at the server rather than the ASA. In particular, the HTTP (10 Aug '16, 23:24) sindy FYI, the pdf itself is fine (Acrobat Reader DC doesn't complain about anything), so only the http appendix to the 200's contents seems to cause the trouble. (11 Aug '16, 07:26) sindy |
The packets (as shown by the frame number) seems to be in an odd order.
Apart from that there’s not enough info in the text dump to diagnose the issue. A capture file shared in a public spot will help immensely.
@grahamb The packets shown are only one a few of the packets that seem to have errors. There are quite a few of them.
Here is a link to the pcaps. Ive also included a diagram of what we are working with. Ive named the pcaps based on where the traces were taken on the network. https://drive.google.com/folderview?id=0B41R9G9kL5L-S1JWZ0Z2bTFKN3c&usp=sharing
PS. The orignal post was based on the pcap named “Trace from Outside Firewall Port”
The sessions in “Inside Firewall” and “My Switchport” show different source ports, which means you did not capture the same session in parallel. With that it’s not possible to compare the sessions in order to figure out if one of the components drops frames. Can you please repeat your test and then post the capture files taken in parallel on all three or four locations?
Packets are arriving out_of_sequence already in the “Trace from Outside Firewall Port” causing a high number of SACK packets flowing out which trigger (spurious) retransmissions.
The ip.ids on the inbound packets look kind of strange as they suggest the packets were already out of order when they left the source.
May I suggest you turn on TCP timestamps in your windows by setting Tcp1323Opts to 3 https://technet.microsoft.com/en-us/library/cc938205.aspx so we can get some clues as to when they left the source and, while you’re at it - temporarily disable SACK by setting SackOpts 0 (maybe it confuses some NAT devices on the path.
Also for the next trace action I suggest you in addition trace between your Firewall and the gateway router to see the sequence of arrival from the internet.
hi, did you able to solve the issue? i happen to face the same exact issue
@zareefaqmar, if you want assistance, you'll have to follow the advice of @mrEEde to the OP regarding the points where you capture at the same time (so that the same session can be observed at both sides of the firewall) and what settings in the Windows TCP stack to use, and post the resulting capture files.
@sindy hi sindy. thank you for the reply. i have taken the pcap at both ingress & engress at the same time. i can see that after client are sending GET, the client would one again send TCP Spurious Retransmission.
As per quoted previously, the issue in real life is that the website would load up normally. Only that when I tried to view the pdf file onto the page, it would see an error.
PCAP file are shared as below:
https://www.dropbox.com/sh/50djblz04h4m1fq/AABtZ9WdqklVydF6-g-b9o9Ma?dl=0