From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: Glen Huang <hey.hgl@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Network slowing down by masquerade
Date: Sat, 11 Jul 2015 23:05:06 +0200 [thread overview]
Message-ID: <55A18502.6090201@plouf.fr.eu.org> (raw)
In-Reply-To: <C20C16F2-3345-4B9F-835B-7C35207A3A88@gmail.com>
Glen Huang a écrit :
> I have a pptp client connection (ppp1) on a gateway. If I directly
> using curl --interface ppp1 to download a file, I get full download
> speed very quickly (2m/s).
Why do you have to use --interface ?
> But if I route my lan host to ppp1 and -o ppp1 -j MASQUERADE, running
> curl to download the same file on the host starts very slow (less than
> 100k/s), then the speed *slowly* increases(about 50k per second), until
> it reach about 1.8m/s. While downloading the file on the host, the
> gateway's cpu usage never reach 1 from the output of top.
>
> If I directly establish the pptp client connection on host, I quickly
> get full speed again.
>
> I wonder what might slow down the network when the packets are
> forwarded. I'm currently guess it's the masquerade target, but I'm not sure.
I don't think MASQUERADE is the culprit. I would suspect first MTU
issues (fragmentation, path MTU discovery).
> How do I test it?
Lower the MTU of the client host LAN interface below ~1460.
next prev parent reply other threads:[~2015-07-11 21:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 12:58 Network slowing down by masquerade Glen Huang
2015-07-11 21:05 ` Pascal Hambourg [this message]
2015-07-14 12:52 ` Glen Huang
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=55A18502.6090201@plouf.fr.eu.org \
--to=pascal@plouf.fr.eu.org \
--cc=hey.hgl@gmail.com \
--cc=netfilter@vger.kernel.org \
/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