How to distribute connection speed among different apartments?

aridavid5

Reputable
Jun 6, 2015
9
0
4,510
I want to give internet access 10 apartments and I'd like the connection speed to distribute evenly among all the apartments using it at each current time.

Not sure if I'm explaining myself properly. The thing is that I'm going to pay for 1000Mbps connection for a 10 apartment complex, and I'd like all apartments using the connection to have the same amount of speed regardless of how many devices a single apartment has connected. So if there is one or more devices connected at each of the 10 apartments then each apts. would have a max of 100Mbps. However, if there are only 4 apts using the connection then the max speed would be 250mpbs each, 2 apts would be 500Mbps and so on.

How could I do this? Thanks for the help. :)
 
Solution
You need special software. Big expensive servers by bigip called F5 do a great job but only enterprise business thinks they are "affordable"

The largest issue with actually doing it is you need to be on the ISP end of the circuit. If the 1g link were to actually get near capacity the ISP will decide what to drop and what to forward by the time your equipment get it there is little you can do to get traffic back that was discarded.

But if you were on the ISP side or if you wanted to limit upload traffic one way you can do this is with a traffic shaper. What you do as traffic comes into your device you would mark the first 100m with a QoS tag as guaranteed and anything over with a QoS tag as best effort. Then on the 1g port you...
You'd need some sort of load balancing system, like a custom box running pfsense or a high end router.

It would probably be a lot easier to do just using a router and limiting speed that way. But it would be 100mb or whatever per unit regardless of how many people were on. Easier, but without spending a lot of money.

How are you going to connect it? does each apt have a ethernet jack in the units already that all terminate in the same spot?
 
I have to agree the simplest way is to use a switch that can only run 10/100 on the ports so each apartment only gets 100m.

To use dynamics limited is a very complex thing to do.

When you look at internet usage you could easily get 10 people in a apartment running netflix on high def and they likely would still be under 100m.

Most sites have artificial download limitations to prevent someone with a big link using up all the service sites capacity. If the server site only have 1g a single user could in theory block it. So it is uncommon for even a large download of a game or software app to need huge bandwidth because there is a artificial limit on it to protect the site.

Pretty much the only users you see using large amounts of bandwidth on a constantly are torrent users. How many copies of "linux distributions" do they really need. Everyone know that most torrent traffic is violating some copyright law or another.

 




They don't have ethernet jacks installed. I'd be installing them. I was thinking of getting a switch to distribute to each jack. However, splitting to 100Mbps each is the easy part. The part I don't know how to do is to make it flexible so that if not all ports are being used, the ones used reach the max bandwidth.

@bill001g I actually hadn't stopped to think what would they need more then 100Mbps for, and your right. Even for online gaming 100Mpbs should be more then enough and a simpler switch is also cheaper for me. Although this wasn’t the solution I was looking for; it actually helped a lot. Thanks.

I'd still like to know how to create this dynamic limit (curiosity), but I don't needed anymore.
 
You need special software. Big expensive servers by bigip called F5 do a great job but only enterprise business thinks they are "affordable"

The largest issue with actually doing it is you need to be on the ISP end of the circuit. If the 1g link were to actually get near capacity the ISP will decide what to drop and what to forward by the time your equipment get it there is little you can do to get traffic back that was discarded.

But if you were on the ISP side or if you wanted to limit upload traffic one way you can do this is with a traffic shaper. What you do as traffic comes into your device you would mark the first 100m with a QoS tag as guaranteed and anything over with a QoS tag as best effort. Then on the 1g port you would build a shaper that always sends traffic marked with guaranteed first and then if there is any extra capacity it will select first come first server out of the best effort queue.

This is easy to do on cisco commercial routers or actually traffic shapers. I am told it can be done on dd-wrt but I tend to be too lazy to learn since we use cisco at work and I have older model cisco commercial routers at home.
 
Solution
The other problem with this is connection isolation. Just plugging them all into a router and then a 100mb switch would give each unit 100mbs, but it would also let them all see each other on the network, so any small network setup in one apartment would be available to others. Also, you could run into IP issues and there not being enough. I doubt each apt would have 25 devices online, but with more and more connected things, you never know. In my bedroom alone, I just counted between my tv, ps3, AVR receiver, wifi printer, 2 phones, 2 tablets, 3 pcs, gigagbyte link to my living room, I'm using 14 just in 1 room.

Also know, as you being the main "ISP", in some way you can probably be liable for any pirated content they download, child porn, etc. It all comes down to you. To the outside world, the child porn was downloaded from your 1 IP address and even you would have no way to really track where it came from interally without a good router and logging.
 
Thanks to both of you.



You definitely answered my question, but now I have other questions. I guess I'll search on the new questions and maybe make a new thread if needed.