From: Bob McMahon <bob.mcmahon@broadcom.com>
To: "Toke Høiland-Jørgensen" <toke@toke.dk>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>,
make-wifi-fast@lists.bufferbloat.net,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [Make-wifi-fast] less latency, more filling... for wifi
Date: Fri, 13 Oct 2017 11:47:19 -0700 [thread overview]
Message-ID: <CAHb6LvqD2==9xCSQ3waED6xk0FRakk0QFSqtbYrKYB_UnaajCw@mail.gmail.com> (raw)
In-Reply-To: <87mv4v9z2a.fsf@toke.dk>
[-- Attachment #1: Type: text/plain, Size: 3829 bytes --]
Hi Toke,
The other thing that will cause the server thread(s) and listener thread to
stop is -t when applied to the *server*, i.e. iperf -s -u -t 10 will cause
a 10 second timeout for the server/listener thread(s) life. Some people
don't want the Listener to stop so when -D (daemon) is applied, the -t will
only terminate server trafffic threads. Many people asked for this
because they wanted a way to time bound these threads, specifically over
the life of many tests.
Yeah, summing is a bit of a mess. I've some proto code I've been playing
with but still not sure what is going to be released.
For UDP, the source port must be unique per the quintuple (ip proto/src ip/
src port/ dst ip/ dst port). Since the UDP server is merely waiting for
packets it doesn't have an knowledge about how to group. So it groups
based upon time, i.e. when a new traffic shows up it's put an existing
active group for summing.
I'm not sure a good way to fix this. I think the client would have to
modify the payload, and per a -P tell the server the udp src ports that
belong in the same group. Then the server could assign groups based upon a
key in the payload.
Thoughts and comments welcome,
Bob
On Fri, Oct 13, 2017 at 2:28 AM, Toke Høiland-Jørgensen <toke@toke.dk>
wrote:
> Bob McMahon <bob.mcmahon@broadcom.com> writes:
>
> > Thanks Toke. Let me look into this. Is there packet loss during your
> > tests? Can you share the output of the client and server per the error
> > scenario?
>
> Yeah, there's definitely packet loss.
>
> > With iperf 2 there is no TCP test exchange rather UDP test information
> > is derived from packets in flight. The server determines a UDP test is
> > finished by detecting a negative sequence number in the payload. In
> > theory, this should separate UDP tests. The server detects a new UDP
> > stream is by receiving a packet from a new source socket. If the
> > packet carrying the negative sequence number is lost then summing
> > across "tests" would be expected (even though not desired) per the
> > current design and implementation. We intentionally left this as is as
> > we didn't want to change the startup behavior nor require the network
> > support TCP connections in order to run a UDP test.
>
> Ah, so basically, if the last packet from the client is dropped, the
> server is not going to notice that the test ended and just keep
> counting? That would definitely explain the behaviour I'm seeing.
>
> So if another test starts from a different source port, the server is
> still going to count the same totals? That seems kinda odd :)
>
> > Since we know UDP is unreliable, we do control both client and server
> over
> > ssh pipes, and perform summing in flight per the interval reporting.
> > Operating system signals are used to kill the server. The iperf sum
> and
> > final reports are ignored. Unfortunately, I can't publish this package
> > with iperf 2 for both technical and licensing reasons. There is some
> skeleton
> > code in Python 3.5 with asyncio
> > <https://sourceforge.net/p/iperf2/code/ci/master/tree/flows/flows.py>
> that
> > may be of use. A next step here is to add support for pandas
> > <http://pandas.pydata.org/index.html>, and possibly some control chart
> > <https://en.wikipedia.org/wiki/Control_chart> techniques (both single
> and
> > multivariate
> > <http://www.itl.nist.gov/div898/handbook/pmc/section3/pmc34.htm>) for
> both
> > regressions and outlier detection.
>
> No worries, I already have the setup scripts to handle restarting the
> server, and I parse the output with Flent. Just wanted to point out this
> behaviour as it was giving me some very odd results before I started
> systematically restarting the server...
>
> -Toke
>
[-- Attachment #2: Type: text/html, Size: 5001 bytes --]
next prev parent reply other threads:[~2017-10-13 18:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-09 20:13 Dave Taht
2017-10-09 20:41 ` dpreed
2017-10-09 21:04 ` Bob McMahon
2017-10-09 21:44 ` Simon Barber
2017-10-09 22:02 ` Bob McMahon
2017-10-11 20:03 ` Bob McMahon
2017-10-16 21:26 ` Simon Barber
2017-10-17 4:53 ` Bob McMahon
2017-10-11 21:30 ` Jesper Dangaard Brouer
2017-10-12 8:32 ` Toke Høiland-Jørgensen
2017-10-12 18:51 ` Bob McMahon
2017-10-13 9:28 ` Toke Høiland-Jørgensen
2017-10-13 18:47 ` Bob McMahon [this message]
2017-10-13 19:41 ` Bob McMahon
2017-10-14 1:46 ` Bob McMahon
[not found] <mailman.778.1507581712.3609.make-wifi-fast@lists.bufferbloat.net>
2017-10-16 18:28 ` Pete Heist
2017-10-16 19:56 ` Dave Taht
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
List information: https://lists.bufferbloat.net/postorius/lists/make-wifi-fast.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHb6LvqD2==9xCSQ3waED6xk0FRakk0QFSqtbYrKYB_UnaajCw@mail.gmail.com' \
--to=bob.mcmahon@broadcom.com \
--cc=brouer@redhat.com \
--cc=johannes@sipsolutions.net \
--cc=make-wifi-fast@lists.bufferbloat.net \
--cc=toke@toke.dk \
/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