[Flent-users] Testing multiple station in once

2018-01-04 Thread Louie Lu
Hi all,

I'm playing around with flent now,

According to this post:
http://blog.cerowrt.org/post/fq_codel_on_ath10k/

Flent can be used to test multiple stations in once,
but how can I do that?

After reading the documentation, I didn't find the options relative to this.


Thanks,
Louie.

___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


Re: [Flent-users] Testing with multiple station, voip and some question between server client

2018-01-04 Thread Toke Høiland-Jørgensen
Louie Lu  writes:

> Hi all,
>
>
> According to this post:
> http://blog.cerowrt.org/post/fq_codel_on_ath10k/
>
> Flent can be used to test multiple stations at once, but how can I do
> that?

You can use the rtt_fair_var* tests; these take multiple hostnames and
will run a TCP flow and a ping to each. Similarly, you can pass multiple
hostnames to voip_hosts to get a VoIP stream to each.

> Also, when I testing VoIP, and control host have setup ITGRecv:
>
> $ flent voip -p totals -H 192.168.177.157 --control-host
> 192.168.177.157 --ditg-control-port 9000 -v
>
> Output said it will end in 60 seconds, but after about 5 minutes, it
> still hangs at there, how can I know flent is running which command in
> this test case?

D-ITG is finicky and easy to anger. I would suggest you try using irtt
instead: https://github.com/peteheist/irtt/ - if you install this on the
client and run the server on the server hosts, Flent should pick it up
automatically and use it for both UDP ping and VoIP tests.

> And the last, what does it mean about server and client in flent?
>
> If I have a network like this:
>
> Control -> AP -> Multiple stations
>
> And I want to test AP tx performance, should I set control as server,
> and use flent on stations, or flent on control with netperf server on
> stations.

In this case (which is also what I use in my setup), the easiest is to
run Flent on the control node and pass the client hostnames to Flent as
the 'servers', using the rtt_fair_var* tests as noted above. The notion
of upload/download will be wrong from a client PoV, but you can fix that
with the --swap-up-down parameter, or simply relabel the plots
afterwards (I do the latter).

-Toke

___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


Re: [Flent-users] Testing with multiple station, voip and some question between server client

2018-01-04 Thread Louie Lu
Cool, thanks for your reply,
this should be added to the quick-start page, where can I make a PR
for flent.org?

Also, I found that currently, PyPI flent isn't using the 1.1.1-git
version (is 1.1.1), thus at that point
I only saw D-ITG in conf and flent.org documentation.

After looking in mailing-list I saw the commit and install flent from
GitHub with
`Flent 1.1.1-git-2d0cd05` which include the itff runner so can use it.
And documentation
didn't mention this.

Thanks,
Louie.

2018-01-04 21:37 GMT+08:00 Toke Høiland-Jørgensen :
> Louie Lu  writes:
>
>> Hi all,
>>
>>
>> According to this post:
>> http://blog.cerowrt.org/post/fq_codel_on_ath10k/
>>
>> Flent can be used to test multiple stations at once, but how can I do
>> that?
>
> You can use the rtt_fair_var* tests; these take multiple hostnames and
> will run a TCP flow and a ping to each. Similarly, you can pass multiple
> hostnames to voip_hosts to get a VoIP stream to each.
>
>> Also, when I testing VoIP, and control host have setup ITGRecv:
>>
>> $ flent voip -p totals -H 192.168.177.157 --control-host
>> 192.168.177.157 --ditg-control-port 9000 -v
>>
>> Output said it will end in 60 seconds, but after about 5 minutes, it
>> still hangs at there, how can I know flent is running which command in
>> this test case?
>
> D-ITG is finicky and easy to anger. I would suggest you try using irtt
> instead: https://github.com/peteheist/irtt/ - if you install this on the
> client and run the server on the server hosts, Flent should pick it up
> automatically and use it for both UDP ping and VoIP tests.
>
>> And the last, what does it mean about server and client in flent?
>>
>> If I have a network like this:
>>
>> Control -> AP -> Multiple stations
>>
>> And I want to test AP tx performance, should I set control as server,
>> and use flent on stations, or flent on control with netperf server on
>> stations.
>
> In this case (which is also what I use in my setup), the easiest is to
> run Flent on the control node and pass the client hostnames to Flent as
> the 'servers', using the rtt_fair_var* tests as noted above. The notion
> of upload/download will be wrong from a client PoV, but you can fix that
> with the --swap-up-down parameter, or simply relabel the plots
> afterwards (I do the latter).
>
> -Toke

___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


Re: [Flent-users] Testing with multiple station, voip and some question between server client

2018-01-04 Thread Toke Høiland-Jørgensen
Louie Lu  writes:

> Cool, thanks for your reply,
> this should be added to the quick-start page, where can I make a PR
> for flent.org?

The flent.org page is the HTML output of the documentation in the doc/
subdirectory (build with spinx; `make doc` from the flent repo root
builds it. A pull request would be much appreciated!

> Also, I found that currently, PyPI flent isn't using the 1.1.1-git
> version (is 1.1.1), thus at that point
> I only saw D-ITG in conf and flent.org documentation.

Yeah, a new release is needed with this feature, but we ran out of time
before the holidays. Should get around to that within a week or two :)

> After looking in mailing-list I saw the commit and install flent from
> GitHub with `Flent 1.1.1-git-2d0cd05` which include the itff runner so
> can use it. And documentation didn't mention this.

I'll be sure to update the documentation before making the new release!

-Toke

___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


[Flent-users] [tohojo/flent] Let run-flent to run gui and mention in README (#126)

2018-01-04 Thread Louie Lu
To make `run-flent` script can run gui directly from source code.
You can view, comment on, or merge this pull request online at:

  https://github.com/tohojo/flent/pull/126

-- Commit Summary --

  * Let run-flent to run gui and mention in README

-- File Changes --

M README.rst (25)
M run-flent (8)

-- Patch Links --

https://github.com/tohojo/flent/pull/126.patch
https://github.com/tohojo/flent/pull/126.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tohojo/flent/pull/126
___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


Re: [Flent-users] [tohojo/flent] Let run-flent to run gui and mention in README (#126)

2018-01-04 Thread Louie Lu
After reading `gui.rst`, this should be polish to only documentation enhance in 
`quick-start.rst`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tohojo/flent/pull/126#issuecomment-355471709___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


Re: [Flent-users] [tohojo/flent] Let run-flent to run gui and mention in README (#126)

2018-01-04 Thread Louie Lu
Closed #126.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tohojo/flent/pull/126#event-1410720351___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


[Flent-users] [tohojo/flent] gui: Fix matplotlib causing runtime error when open file (#127)

2018-01-04 Thread Louie Lu
Commit 46a2154 introduce the bug that completly remove import
matplotlib, and fixed at commit 2d0cd05a. But still have bug when
opening a new data file, it will hang by this:

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 463, in 
_handle_results
task = get()
  File "/usr/lib/python3.6/multiprocessing/connection.py", line 251, in recv
return _ForkingPickler.loads(buf.getbuffer())
  File "/usr/lib/python3.6/site-packages/matplotlib/figure.py", line 1688, in 
__setstate__
mgr = plt._backend_mod.new_figure_manager_given_figure(num, self)
  File "/usr/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py", 
line 1058, in new_figure_manager_given_figure
icon_img = Tk.PhotoImage(file=icon_fname)
  File "/usr/lib/python3.6/tkinter/__init__.py", line 3539, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/usr/lib/python3.6/tkinter/__init__.py", line 3495, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
RuntimeError: main thread is not in main loop

After checking the code, adding one line

matplotlib.use("Agg")

to fix this problem.
You can view, comment on, or merge this pull request online at:

  https://github.com/tohojo/flent/pull/127

-- Commit Summary --

  * gui: Fix matplotlib causing runtime error when open file

-- File Changes --

M flent/gui.py (1)

-- Patch Links --

https://github.com/tohojo/flent/pull/127.patch
https://github.com/tohojo/flent/pull/127.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tohojo/flent/pull/127
___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org


[Flent-users] Now raw data found for series TCP download / TCP upload / Ping (ms) avg?

2018-01-04 Thread Louie Lu
Hi all,

When I palying around with flent, using flent-gui to open a data file
which run with:

 $ flent rtt_fair_var -p totals -H 192.168.177.157 -H
netperf.bufferbloat.net -o file.png -v

It will came with this error output:

No raw data found for series TCP download avg, falling back to
computed values
No raw data found for series TCP upload avg, falling back to computed values
No raw data found for series Ping (ms) avg, falling back to computed values

Is this what test case just not test it, or my config with netperf or
iperf have some problem?


Thanks,
Louie.

___
Flent-users mailing list
Flent-users@flent.org
http://flent.org/mailman/listinfo/flent-users_flent.org