I’m currently in a personal project in implementing network load balancing in Mac OSX, in my google-investigation I couldn’t find any native solutions, anybody had tried something like this?
I was starting to think about porting some solutions of freebsd, but I don’t think I had enough knowledge to do this, as a matter of fact, I don’t even know how they do it in freeBSD.
I’m starting to investigate pfsense, I think its a good candidate for 2 reasons, 1. it’s based in freeBSD (like Mac OS X), and 2. I’m a former user, and I think its very stable and functional, you should consider it if you need a gateway.
What do you think, Anybody had tried this? Anybody interested? any ideas ?
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
December 24th, 2008 at 4:30 am
I think this would be great. when you say load balancing what do you mean?
i would like to use two separate wifi networks each with its own internet connection then utilize them both on my mac, ie. so i can download one huge file from both at the same time.
is this what you mean?
December 29th, 2008 at 4:35 pm
thats exactly what I mean, I have a DSL and a 3G network and I want load balancing, I read about it, and while it cannot be achieved in a pure way (because you need ISP cooperation), I found and app (haven’t used) but I said can do load balancing but in a way that if a connection is busy it gets the other connection, maybe using a download accelerator we can achieve our purpose.
This is the app I found
http://sustworks.com/site/prod_ipnrx_overview.html
I will post it if I make it work…
thank you for your comments
January 2nd, 2009 at 7:01 am
I’m intrigued – any luck?
January 3rd, 2009 at 12:36 pm
Not yet :S, I have a hard time in work so I don’t have time for my experiments, but I hope in 2 weeks this will change
January 12th, 2009 at 12:08 pm
I´m try to do more or less the same stuff.
I have 2 wifi access point in my house (2 differents networks)
1 for download stuff (torrents)
1 for surf the web
But the one that i use for surf the web must of the time (mornigs) nonboy use it,
so i was wondering if i can add :
Load balance wifi to permit my Macmini to access both networs at the same time
and i can download more
Please keep post any new ideas.
Thanks
July 18th, 2009 at 11:40 am
Hi…
I believe you are all referring to “Internet Load Sharing”, not “Load Balancing”. Load Balancing is for incoming traffic to be routed to the least busy server on a LAN/VPN. For example, say you’re eBay, or Amazon (or just Joe Schmoe doing some P2P filesharing with a lot of data, and a huge internet connection, perhaps an OC3, of course we’re taking into consideration that you have tons of money to get such a connection, but that’s irrelevant)… What load balancing does, is when you have many clients from the internet, or intranet trying to access data that is in a specific site, the network load balancing system will route the traffic to the server with the least “LOAD” or least amount of process “percentage” available at the time the request is made.
What this means for you and your “customers”, is a quicker response from your servers.
With “Load Sharing”, you are using 2 internet connections to upload/download from the outside. Now, this is a complicated process due to DNS issues with IPv4/IPv6 routing. You see, when you make a request to say apple.com, Apple’s servers will get an IP registered for the session. The reply will be sent to that original IP. In order to be able to get the reply sent to your least used connection (and by this I mean the connection with the highest amount of bandwidth available at the time), Apple’s servers need to know the second IP as well. Now for many reasons, but to mention one, security, Apple’s servers won’t send the reply to multiple IP’s. That’s why security certificates were put into place. So that someone trying to get in between a connection cannot access your information.
However, there are certain exceptions. But, you will never be able to do exactly what we’re all trying to do. (Yea, by that I do mean myself as well) All BS aside, we all know that it’s simple to get into nearby wireless networks. It would be great to be able to use both your ISP + your 40 year old neighbor’s network with that phat FiOS with 30MB down 20MB up bandwidth, or that sweet Cable connection with 50MB/50MB from that rich kid upstairs, so we can download, or serve, enormous amounts of data in one sitting… Although it cannot work exactly as we want, there’s a workaround. You can google the term “Load Sharing” or “Internet Load Sharing”. I wanted to do this a few months ago, but got sidetracked. There is a unix terminal application that you can program with a little help of a unix book, that will allow you to alternate between downloads.
What I mean by this is, that suppose you have 10 files that you want to download, and they’re all pretty big… Say, 700MB ~ 1.5GB… Catch my drift? Good… Now, this application will look at your two active internet connections and check which one is the one with the least traffic at the time. Say it’s that FiOS connection… Ok, so it will start to use that one for the first file. Then you start to download that second file… Now app will look for the connection again, and will see that the Cable connection has the least traffic. And so on and so forth.
Sorry that I don’t have any links, as I don’t have any time at the moment, and am just trying to share some of what I know. But this I do know works similar. There is a Cisco router, or several different Cisco routers. That will allow you to use to WAN connections. For those that may not know, a WAN is just a fancy way of saying Internet Connection, and stands for Wide-Area-Network (INTERNET, but for some larger corporations this is a mere GINORMOUS LAN).
Just make sure that the Cisco router isn’t just a “Failover” one. This just means, that you’ll pay, or have 2 internet connections, but only use one. Then when one is disconnected for whatever reason, the second connection takes over, without you losing any downtime. This is NOT what you want.
July 20th, 2009 at 1:28 pm
You are totally right, I will search for the right stuff, and I will put my results here (also I will correct the title of the post). Please if you had time to came back and put the links will be awesome.
Thank you again for your comments, Load Sharing was what I was looking for…
June 30th, 2010 at 6:02 am
To me load balancing is computer hardware specific as it pertains to OS & Applications. In this day of multi processors, multi cores those need to be load balanced, otherwise in a multi-tasking situation, one core or even 2 cores get pegged for activity, leaving the other cpu and it’s cores underutilized. The workload is balanced out. Bad or poorer implementations of cpu & core load balancing can be seen in a task manager and hardware monitor graphs, core voltages fluctuating unevenly, temperatures significantly higher on one cpu and it’s cores. At the end of the day with those, what sense does it make to tax 1 cpu with 4 cores for the workload and buy a 2nd quad core cpu that rarely if ever gets any activity ?
Then there’s the memory aspect, each cpu gets it’s own set of dimm slots. If load isn’t balanced for cpu & cores, the memory is also being over & under utilized for activity. And this creates bottlenecks and inefficiencies for the infrastructure for chipsets (North & Southbridges) on the logic/main/motherboard as well. Efficiency across the whole system in multi-tasking is preferable to unbalanced loads. Analogies I can think of, what if the front driver side brakes of your car took all the load of a stop and the passenger side rarely braked. The wear would occur on one side, all the stress and heat of the workload on one set of the hardware.
In highest traffic situations, delays & waits could occur under these loads. For the most part, I’ve seen downloads even be balanced on single cpu/single core systems as well as multi cpu/multi core systems. That’s more a function of software, but could be programmed into hardware instruction sets for branch prediction.
September 27th, 2010 at 1:40 pm
Hi everyone, I’m also trying to do this, but I think that installing pf under OSX won’t be so funny, anyway, here is a nice link about load balancing with pf..
http://www.freebsdonline.com/content/view/529/506/
November 5th, 2010 at 10:36 pm
hey i’ve been searching for this information for years. glad to finally meet someone searching for the same thing. unfortunately cisco’s argument above is quite valid, and it’s rather depressing that we still can’t do this on our home computers. please though, if you have further information, enlighten me. you have my email now so feel free to write me directly. i will do the same if i find anything new.
cheers from sunny bali!