Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Limitting download bandwidth from the client side
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Thu Jul 22, 2004 1:41 pm    Post subject: Limitting download bandwidth from the client side Reply with quote

For the networking gurus :)

Here's the problem: Australian broadband is REALLY expensive, and
they throttle your download speeds back to half modem (28kbps) if you
download over some obscenely small download limit. The problem I am
encountering is that the throttling done by my ISP seems to be rather
agressive, and so instead of limiting bandwidth it actually kills off requests
for things that take anything more than 10 seconds or so to fetch, including
Gentoo forum posts with more than 10 replies. Web pages with large amounts
of pictures, gentoo distfiles, they all timeout after a few seconds of being
throttled on the server side.

Since 28Kbps is about 3Kbytes per second, I can use 'wget --limit-rate=3k'
to fetch things and it works perfectly, as wget isn't requesting more than
my ISP allows, and so all the packets get through. I would love some
method of doing this for ALL network apps, not just wget, so loading web
pages and so on is not an iterative process of 'stop refresh, stop refresh'.

I'm using a wireless card and have tried experimenting with setting the
bitrate, however the card doesn't seem to want to accept something as low
as 3Kbps. Also, My home network has a number of Macs and I also run
Windows every now and then, so a global solution would be excelent.
Perhaps something at the local router level?

Oh and at $50 a month for only a Gb, upgrading the plan is not an option :)
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
cold_flame
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jun 2003
Posts: 88
Location: Australia

PostPosted: Thu Jul 22, 2004 1:45 pm    Post subject: Reply with quote

OT

sorry man i know this doesn't really solve your problem, but take a look at tpg coz i get unlimited download, at only $60/month

it's not as fast as cable, but the modems are relatively well supported (look here for adsl solutions)

hope you get a more on topic answer!
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Thu Jul 22, 2004 5:16 pm    Post subject: Reply with quote

cold_flame wrote:
Perhaps something at the local router level?

What are you using for your Internet gateway?

cold_flame wrote:
Oh and at $50 a month for only a Gb, upgrading the plan is not an option :)

They charge you $50/month and only allow you to download a GB of data?? Wow.
Back to top
View user's profile Send private message
NightSpirit
n00b
n00b


Joined: 27 Sep 2003
Posts: 71
Location: North London, UK

PostPosted: Thu Jul 22, 2004 7:56 pm    Post subject: Reply with quote

I guess I am lucky to be in the UK where my cable modem supplier has no cap on amount downloaded :)

To limit your sharing (assuming you are running Linux on your router/gateway) is to use a combination of net-firewall/iptables and sys-apps/iproute2 which will allow you to set the bandwidth limitations for your connection.

I warn you tho that it is pretty complicated, atleast it is for me. There is a fair bit of documentation about (search for tc qdisc and iproute etc) but unfortunately I don't have any links to recommend.
_________________
Currently playing with Applescript ... hmmm
Back to top
View user's profile Send private message
really
Guru
Guru


Joined: 27 Aug 2002
Posts: 430
Location: nowhere

PostPosted: Thu Jul 22, 2004 10:35 pm    Post subject: Reply with quote

http://www.knowplace.org/shaper/
http://lartc.org/howto/

its though to control download bandwidth on a client.
its not like youll prevent the other end to hit you with more than you can handle :)

sooo.. australians are thouchy when it comes to ddosing.
dont tell the script kiddies!

get a better agreement with your isp :/

i posted a bit on the subject here not so long ago search the forums for iproute2, tc, "tc qdisc add dev eth0 root"...
_________________
NoManNoProblem

Get lost before you get shot.
Back to top
View user's profile Send private message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Fri Jul 23, 2004 12:18 am    Post subject: Reply with quote

devon wrote:
cold_flame wrote:
Perhaps something at the local router level?

What are you using for your Internet gateway?


It's a Netgear Wireless Router, can't remember the model number at
the moment.

NightSpirit wrote:
To limit your sharing (assuming you are running Linux on your router/gateway) is to use a combination of net-firewall/iptables and sys-apps/iproute2 which will allow you to set the bandwidth limitations for your connection.


That'd be ok for my machine, but my box isn't the gateway, and i'd like
the limit to be universal for the entire network. I'll have a look at
iptables/iproute2 though.
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum