Page 1 of 1

Setup PCQ but not working!

Posted: Tue Mar 06, 2012 11:47 pm
by Ghassan
Hello,

3 Ethernet Interfaces
- WAN (4Mb/12Mb) - Public
- Local
- Peer ( Interface connected to an external Proxy Cache Server )

I have Dedicated 4Mbps/12Mbps through WAN Interface and I thought of using a contention ration 1:50 using PCQ which means I want to share 12Mbps with about 450 clients.

How to setup using PCQ and I want my customers to get equally bandwidth if the connection is almost full or when half customers are offline then I want the free bandwidth to share with remaining customers ... I have tried the WIKI Examples but dont know why its not working in my router!.

Should we use Simple Queues with Queue Tree at the same time allowing us to monitor each clent's traffic!.

Thank you

Re: Setup PCQ but not working!

Posted: Tue Mar 13, 2012 9:37 am
by jackman
Hello,

3 Ethernet Interfaces
- Public
- Local
- Public 2

I have Dedicated 4Mbps/12Mbps through Public Interface and I thought of using a contention ration 1:50 using PCQ which means I want to share 12Mbps using 12 GROUPS and each group must have a dedicated 1 Mbps and each 1Mbps would be shared with 50 Home users .

How to setup using PCQ and I want my customers to get equally bandwidth if the 50 users are online or whatever ... I have tried the WIKI Examples but dont know why its not working in my router!.

Should we use Simple Queues with Queue Tree at the same time allowing us to monitor each clent's traffic!.

Thank you
Basicly this could be done with Queue Tree and PCQ. First you will need to define PCQ as Queue Type. You could play with Limit and Total Limit since you have already know on how many maximum client will connect concurrently (ie 50). Define src-address as classifier for upload traffic Make another Queue for Download and dst-address as classifier

Next you could define in Queue Tree a Parent Queue for example download and set 12M as Max limit. And you could define 12 Child (1-12). Set each Child Limit At 1M and Pre-defined PCQ as a Queue Type. You will need to set mangle and packet mark for each child.

May this could help

Re: Setup PCQ but not working!

Posted: Sun May 13, 2012 10:29 pm
by Ghassan
Hello again,


I already did that before I post here as I already have 3 interfaces ..

PORT 80 are forwarded to 3128 ( External Cache Server )

I can easily limit my customers through download and i have made sure to classify dst-address as DOWNLOAD and src-address as UPLOAD but I only can succeed to limit DOWNLOAD .. Unfortunately i cant limit upload! as it remains unlimited .. Should I limit them at Simple Queues as well ?

I Just want :
--------------
QUEUE TREE ( DOWNLOAD )
MAX LIMIT = 12M
PCQ RATE : unlimited
12 MEGA BITS for the DOWNLOAD to be shared using PCQ which means each customer could get equally bandwidth but if the connection was full reaching 12Mbps then PCQ mechanism would downgrade the speed of each IP equally automatically.

Re: Setup PCQ but not working!

Posted: Mon May 14, 2012 2:58 am
by Ghassan
My problem was solved by marking packets through FORWARD CHAIN .. by adding 2 rules as first rule which has "ADDRESS LIST" as SRC without restricting through interface & for the second rule which has "ADDRESS LIST" as DST .

Upload speed worked perfect when i added a parent queue tree : "global-out" for UPLOAD and regarding limiting the download speed was also successfull through Interface "Local" not "global-in".


so weired , i dont have any bridged interfaces though only bridging allow us to work on chain=forward but routing is usefull at MANGLE > chain=prerouting!.

I also made profiles for each group with a different speed including business users , home users .

anyway it is working now


Regards,
Ghassan