Re: [LARTC] R2q stuff

2004-06-12 Thread Stef Coene
On Saturday 12 June 2004 00:22, [EMAIL PROTECTED] wrote:
 Hi, im using this script to shape traffic as I want..i get this log on
 the kernel
 Log:

 HTB: quantum of class 10020 is big. Consider r2q change.
 HTB init, kernel part version 3.13
 HTB init, kernel part version 3.13

 How worryed should I be :) ???
Not so much if everything is working like expected.
Maybe this can help:
http://www.docum.org/docum.org/faq/cache/31.html

Stef

-- 
[EMAIL PROTECTED]
 Using Linux as bandwidth manager
     http://www.docum.org/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] HTB theory?

2004-06-12 Thread Dmitry Golubev
Hello,

I have been searching for HTB theory documentation and found two interesting 
sources - Devik's page and docum.org FAQ. In some places they are 
contradictory which make me think that Devik's theoretic document (marked 
actual) is just too old and does not reflect the latest changes. After 
reading http://www.docum.org/docum.org/faq/cache/30.html and others, I feel 
that I do not understand anything ...

Where can I find the current and actual documentation on how HTB3 is working 
(I am interested in in-depth theoretical material)?

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


Re: [LARTC] routing within the same network? is it possible?

2004-06-12 Thread Yemi Fowe
With my little knowledge of TCP/IP, i dont think
routing withing thesame network is possible.
Routing means moving from one network to another.
Thank You
Yemi


n--- Victor Catten [EMAIL PROTECTED] wrote:
 Hello,
 
 Is routing within the same network possible?
 If it is, what configuration should I put for the
 firewall/router shown below? I basically want the
 host debian13 to be able to send packets via a
 multi-homed firewall. I think the multi-homed
 firewall involve some routing.
 
 +---+
 |debian13   |
 |eth0:192.168.0.13  |
 +---+
  |eth0
  |
  |eth0
 +--+
 |firewall/router(linux-box)|
 |which configuration here? |
 +--+
  |eth1
  |
  +--+
  |  |
  |eth0  |eth0
 +---+  +---+
 |eth0:192.168.0.15  |  |eth0:192.168.0.16  |
 |debian15   |  |debian16   |
 +---+  +---+
 
 
 Thank you!
 
 Victor
 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://lartc.org/





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] routing within the same network? is it possible?

2004-06-12 Thread Alan Woodland

Hello,
+---+
|debian13   |
|eth0:192.168.0.13  |
+---+
|eth0
|
|eth0
+--+
|firewall/router(linux-box)|
|which configuration here? |
+--+
|eth1
|
+--+
|  |
|eth0  |eth0
+---+  +---+
|eth0:192.168.0.15  |  |eth0:192.168.0.16  |
|debian15   |  |debian16   |
+---+  +---+
Thank you!
Victor
Sounds like you want to use bridging and ebtables to the firewalling. 
http://bridge.sf.net is probably a good place to start.

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


Re: [LARTC] HTB theory?

2004-06-12 Thread Stef Coene
On Saturday 12 June 2004 13:46, Dmitry Golubev wrote:
 Hello,

 I have been searching for HTB theory documentation and found two
 interesting sources - Devik's page and docum.org FAQ. In some places they
 are
 contradictory which make me think that Devik's theoretic document (marked
 actual) is just too old and does not reflect the latest changes. After
 reading http://www.docum.org/docum.org/faq/cache/30.html and others, I feel
 that I do not understand anything ...
I know some information in the faq pages on docum.org is outdated.  Some 
information is for htb2, other information changed in htb3 (like the max and 
min for quantum).
I had a problem with my faq pages (memory problem with faqomatic), but they 
are working again.  I'm checking and updating all pages (I also converted 
them all to php) and soon I will check the faq pages for errors.

 Where can I find the current and actual documentation on how HTB3 is
 working (I am interested in in-depth theoretical material)?
Htb pages and htb sources.

Stef

-- 
[EMAIL PROTECTED]
 Using Linux as bandwidth manager
     http://www.docum.org/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Script editor using a browser??

2004-06-12 Thread Yemi Fowe
Hello all,
I have a some scripts on my Linux box, i want to be
able to edit it remotely from a browser login into my
server at a particular port number, just like Webmin,
SWAT etc. eg( http://mylinuxaddy:port).
Does any body have idea of how i can acheive this?
I would appreciate your response.
Thanx
--Yemi





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Script editor using a browser??

2004-06-12 Thread Alexis
running a webserver in this port, with basic authentication and a script in php
that read the destination script and put it in a text area for edit, and then
clicking a submit button to save the script again?


- Original Message - 
From: Yemi Fowe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 12, 2004 9:51 AM
Subject: [LARTC] Script editor using a browser??


 Hello all,
 I have a some scripts on my Linux box, i want to be
 able to edit it remotely from a browser login into my
 server at a particular port number, just like Webmin,
 SWAT etc. eg( http://mylinuxaddy:port).
 Does any body have idea of how i can acheive this?
 I would appreciate your response.
 Thanx
 --Yemi





 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/
 ___
 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] routing within the same network? is it possible?

2004-06-12 Thread Alexis
Yes you can.

Think of this.

As this mail says, routing is to move packets between two different networks.
Thats right.
Ill just let aside the theory and all that bored stuff.

Now, very very very very basic, how you define a network?

with a network address and a mask.

How packets gets routed? by the more specific address.

So, 192.168.0.15/32 and 192.168.0.16/32 will be more specific than the lan. so
there will be routing. Layer 2 will be who take the packet and carries it to the
next hop.


So its perfectly legal and believe me that it works if you put a more specific
static for a connected lan.

An example

my connected lan is 192.168.0.0/24

now, i have in 192.168.1.12 a box with 2 interfaces with some connected
addresses from this lan (13,14,15), if this addresses are configured in the
interface, theres no need for routing, because the box accepts arp requests for
13,14,15 and layer 2 will have the information to switch packet to those
addresses.

But, what if those addresses are not configured and are just simple used for nat
(for example), there is no arp request and arp reply for those addresses, so L2
will not know how to reach those destinations.

In this case you can instruct L3 to reach those destinations (yes, routing) like
this

just if youre using iproute2 just type

ip route add 192.168.0.13/32 via 192.168.0.12
ip route add 192.168.0.14/31 via 192.168.0.12

when a request for 13,14,15 need to be passed, there is no arp entry for those
addresses, so it will check L3 information that is the routing table in this
case, it will find 192.168.0.12/32 as next hop for those addresses, so it will
check for a arp entry for 192.168.0.12 (that really exists) and will switch the
packet with

destination mac  the one that belongs to 192.168.0.12
destination ip address  13,14,15

hope this helps



- Original Message - 
From: Yemi Fowe [EMAIL PROTECTED]
To: Victor Catten [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, June 12, 2004 9:39 AM
Subject: Re: [LARTC] routing within the same network? is it possible?


 With my little knowledge of TCP/IP, i dont think
 routing withing thesame network is possible.
 Routing means moving from one network to another.
 Thank You
 Yemi


 n--- Victor Catten [EMAIL PROTECTED] wrote:
  Hello,
 
  Is routing within the same network possible?
  If it is, what configuration should I put for the
  firewall/router shown below? I basically want the
  host debian13 to be able to send packets via a
  multi-homed firewall. I think the multi-homed
  firewall involve some routing.
 
  +---+
  |debian13   |
  |eth0:192.168.0.13  |
  +---+
   |eth0
   |
   |eth0
  +--+
  |firewall/router(linux-box)|
  |which configuration here? |
  +--+
   |eth1
   |
   +--+
   |  |
   |eth0  |eth0
  +---+  +---+
  |eth0:192.168.0.15  |  |eth0:192.168.0.16  |
  |debian15   |  |debian16   |
  +---+  +---+
 
 
  Thank you!
 
  Victor
  ___
  LARTC mailing list / [EMAIL PROTECTED]
  http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
 http://lartc.org/





 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/
 ___
 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] routing within the same network? is it possible?

2004-06-12 Thread Martin Volf
Victor Catten wrote:
Hello,
 Is routing within the same network possible?
If it is, what configuration should I put for the firewall/router shown
 below? I basically want the host debian13 to be able to send packets via
 a multi-homed firewall. I think the multi-homed firewall involve some
 routing.
+---+
|debian13   |
|eth0:192.168.0.13  |
+---+
 |eth0
 |
 |eth0
+--+
|firewall/router(linux-box)|
|which configuration here? |
+--+
 |eth1
 |
 +--+
 |  |
 |eth0  |eth0
+---+  +---+
|eth0:192.168.0.15  |  |eth0:192.168.0.16  |
|debian15   |  |debian16   |
+---+  +---+
Hello,
see http://lartc.org/howto/lartc.bridging.proxy-arp.html or try this:
on router:
ifconfig eth0 192.168.0.1 netmask 255.255.255.255 -broadcast
ifconfig eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
route add -host 192.168.0.13 device eth0
echo 1 /proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 /proc/sys/net/ipv4/conf/eth1/proxy_arp
echo 1 /proc/sys/net/ipv4/ip_forward
on debianXY:
ifconfig eth0 192.168.0.XY netmask 255.255.255.0 broadcast 192.168.0.255
HTH,
--
Martin
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Script editor using a browser??

2004-06-12 Thread Yemi Fowe
Thanx alex 4 your detailed response, i would try this
method, and give u feed back.
Yemi

--- Alexis [EMAIL PROTECTED] wrote:
 running a webserver in this port, with basic
 authentication and a script in php
 that read the destination script and put it in a
 text area for edit, and then
 clicking a submit button to save the script again?
 
 
 - Original Message - 
 From: Yemi Fowe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 12, 2004 9:51 AM
 Subject: [LARTC] Script editor using a browser??
 
 
  Hello all,
  I have a some scripts on my Linux box, i want to
 be
  able to edit it remotely from a browser login into
 my
  server at a particular port number, just like
 Webmin,
  SWAT etc. eg( http://mylinuxaddy:port).
  Does any body have idea of how i can acheive this?
  I would appreciate your response.
  Thanx
  --Yemi
 
 
 
 
 
  __
  Do you Yahoo!?
  Friends.  Fun.  Try the all-new Yahoo! Messenger.
  http://messenger.yahoo.com/
  ___
  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/





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] borrowing

2004-06-12 Thread victor
I have
- HZ - recompiled to 1000
- class nr 1 -  2kbit ceil 1024kbit
- class nr 2 -  16kbit ceil1024kbit
- prio 3 to all classes
But class 1 works with 20kbit/sec and class 2 with 60kbit/sec.
The proportion does not seems right.
Thank you.
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] borrowing

2004-06-12 Thread victor
I have
- HZ - recompiled to 1000
- class nr 1 -  2kbit ceil 1024kbit
- class nr 2 -  16kbit ceil1024kbit
But class 1 works with 20kbit/sec and class 2 with 60kbit/sec.
The proportion does not seems right.
Thank you.
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] HTB theory?

2004-06-12 Thread Dmitry Golubev
OK then, could you tell if I understand correctly and correct me if not?

1. In order of priority, we satisfy all leaf classes' rates (while the class 
is green)
2. When the leaf classes' rate is reached (all the leaf classes are yellow), 
borrow the unused speed from parent classes if they have something to give 
(if they are not red). In this case, each leaf class is equal to others 
until their ceil is met or until they will have no parent to borrow from... 
Or maybe their level matters?

I also think that:
1. Until all leaf classes' rate is met we even do not check anything else 
(including ceil of parent classes)
2. the root queue is unlimited feed for the classes which are attached to it 
directly

One think I do not understand neither for SFQ nor for HTB (please explain for 
both) - how can we maintain fairness in case of differently-sizes packets. As 
I understand, one packet is atomic unit, and interface is requesting not more 
and not less than one packet. Now given a quantum for each leaf class in HTB 
or the same for SQF (are they different in this process?) of 1500 bytes - do 
they wait for more packets from one subclass (asking it once again in the 
next turn, of course, if they have nothing to send, we switch to the 
next...)? And if one subclass is providing 1500 packets in each turn, and 
another subclass is providing 800-byte packets - will they be equal on the 
amount of traffic they are allowed to send in case the real channel is 
smaller than the sum of their effective ceil values?

(I am preparing for a seminar in which I will tell people how it works, so I 
need to know this perfectly :))) )

Thanks,
Dmitry

On Saturday 12 June 2004 15:39, Stef Coene [EMAIL PROTECTED] wrote:
 On Saturday 12 June 2004 13:46, Dmitry Golubev wrote:
  Hello,
 
  I have been searching for HTB theory documentation and found two
  interesting sources - Devik's page and docum.org FAQ. In some places they
  are
  contradictory which make me think that Devik's theoretic document (marked
  actual) is just too old and does not reflect the latest changes. After
  reading http://www.docum.org/docum.org/faq/cache/30.html and others, I
  feel that I do not understand anything ...

 I know some information in the faq pages on docum.org is outdated.  Some
 information is for htb2, other information changed in htb3 (like the max
 and min for quantum).
 I had a problem with my faq pages (memory problem with faqomatic), but they
 are working again.  I'm checking and updating all pages (I also converted
 them all to php) and soon I will check the faq pages for errors.

  Where can I find the current and actual documentation on how HTB3 is
  working (I am interested in in-depth theoretical material)?

 Htb pages and htb sources.

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