Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2004 09:58:05 +0100
From:      Eric Masson <e-masson@kisoft-services.com>
To:        Max Laier <max@love2party.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: gif4) & AltQ
Message-ID:  <86fz31lz6q.fsf@srvbsdnanssv.interne.kisoft-services.com>
In-Reply-To: <200411222100.26580.max@love2party.net> (Max Laier's message of "Mon, 22 Nov 2004 21:00:18 %2B0100")
References:  <867joeau4r.fsf@srvbsdnanssv.interne.kisoft-services.com> <20041122182331.GB20652@odin.ac.hmc.edu> <200411222100.26580.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Max" == Max Laier <max@love2party.net> writes:

Hello Max,

 Max> Very true. It's more worthwhile to classify on gif and queue on
 Max> the real interface.

How would you achieve this setup ?

I can only think about this way (assuming gif0 tunnel packets flow thru
ep1) :

ext_if="ep1"
tunnel_if=gif0"

altq on $ext_if bandwidth 2Mb cbq queue { dflt, developers, marketing }
queue dflt bandwidth 5% cbq(default)
queue developers bandwidth 80%
queue marketing  bandwidth 15%

pass out on $tunnel_if from 192.168.0.0/24 to any keep state queue developers
pass out on $tunnel_if from 192.168.1.0/24 to any keep state queue marketing

But in this setup classification is made on unencapsuled packet, and
shaping is done on encapsulated packet. Does this mean that the mbuf tag
set by classification rules survives the gif encapsulation process ?

 Max> Queueing on gif will only work in rate-limiting mode.

Ok.

 Max> That's true as well. Take a look at the patches on:
 Max> http://people.freebsd.org/~mlaier/ALTQ_driver/ and the altq(9)
 Max> manpage to learn how to modify a driver. It's more or less looking
 Max> for if_snd and modifying it according to the rules in altq(9).

I'll have a look.

 Max> Not sure how *exactly* gif(4) works, but I'll put it on my list
 Max> (just not a high priority, right now).

Ok, thanks to you and Brooks for explanations.

Regards

Eric Masson

-- 
 C'est pas avec la censure que tu vas censurer les censeurs.
 -+- JL in GNU : Las, censeurs pour l'échafaud -+-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fz31lz6q.fsf>