sorry, missed misc@ when replying...

On 18 May 2008 at 19:16, Jesus Sanchez wrote:

> Martin Gignac escribis:
> >> I will try, thanks for the info. Just to make sure I'm not dealing
> >> with a bug can anyone try this??... just set a global limit to a
> >> interface ($int_if), then do a ftp transfer to the gateway ( the
> >> one with the PF+ALTQ) and time the put and get transfers with a
> >> large file.
> >>
> >> When I get a download time of 3 minutes, the upload is of 10 
> >> seconds... :s
> >
> > Hi,
> >
> > Just a shot in the dark here. Maybe I totally misunderstood your
> > sentence:
> >
> >   "When I get a download time of 3 minutes, the upload is of 10
> >   seconds..."
> >
> > Did you mean:
> >
> >   "_While_ I get a download time of 3 minutes, the upload is of 10
> >   seconds..."
> >
> > If that's what you meant, isn't that behavior normal? Considering
> > that (as the PF user's guide puts it):
> >
> >   "Note that queueing is only useful for packets in
> >   the outbound direction. Once a packet arrives on an interface in
> >   the inbound direction it's already too late to queue it -- it's
> >   already consumed network bandwidth to get to the interface that
> >   just received it."
> >
> > Sorry if my question is beside the point! :o)
> > -Martin
> >
> Maybe you're right with the PF user's guide, anyway I explain better
> to avoid confussions:
> 
> [Joe PC] -- [OpenBSD box] -- Internet,
> 
> lets take away the internet, only the Joe - box thing is the matter.
> 
> OpenBSD is doing nat as explained on my pf.conf in the original post
> of this thread.  The OpenBSD box also makes of FTP server, but I want
> a limit of 100Kbs (simetrical 100Kbs) speaking of bits, and not bytes.
>  So I do the needed rules on pf.conf to make Joe get only 100Kbs of
> the interface in OpenBSD box serving Joe PC.
> 
> If, from Joe PC, I get a file by ftp from the OpenBSD box, I get
> exactly what I want, the 100Kb limit. (at the same time I'm not doing
> anything with the net, like browsing or getting mail...)
> 
> If, from Joe PC, I put a file by ftp to OpenBSD box, then the problem
> appears, and the speed ups in a factor of 40x. If I change the
> bandwidth value on altq rule of pf.conf, then the speed of put a file
> on OpenBSD box also changes, but is 40 times more speed. I mean, I
> want simetrical 100Kbs limit on the interface to Joe PC, can I have
> this setting?

Not easily. As Martin pointed out, pf can only control outbound 
bandwidth, i.e. from the OpenBSD box out to Joe and not the other way
around. So any control applied to the opposite direction is indirect.
That is you can slow down most TCP protocols (such as FTP) by slowing
down the ACKnowledgements of the received packets. But of course the 
ACK
packets do not use nearly as much bandwidth as the data packets they 
are
acknowledging. The 40x ratio you have observed sounds quite reasonable
given header overheads. So, if you want to try to control Joe's upload
bandwidth you will need to set up a special very slow queue for the FTP
ACK packets.

> 
> I hope not to be making noise in the mail list.
> 
> Thanks for your time.
>  -Jesus
> 
> 


------- End of forwarded message ---------------------------------------
-------------------------
System Administrator                    [EMAIL PROTECTED]
Bitwise Internet Technologies, Inc.
22 Drydock Avenue                     tel: (617) 737-1837
Boston, MA 02210                      fax: (617) 439-4941

Reply via email to