Large data transfer limit (throttling)



  • I tested in other platforms a very basic form of traffic shaping that is very easy to set up and is one of the most effective.

    For example if a file is bigger than xxxx(specified by user in KB) the maximum download speed will be xxxx(specified by user) and maximum upload speed will be xxxx(specified by user)

    If i have a 20 megabits downlaod and 2 megabits upload wan i would set for example that if i file is bigger than 512KB it will have a maximum download speed of 15 megabits and a maximum upload speed of 1 megabit.

    This way i can make sure that the bandwidth does not get saturated by just un windows update, for example and small web files and voip will always have some broadband left to keep working in every situation.

    This kind of traffic shaping is the easiest i can think of and does not require special knowledge about traffic shaping, just knowing the wan up and down speeds and some common sense.



  • Most traffic types do not indicate the total transfer size and others have this defined as an optional field; as such, I do not know how this is reliably implemented on 'other platforms'.  That stated, you can likely accomplish your goals by setting up hfsc queues (relatively complicated) by implementing a 'powerboost' like QoS allowing for higher throughput for the first xxxx milliseconds and slowing to a lower rate thereafter.

    see:  https://calomel.org/pf_hfsc.html (search powerboost).   This isn't a comprehensive hfsc guide, but it does a good job of introducing the concepts.

    FYI:  It may make more sense to prioritize packets rather than limit bandwidth when it is available, hfsc can accomplish both of these at the same time.  Your example is more challenging as the traffic you referenced is both http based and presumably coming from the same host.

    hope this helps.



  • @quetzalcoatl:

    I tested in other platforms a very basic form of traffic shaping that is very easy to set up and is one of the most effective.

    For example if a file is bigger than xxxx(specified by user in KB) the maximum download speed will be xxxx(specified by user) and maximum upload speed will be xxxx(specified by user)

    I asked some time ago and the answer was that this isn't currently possible with pf/ALTQ.



  • Thanks for your reply.

    I got this idea from Kerio Control that does just what i said but kerio control is very expensive and you get free trial for 30 days only.


Locked