Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2005 15:37:40 +0100
From:      Miguel Mendez <flynn@energyhq.es.eu.org>
To:        brianjohn@fusemail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can I set priorities for file transfers
Message-ID:  <20050118153740.30aab22d.flynn@energyhq.es.eu.org>
In-Reply-To: <3659.209.87.176.132.1106058238.fusewebmail-19592@www.fusemail.com>
References:  <3659.209.87.176.132.1106058238.fusewebmail-19592@www.fusemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Tue__18_Jan_2005_15_37_40_+0100_kBYSlIJaMsm7ZKot
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Tue, 18 Jan 2005 08:23:58 -0600 (CST)
"Brian John" <brianjohn@fusemail.com> wrote:

Hi,

> Hello,
> I have (I think) kind of a unique question.  I leave my home computer
> on all day and transfer and share files via a P2P application. 
> However, sometimes I like to ssh in from work and transfer files
> between my work PC and my home PC via scp.  Right now it is really
> slow because it is transferring so much with the P2P apps, that it
> uses up all of my bandwidth.  Is there any way that I can put a
> priority on this so that it gives me the majority of my bandwidth when
> I want to use scp?

The first thing I'd do is throttle the upload on your p2p program, so
you don't eat all your b/w. You don't mention which p2p it is, but amule
let's you do it and some BitTorrent clients have the option too.

Then you could use QoS, either using IPFW or PF. With PF I'd prioritize
empty ACKs and then create a queue for ssh with guaranteed b/w. There
are plenty of PF tutorials and FAQs out there with examples. Daniel's
page has a lot of info on PF (http://www.benzedrine.cx/pf.html). Note
that PF is a FreeBSD 5.x-only feature. It's been ported to NetBSD and
DragonFlyBSD as well, and it's part of OpenBSD.

Cheers,
-- 
Miguel Mendez <flynn@energyhq.es.eu.org>
http://www.energyhq.es.eu.org
PGP Key: 0xDC8514F1


--Signature=_Tue__18_Jan_2005_15_37_40_+0100_kBYSlIJaMsm7ZKot
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFB7R83nLctrNyFFPERAgvkAJ4xaWw/N0/MPGZOZyRCCGZld2nA7wCfWAQQ
0OpCNRGB0/MxP0gBJ5iY2zw=
=TLJN
-----END PGP SIGNATURE-----

--Signature=_Tue__18_Jan_2005_15_37_40_+0100_kBYSlIJaMsm7ZKot--



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