MikroTik Certified Network Associate (MTCNA)
1 Introduction to Networking
1-1 Basic Networking Concepts
1-2 OSI Model
1-3 TCPIP Model
1-4 IP Addressing
1-5 Subnetting
2 Introduction to MikroTik RouterOS
2-1 RouterOS Overview
2-2 RouterOS Installation
2-3 RouterOS Licensing
2-4 RouterOS Interface Overview
2-5 RouterOS Command Line Interface (CLI)
2-6 RouterOS Graphical User Interface (GUI)
3 Basic Router Configuration
3-1 Router Identification
3-2 Interface Configuration
3-3 IP Address Assignment
3-4 Default Gateway Configuration
3-5 DNS Configuration
3-6 Basic Firewall Configuration
4 Routing
4-1 Static Routing
4-2 Dynamic Routing Protocols
4-3 OSPF Configuration
4-4 BGP Configuration
4-5 Policy-Based Routing
5 Network Address Translation (NAT)
5-1 Introduction to NAT
5-2 Basic NAT Configuration
5-3 Port Address Translation (PAT)
5-4 One-to-One NAT
5-5 Hairpin NAT
6 Firewall and Security
6-1 Firewall Basics
6-2 Firewall Rules Configuration
6-3 NAT Rules Configuration
6-4 Traffic Shaping and QoS
6-5 VPN Basics
6-6 IPsec VPN Configuration
7 Wireless Networking
7-1 Wireless Basics
7-2 Wireless Interface Configuration
7-3 Wireless Security
7-4 Wireless Bridging
7-5 Wireless Access Point Configuration
8 Advanced Topics
8-1 VLAN Configuration
8-2 DHCP Server Configuration
8-3 DHCP Relay Configuration
8-4 PPPoE Server Configuration
8-5 PPPoE Client Configuration
8-6 Hotspot Configuration
8-7 Load Balancing
8-8 High Availability (Failover)
9 Troubleshooting and Maintenance
9-1 Basic Troubleshooting Techniques
9-2 Log Analysis
9-3 Backup and Restore
9-4 Firmware Updates
9-5 System Monitoring
10 Practical Exercises
10-1 Basic Router Configuration Exercise
10-2 Static Routing Exercise
10-3 NAT Configuration Exercise
10-4 Firewall Configuration Exercise
10-5 Wireless Configuration Exercise
10-6 Advanced Configuration Exercise
10-7 Troubleshooting Exercise
Traffic Shaping and QoS Explained

Traffic Shaping and QoS Explained

Traffic Shaping and Quality of Service (QoS) are essential techniques used to manage network traffic and ensure that critical applications receive the necessary bandwidth. Understanding these concepts is crucial for the MikroTik Certified Network Associate (MTCNA) certification.

Key Concepts

1. Traffic Shaping

Traffic Shaping is a method used to control the rate at which traffic is sent or received on a network. It helps in preventing congestion and ensuring that traffic flows smoothly. Traffic Shaping can be applied to individual devices, specific applications, or entire network segments.

2. Quality of Service (QoS)

Quality of Service (QoS) is a set of techniques used to manage network resources to prioritize certain types of traffic. QoS ensures that critical applications, such as VoIP or video conferencing, receive the necessary bandwidth and low latency, even during periods of high network usage.

3. Policing vs. Shaping

Policing and Shaping are two different methods used to control traffic. Policing drops traffic that exceeds a specified rate, while Shaping queues excess traffic and sends it when the network is less congested.

4. Class-Based Queuing

Class-Based Queuing is a QoS technique that categorizes traffic into different classes based on criteria such as source IP address, destination IP address, protocol, and port number. Each class can then be assigned a priority level and bandwidth allocation.

Detailed Explanation

Traffic Shaping

Traffic Shaping involves setting a maximum rate for traffic on a network. If the traffic exceeds this rate, it is queued and sent when the network is less congested. This helps in preventing congestion and ensuring that traffic flows smoothly. For example, to shape traffic on a MikroTik router, you would use the command:

/queue simple add name=TrafficShaping target=192.168.1.0/24 max-limit=1M/1M

Quality of Service (QoS)

QoS involves prioritizing certain types of traffic to ensure that critical applications receive the necessary bandwidth. For example, VoIP traffic might be given a higher priority than file transfers. To configure QoS on a MikroTik router, you would use the command:

/queue simple add name=VoIPQoS target=192.168.1.0/24 priority=8

Policing vs. Shaping

Policing drops traffic that exceeds a specified rate, while Shaping queues excess traffic and sends it when the network is less congested. Policing is more aggressive and ensures that the network is not overloaded, while Shaping is more lenient and ensures that no traffic is lost. For example, to police traffic on a MikroTik router, you would use the command:

/queue simple add name=TrafficPolicing target=192.168.1.0/24 max-limit=1M/1M burst-limit=2M/2M

Class-Based Queuing

Class-Based Queuing categorizes traffic into different classes based on criteria such as source IP address, destination IP address, protocol, and port number. Each class can then be assigned a priority level and bandwidth allocation. For example, to create a class-based queue on a MikroTik router, you would use the command:

/queue type add name=CBQ kind=cbq

Examples and Analogies

Example: Traffic Shaping

Think of Traffic Shaping as a traffic light that controls the flow of cars. Just as a traffic light ensures that cars do not overwhelm the road, Traffic Shaping ensures that network traffic does not overwhelm the network.

Example: Quality of Service (QoS)

Consider QoS as a VIP lane at an airport. Just as VIPs are given priority access to ensure they reach their destination on time, QoS ensures that critical applications receive the necessary bandwidth and low latency.

Example: Policing vs. Shaping

Imagine Policing as a bouncer at a club who only allows a certain number of people in. If the club is full, additional people are turned away. Shaping, on the other hand, is like a reservation system that allows people to wait in line and enter when space becomes available.

Example: Class-Based Queuing

Think of Class-Based Queuing as a multi-lane highway. Each lane is designated for a specific type of vehicle, such as cars, trucks, and buses. Just as each lane ensures that vehicles move efficiently, Class-Based Queuing ensures that different types of traffic are managed effectively.

By mastering Traffic Shaping and QoS, you can effectively manage network traffic and ensure that critical applications receive the necessary bandwidth, making your network more efficient and reliable.