Products
Solutions
Developers
Demo
Pricing
Company
Back to Blog

QoS Technology: The Key to Network Service Quality

Tencent RTC-Dev Team
Dec 11, 2024

With the rapid development of network technology, IP networks have transformed from single data networks to multi-service networks integrating data, voice, video, and games. The data carried in the network has increased exponentially, and these services have extremely high requirements for network bandwidth and latency. At the same time, due to the difficulty, long cycle, and high cost of hardware chip research and development, bandwidth has gradually become a bottleneck in the development of the Internet, leading to network congestion, packet loss, and service quality degradation. In severe cases, it even causes service unavailability. QoS (Quality of Service) technology was developed in this context. Its purpose is to provide end-to-end service quality assurance for various services based on their different needs.

what is QoS (Quality of Service)
what is QoS (Quality of Service)

What is QoS?

QoS (Quality of Service) is a network security mechanism and a technology used to solve network delays and congestion problems. Under normal circumstances, if the network is only used for specific time-independent application systems, QoS is not required, such as Web applications or E-mail settings. However, it is very necessary for critical applications and multimedia applications. When the network is overloaded or congested, QoS can ensure that important business traffic is not delayed or discarded, while ensuring the efficient operation of the network.

Why is QoS Important?

1. Ensure service quality: QoS can ensure that key applications and services in the network can obtain the required service quality parameters such as bandwidth, latency, packet loss rate and jitter. This is especially important for real-time applications (such as VoIP, video conferencing) and delay-sensitive applications (such as online games, video streaming). By providing stable and reliable service quality, QoS can improve user experience and meet business needs.

2. Resource management and optimization: QoS can help network administrators effectively manage network resources to ensure the reasonable allocation and utilization of resources. By classifying and prioritizing different types of traffic, QoS can avoid network congestion and resource waste, and improve network throughput and efficiency.

3. Support multimedia applications: With the popularity of multimedia applications such as audio, video and real-time communication, the requirements for the network are also getting higher and higher. QoS can provide appropriate bandwidth and latency control to ensure real-time transmission and high-quality playback of multimedia data. This is essential for applications such as online video streaming, audio conferencing and remote collaboration.

4. Business Priority and SLA: QoS can set different priorities and service quality according to business needs and service level agreements (SLAs). This is especially important for enterprise networks and cloud service providers to ensure that key businesses are prioritized and that service commitments in contracts are met.

5.Network Security and Traffic Control: QoS can help identify and handle malicious traffic, denial of service attacks, and traffic overloads in the network. By classifying and limiting traffic, QoS can provide better network security and traffic control, protecting the network from malicious behavior.

What are the Model Classifications of QoS?

QoS has three service models, including the best-effort service model, the integrated service model, and the differentiated service model.

  1. Best-effort service model: It is a single service model and the simplest service model. The network sends messages as much as possible, but does not provide any guarantee for performance such as delay and reliability. It is the default service model of the network, implemented through a first-in-first-out queue, and is suitable for most network applications, such as FTP, E-Mail, etc.
  2. Integrated service model: It can meet multiple QoS requirements. This model uses the Resource Reservation Protocol (RSVP), which runs on each device from the source to the destination, and can monitor each flow to prevent it from consuming too many resources. This system can clearly distinguish and guarantee the service quality of each business flow, providing the network with the most granular service quality distinction. However, the Inter-Serv model has high requirements for devices. When the number of data flows in the network is large, the storage and processing capabilities of the device will encounter great pressure, and the scalability is poor, making it difficult to implement in the Internet core network.
  3. Differentiated service model: It is a multi-service model that can meet different QoS requirements. Unlike Int-Serv, it does not need to notify the network to reserve resources for each service. Differentiated services are simple to implement and have good scalability. The basic idea is to classify data flows according to predetermined rules and determine different priorities and operations for different types of traffic. For example, digital services continue to drive network innovation. According to IDC estimates, by 2023, there will be 48.9 billion connected devices worldwide. The popularity of the network and the diversification of services have led to a surge in Internet traffic. The differentiated service model can effectively cope with this situation, dividing the traffic in the network into multiple classes, using different processing for different classes, and providing different service qualities for different services.

Digital Matrix Code
Digital Matrix Code

What are the Implementation Mechanisms of QoS?

1. Classification and Marking

In the network, in order to achieve targeted processing of different types of traffic, it is necessary to classify and mark traffic at the network boundary. Classification can be based on a variety of factors, such as IP address, port number, protocol type, etc. For example, traffic can be classified according to source IP address and destination IP address, and traffic from a specific IP segment can be marked as high priority, and other traffic can be marked as low priority.Marking usually sets a value in a specific field of a data packet to indicate the priority or service category of the data packet.

Tags can be marked in three places: the PRI field in the VLAN tag, the EXP field in the MPLS, and the TOS field in the IP packet. Through classification and marking, network devices can quickly identify different types of traffic and handle them accordingly according to their priority.

2. Traffic Shaping and Supervision

Traffic shaping and traffic supervision are important technologies in QoS, which are used to control the traffic in the network and ensure that it meets certain specifications. Traffic shaping is usually to make the packets sent out at a uniform rate to avoid the impact of sudden traffic on the network. Traffic supervision monitors the traffic entering the device to ensure that it does not abuse network resources.

According to the searched content, traffic shaping can use GTS (Generic Traffic Shaping) technology to put the excess part at the end and transmit it slowly.  Traffic shaping is usually done using a buffer and a token bucket. When the message is sent too fast, it is first cached in the buffer and then sent evenly under the control of the token bucket.

3. Congestion Avoidance

Congestion avoidance refers to monitoring the usage of network resources and actively discarding packets when congestion occurs or tends to increase, so as to adjust the network traffic and relieve network overload. Common congestion avoidance technologies include WRED (Weighted Random Early Detection).

WRED randomly discards packets based on discard parameters, taking into account the interests of high-priority packets and making them relatively less likely to be discarded. WRED sets upper and lower thresholds for the length of each queue, and stipulates that: when the length of the queue is less than the lower threshold, no packets are discarded; when the length of the queue is greater than the upper threshold, all newly received packets are discarded; when the length of the queue is between the lower threshold and the upper threshold, newly received packets are randomly discarded. The longer the queue, the higher the probability of packet discarding.

4. Congestion Management

Congestion management is implemented through the queue mechanism, putting all the messages to be sent from an interface into different cache queues, and implementing differential forwarding of different messages according to the scheduling mechanism between queues.

Common queue scheduling algorithms include FIFO (first in, first out), PQ (priority queue), WRR (weighted round robin scheduling), WFQ (weighted fair queue), PQ+WFQ, CBQ (class-based weighted fair queue), etc. For example, WFQ assigns different flows to different queues according to the source IP address, destination IP address, protocol, port number, IP priority and other information of the data flow. When leaving the queue, WFQ allocates the bandwidth of the export according to the priority of the flow. The smaller the priority, the smaller the bandwidth, and the larger the priority, the larger the bandwidth.

CBWFQ extends the function of WFQ, and can classify according to the priority of the data, source IP address and destination IP address, protocol, etc., and let different messages enter different queues. At the same time, CBWFQ can be configured with WRED to perform congestion management while avoiding congestion.

The Limitations and Improvements of QoS

QoS technology plays an important role in the network, but it also has some limitations and room for improvement. The following are some limitations and improvement points of QoS technology:

  1. Complexity: The implementation and management of QoS may be relatively complex, especially in large-scale networks. Configuring and adjusting QoS policies may require professional knowledge and experience, which increases the complexity of deployment and maintenance. Improvement points: Simplify the QoS configuration and management process, provide more intuitive and easy-to-use interfaces and tools, so that non-professionals can easily configure and manage QoS.
  2. Network heterogeneity: Modern networks are usually composed of multiple types of devices and technologies, such as wired and wireless networks, devices from different manufacturers, etc. This heterogeneity may lead to inconsistency and compatibility issues between QoS policies between different devices and technologies. Improvement points: Develop unified QoS standards and protocols to ensure interoperability and consistency between different devices and technologies.
  3. Dynamicity: Network traffic and demand are dynamically changing, and QoS policies need to be able to adapt to such changes. Traditional static QoS configurations may not meet real-time network needs. Improvement points: Develop adaptive and dynamic QoS mechanisms that can be dynamically adjusted and optimized according to changes in real-time traffic and demand.
  4. Security: QoS mechanisms may be subject to malicious attacks or abuse. Attackers may try to bypass QoS policies, affect network performance, or obtain undeserved priority. Improvement points: Strengthen the security of QoS and adopt mechanisms such as authentication and encryption to ensure the legitimacy and reliability of QoS policies.
  5. Cross-network QoS: In the case of cross-network, the implementation and management of QoS may be more complicated. Interoperability and consistency between different networks may become a challenge. Improvement points: Develop unified cross-network QoS standards and protocols to ensure a consistent QoS experience between different networks.

In summary, although QoS technology plays an important role in the network, there are still some limitations and room for improvement. The effectiveness and reliability of QoS technology can be further improved by simplifying the configuration and management process, developing unified standards and protocols, developing adaptive and dynamic mechanisms, strengthening security, and ensuring consistency across networks.

Conclusion

In conclusion, Quality of Service (QoS) is a vital component in modern networking that ensures the reliable and efficient delivery of data across various applications and services. By prioritizing network traffic and managing bandwidth allocation, QoS enhances user experience, particularly for latency-sensitive applications such as voice and video. As the demand for high-quality streaming and real-time communication continues to grow, implementing effective QoS strategies becomes increasingly important for organizations. Ultimately, a well-designed QoS framework not only optimizes network performance but also supports business objectives by ensuring that critical applications receive the necessary resources to function seamlessly.

TRTC (Tencent Real-Time Communication) offers significant advantages in Quality of Service (QoS) that enhance the overall user experience in real-time communication applications. One of its key strengths is adaptive bitrate streaming, which dynamically adjusts the video and audio quality based on network conditions, ensuring smooth communication even in fluctuating bandwidth scenarios. Additionally, TRTC employs advanced algorithms for network optimization, minimizing latency and packet loss, which are critical for maintaining high-quality audio and video during calls. The platform also supports multiple network protocols and provides robust error correction mechanisms, further enhancing reliability. With these features, TRTC ensures that users enjoy seamless, high-quality interactions, making it an ideal choice for applications requiring real-time engagement.

If you have any questions or need assistance online, our support team is always ready to help. Please feel free to Contact us or join us on Telegram or Discord. For technical problems, you can also get help directly from developers on Stack Overflow.