在Mikrotik上为VoIP设置ToS / QoS

我有一个Mikrotik路由器,看起来像iptables。 我需要设置QoS来确保VoIP电话获得最高的stream量优先级。 我怎么知道什么样的服务使用和如何得到它? 我search,似乎无法findVoIP的ToS。

我现在的规则如下:

/ip firewall mangle add chain=forward tos=XXX action=mark-packet new-packet-mark=VoIP passthrough=no comment="voip" disabled=no / queue tree add name="ether1_voip" parent=ether1 packet-mark=VoIP limit-at=0 queue=default priority=2 \ max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no 

使用最新版本的Mikrotik(在Torch工具中包含DSCP / TOS)运行Tools > Torch在VoIP呼叫期间查找这些数据包的DSCP / TOS。

更新:

如果您使用的Mikrotik的旧版本在Torch工具中不支持DSCP / TOS,则可以运行Tools > Packet Sniffer来捕获stream量(或直接将其stream式传输到PC),然后在Wireshark上打开以查明VoIP数据包的TOS字段。