The first step in the process of activating QoS on Ubiquiti EdgeRouter Pro is testing your bandwidth. It’s necessary as you’ll need the exact numbers regarding both Download and Upload speed to properly set up QoS.
How to test your bandwidth
Before you run the test, deactivate any traffic shaping or firewall rules that you may have already set. Also, run the test outside of your business hours to get unbiased results.
- Go to www.speedtest.net and run three separate speed tests one after another. Make sure you save the results of each of the tests.
Now, let’s assume you got the below results:
Test #1: Download 97Mbps / Upload 79Mbps
Test #2: Download 90Mbps / Upload 84Mbps
Test #3: Download 98Mbps / Upload 76Mbps
To set up your Ubiquiti EdgeRouter Pro we will make use of the lowest results, here being the 90Mbps for the download and 76Mbps for the upload.
2. Now you have to access the Ubiquiti EdgeRouter Pro CLI via the web interface or ssh access (ssh ubnt@192.168.1.1)
3. Next, type in the below rules
NOTE: If you decide to copy-paste the command lines we provide below, please do it in the following order: Start -> Download Rule -> Upload Rule -> Finish
Start
configure
top
Download Rule
# Setup of the CrazyCall Download policy
set traffic-policy shaper DownstreamCrazyCall description "CrazyCall Download QoS policy"
set traffic-policy shaper DownstreamCrazyCall bandwidth 79Mbit
set traffic-policy shaper DownstreamCrazyCall class 2 description "Class for CrazyCall servers IP address"
# The value of your class must be at least -> (nb of CrazyCall users) x (100Kbit)
set traffic-policy shaper DownstreamCrazyCall class 2 bandwidth 5000Kbit
set traffic-policy shaper DownstreamCrazyCall class 2 ceiling 100%
set traffic-policy shaper DownstreamCrazyCall class 2 priority 7
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall1 ip source address 13.248.142.203/32
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall2 ip source address 52.59.238.8/29
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall3 ip source address 46.28.243.96/29
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall4 ip source address 52.209.63.240/29
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall5 ip source address 52.59.238.8/29
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall6 ip source address 52.220.191.252/30
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall7 ip source address 52.65.191.152/30
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall8 ip source address 52.66.194.216/30
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall9 ip source address 18.228.88.9/32
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall10 ip source address 52.205.249.160/29
set traffic-policy shaper DownstreamCrazyCall class 2 match CrazyCall11 ip source address 18.228.88.9/32
# Remaining of your bandwidth come here
set traffic-policy shaper DownstreamCrazyCall default bandwidth 74Mbit (79Mbit [from test] - 5Mbit [DownstreamCrazyCall class 2 bandwidth] = 74mbit )
set traffic-policy shaper DownstreamCrazyCall default ceiling 100%
Upload Rule
# Setup of the CrazyCall Download policy
set traffic-policy shaper UpstreamCrazyCall description "CrazyCall Upload QoS policy"
set traffic-policy shaper UpstreamCrazyCall bandwidth 74Mbit
set traffic-policy shaper UpstreamCrazyCall class 2 description "Class for CrazyCall servers IP address"
# The value of your class must be at least -> (nb of concurent CrazyCall users) x (100Kbit)
set traffic-policy shaper UpstreamCrazyCall class 2 bandwidth 5000Kbit
set traffic-policy shaper UpstreamCrazyCall class 2 ceiling 100%
set traffic-policy shaper UpstreamCrazyCall class 2 priority 7
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall1 ip destination address 13.248.142.203/32
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall2 ip destination address 52.59.238.8/29
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall3 ip destination address 46.28.243.96/29
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall4 ip destination address 52.209.63.240/29
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall5 ip destination address 52.59.238.8/29
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall6 ip destination address 52.220.191.252/30
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall7 ip destination address 52.65.191.152/30
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall8 ip destination address 52.66.194.216/30
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall9 ip destination address 18.228.88.9/32
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall10 ip destination address 52.205.249.160/29
set traffic-policy shaper UpstreamCrazyCall class 2 match CrazyCall11 ip destination address 18.228.88.9/32
# Remaining of your bandwidth come here
set traffic-policy shaper UpstreamCrazyCall default bandwidth 69Mbit (74Mbit [from test] - 5Mbit [UpstreamCrazyCall class 2 bandwidth] = 74mbit )
set traffic-policy shaper UpstreamCrazyCall default ceiling 100%
# Here we assume eth1 is you internet interface and eth0 is your LAN interface
set interfaces ethernet eth1 traffic-policy out UpstreamCrazyCall
set interfaces ethernet eth0 traffic-policy out DownstreamCrazyCall
Finish
commit
save
After you’re done with the above your router is all set up to prioritize CrazyCall over other communications which should result in a better call quality!
Comments
0 comments
Please sign in to leave a comment.