PCQ:-Per Connection Queue.
When should we use ?
Using this method you can set the priority for group of IP's and the marking of packets and basically it's used for to provide the rate limit to group of contents and it will work like per connection established wise.
lets you have 10.000 customer in your network and you want to restrict on each IP, In that case it would be very difficult to create the 10000 queue manually .So there is an alternative way to way
make it configure through PCQ and there is one disadvantages is this queue will be apply same bandwidth and same priority on per host .
lets start the configure .
I have many customers I have given them a IP to use the internet and being an ISP i have to control and limit the bandwidth to them .Lets I want to restrict to each hosts on 2mbps .
Create the PCQ First .
Queue>Queue Types.
Create 2 PCQ queue for upload and download .
please find the details below .
Pcq-1
Please find command details below .
/queue type
add kind=pcq name=1Mb_UPload pcq-classifier=src-address pcq-dst-address6-mask=\
64 pcq-rate=1M pcq-src-address6-mask=64
add kind=pcq name=1Mb_Download pcq-classifier=dst-address \
pcq-dst-address6-mask=64 pcq-rate=1M pcq-src-address6-mask=64
Step-2
Assign this PCQ in Simple Queue .
please find the details below images and commands .
Commands .
/queue simple
add name="Customer A" queue=1Mb_UPload/1Mb_Download target=10.0.0.0/24
As you can see on my below commands and images , I have assigned a network is 10.0.0.0/24 network , It means whoever the host will be assigned the IP address from this network that host will get 2mbps .
In Target option you can select any particular interface and and you can give a complete network if you want to restrict the bandwidth on complete network like ;.(10.0.0.0/24). and also you can set to limit the traffic on particular destination .
When should we use ?
Using this method you can set the priority for group of IP's and the marking of packets and basically it's used for to provide the rate limit to group of contents and it will work like per connection established wise.
lets you have 10.000 customer in your network and you want to restrict on each IP, In that case it would be very difficult to create the 10000 queue manually .So there is an alternative way to way
make it configure through PCQ and there is one disadvantages is this queue will be apply same bandwidth and same priority on per host .
lets start the configure .
I have many customers I have given them a IP to use the internet and being an ISP i have to control and limit the bandwidth to them .Lets I want to restrict to each hosts on 2mbps .
Create the PCQ First .
Queue>Queue Types.
Create 2 PCQ queue for upload and download .
please find the details below .
Pcq-1
Pcq-2
Please find command details below .
/queue type
add kind=pcq name=1Mb_UPload pcq-classifier=src-address pcq-dst-address6-mask=\
64 pcq-rate=1M pcq-src-address6-mask=64
add kind=pcq name=1Mb_Download pcq-classifier=dst-address \
pcq-dst-address6-mask=64 pcq-rate=1M pcq-src-address6-mask=64
Step-2
Assign this PCQ in Simple Queue .
please find the details below images and commands .
Commands .
/queue simple
add name="Customer A" queue=1Mb_UPload/1Mb_Download target=10.0.0.0/24
As you can see on my below commands and images , I have assigned a network is 10.0.0.0/24 network , It means whoever the host will be assigned the IP address from this network that host will get 2mbps .
In Target option you can select any particular interface and and you can give a complete network if you want to restrict the bandwidth on complete network like ;.(10.0.0.0/24). and also you can set to limit the traffic on particular destination .
No comments:
Post a Comment