LinuxQuestions.org
Visit Jeremy's Blog.
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 11-22-2010, 07:49 AM   #1
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 35
scp stall related to tcp sack?


Trying to debug a network issue - we have problems with scp transfers to a remote host intermittently stalling. I believe it may have something to do with incorrect handling of sack / dsack TCP options. Looking at netstat -s, during a (successful) scp transfer the TCPSACKDiscard and TCPDSACKIgnoredNoUndo counters increase rapidly. This is on the client initiating the transfer to the remote server. This doesn't seem normal, but I'm having difficulty finding an explanation of what exactly these counters signify. The tcp_sack / tcp_dsack / tcp_fack options are enabled in the kernel on both hosts.

How do I debug this further? Are the counters a symptom of a known problem? It's kind of hard to google this, all I get is unrelated netstat output which happens to include 1 or 2 discarded SACKs, not tens of thousands like I am seeing. I can make tcpdumps on the client (unfortunately not the server), but what should I look for?
 
Old 11-22-2010, 08:40 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Distro ? .. version ?
 
Old 11-23-2010, 05:15 AM   #3
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 35
Debian Lenny. I am firewalling invalid packets (-m state --state invalid), allowing related / established traffic in, and allowing ICMP types 3, 4, 8, 11 & 12. The stalls seem to be less frequent when I explicitly allow invalid packets coming from the remote host. Could it be that some device along the route is handling SACK incorrectly?

Example of a packet I explicitly allowed even though iptables marked it invalid:

Quote:
Nov 22 04:37:00 <hostname> kernel: [693422.397591] Allow invalid from <remote host>: IN=eth0 OUT= MAC=00:23:7d:cf:2a:1a:00:08:e3:ff:fc:04:08:00 SRC=<remote ip> DST=<local ip> LEN=80 TOS=0x00 PREC=0x00 TTL=61 ID=1217 DF PROTO=TCP SPT=22 DPT=47654 WINDOW=1497 RES=0x00 ACK URGP=0 OPT (0101080A48E3385B0896094F0101051AA0A49C7BA0A4A1D3A0A48C73A0A49723A0A47C6BA0A4871B)
This is from my syslog using iptables --log-tcp-options - they appear to be timestamp and sack. Is there a way to log more, or make it show what specifically causes iptables to mark this an invalid packet?
 
Old 11-23-2010, 06:42 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
It might be an idea to disable the firewall temporarily and see if the problem is still present
 
  


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
LXer: Performance Tradeoffs of Linux TCP SACK LXer Syndicated Linux News 0 04-09-2008 08:50 AM
TCP connections stall after a while on FC5 Pepijn Schmitz Linux - Networking 7 12-09-2006 03:51 PM
easy question about TCP SACK djcham Linux - Networking 0 09-30-2005 12:09 PM
TCP Connections stall through debian router BigWillyStyle42 Linux - Networking 3 05-13-2005 05:38 AM
scp problem related to network architecture? rdorte Linux - Networking 2 07-22-2004 09:17 AM

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

All times are GMT -5. The time now is 06:56 AM.

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