Hello,
I am not sure if this can be achieve.
I am living in one of the developing country where bandwidth is a very precious thing there. My total bandwidth is 60 Mbps, so during night time is the most congested period and it is always hitting its bandwidth capacity. After doing some analysis on traffic, I found out majority of my users are using Youtube, Facebook and Instagram. The bandwidth is wasted on them watching the content through smartphone and sometimes, they ended up fell asleep while keep the content played and hogging the traffic for others. My current setup is to limit the traffic that my majority user use which are Youtube, Facebook and Instagram to 1,5 Mbps per device despite of having higher bandwidth assigned.
This setup is working so far, but I would like to make it better by only enforcing the traffic restriction mentioned above during congested period as right now the restriction is on all the time. I need this to be dynamically trigger restriction on if the total bandwidth is reaching above 40 Mbps in last 5 minutes, and trigger restriction off if it is less than 40 Mbps in last 5 minutes (I am not sure if this is the best parameter to trigger restriction, I am open to any suggestion if you have better one). Basically I still want the user to enjoy high resolution streaming during non-congested period and throttle the streaming to 1,5 Mbps during congested period.
How can I achieve that?
Thank you for your answer.