On Tue, 16 Nov 1999, Alan Smithee wrote:
> I built polygraph 2.2.4 (on Linux 2.2.13) and have been using
> it to test our proxy server. I would like to use a WAN emulator
> like DummyNet between polyclt and the proxy. Also between
> the proxy and polysrv.
>
> How do I use the DummyNet support built in polygraph 2.2.4?
As you probably know, core Polygraph routines do not know anything about
DummyNet. All WAN emulation is essentially external to Polygraph robots
and servers. The piper tool just makes it easier for you to configure
network pipes (just like aka tool makes it easier to configure IP
aliases).
> Is there any documentation on how to use the piper tool?
There is no detailed documentation yet, but the usage is extremely
straightforward:
usage: ./piper [--option ...] [config_file_name]
options:
help list of options
config <file> configuration file name
cfg_dirs <list> directories to search for cfg files
rng_seed <int> r.n.g. seed
So all you need to do is to specify a PGL configuration file, just like
you are doing it for polyclt and polysrv. For example:
root> ./piper --cfg_dirs ../workloads/include ../workloads/polymix-2.pg
Note that you must run piper as a root.
Workloads/polymix-2.pg has an example on how to configure and use pipes.
The Pipe PGL type itself is documented on the Web and there are many
examples in workloads/include/pipes.pg.
The most complex part is to configure the kernel to use DummyNet
efficiently. We will announce our FreeBSD configuration and patches soon
-- getting it out is our top priority now. Meanwhile, you can get
familiar with DummyNet by reading dymmynet(4) manual page, DummyNet Web
site, and configuring the kernel on your own following the manual page
instructions.
Finally, when you get pipes working, I recommend that you start with a
very simple configuration: one PolyMix-2 robot, one server, one
unidirectional 56Kbps pipe. Then add other components as you get better
understanding on what is going on. IMO, predicting or interpreting the
effects of WAN emulation is not trivial, and gradual approach works the
best.
HTH,
Alex.
P.S. Our experience and instructions are based on FreeBSD 3.1. I heard
that DummyNet was ported to Linux though. I do not know if piper
will work on Linux "as is". We will try to fix it if it does not.
This archive was generated by hypermail 2b29 : Tue Jul 10 2001 - 12:00:09 MDT