CISCO policy-map equivalent - MikroTik RouterOS

Hi,
My ISP has asked me to configure traffic-shaping in my routers and suggested following sample configuration which can be used with CISCO IOS. Does anybody know how to configure policy-maps in Mikrotik routers? Thank you!

Step 1.
Create Policy Map
policy-map
class class-default
shape average
E.g. For a 20Mbps service: router(config)# policy-map
Example_20M_service
class class-default
shape average 19600000 200000 0
If the CPE does not accept ‘0’ for excess-burst, input a
small value. E.g. 1000

Step 2.
Apply Policy Map to interface/sub-interface
interface ethernet
service-policy output
E.g. attach our 20M Service policy to the outgoing
Fast Ethernet interface
router(config)# interface FastEthernet4
service-policy output Example_20M_service

Hi,

Does any body know this?

Thanks!

Read up up Mangle and Queues for Mikrotik on the wiki. Mangle is closer to policy-maps though simple queues may provide an alternative way.

If the offered speed is 2Mbps, is the following queue correct?

/queue tree add name=“ether2” parent=ether2 limit-at=0 priority=8 max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s

If the offered speed is 2Mbps, is the following queue correct?

/queue tree add name=“ether2” parent=ether2 limit-at=0 priority=8 max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s

Looks correct to me. Queue tree is the closest thing in ROS to policy-map on an interface in Cisco.

If you only want a single queue to shape all traffic (no QoS prioritization) then that’s all you need to do. (i.e. no need to mess with mangle rules)