Solved

How to resolve stalled inbound data transfers on sftp?

Posted on 2008-06-23
8
1,637 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
  • 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 14

Accepted Solution

by:
agriesser earned 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now