What are the most common QoS settings for VoIP in LAN switching?
Learn from the community’s knowledge. Experts are adding insights into this AI-powered collaborative article, and you could too.
This is a new type of article that we started with the help of AI, and experts are taking it forward by sharing their thoughts directly into each section.
If you’d like to contribute, request an invite by liking or reacting to this article. Learn more
— The LinkedIn Team
VoIP (Voice over Internet Protocol) is a technology that allows you to make and receive phone calls over a data network, such as a LAN (Local Area Network). However, VoIP traffic is sensitive to network delays, jitter, and packet loss, which can affect the quality and reliability of voice communication. To ensure optimal VoIP performance, you need to configure QoS (Quality of Service) settings on your LAN switches. QoS is a set of techniques that prioritize and manage network traffic according to different criteria, such as bandwidth, latency, and packet loss. In this article, we will explain the most common QoS settings for VoIP in LAN switching and how they can improve your voice network.
The first step in QoS configuration is to classify the network traffic into different classes or categories, based on the type, source, destination, or application of the traffic. For example, you can classify VoIP traffic as a high-priority class, while web browsing traffic as a low-priority class. By doing so, you can assign different QoS policies and actions to each class, depending on your network needs and objectives. There are several methods to classify traffic on LAN switches, such as using VLANs (Virtual Local Area Networks), CoS (Class of Service) values, DSCP (Differentiated Services Code Point) values, or ACLs (Access Control Lists).
-
Liberty Bwanali
Founder & Director at LIBCONNECT AFRICA (PTY) LTD
There are several methods to classify traffic on LAN switches, such as using VLANs (Virtual Local Area Networks), CoS (Class of Service) values, DSCP (Differentiated Services Code Point) values, or ACLs (Access Control Lists). Based on customer needs one can set a few protocols such as High and Low priorities list, path costs being calculated so maybe Web Services are low priority than VoIP ( Voice Over IP ) So all depends on the project type and usage case.
-
Muhammad Tariq
| Fiber Optic Network Technician | Excellent Experience in Design, Installation, Splicing, Troubleshooting, and Training | Expert in FTTH, DWDM, NG-SDH, OSP, ISP |
QoS settings for VoIP in LAN switching are vital for maintaining call quality. Common techniques include VLANs for isolation, CoS/DSCP marking for priority, traffic classification with ACLs, and priority queuing to reduce delay and jitter. Bandwidth reservation ensures a minimum for VoIP, while queuing algorithms like WFQ/WRR allocate bandwidth by priority. Policing and shaping control traffic, link aggregation adds redundancy and bandwidth, and Auto-QoS simplifies configuration. Call admission control (CAC) manages concurrent calls, voice VLANs segregate traffic, and jitter buffers handle packet timing. Customization is crucial based on equipment and system requirements.
The next step in QoS configuration is to mark the network traffic with QoS values, which indicate the priority and treatment of the traffic. Marking is done at the ingress (incoming) interface of the switch, where the traffic enters the network. Marking allows the switch to identify and differentiate the traffic classes and apply the appropriate QoS policies and actions along the network path. There are two main types of QoS marking: Layer 2 marking and Layer 3 marking. Layer 2 marking uses CoS values, which are embedded in the Ethernet header of the frame. Layer 3 marking uses DSCP values, which are embedded in the IP header of the packet. For VoIP traffic, it is recommended to use both Layer 2 and Layer 3 marking, as some switches may only support one type of marking.
The third step in QoS configuration is to queue the network traffic according to the QoS values, which determine the order and frequency of the traffic being transmitted. Queuing is done at the egress (outgoing) interface of the switch, where the traffic leaves the network. Queuing prevents congestion and ensures that high-priority traffic, such as VoIP, gets enough bandwidth and low latency. There are several types of queuing algorithms that can be used on LAN switches, such as FIFO (First In First Out), PQ (Priority Queuing), WFQ (Weighted Fair Queuing), or CBWFQ (Class-Based Weighted Fair Queuing). For VoIP traffic, it is recommended to use PQ or CBWFQ, as they can guarantee a minimum amount of bandwidth and a maximum delay for each traffic class.
The fourth step in QoS configuration is to shape or police the network traffic according to the QoS values, which control the rate and volume of the traffic being transmitted. Shaping and policing are done at the egress interface of the switch, where the traffic leaves the network. Shaping and policing prevent oversubscription and ensure that the traffic does not exceed the available bandwidth or the agreed service level. There are two main differences between shaping and policing: shaping buffers the excess traffic and sends it later, while policing drops or marks down the excess traffic. For VoIP traffic, it is recommended to use shaping rather than policing, as shaping can smooth out the traffic bursts and reduce packet loss.
The fifth step in QoS configuration is to define the QoS trust boundaries, which determine where and how the QoS values are trusted or verified. Trust boundaries are important to ensure that the QoS values are consistent and accurate across the network, and that the QoS policies and actions are applied correctly and effectively. There are two main types of QoS trust boundaries: trust and untrust. Trust means that the switch accepts and forwards the QoS values that are already marked by the previous device, such as a phone or a router. Untrust means that the switch ignores or overwrites the QoS values that are already marked by the previous device, and applies its own QoS classification and marking. For VoIP traffic, it is recommended to trust the QoS values at the edge of the network, where the phones are connected, and untrust the QoS values at the core of the network, where the switches are connected.
The final step in QoS configuration is to verify and monitor the QoS settings and performance, which ensure that the QoS objectives are met and that the VoIP quality is satisfactory. Verification and monitoring can be done using various tools and methods, such as show commands, debug commands, ping, traceroute, SNMP (Simple Network Management Protocol), or IP SLA (IP Service Level Agreement). These tools and methods can help you check the QoS values, statistics, status, and behavior of the network traffic, and identify and troubleshoot any QoS issues or problems. For VoIP traffic, it is recommended to monitor the key QoS metrics, such as bandwidth utilization, delay, jitter, and packet loss, and compare them with the baseline and threshold values.