Slashdot Mirror


Partitioning Bandwidth Using Mac OS X?

dasboy has this query: "I was wondering if anyone knew of away to partition bandwidth amongst a group of computers running Mac OS X? I have a [few Macintosh machines] at home all on the same LAN and all on the same Internet connection. One of these machines is used by my daughter when she's home from school. The biggest problems happen when she begins downloading large files (I'll let you guess what she downloads <grin!>). I was wondering if there are any cool BSDish ways of constricting the amount of bandwidth her computer uses?"

27 of 61 comments (clear)

  1. Eep! by NegativeK · · Score: 4, Funny

    I'll let you guess what she downloads

    I'll leave it up to everyone else with perverted minds to guess what _I_ thought of when I first read that.

    I feel like a bad person now.

    --
    This statement is false.
    1. Re:Eep! by Ponty · · Score: 3, Funny

      No, it's clearly illustrated recipes. Everyone knows that that's what God intended the Internet for. And the illustrations are very large. Where's your mind? Now I'm going to go enjoy my weiner that I've been working on all afternoon.

    2. Re:Eep! by joe52 · · Score: 4, Funny

      No, it's clearly illustrated recipes. Everyone knows that that's what God intended the Internet for. And the illustrations are very large.

      Recipes for making babies...

  2. Guess what she's downloading? by spooje · · Score: 2, Funny

    It was porn huh?

    --
    Tea and kung-fu. Life is good. Rising Phoenix
  3. Porn :rolleyes: by isorox · · Score: 4, Funny

    The biggest problems happen when she begins downloading large files (I'll let you guess what she downloads

    4 posts so far, 3 implying she downloads porn. You did ask for it you know :)

    QoS on the router would be the best bet in my uninformed opinion. Other then that a download manager that throttles her bandwidth

  4. Wonderful by entrylevel · · Score: 5, Informative

    I haven't tried it yet (1.5Mbps is plenty for all those on my home LAN), but you might want to give Throttled a shot. Certainly not the easiest to use (no GUI), but it is open source and cross platform (Linux/BSD/OS X). Basically it runs a server process that you enables bandwidth throttling in your kernel's firewall. The configuration file is simple enough to understand and is quite flexible. You can change also settings while it is running by sending it signals using the not-so-aptly-named 'kill' command in the terminal.

    --
    Karma: Incomprehensible (Mostly affected by posting at +5, reading at -1, and metamoderating everything unfair.)
  5. try these? by RalfM · · Score: 5, Informative
    CarraFix might do the trick, or maybe Throttled X


    Ralf

    --
    The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
    -Bertrand Russel
  6. QoS by Iron+Chef+Unix · · Score: 4, Interesting

    QoS (Quality of Service) settings on your router might be the easiest method. I've never used it, but I know my LinkSys allows you to set priorities (High, Low) for either a specific LAN port, or a particular protocol. Assuming you know what program she is using, say LimeWire, you can also set a specific port (23, etc) to a low priority. I'd be interested to see what effect this has.

    --
    Like puzzle games? Warehouse51 for iOS
    1. Re:QoS by Petronius · · Score: 2, Informative

      LimeWire has a built-in throttle capability (in case that's the app you're using).

      --
      there's no place like ~
  7. IPFW by Quicksilver31337 · · Score: 4, Informative

    The simplest way to limit the amoutn of bandwidth she is using would be to throttle it using ipfw, the BSD firewall, you can use it either drop random packets by percentage in order to limit the bw she consumes as well as several other methods.

    --
    _______
    Death wish, n.:

    The only wish that always comes true, whether or not one wishes it t
  8. IPFW and Dummynet by Graff · · Score: 5, Informative
    You can do this by setting up a firewall in the Terminal. Follow the instructions posted here, replacing the contents of the rc.firewall.current file with the following commands:

    #!/bin/sh
    ipfw add 1000 pipe 1 ip from any to any
    ipfw pipe 1 config bw 300Kbit/s queue 50KBytes
    ipfw add allow ip from any to any


    Doing this should limit the connection to 300Kbit/s. If you want the connection faster or slower you simply need to change the 300Kbit/s number. 56Kbit/s should be approximately the speed of a 56K modem. The last number probably should be scaled appropriately to the first number, that is if you cut the first number in half then cut the second in half.

    To learn more about pipes and dummynet, read the manpages for ipfw with the following command in the terminal:
    man ipfw

    1. Re:IPFW and Dummynet by Graff · · Score: 2
      On any BSD, yeah. but not on Mac OS X ipfw implementation

      Granted I haven't tried this little trick (I haven't had a need to yet) but I'm pretty sure that pipes work under Darwin. Anyone have any experience with this?

      I have used the instructions on how to set up the firewall and I know that works just fine. I've been told that dynamic rules don't work properly in ipfw, but everything else seems to have no problem at all.
    2. Re:IPFW and Dummynet by davey235 · · Score: 3, Informative

      I asked about this a while ago on darwinos-users: dummynet isn't in either darwin or OS X, regardless of what the man pages say. So the 'pipe' commands won't work.

      The response to my question is here

  9. Too bad by batobin · · Score: 5, Funny

    **sigh**

    This is the 4th young girl I've heard about this week succumb to the evils of Richard Simmons videos. Which is her favorite? The "Disco Blast Off", or the "Best of Latin Buns Burning"?

    Or is it....no....it couldn't be...."Getting Dirty with the 80s"? Oh, the humanity!

  10. altqd by schmaltz · · Score: 3, Informative

    is something I've used under OpenBSD for bandwidth throttling. Don't know if it compiles on OS X.

    --
    Big Daddy, Johnny, Burp, Aunt Zelda, Scott, Slurp, Big Momma ... where's Siggy?
  11. Umm... by Anonymous Coward · · Score: 5, Insightful

    ...have you tried talking to her about it? :)

  12. Bandwidth Throttling by Patrick+Lewis · · Score: 5, Funny
    One solution is to say GET OFF THE DAMN COMPUTER!

    Well, that's what my Dad would have done.

    --
    "If I am such a genius, how come that I am drunk and lost in the desert with a bullet in my ass?" --Otto (Malcom ITM)
    1. Re:Bandwidth Throttling by bsartist · · Score: 2

      the 'net as we know it now didn't exist back then this is all hypothetical

      Hardly!. My old VIC-20 had horrible RF shielding, so it borked up the TV reception (no cable!) pretty badly, creating these nasty interference patterns on the TV upstairs. The solution was simple: Whenever my parents wanted to watch TV, I had to turn the computer off.

      --
      Lost: Sig, white with black letters. No collar. Reward if found!
  13. Parental Responsibility by mcgroarty · · Score: 2, Troll
    (I'll let you guess what she downloads <grin!>)

    I assume you mean illegal MP3s. If you encourage your children to steal music and software, please be sure it's a conscious decision. Liability issues aside, you send a very clear message to your kid when you teach them that it's okay to pick and choose which laws they obey.

    1. Re:Parental Responsibility by addaon · · Score: 3, Insightful

      A much better message than teaching them to blindly obey all laws! In the state I'm in, it's illegal for a person of legal drinking age to ferment legally obtained materials for the purpose of drinking. It's also illegal for me to drive down the main street more than three times in a single hour. Sodomy is straight out. If you don't pick and choose what laws to obey, you are begging to be lead by the nose... good for those who like latent dictatorships, not so hot for the rest of us. By all means, encourage your children to download (steal? not worth arguing) music... it's one of the easiest ways you have of making sure they have a backbone.

      --

      I've had this sig for three days.
  14. Performing throttling per server by iso · · Score: 2

    I have a similar requirement, in that I would like to throttle a connection on a per-server basis (on OpenBSD most likely). i.e. I would like to allow 192.168.1.2 100kb/s and 192.168.1.3 50kb/s. Is this possible? How would it be done?

    - j

  15. Missing the point? by Anonymous Coward · · Score: 2, Informative

    He said the problem is large file downloads -- i.e., downstream bandwidth. Throttling will limit upstream bandwidth, but there isn't much you can do locally about the amount of data hitting you from external sites...

    1. Re:Missing the point? by plastik55 · · Score: 2

      Couldn't you delay the ACK packets sent out from her side? That would effectively limit the download speed in most cases.

      --

      I have a positive modifier on Troll. When I mod someone Troll their karma should go UP!

  16. Linux Advanced Routing & Traffic Control HOWTO by pbulteel73 · · Score: 2, Interesting

    Since I'm not too familiar with OS-X I don't know if this will work, but this is probably close enough to what you are looking for. LINUX Advanced Routing HOW-TO It would be interesting (to me at least) to know if the same tools apply on OS-X.

  17. what you really want . . . by superposed · · Score: 4, Informative

    . . . is not bandwidth throttling, but rather packet prioritization. It will be unnecessarily restrictive (and not ideal for you either) to give her, e.g., 300 kbps at all times. It would be much better to give yourself all the bandwidth you want at any given moment, and give her whatever's left over. That way she could use the full bandwidth most of the time, but not interfere with your work at all in the rare moments when you need a lot of bandwidth. Unfortunately, this kind of prioritization between traffic from different hosts would have to happen in the router, so it's probably not available on your home network.

  18. Re:Ridiculous by addaon · · Score: 2

    Yes, but some of the Greek states were lovable. The US is not.

    --

    I've had this sig for three days.
  19. Re:Huh? by Greedo · · Score: 2

    Well, obviously her excessive downloading of the latest Ricky Martin MP3s is interfering with her Dad's excessive downloading of Girls Gone Wild - Spring Break movies.

    --
    Tuus crepidae innexilis sunt.