41
MIKROTIK QUALITY OF SERVICE IN WIRELESS BRIDGE PTP LINK By Muhammad Zishan Shaukat Tristar Technologies MikroTik User Meeting, 30th January 2018 Nairobi (Kenya)

MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

MIKROTIKQUALITY OF SERVICE IN

WIRELESSBRIDGE PTP LINK

By

Muhammad Zishan Shaukat

Tristar Technologies

MikroTik User Meeting, 30th January 2018

Nairobi (Kenya)

Page 2: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP
Page 3: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP
Page 4: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

OUTLINES

1. Wireless Problems in Congested Environment.

2. Solution with MikroTik ROS

3. How does it work in MikroTik?

4. Configuration to be used

5. My Successful Project Story

6. MikroTik ROS Configuration Steps

7. Conclusion

Page 5: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

WIRELESS BRIDGE PTP LINK????

Wireless point to point links are widely used as

• quick-to-deploy

• cost effective

• Less Maintenance Time

• Troubleshoot free

• More..

Page 6: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

CONGESTED ENVIRONMENT

Page 7: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP
Page 8: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

WIRELESS PROBLEMS IN CONGESTED ENVIRONMENT

Page 9: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

SOLUTION WITH MIKROTIK OS

MikroTik Router OS offer a very powerful and

extremely flexible QoS in wireless environment.

•Nstream v2 (NV2) Protocol

•Queues Management

•Frame-Priority

Page 10: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

FTP Server

with priority 3

Mail Server

with priority 6

IP Phone

with priority 7

HOW DOES IT WORKS IN MIKROTIK

Page 11: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

NV2 PROTOCOL

• Nstream v2 (NV2) is TDMA technology (Time

Division Multiple Access) based Wireless

PROTOCOL

• You can configure Nv2 in the Wireless menu.

• The most important benefits of Nv2 are:

• Increased speed

• More client connections in Point to multi point

environments

• Lower latency

• No distance limitations

• No penalty for long distances.

Page 12: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

NV2 WITH QUEUES

• By default (nv2-qos=default) NV2 use two

queues (nv2-queue=2).

• In this mode, all outgoing packets are

handled by the integrated QoS algorithm

based on packet type and size.

QoS settings are only done on

the AP!

There is no need at station

end

Page 13: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

NV2 QUEUES MANAGEMENT

• We can use 2 (RouterOS default), 4 or 8 separate queues inside a NV2 link for

individual traffic classes.

• ‘Packet to queue’ depends on the selected number of available NV2 queues (2, 4 or

8 queues)

Page 14: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

QUEUES BEHAVIOR

To understand this behavior, we have to take a deeper look in the IEEE Standard for

802.1D-2004 Bridge definitions!

Hig

her

Page 15: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

THE FRAME-PRIORITY OPTION

• If the built-in rules do not

apply, also in this mode

the queuing mechanism

use the Frame-Priority

field.

Page 16: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

THE FRAME-PRIORITY FIELD

• This can easily be done using the

‘action=set-priority’ functionality inside

the powerful firewall subsystem of

RouterOS which is available for

• Layer2 (in Bridge Filter)

• Layer3 (in IP Firewall Mangle)

Page 17: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

CONFIGURATION TO BE USED…

VOIP FTP

SQL base Software

Page 18: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

MY PROJECT PLACEGULBERG III LAHORE

PAKISTAN

Wireless device: MikroTik SXT 5 AC

Wireless Environment: Congested & Smoked

WIRELESS PTP LINK 5 km

Data Throughout put: 50 Mbps

Highest priority set: IP Phone / IP PBX

Page 19: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

BRIDGE & BRIDGE

STATION LINK STABILITY

Page 20: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

GOAL ACHIEVED

UDP protocol with

priority 3

TCP protocol with

priority 6

ICMP protocol

with priority 7

Page 21: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

NV2 QUEUES WITH

HIGHEST FRAME

PRIORITY (7)

(IP PHONE)

TCP LOGS

Page 22: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

MIKROTIK OS WIRELESS BRIDGE CONFIGURATION

Page 23: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

BRIDGE CONFIGURATION

• First of all make a bridge interface and add ether1 port & wlan1 port on

Both Devices one by one

Page 24: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

AP BRIDGE END CONFIGURATION

Page 25: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

STATION BRIDGE END CONFIGURATION

Page 26: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

IP ADDRESS TO BRIDGE INTERFACES

AP bridge End IP address

10.0.0.1/24 Station bridge End IP

address

10.0.0.2/24

Page 27: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

METHOD 1

FRAME PRIORITY WITH LAYER 2.

IN BRIDGE FILTERS

Page 28: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

UDP FRAME PRIORITY

Page 29: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

TCP FRAME PRIORITY

Page 30: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

ICMP (PING) FRAME PRIORITY

Page 31: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

LOG SETTING TO CONFIRM ICMP PRIORITY IN BRIDGE FILTER RULE

Page 32: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

LOGS

Page 33: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

METHOD 2

FRAME PRIORITY WITHLAYER 3

IN IP FIREWALL MANGLE

Page 34: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

UDP FRAME PRIORITY

Page 35: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

TCP FRAME PRIORITY

Page 36: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

ICMP (PING) FRAME PRIORITY

Page 37: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

LOG SETTING TO CONFIRM ICMP PRIORITY IP FIREWALL FILTER

Page 38: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

USE OF FIREWALL IN BRIDGE

Page 39: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

LOGS

Page 40: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

CONCLUSION

MikroTik OS Base Wireless Bridge is more

reliable, Stronger & Faster than all existing

Wireless PTP Bridge Link in Congested

Environment as I`ve Tested

Page 41: MikroTik Quality of Service in wireless Point-to-Point Links · 2018-02-02 · My Successful Project Story 6. MikroTik ROS Configuration Steps 7. Conclusion . WIRELESS BRIDGE PTP

THANK YOU

ANY QUESTION PLEASE