A
A
anatoly_tim2016-02-20 12:04:14
Computer networks
anatoly_tim, 2016-02-20 12:04:14

How to set up QoS for streaming data (video conferencing) on ​​mikrotik?

At meetings, employees use zoom.us video conferencing, while there are gaps in connection speed and it becomes difficult to broadcast and participate in negotiations.
The Internet in the office is distributed using a mikrotik rb2011UiAS-RM router.
The question is, how to configure QoS with traffic prioritization of this application?
I will be glad and grateful for any advice and links to articles.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Sizov, 2016-02-25
@anatoly_tim

Any QoS consists of two parts.
1. Mark the traffic of interest in /ip firewall mangle. Here you need to analyze the connections on zoom.us and understand exactly how data is transferred there / from there. You can analyze in any way - through current connections on the same Mikrotik, through Wireshark, as you prefer. Below is an example of how I mark traffic for RTP connections with a voice provider:
// mark connections
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark dst-port=\
16384-16538 new-connection -mark=VOIP passthrough=no protocol=udp
// mark packets on this connection
add action=mark-packet chain=prerouting comment=VOIP connection-mark=VOIP \
new-packet-mark=VOIP passthrough=no
2. Create priority rules for traffic of interest. This is done via queues:
/queue tree
add name=queue1 parent=wan-interface priority=1 queue=default
add name=queue2 packet-mark=VOIP parent=queue1 priority=2 queue=default
add name=queue3 packet-mark=no -mark parent=queue1 priority=8 queue=default
And a few more points:

  • You need to understand that you can effectively manage only outgoing traffic. Incoming packets are in your zone of influence when they arrive , so it doesn't make sense to do anything with them. Unless, of course, there are no delays in the local network, which is rare.
  • Voice and video communication is critical to the packet transit time. And since zoom.us is located, as the name suggests, across the ocean, each packet passes many intermediate devices along the way, each of which may have delays that you cannot control in any way. If you arrange conferences with people from Russia, isn't it better to look for something closer? If the main audience is from the USA, then, of course, you will have to endure.

D
DKarasev, 2020-04-06
@DKarasev

Based on above answer and port data from Zoom server:
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark dst-port=3478-3479 new-connection-mark=VOIP passthrough=no protocol =udp
add action=mark-connection chain=prerouting connection-mark=no-mark dst-port=8801-8802 new-connection-mark=VOIP passthrough=no protocol=udp
add action=mark-connection chain=prerouting connection-mark =no-mark dst-port=8801-8802 new-connection-mark=VOIP passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=VOIP connection-mark=VOIP new-packet-mark=VOIP passthrough= no
/queue tree
add name=queue1 parent=wan-interface priority=1 queue=default
add name=queue2 packet-mark=VOIP parent=queue1 priority=2 queue=default
add name=queue3 packet-mark=no-mark parent=queue1 priority=8 queue=default

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question