[LARTC] Complex Traffic shaping setup
Padam J Singh
padam.singh@inventum.cc
Fri Feb 18 12:57:26 CET 2005
This is a multi-part message in MIME format.
--------------020101010605050208050304
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Times New Roman, Times, serif">Hi!<br>
<br>
<br>
I have the following setup using iproute2: <br>
<br>
<font face="Courier New, Courier, monospace">========<br>
| Root |<br>
========<br>
|<br>
| ===============<br>
------------| Box Level 1 |<br>
| ===============<br>
|<br>
|</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ------------| Box Level 2 |<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> | ===============<br>
|<br>
|<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> |</font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ------------| Users |<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> | <br>
| ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">------------| User 1 |<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">| ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">|<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">|</font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">------------| User 2 |<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">| =============== <br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">|<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> </font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">|</font></font></font><font
size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"> ===============<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">------------| User 3 |<br>
</font></font></font><font size="-1"><font
face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace">
===============</font></font></font><br>
<font size="-1"><font face="Times New Roman, Times, serif"><font
face="Courier New, Courier, monospace"><br>
</font></font></font><br>
I am using HTB for each node, simply because it supports burst mode.<br>
<br>
There are box level classes (top level classes) that might limit
bandiwdth based on protocols (http, smtp etc)<br>
Then there are users classes which rate limit each user to a specific
rate.<br>
<br>
Each Box Level and User Classes have associated Qdiscs as well.<br>
<br>
The issue is that HTB seems to be rate limiting only if I attach
filters at the root (1:).<br>
<br>
Since classification for box level classes may also match more specific
user filters are well, one of the two things happen:<br>
<br>
1. If the prio of the filters for Box level is higher or equal than
that of Users, packets are only sent to the box level class, and since
the rate at box level class is generally higher, the user starts
exceeding his limit.<br>
2. If the prio of the User filter is higher, packets matching the user
filter are never sent to the Box level classes, making the box level
rate for a particular protocol exceed the required for all users put
together.<br>
<br>
Is there a solutions to this issue? I am unable to really find a
solution since filters can only be applied to the root!<br>
<br>
Thanks in advance!<br>
Padam Singh.<br>
</body>
</html>
--------------020101010605050208050304
Content-Type: text/x-vcard; charset=utf-8;
name="padam.singh.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="padam.singh.vcf"
begin:vcard
fn:Padam Singh
n:Singh;Padam
org:Inventum Technologies Pvt. Ltd.
adr:SDA Commercial Complex;;C-17;New Delhi;Delhi;110016;India
email;internet:padam.singh@inventum.cc
title:Sr. Solutions Architect
tel;work:+91-11-55650222
tel;fax:+91-11-26518800
x-mozilla-html:TRUE
url:http://www.inventum.cc
version:2.1
end:vcard
--------------020101010605050208050304--
More information about the LARTC
mailing list