Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2001 15:14:20 +0200
From:      "Patrick O'Reilly" <patrick@mip.co.za>
To:        "Daniel Fairs" <d.fairs@psychmed.co.uk>, "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Dummynet
Message-ID:  <NDBBIMKICMDGDMNOOCAIIENBDLAA.patrick@mip.co.za>
In-Reply-To: <NKEPKAINDOAHFAIDHBHACEPGCHAA.d.fairs@psychmed.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel,

just a quick pointer, I can't elaborate right now...

> I've read about queues in the ipfw man page, and read through
> http://www.iet.unipi.it/~luigi/ip_dummynet/ but I'm afraid I
> don't quite see
> how do define a pipe without specifying addresses or protocols - I want to
> do that in the queue definition.

Pipes and Queues are used to control data flows.  Normal ipfw rules define
which packets gets into which flows.

So, I would do this:
1) Define the pipes I want - their main purpose is to limit bandwidth.
2) Define the queues I want - their purpose is to try to prioritise and
balance traffic within each pipe.
3) Define ipfw rules to select which packets go through which queues (and
hence which pipes).

Something like this:
1) Define a pipe for 45Kbit/s.
2) Define 2 queues attached to pipe 1, one has greater weight than the
other.
3) ipfw add 1000 queue 1 tcp from any to any 25.
   ipfw add 1010 queue 2 tcp from any to any 110.

In this example, SMTP gets queue 1, and POP3 gets queue 2, and you decide
which queue has greater priority, but both SMTP and POP3 share the same
45Kbit/s pipe.

Hope this Helps.
Patrick.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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