Re: [LARTC] IMQ patch

2003-03-31 Thread Jay Wineinger
 Do you have the iptables source installed in /usr/src/iptables-1.2.6a 

 Iptables is in two parts. Kernel space and userspace. The
 imq-2.4.18.diff-10 patch is for kernel space only. This one is for
 userspace.

ahh, that clears it up.  Will try again in a couple hours. thanks guys

Jay

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] IMQ patch

2003-03-30 Thread Jay Wineinger
Hey guys,
I want to use IMQ with netfilter support.  I know that I need to patch
the kernel (2.4.20) to get this to work properly.  Ive tried a number of
things so far and I cant seem to get to the the IMQ target support for
netfilter to appear in the make menuconfig.  Anyways, could someone post
directions and links to the patches I need to apply to get this?

Thanks,
Jay

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Bridging

2003-02-24 Thread Jay Wineinger
Not really contributing to the discussion on MAC forwarding, but Im
wondering about the maturity of linux bridging.  I looked at the sourceforge
page Martin posted and it seems that the last updates were made duing 2002,
nothing in 2003 yet.  Does this mean that bridging is fairly stable and
complete or that development is just going slow?  Just curious.

Jay

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] real time tc graphs

2003-02-19 Thread Jay Wineinger
Yes, I can grab the class from there, but when I try to load the java demo
page on http://home.docum.org/qos/, both of the applets still give the
error.

- Original Message -
From: Stef Coene [EMAIL PROTECTED]
To: Jay Wineinger [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 12:33 PM
Subject: Re: [LARTC] real time tc graphs


 On Wednesday 19 February 2003 03:45, Jay Wineinger wrote:
  Im getting class not found errors on the java demo.
  java.lang.ClassNotFoundException:  CounterScroll.class
 Can you find the file
 http://home.docum.org/qos/graph/CounterScroll.class

 Stef

 --

 [EMAIL PROTECTED]
  Using Linux as bandwidth manager
  http://www.docum.org/
  #lartc @ irc.oftc.net


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] API using cbq / tc ?

2003-02-10 Thread Jay Wineinger
That isnt completely accurate.  rrdtool can take data at any interval, you
just need to specify it when you create the rrd file.  Personally, I get
snmp data on 2 interfaces every 10 seconds and store them in two rrd files,
and I have a php page that generates new graphs every time I view them (I
migrated away from mrtg completely and just use rrd to store and graph).
This was, the only consistent load on the box is from the snmp gathering
(which is a local connection).  The graph script runs only once every time
the page is viewed, so the load is quite low there. however, I do agree that
doing it all on the client would be better, but for a distributed viewing, a
webpage makes a nice interface.

jay

- Original Message -
From: Stef Coene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 3:59 AM
Subject: Re: [LARTC] API using cbq / tc ?


 On Monday 10 February 2003 02:58, [EMAIL PROTECTED] wrote:
  Cool. As an MRTG idiot, I am going to ask this question,
  why can't it provide realtime stats ? You mean MRTG
  does not chart real time graphs ?
 Mrtg is not designed for that.  Mrtg uses rrdtool to generate the graphs.
 You give the rrdtool each 5 minutes a number.  This number is stored in a
rrd
 file.  And you can generate a graph with the data in the rrd file.

 So it's for long-term graphing.  If you want to do real time graphing, you
 need new data each second.  And you need to generate the graph on the
client
 side so you don't need to load each second a new graph from the server.



___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Measuring throughput

2003-02-06 Thread Jay Wineinger
I personally like using rrdtool with snmp.  Its a bit more difficult to
setup than some tool like iptraf, but it gives you a nice graph of whats
going on.  It also keeps a set history of data so you can view trends, etc.

Jay

- Original Message -
From: Kenneth Porter [EMAIL PROTECTED]
To: LARTC List [EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 1:29 PM
Subject: [LARTC] Measuring throughput


 I'm running a game server which uses a lot of UDP traffic on a 4 Mbps
 connection. I'd like to figure out how much of that I'm really using
 (inbound vs. outbound) and I'd like to verify my bandwidth cap.

 The host also runs a web and FTP server and I'm running wshaper to keep
 those from hurting game traffic. But I'm concerned that it might be
 artificially capping my bandwidth and that I might need to tweak it.

 I've got ntop running (http://matureasskickers.net:3000/) and it tells me
 that in a massive game last night (50 players) I used 2.2 Mbps, but I
don't
 know whether that's inbound, outbound, or the sum of both. Is there
another
 tool better for this measurement?

 I'd like to simulate lots of game traffic by flooding UDP packets out of
 the box (say, to my home system) to verify the bandwidth cap. What tool
 would be good for doing that? (The Slapper worm doesn't count! ;))
 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] marking

2003-01-28 Thread Jay Wineinger
Ok, that KPTD helps a bit.  Question about that though, it seems that a
forwarded packet will have 3 chances at getting marked (PRE,FORWARD,POST);
is that correct?  Similarly, a packet originating on the QoS box will have 2
mark chances (OUTPUT and POST).   If thats correct, is there any advantage
to using one or the other. I dont see why you wouldnt just do everything in
POSTROUTING since all packets go there eventually according to the diagram.

btw, thanks for all the help

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] marking

2003-01-27 Thread Jay Wineinger
 It's not clear to me how your setup look like and what you want to do.

 Stef


Ok, what I want to do is setup 4 or 5 classes for traffic headed out my
external interface(eth0).  They should be something like interactive (icmp,
ssh, etc), mail (smpt,pop,imap), web (http/https), and bulk.   My problem
right now is figuring out the correct configuration so that I do not limit
traffic that is only destined FOR the QoS box, which also does DHCP, nat,
samba, etc for the internal nat'd subnet (eth1).  I also run a squid caching
proxy server for the network's http/https connections.

Im having trouble figuring where the correct place to mark each packet would
be. Do i need to do some in -t mangle PREROUTING or INPUT or FORWARD?  Im
confused as to how to differentiate between packets destined for the outside
world (out eth0) and those that are staying on the internal network.

This is what Ive pulled out of my butt for my qdisc setup:

# Create new root qdisc on eth1 and parent for everything
$TC qdisc add dev eth1 root handle 1: htb default 2022
$TC class add dev eth1 parent 1: classid 1:1 htb rate 95mbit ceil 95mbit

# Create parent class for outbound
$TC class add dev eth1 parent 1:1 classid 1:10 htb rate 350kbps burst 2k
ceil 350kbps
  # Create subclasses on outbound traffic for interactive,mail,www,bulk
  $TC class add dev eth1 parent 1:10 classid 1:101 htb rate 50kbps burst 2k
prio 0[interactive]
  $TC class add dev eth1 parent 1:10 classid 1:102 htb rate 50kbps burst 2k
prio 1[mail]
  $TC class add dev eth1 parent 1:10 classid 1:103 htb rate 50kbps burst 5k
prio 2[ www is limited farther upstream anyway =(   ]
  $TC class add dev eth1 parent 1:10 classid 1:104 htb rate 70kbps burst 2k
prio 3 ceil 125kbps[bulk]

# Create parent class for internal subnet traffic
$TC class add dev eth1 parent 1:1 classid 1:20 htb rate 60mbit ceil 90mbit
  # Create subclasses on internal traffic for interactive and bulk traffic
  $TC class add dev eth1 parent 1:20 classid 1:201 htb rate 150kbps burst 2k
prio 0[local interactive]
  $TC class add dev eth1 parent 1:20 classid 1:202 htb rate 50mbit prio 1
ceil 55mbit
# Create subclasses on internal bulk traffic (1:202) for www and other
$TC class add dev eth1 parent 1:202 classid 1:2021 htb rate 25mbit prio
0[local webserver traffic]
$TC class add dev eth1 parent 1:202 classid 1:2022 htb rate 25mbit prio
1[bulk]

Am i going about this all wrong?

thanks for any help/suggestions
jay





___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



[LARTC] marking

2003-01-26 Thread Jay Wineinger
Im kind of confused as to where I need to mark packets with my setup.  I
have a linux router serving an internal subnet (eth1) whose http/https
traffic goes through a squid proxy on the same box.  Can someone tell me
where I would need to insert marking rules so that all packets get properly
filtered, whether sourced from the internal subnet or the local server?
Also, are there any restrictions on what values are used for marking? (ie,
do they have to be powers of 2 or anything?).


Thanks,
Jay

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



[LARTC] HTB problem

2003-01-23 Thread Jay Wineinger
Hi,
Ive been looking at tinkering with the linux traffic control stuff
lately and decided to try out the htb qdisc.  My setup is as follows:

2 interfaces: eth0 goes to internet, and eth1 goes to a NAT'd subnet. eth0
has a 7mbit link, but only a 4.5 mbit link to the internet while eth1 is a
100 mbit link to the internal subnet.  The box that is doing the routing
(and tc soon, hopefully) acts as webserver,dhcp,firewall,NAT,and fileserver
for the internal subnet.  The internal network (at a college) has heavy
kazaa and other filesharing usage over the internet.   I want to use the
lartc utilities to make the bulk traffic from filesharing,etc to be the
lowest priority and have interactive (ssh), mail, and http be higher prios
(in that order).

Anyway, I dont want to limit the traffic that is going TO the server only,
ie. people taking files off my server, and I dont really care who is
creating the traffic, I just want priorities  on types of traffic.  That
being the case, I decided to do the shaping on the eth0 interface.  Ive
setup rules in iptables to mark the different kinds of traffic.

With that done, I created the root htb qdisc  with the following:
$TC qdisc add dev eth0 root handle 1: htb default 20

However, I get an error about illegal rate when I try to create a class
with:
$TC class add dev eth0 parent 1:1 classid 1:10 htb rate 30kpbs burst 2k
prio 1 ceil 100kbps

I wondered if my tc version wasnt up-to date enough to work with htb, but it
was the one downloaded from the htb homepage at
http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz

# ./tc -V
tc utility, iproute2-ss991023

is there anything else that might need updating, or is my syntax wrong?  any
suggestions about my setup would be welcome as well, since this is my first
attempt at this

thanks,
jay

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] HTB problem

2003-01-23 Thread Jay Wineinger
grr, I thought i had checked everything close.  Thanks =)

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/