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 03-27-2015, 03:56 AM   #1
nudenurd
LQ Newbie
 
Registered: Jun 2005
Posts: 14

Rep: Reputation: 0
Some TCP traffic lost


Hi all

I have an odd issue that's been plaguing me for a while now. I have a CentOS 6 machine directly connected to an ISP with a /26 block of static IPs. No PPPoE, just a static IP configuration in place.
On this server, I'm running a simple HTTP server (thttpd) with no scripting/plugins or any other overhead. HTTP server visible here:
http://203.217.168.98:8000/

The problem is that my server seems to be dropping some connections with large packet sizes. To replicate this, use a distributed http checker on these URLs:
http://203.217.168.98:8000/1kb.html
http://203.217.168.98:8000/8kb.html

Results are as below respectively:
http://s11.postimg.org/hbrgl20wj/screenshot_9.png
http://s11.postimg.org/svwad39xv/screenshot_10.png

The following output also shows the issue:
Code:
[user@server~]$ httperf --server 203.217.168.98 --port 8000 --uri /1kb.html --num-conn 10 --num-cal 5 --rate 2 --timeout 5
httperf --timeout=5 --client=0/1 --server=203.217.168.98 --port=8000 --uri=/1kb.html --rate=2 --send-buffer=4096 --recv-buffer=16384 --num-conns=10 --num-calls=5
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
Maximum connect burst length: 1

Total: connections 10 requests 20 replies 10 test-duration 4.529 s

Connection rate: 2.2 conn/s (452.9 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 28.7 avg 28.9 max 29.2 median 28.5 stddev 0.2
Connection time [ms]: connect 14.1
Connection length [replies/conn]: 1.000

Request rate: 4.4 req/s (226.5 ms/req)
Request size [B]: 75.0

Reply rate [replies/s]: min 0.0 avg 0.0 max 0.0 stddev 0.0 (0 samples)
Reply time [ms]: response 14.7 transfer 0.0
Reply size [B]: header 226.0 content 1024.0 footer 0.0 (total 1250.0)
Reply status: 1xx=0 2xx=10 3xx=0 4xx=0 5xx=0

CPU time [s]: user 0.70 system 3.79 (user 15.5% system 83.7% total 99.2%)
Net I/O: 3.0 KB/s (0.0*10^6 bps)

Errors: total 10 client-timo 0 socket-timo 0 connrefused 0 connreset 10
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0

[user@server~]$ httperf --server 203.217.168.98 --port 8000 --uri /8kb.html --num-conn 10 --num-cal 5 --rate 2 --timeout 5
httperf --timeout=5 --client=0/1 --server=203.217.168.98 --port=8000 --uri=/8kb.html --rate=2 --send-buffer=4096 --recv-buffer=16384 --num-conns=10 --num-calls=5
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
Maximum connect burst length: 1

Total: connections 10 requests 10 replies 0 test-duration 9.515 s

Connection rate: 1.1 conn/s (951.5 ms/conn, <=10 concurrent connections)
Connection time [ms]: min 0.0 avg 0.0 max 0.0 median 0.0 stddev 0.0
Connection time [ms]: connect 15.1
Connection length [replies/conn]: 0.000

Request rate: 1.1 req/s (951.5 ms/req)
Request size [B]: 75.0

Reply rate [replies/s]: min 0.0 avg 0.0 max 0.0 stddev 0.0 (1 samples)
Reply time [ms]: response 0.0 transfer 0.0
Reply size [B]: header 0.0 content 0.0 footer 0.0 (total 0.0)
Reply status: 1xx=0 2xx=0 3xx=0 4xx=0 5xx=0

CPU time [s]: user 1.07 system 8.03 (user 11.2% system 84.4% total 95.6%)
Net I/O: 0.1 KB/s (0.0*10^6 bps)

Errors: total 10 client-timo 10 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
I've contacted my ISP a couple of times about this and they're currently digging deeper but insist it's not at their end (of course).

How might I diagnose this problem further?

Thanks
 
Old 03-27-2015, 02:34 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Try lowering the MTU on the ethernet device. I've seen similar things happen on a email server, lowered the mtu to 1492 and the issue went away.
 
Old 03-27-2015, 07:40 PM   #3
nudenurd
LQ Newbie
 
Registered: Jun 2005
Posts: 14

Original Poster
Rep: Reputation: 0
I've tried that, but down to 1400 as 1492 is more for PPPoE overhead.
Shall try again and let it test over a few hours.
 
  


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
Duplicate TCP traffic on a port to another sidsgr88 Linux - Networking 0 05-25-2013 02:45 PM
LXer: How TCP Offload Engines scale up the TCP traffic bandwidth by up to 8x on existing Ethernet Ne LXer Syndicated Linux News 0 02-16-2012 10:01 PM
TCP traffic forwarding shathil Linux - Networking 1 09-05-2009 10:46 PM
Snort/Base reporting no traffic, Ntop not showing any TCP traffic. a2brute Linux - Security 1 08-10-2009 12:21 PM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM

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

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