MikroTik Certified Traffic Control Engineer (MTCTCE)
1 Introduction to Traffic Control
1-1 Understanding Traffic Control
1-2 Importance of Traffic Control in Network Management
1-3 Overview of MikroTik RouterOS
2 Basic Concepts of Traffic Control
2-1 Bandwidth Management
2-2 Quality of Service (QoS)
2-3 Traffic Shaping
2-4 Packet Prioritization
3 MikroTik RouterOS Basics
3-1 Installation and Configuration
3-2 User Interface Overview
3-3 Basic Commands and Navigation
4 Traffic Control Tools in MikroTik RouterOS
4-1 Queue Types
4-2 Simple Queues
4-3 Queue Trees
4-4 Queue Chains
4-5 Queue Meters
5 Advanced Traffic Control Techniques
5-1 Class-Based Queuing
5-2 Hierarchical Token Bucket (HTB)
5-3 Differentiated Services (DiffServ)
5-4 Traffic Policing and Shaping
6 Monitoring and Troubleshooting Traffic Control
6-1 Traffic Monitoring Tools
6-2 Analyzing Traffic Patterns
6-3 Troubleshooting Common Issues
6-4 Performance Optimization
7 Practical Scenarios and Case Studies
7-1 Implementing Traffic Control in Small Networks
7-2 Traffic Control in Medium-Sized Enterprises
7-3 Large-Scale Network Traffic Management
7-4 Real-World Case Studies
8 Security and Traffic Control
8-1 Role-Based Access Control (RBAC)
8-2 Firewall Integration
8-3 Traffic Filtering and Blocking
8-4 Secure Traffic Control Practices
9 Automation and Scripting
9-1 Introduction to Scripting in MikroTik RouterOS
9-2 Automating Traffic Control Tasks
9-3 Advanced Scripting Techniques
9-4 Integration with Other Network Tools
10 Certification Exam Preparation
10-1 Exam Format and Structure
10-2 Key Topics to Focus On
10-3 Practice Questions and Simulations
10-4 Tips for Success
5-3 Differentiated Services (DiffServ) Explained

5-3 Differentiated Services (DiffServ) Explained

Differentiated Services (DiffServ) is a scalable and efficient method for classifying and managing network traffic to ensure quality of service (QoS). DiffServ operates by marking packets with Differentiated Services Code Points (DSCP) and applying per-hop behaviors (PHBs) to prioritize and manage traffic. Here, we will delve into the key concepts related to DiffServ.

1. Differentiated Services Code Points (DSCP)

DSCP is a field in the IP header that is used to classify and prioritize network traffic. Each DSCP value corresponds to a specific level of service, allowing routers to apply different treatment to packets based on their DSCP value. Common DSCP values include:

For example, you can configure a router to mark VoIP packets with the EF DSCP value, ensuring that they receive the highest priority in the network.

2. Per-Hop Behaviors (PHBs)

PHBs define how routers should handle packets based on their DSCP value. Each PHB specifies a set of actions that can be taken, such as prioritizing, dropping, or delaying packets. Common PHBs include:

For instance, the EF PHB ensures that VoIP packets are processed quickly and with minimal delay, while the AF PHB guarantees a certain level of service for web browsing traffic.

3. Traffic Classification

Traffic Classification is the process of identifying and categorizing network traffic based on predefined criteria. This classification is essential for applying the appropriate DSCP values and PHBs. Common classification criteria include:

For example, you can classify traffic from a specific IP address as VoIP traffic and mark it with the EF DSCP value.

4. Traffic Policing and Shaping

Traffic Policing and Shaping are techniques used to control the rate of traffic passing through a network. Policing involves dropping or marking packets that exceed a predefined rate, while shaping involves delaying packets to ensure that the traffic stays within the specified rate.

For instance, you can configure a traffic policer to drop packets from a specific user if their upload rate exceeds 1 Mbps. Alternatively, you can configure a traffic shaper to delay packets from a specific application if their download rate exceeds 2 Mbps.

5. Examples and Analogies

Consider a highway with different lanes for different types of vehicles. The fast lane is reserved for emergency vehicles, the middle lane is for regular cars, and the slow lane is for trucks. Similarly, DiffServ ensures that critical traffic like VoIP and video conferencing is given the fast lane (EF PHB), while regular traffic like web browsing is given the middle lane (AF PHB), and background traffic like file transfers is given the slow lane (BE PHB).

Understanding DiffServ is crucial for network administrators who need to manage bandwidth efficiently and ensure that critical applications receive the necessary resources. By mastering DiffServ, you can ensure that your network operates efficiently, securely, and reliably.