Sunday, May 8, 2016

Equal Bandwidth Distribution to unknown number of users using PCQ Simple Queue where WAN bandwidth is known(Best configuration for home/small office use)

We will configure PCQ Simple Queue where WAN bandwidth is known and equal Bandwidth will distribute to unknown number of users.

If you have 512 kbps(known bandwidth) in WAN interface and you want to share this equally
among your LAN users(unknown number),  but if only one PC(user) is active then that PC(user)
will get full 512 kbps, if 2 pcs(users) are active 256 kbps each and vise versa.
This is best configuration for home/small office use.

Lets consider that,
LAN network: 10.0.0.0/24


Use the following command:


/queue type add name="download_equal" kind=pcq pcq-rate=512k pcq-classifier=dst-address
/queue type add name="upload_equal" kind=pcq pcq-rate=512k pcq-classifier=src-address 
/queue simple add queue=upload_equal/download_equal target-addresses=10.0.0.0/24

Enjoy....!

No comments:

Post a Comment