?
Solved

How to resolve stalled inbound data transfers on sftp?

Posted on 2008-06-23
8
Medium Priority
?
1,657 Views
Last Modified: 2010-04-21
A unique problem has presented itself, upon inbound transfers via sftp...once the first 6Kb of a file has been transferred the connection stalls. If left to run, eventually it will complete but only after stalling after every 6Kb of data transferred.

system:
2.6.22.14-72.fc6 running openssh-4.3p2-25.fc6

Data transfer tests with/without IPTABLES running produce same behavior (stalled transfers). Data transfer tests to identical OpenSSH versions on other boxes via Gigabit LAN do NOT produce this behavior (stalled transfers).

Has anyone seen this before or know of a solution?

Thanks,
0
Comment
Question by:mlsevResearch
[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
  • 4
  • 4
8 Comments
 
LVL 14

Expert Comment

by:agriesser
ID: 21850396
What do the error counters in `ifconfig` look like?
Such errors could be caused by duplex mismatches and/or bad cables. Can you try to manually set the port mode for testing purposes?

On Linux, you could use the old `mii-tool` or the new `ethtool` (whatever is installed on your system) to set the port mode manually.

Do you have a 100MBit switch (or configured switch port) available for testing purposes? Gigabit Ethernet over copper sometimes causes very strange issues if the cables are shielded and  I assume you're using shielded cables, right?
0
 

Author Comment

by:mlsevResearch
ID: 21850548
there are two boxes I'm receiving this error on so I'll paste sanitized output for both ifconfig & mii-tool:

box1:
ifconfig -> eth1
 RX packets:12696 errors:1221 dropped:0 overruns:0 frame:1221
 TX packets:4017 errors:0 dropped:0 overruns:0 carrier:0
mii-tool -> eth1
 eth1: negotiated 100baseTx-FD flow-control, link ok

box2:
ifconfig -> eth1
 RX packets:54276479 errors:7102653 dropped:0 overruns:0 frame:7102653
 TX packets:89790299 errors:0 dropped:0 overruns:0 carrier:0
mii-tool -> eth1
 eth1: negotiated 100baseTx-FD flow-control, link ok

all gigabit LAN traffic is for 192.168.0.0/27, connected to a LinkSys 8-port Gigabit switch

yes, I believe shielded cables are being used
0
 
LVL 14

Expert Comment

by:agriesser
ID: 21850614
Are these systems connected to the Gigabit switch? If so, mii-tool won't show the correct port settings as mii-tool is too old to know about GiE on copper ;)

OK, but we now know that there are no errors.
Try to switch the speed down to 100MBit/s or use unshielded cables for testing purposes (if available).
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

Author Comment

by:mlsevResearch
ID: 21850687
the ifconfig output I posted shows both devices have RX errors...which is exactly what's happening.

not able to swap out cables for testing, will look into what port speeds I can set on the switch...

I would argue that it's the switch but with all devices connected to the same switch yet only two in the mix are having RX errors?? That doesn't make sense...
0
 
LVL 14

Accepted Solution

by:
agriesser earned 2000 total points
ID: 21852935
You're right, sorry. I need to get myself some new glasses really soon...

If all machines connected to this switch would be of the same kind (same network card, same driver, etc.) you could definetly say that the cables are bad for the two machines which have the problem.

But in your case it could be everything (bad cables, buggy drivers, etc.).
Running GiE on the wire is a very delicate task where everything has to play together well.

In my office, f.ex., I needed to configure some ports of our Cisco Gigabit Switch Modules down to 100Mbit/s otherwise I wasn't able to get DHCP leases on them nor was I able to boot via PXE.

Besides that, using no real drivers but just the EEPROM of the NICs, loading software via PXE on Gigabit NICs is much slower than it is on 100MBit/s NICs using the already available cabling.
A month ago, we started to cable a new building and used unshielded CAT-7 cables which proofed the best performance I ever saw when using Gigabit Ethernet over copper. No problems in this building with PXE imaging, etc., it just simply works.
0
 

Author Comment

by:mlsevResearch
ID: 21855484
agriesser, thanks for the previous responses as well as the latest detailed response. I'm in the process of getting information together concerning the cabling utilized for the GiE set-up to see where we're at...

so hopefully this solution will be solved shortly and points awarded...
0
 

Author Closing Comment

by:mlsevResearch
ID: 31470316
power-cycle of switch cleared the problems, thanks for all the help
0
 
LVL 14

Expert Comment

by:agriesser
ID: 21859067
I recently RMA'ed a Linksys 8-port GiBit switch due to some ill effects like you experienced. You should definetly think about replacing this switch...
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

765 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