P2P bandwidth limit for all

Greetings,

I have tried the manual but did not get the information I wanted or am just confused. Basically, I want to limit all P2P traffic (in and out) to just 64Kbps for all users (not 64Kbps per connection) in our network.

Please advise.

Thanks,

Joseph

http://www.mikrotik.com/docs/ros/2.8/ip/peer2peer.content#6.12.5.2

Thanks for the reply Eugene. I saw and read the reference but it only discusses about PCQ and limiting P2P traffic inside the network.

I’d like to consult if the following will do what I want:

Mark all p2p traffic using Firewall mangle:
/ip firewall mangle add p2p=all-p2p mark-flow=all-p2p action=passthrough

Mark p2p traffic for all (upload/download):
/ip firewall mangle add flow=all-p2p src-address=172.27.0.0/16 mark-flow=all-clients-p2p
/ip firewall mangle add flow=all-p2p dst-address=172.27.0.0/16 mark-flow=all-clients-p2p

Add queue rules for all (upload/download):
/queue tree add parent=public flow=all-clients-p2p max-limit=64000
/queue tree add parent=local flow-all-clients-p2p max-limit=64000

Note that the src-address & dst-address is the network (172.27.0.0/16)

All I want to do is make only 64 KBps altogether (in and out) available to P2P.

The manual discussed 64KBPs for every or each users using P2P. Does this mean that if there were 10 users, they will take up 640 KBps?

What I want is regardless of how many users are using P2P at the same time, the available bandwidth for them will be 64 KBps. The rest of the available bandwidth will be dedicated for the non-P2P users.

Thanks for your time!

Joseph

Hello,

I found the solution. It was in the How Tos… on Mikrotik’s Web site.

How to limit p2p traffic using masquerading and PCQ.

Joseph

Then don’t use PCQ…