LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2011, 07:13 PM   #1
DurkaDurka
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
Question Slow outbound, fast outbound cross country connection


I'm having an issue where a server in CA (1000/full) and in VA (100/full) have very lopsided data transfer.

CA -> VA with iperf shows ~20Mbps
VA -> CA with iperf shows ~93Mbps

If we change the CA server to 100/FULL, transfer speed is 93Mbps both ways.

Some tuning was done to TCP window scaling parameters, but it won't correct the issue, just improve the CA -> VA numbers to what is listed above. I will say, turning TCP window scaling OFF will lower the transfer speed both ways to < 20Mbps.

The only clue I have when looking at wireshark dumps is that the window scale going OUT would never go past 10240 (scale is 8, so 2^8 x 40bytes). In the opposite direction, the window size will go above 3MB (scaled).

It is not a bandwidth problem as iperf with UDP shows 93Mbps both ways. Local transfers (CA 1000/full to CA 100/full) show full speed both ways, so I feel it is strictly related to TCP window scaling.

RedHat 5 64-bit on both sides. Any ideas why it won't scale above 10240?
 
Old 06-03-2011, 09:38 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Do you have firewalls in between ? .. also are you seeing drops/retransmits when CA == 1000/full ?
 
Old 06-03-2011, 01:45 PM   #3
DurkaDurka
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
There was a firewall, but we tested without it as well. The logs are here if you want to look at them via wireshark :

http://209.207.216.188/pcap/

(I took a tshark dump on both sides - "fast" is when I pull a file in to CA and "slow" is when I push a file out to VA)

Look at the slow-CA.pcap and you'll see the window size never goes above 10240.
 
Old 06-04-2011, 08:20 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Could you reset the tcp tuning that was done then try using these settings :-

net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216

I was also wondering if any of the offload settings had been modified on the nic's .. ?
 
Old 06-07-2011, 09:55 AM   #5
DurkaDurka
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
My previous values :

net.core.rmem_default=129024
net.core.wmem_default=129024
net.core.rmem_max=131071
net.core.wmem_max=131071
net.ipv4.tcp_rmem="4096 87380 4194304"
net.ipv4.tcp_wmem="4096 16384 4194304"

I set the values you requested. BEFORE :

-----
SJC_host# scp large root@VA_host:/usr/local/src/large2
large 100% 100MB 1.5MB/s 01:08
-----

AFTER:

-----
SJC_host# !scp
scp large root@VA_host:/usr/local/src/large2
large 100% 100MB 1.7MB/s 00:59
-----

The offload engine should be on :

----
# ethtool -k eth2 (interface the bond is running off of - yes, we tested w/o bonding)
Offload parameters for eth2:
Cannot get device udp large send offload settings: Operation not supported
rx-checksumming: on
tx-checksumming: on
scatter-gather: on
tcp segmentation offload: on
udp fragmentation offload: off
generic segmentation offload: off
generic-receive-offload: off
----

I played with turning off SACK as well - performance was terrible with it off.
 
Old 06-07-2011, 05:32 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
How do the tuning values compare on the VA side ?
 
Old 06-20-2011, 09:10 AM   #7
DurkaDurka
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Apologies to all. I was about 100% certain we had tested outside of the firewall. The NOC is telling me this is an issue with the Nokia CheckPoint firewall which has been escalated to the vendor.
 
Old 06-20-2011, 10:11 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
.. no probs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot send outbound mails Connection timed out (port 25) pookemasterus Linux - Server 2 02-04-2011 08:17 PM
TLS connection for outbound mail the_gripmaster Linux - Server 1 05-31-2009 05:44 AM
postfix - connection refused on outbound mail asmweb Linux - Server 38 07-07-2008 02:36 PM
Outbound SMTP amjad Linux - Server 0 11-04-2007 10:46 AM
Only allow outbound connections CrEsPo Linux - Security 4 01-01-2007 11:54 AM

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

All times are GMT -5. The time now is 08:24 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