netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Ang Way Chuang <wcang79@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: TCP throughput drops sharply around MTU of 180 bytes
Date: Sat, 14 Nov 2009 09:53:04 +0100	[thread overview]
Message-ID: <4AFE6FF0.3030101@gmail.com> (raw)
In-Reply-To: <51d384e10911140028r76e1aefei3a224b5c542d82e8@mail.gmail.com>

Ang Way Chuang a écrit :
> Hi kernel networking gurus,
> 
>       I came across a situation where I need to evaluate the packing
> efficiency of
> small packets. Because TCP is byte oriented protocol, there is no way
> to force it
> to generate small packets, so I forced it by adjusting MTU.
> 
>      However, through the experiment, I found that measured throughput
> of TCP stream dropped significantly if MTU is set to value less than 180 bytes.
> At first, I thought it must be some bugs on my code. So, I decided to repeat
> the test over a dedicated 10Mbps Ethernet link. The results that I measured
> over Ethernet is shown below:
> 
> 
> MTU                 Throughput (Mbps)
> -----                  --------------
> 181                  4.50
> 180                  4.39
> 179                  3.05
> 178                  3.04
> 
>      I used iperf throughout the tests. Can someone enlighten me on this matter?
> Why the throughput drops sharply if MTU is less than 180 bytes? Is there some
> special meaning associated with 180 that I don't know of?
> 
>    Some basic information about my system:
> kernel version: 2.6.27.5-117.fc10.x86_64
> distro: fedora 10
> CPU: Pentium 4 3.00 GHz
> 
>     Should you need more information, I shall gladly cooperate. Please keep me
> in the loop because it is hard for me to cop with the volume of emails on netdev
> mailing list.
> 

Oh well, this reminds me TCP_MAXSEG doesnt work as expected...

  reply	other threads:[~2009-11-14  8:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-14  8:28 TCP throughput drops sharply around MTU of 180 bytes Ang Way Chuang
2009-11-14  8:53 ` Eric Dumazet [this message]
2009-11-14  9:12   ` Eric Dumazet
2009-11-14  9:24     ` Ang Way Chuang
2009-11-14  9:57       ` Eric Dumazet
2009-11-14 10:19         ` Eric Dumazet
  -- strict thread matches above, loose matches on Subject: below --
2009-11-14  8:48 Ang Way Chuang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AFE6FF0.3030101@gmail.com \
    --to=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=wcang79@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).