QOS VOICE VPN

hi,

i am having 3 locations, centralize location with static ip and two remote offices with adsl with dynmaic ip. My goal is to prioritize voice over the lan and over the VPN. Ip phone are marking voice packet with DSCP 46, I also have the same config on the switch, so my voice are coming to the MKT with DSCP value 46.
how to setup mangle/queue tree to prioritize voice locally and via vpn, when voice traffic is entering from the LAN to a router and when the voice traffic si coming from vpn to the router? i want prioritize only packet with dscp 46 on every location, everything else will be by default



I found this for marking the packet, now i need a queue tree for that?


ip firewall mangle add action=mark-packet chain=postrouting comment=dscp.46 disabled=no dscp=46 new-packet-mark=dscp.46 passthrough=no

in attach I put basic topology…

Please help
topology.png

Anybody???

IMHO to implement QoS as well Bandwidth management on RouterOS we have to know the available bandwidth. Based on those information we could allocate specified amount of bandwidth (limit at) ie: for voip. The priority rank will only work for non-used bandwidth and it will be limited base on max-limit.

Let’s make an approach to your scenario. ie :

  • you have 1mbps/1mbps up and down-link for each connection to CO (central Office), RO1 (remote office 1) and RO2.
  • you could reserve 256kbps/256kbps for VoIP with mentioned packet mark
  • you could mark the rest packet as rest with mangle based on src-address and mark

Queue Tree

  • make parent queue download with max limit of 1M
    → make child queue for voip-download with packet mark = voip-download, limit at 256K , max limit 512K and priority 1 with parent download
    → make child queue for rest-download with packet mark = rest-download, limit at 768K, max limit 1M and priority 2 with parent downlaod
  • make parent queue upload
  • make child queue for voip-upload with packet mark = voip-upload, limit at 256K, max limit 512K and priority 1 with parent upload
  • make child queue for rest-upload with packet mark = rest-upload, limit at 768K, max limit 1M and priority 2 with parent upload

in this example each type of connection will have their reserved bandwidth, in case the bandwidth of rest traffic is not use the voip connection could use the unused bandwidth upto 512K.

Correct me if im wrong