From: Maksim Krasnyanskiy <maxk@qualcomm.com>
To: jt@hpl.hp.com, Paul Mackerras <paulus@samba.org>
Cc: linux-ppp@vger.kernel.org,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: PPP feature request (Tx queue len + close)
Date: Tue, 05 Mar 2002 10:13:28 -0800 [thread overview]
Message-ID: <5.1.0.14.2.20020305095825.01b61fd8@mail1.qualcomm.com> (raw)
In-Reply-To: <20020305094535.A792@bougret.hpl.hp.com>
In-Reply-To: <15492.21937.402798.688693@argo.ozlabs.ibm.com> <20020304144200.A32397@bougret.hpl.hp.com> <15492.13788.572953.6546@argo.ozlabs.ibm.com> <20020304191947.A32730@bougret.hpl.hp.com> <15492.21937.402798.688693@argo.ozlabs.ibm.com>
Hi folks,
> > It doesn't exist at the moment, but it would be easy enough to add
> > it. In the short term, you could even add an ifconfig to your
> > /etc/ppp/ip-up script to set the transmit queue length there.
>
> Will try that.
> Actually, this is why I ask you in advance, so that we have
>the time to think about it without rushing...
That's what exactly what I do to increase txqueue length.
ifconfig $1 txqueuelen 20
> > > > Could you produce some numbers showing better throughput, fewer
> > > > retransmissions, or whatever, with a smaller transmit queue length?
> > >
> > > Don't have number, but I don't need number to know that.
> >
> > Your case for wanting something done will be so much stronger if you
> > show that there is a measurable benefit as opposed to just a gut
> feeling. :)
>
> Well, it's pretty obvious when watching tcpdump. You see all
>the Tx clustered together and then nothing get Tx until the TCP window
>opens again. In other word, you have a full TCP window queued in PPP
>and IrDA.
> This is pretty bad for latency. Actually, you can verify that
>by doing ping while a TCP connection is active, you will see huge
>roundtrips.
Setting txqueuelen to 1 will pretty much kill TCP performance as soon as
window will grow
to more than 1 segment. Because net layer just drops packet if txqueue is
full and TCP will
have to re-transmit. Don't trust your gut feeling ;-).
I did some experiments with PPP over HDR links here in Qualcomm. And I had
to increase
queue just because stuff was dropped even before it reaches serial driver.
I can even claim
that for todays fast links like PPPoE, PPPoATM, HDR, etc txqueuelen == 3 is
way to small.
btw You might want to use tcptrace. Watching tcpdump on the fly is no fun.
tcptrace will
give you nice graphs of what happens and when.
> > My gut feeling is that the transmit queue length is already about as
> > short as we want it, and that if we make it any shorter then we will
> > start dropping a lot of packets at the transmit queue, and lose
> > performance because of that. But I could be wrong - any networking
> > gurus care to comment ?
>
> I believe that you won't drop packet, but just flow control
>TCP (which in turn will flow control the application). At least, this
>is the way it's happening within the IrDA stack.
You _will_ drop it, if txqueue is full. TCP will back off and re-transmit
but this will not allow TCP window to grow and you TCP performance will
be pretty bad.
I totally agree with Paul. Just decrease buffering below PPP.
Max
next prev parent reply other threads:[~2002-03-05 18:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-04 22:42 Jean Tourrilhes
2002-03-05 0:55 ` James Stevenson
2002-03-05 1:01 ` Jean Tourrilhes
2002-03-05 3:05 ` Paul Mackerras
2002-03-05 3:19 ` Jean Tourrilhes
2002-03-05 18:13 ` Maksim Krasnyanskiy [this message]
2002-03-05 18:28 ` Jean Tourrilhes
2002-03-05 19:15 ` James Carlson
2002-03-05 19:27 ` Jean Tourrilhes
2002-03-05 21:49 ` James Carlson
2002-03-05 21:17 ` Maksim Krasnyanskiy
2002-03-05 21:27 ` Jean Tourrilhes
2002-03-05 5:20 ` Paul Mackerras
2002-03-05 17:45 ` Jean Tourrilhes
2002-03-05 19:39 ` Maksim Krasnyanskiy
2002-03-05 20:23 ` Jean Tourrilhes
2002-03-05 22:48 ` Bill Davidsen
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=5.1.0.14.2.20020305095825.01b61fd8@mail1.qualcomm.com \
--to=maxk@qualcomm.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ppp@vger.kernel.org \
--cc=paulus@samba.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
all inboxes | Powered by JetHome®