04-14-2022 01:03 AM - edited 04-19-2022 04:09 AM
Solved! Go to Solution.
04-27-2022 08:23 AM
I started to look more into the size of the packet and why it was so low.
The switch is not sending the TCP option MSS in the TCP handshake so the default size of 536 is being used which is resulting in the sizes being so small.
I went ahead and amended the tcp mss size on the switch --> ip tcp mss 1452
This solved the issue (or at least found another work around) and FTP starts transferring straight away.
I don't know why the small size of the packet effects the ZBFW in this way?
04-14-2022 05:20 PM
I don't know so much in ZBFW but
FTP can work in two mode active and passive mode and each one have different port.
check if the client use passive and port is change.
04-19-2022 01:08 AM
The client is using active mode.
On the switch, "no ip ftp passive" mode has been configured.
04-19-2022 06:20 AM - edited 04-19-2022 06:22 AM
....
04-19-2022 08:49 AM
Further advancement today:
I ran a packet capture on the router and could see that the issue seemed to be with the FTP Data connection (port 20) and not the FTP Connection (port 21).
The client (switch) would send a [FIN, PSH, ACK] to the server and would "Request: QUIT" on the FTP Data session abruptly... Just when the server was about to send the data over. The server tried to send data then the client send a TCP Reset to the server which resulted in the transfer being aborted.
It seemed the client closed the TCP session but the firewall was still holding onto the open session. I configured a parameter map and applied it to the policy map...
parameter-map type inspect parmap_ftp
tcp idle-time 3
!
This actually resulted in the transfer happening more or less straight away (after about 6 seconds) as compared to the 30 minute+ wait previously.
Still confused to why this would matter at all as when a new TCP FTP & FTP Data session open, it will use different source port numbers and not conflict with the existing idle one?
Either way, the parameter map sorted the issue with the inspect action to the delayed transfer!
04-19-2022 02:53 PM
04-20-2022 01:47 AM
The inside interface already has the max segment size set -> 1452.
Pings works to the ftp server while setting the site and df-bit tag.
I can see in the packet capture the size of the packets were 594 bytes.
04-21-2022 02:19 AM
there are two thing
1- CPU check the ACL for 20 21 port i.e. the control and data port this utilize CPU and cause slow
2- packet size which is 594 not 1400 !! that make 10 min traffic be 30 min.
the MTU of Inside interface or TCP MSS ? which one you config ?
04-21-2022 05:12 AM
I can't imagine this would be down to the CPU utilisation as like I have mentioned, FTP works fine when the ZBFW has not been implemented or when the pass action is specified.
Inside interface:
ip tcp adjust-mss 1452
Outside/WAN interface:
ip mtu 1492
Not worried about the packet size as FTP is not a critical application and there will be other factors involved reducing the size.
04-23-2022 09:10 AM
show platform hardware qfp active statistics drop clear
then do test again again at least three times "test meaning check ftp"
show platform hardware qfp active statistics drop all
Share the output here
04-27-2022 08:23 AM
I started to look more into the size of the packet and why it was so low.
The switch is not sending the TCP option MSS in the TCP handshake so the default size of 536 is being used which is resulting in the sizes being so small.
I went ahead and amended the tcp mss size on the switch --> ip tcp mss 1452
This solved the issue (or at least found another work around) and FTP starts transferring straight away.
I don't know why the small size of the packet effects the ZBFW in this way?
04-27-2022 10:48 AM
First thaks for sharing
Second please mention that this issue is solved.
04-27-2022 11:34 AM
I will mark it as solved although it is more of a work around than a solution.
Thank you for your help.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide