back to home

The following are some of the programs I wrote which might be useful to you. Feel free to try them and send me feedback.

Real-Time Web Log Relayer

This tool is designed to replay the web requests according to the time the requests are generated. It consists of two parts: the log replayer itself and a set of scripts to analyze the web log and generate the desired input file expected by the replayer.

Download

    LogReplayer version 0.1.

Manual

    this is a simple manual of the tool.

Since I didn't spend too much time on it, there are still some minor problems. Except that, it is basically feature complete and ready-to-use.


ControlWare

Here is the introduction about ControlWare.

Download ControlWare

    controlware version 0.9

What's Included

Once the source code is unpacked, you can find three subdirectories:

What's Coming Next...

The template and supporting tools will be released soon.

Compile

To compile the runtime library, change into kernel subdirectory, and type make.

To compile the component library, change into lib subdirectory, and type make.

Note:  due to my limited time, I only test it in Linux. It may _not_ be compiled correctly in other systems. Also, you can edit makefile to turn off the debug output by changing the value of CFLAGS.

Tutorial

    Here is a tutorial on how to use ControlWare and extend ControlWare.


Kernel Support for QoS

Here is the introduction about this kernel patch.

Current version is based upon Linux kernel 2.2.15. Next version will be based on kernel 2.4.20 and include several enhancement and optimization.

Download

Compile the kernel

  1. Download Linux kernel 2.2.15 from any kernel mirror, such as: http://www.kernel.org/pub/linux/kernel/
  2. Unpack the kernel using:

tar xfvz linux-2.2.15.tar.gz

This will unpack the kernel into a directory named 'linux'.

  1. Apply the patch using:

host% cd linux
host% tar zxfv patch-2.2.15-netqos.tgz
host% patch -p1 < patch-2.2.15-netqos

  1. Configure and compile the kernel. If you have never done this before, read this HOWTO before you start. This patch adds four options into the 'Networking Options' section:

    Select CONFIG_TCP_FW to enable the classifier and connection forwarding. Select CONFIG_SOCKET_EX to enable the socket-level traffic control. Selecting  the accompanying debug options will cause the kernel dump lots of (Yes, lots of!) debug information and can be checked using dmesg command. Don't enable them unless you notice some unexpected behavior from the kernel.

Compile the user-land tool

  1. unpack the source code

tar xfvz ctrl.tar.gz

  1. type make to compile, 3 executables will be generated: tcpchains, skex and nm.

Documentation

    manual for tcpchains

    manual for skex

    manual for netmeter

    API

Sample Application

    These are some examples adding some QoS capabilities into the legacy servers.

back to home