File: example.txt

package info (click to toggle)
wrr 20021019-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 308 kB
  • ctags: 2
  • sloc: sh: 234; perl: 85; makefile: 5
file content (54 lines) | stat: -rw-r--r-- 2,097 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Introduction
============
This document describes the example setup included in the example 
directory of the distribution.

The setup can be used either on an ethernet bridge, on a router, or
on a masqgrading firewall. You will have to setup the bridge/router/whatever
up yourself. After you have done this and packet forwarding is working, you
can use the example setup here to add shaping functionality. The example will 
generate files containing statistics, so if you setup a http server on the 
machine which can access these files then local machines can see these 
statistics.


What you need
=============
You will need the following to make the example scripts work:

  * A Linux 2.2 or 2.4 kernel with:
       * WRR
       * CBQ
       * SFQ
       * u32 classifier
    The author have used 2.2.18 and 2.4.19 with success. 
    Other kernels may or may not work.    
  * iproute+tc with WRR support compiled in.
    You can download this program from ftp://ftp.inr.ac.ru/ip-routing/
  * Wipl v.020601.
    It might work with other versions to. This program is
    downloadable from http://wipl-wrr.sourceforge.net


Installing the example
======================
The system is designed so that you should get something that is working
by:

  1) Installing the required programs mentioned above. Also refer to the file
     install.txt.
  2) Copy the files from the example directory into your system.
  3) Edit the file /etc/wrr/config.sh  
  6) Make your system startup scripts call the program /etc/wrr/start.sh as
     the last thing after system bootup. Note that this script never terminates
     and writes debug information to stdout. So you might want to start it in 
     the background and you might want to redirect the output to a log file.
     I have placed the following commands in the end of /etc/rc.d/rc.local:
       
       cd /etc/wrr
       mv -f /var/log/wrr /var/log/wrr-old
       ./start.sh > /var/log/wrr 2>&1  &

       
--------------------------------------------------------------------
This document was written by Christian Worm Mortensen, cworm@it-c.dk