LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-07-2011, 04:13 PM   #1
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Rep: Reputation: Disabled
Traffic being throttled on RHEL5 router


I have two RHEL5 boxes that I use for routers. My configuration is internet-router1-dmz-router2-lan. Recently, I have users that have been complaining about file uploads failing when the files are 'too large'. (By too large, I mean that at one site any file over 250K is failing consistently.) When these users test from outside my network, the upload process works fine. Inside the network, fails all the time.
To try to eliminate some of the complexity, I decided to test from a machine within the dmz (hence, internet-router1-dmz). I was able to successfully upload the files every time I tried.
The uploader they are using is within a browser, but it is flash related.
Both of the routers are nearly identical in build.
When tracking the network traffic, it appears that the transfer starts and then communication just hangs.

My question is this:

Are there built-in mechanisms in RHEL5 or any of its netfilter stuff that would automatically (from a vanilla install) throttle connections for these larger datastreams that I'd need to open up?
 
Old 12-07-2011, 04:39 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Might be worth looking at the offload settings for the nics... 'ethtool -[k|K] <dev>'
 
Old 12-07-2011, 05:18 PM   #3
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Not too familiar with these settings:

#> ethtool -k eth0
Offload parameters for eth0:
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: on
generic-receive-offload: on


#> ethtool -k eth1
Offload parameters for eth1:
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: on
generic-receive-offload: on
 
Old 12-07-2011, 05:20 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
My comment was based on a bug that I came across previously and the symptoms looked similar. Please try disabling TSO on the target side and see if it makes any difference
 
Old 12-07-2011, 05:59 PM   #5
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
No good. But since I'm getting successful uploads outside my network, wouldn't the target box be configured correctly already? I don't think I've ever had to dig this deeply for a network issue before.
 
Old 12-07-2011, 06:58 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Good point .. do you have a sniffer on the target like wireshark or tcpdump?
 
Old 12-07-2011, 07:03 PM   #7
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yeah. I have two trace files, one for a successful file transfer and one for an unsuccessful file transfer. I'm not seeing the difference in the two. I've attached them.
Attached Files
File Type: txt good.txt (110.0 KB, 9 views)
File Type: txt bad.txt (99.6 KB, 7 views)
 
Old 12-07-2011, 07:33 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Code:
Inside the network, fails all the time.
.. the traces seem to be from the same machine, not sure how this is differentiating between inside and outside the network .. ?
 
Old 12-07-2011, 07:48 PM   #9
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
They are both going through router1, but the one that fails is also going through router2.
 
Old 12-07-2011, 09:04 PM   #10
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
So where exactly is the server ?
 
Old 12-07-2011, 09:22 PM   #11
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Sorry. That would be a useful piece of information. The server we are trying to upload to is out on the internet. So both transfers are going through router 1 to the internet while the failed transfer its going through router 2 then router 1 to the internet to the target box.
 
Old 12-07-2011, 09:35 PM   #12
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Especially when I was thinking the server was in the DMZ or the LAN

Can you check the web server logs?

Last edited by kbp; 12-07-2011 at 09:37 PM.
 
Old 12-08-2011, 11:21 AM   #13
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
The only file that is modified during the (attempted) uploads is access.log.

This is what it looks like when successful:

64.126.162.234 - - [08/Dec/2011:12:00:29 -0500] "GET /liquid-hash/wp-admin/media-new.php HTTP/1.1" 200 22050
64.126.162.234 - - [08/Dec/2011:12:00:30 -0500] "GET /liquid-hash/wp-includes/images/admin-bar-sprite.png?d=20111130 HTTP/1.1" 304 -
64.126.162.234 - - [08/Dec/2011:12:00:40 -0500] "POST /liquid-hash/wp-admin/async-upload.php HTTP/1.1" 200 3
64.126.162.234 - - [08/Dec/2011:12:00:43 -0500] "POST /liquid-hash/wp-admin/async-upload.php HTTP/1.1" 200 4016
64.126.162.234 - - [08/Dec/2011:12:00:43 -0500] "GET /liquid-hash/files/Chrysanthemum2-150x150.jpg HTTP/1.1" 200 11506
64.126.162.234 - - [08/Dec/2011:12:00:46 -0500] "POST /liquid-hash/wp-admin/media-upload.php?inline=&upload-page-form= HTTP/1.1" 302 -
64.126.162.234 - - [08/Dec/2011:12:00:47 -0500] "GET /liquid-hash/wp-admin/upload.php HTTP/1.1" 200 65548

This is what it looks like when unsuccessful:

64.126.162.234 - - [08/Dec/2011:12:04:28 -0500] "POST /liquid-hash/wp-admin/async-upload.php HTTP/1.1" 200 308
192.168.227.57 - - [08/Dec/2011:12:04:44 -0500] "GET / HTTP/1.1" 302 -
192.168.227.57 - - [08/Dec/2011:12:04:44 -0500] "GET / HTTP/1.1" 200 23110
 
Old 12-08-2011, 02:12 PM   #14
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
I'm sorry, but I'm not familiar with any routing possibilities in linux, but the LOG file I look at is
Code:
192.168.227.57 - - [08/Dec/2011:12:04:44 -0500] "GET / HTTP/1.1" 302 -
somehow makes me doubt that this
GET / HTTP/1.1" 302 -

makes a redirect to some outer space ?

Again, I apologize for any mislead if this is not the case.

Good luck.
 
Old 12-08-2011, 04:32 PM   #15
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
So if the trace files look the same but you can see variations in the web server logs, it's starting to look more like an app issue than a network issue.
 
  


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
how to monitor a router traffic? iaaaguru Linux - Networking 5 01-22-2010 08:31 AM
Allowing asymmetric traffic through 'router' geustace Linux - Networking 3 12-22-2009 02:23 PM
I want to configure RHEL5 as a router using two NICs vijay.gulge Linux - Networking 3 04-10-2008 08:50 AM
Block outgoing traffic through router? Micro420 Linux - Networking 3 03-15-2005 07:01 AM
monitor router traffic hotrodowner Linux - Networking 4 03-19-2003 05:39 PM

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

All times are GMT -5. The time now is 08:53 PM.

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