Expired

Quality of Service (QoS)

Expired

What is Quality of Service?

Sharing an Internet connection with limited bandwidth between many purposes, such as making a Skype call while someone else is watching streaming videos can result in the call breaking up or reducing in quality if the demand placed on the connection exceeds the connection's bandwidth.

Quality of Service is used as a solution to this issue by queuing data that isn't sensitive to delays, using a queueing system and reserved bandwidth and prioritising important traffic so that it is not delayed. This allows the time sensitive data such as Voice over IP to be sent first and without degrading the quality of either data type.

An Internet router without Quality of Service will treat all traffic on a "first come, first served" basis, which isn't a problem when there is enough bandwidth available for all applications. However, when the connection is fully utilised, this may result in time sensitive data waiting in the queue behind a bulk of data that isn't sensitive to delays.

DrayTek's Quality of Service

The Quality of Service system available on DrayTek routers allows for full control of how traffic is prioritised and bandwidth is reserved, with five queues available (VoIP, High, Medium, Low, Other).  QoS can only be applied to devices within NAT (private) subnets, not public IP addresses routes straight through the router.

The router assigns sessions to each one of these queues and schedules packets to be sent through the router in an order of priority instead of "first come, first served", with reserved bandwidth available to each queue, to ensure that important data can always be sent.

Classification

Assigning traffic to a Quality of Service queue requires matching a detail of a session, similarly to how the router's Firewall allows or blocks traffic based on matching criteria.

DrayTek's QoS system can classify traffic based on these parameters:

Local Address

The IP address (Single IP, Range IP or Subnet) of a local computer, server or device on the network, for instance to prioritise all traffic from a specified PC
Remote Address The Internet / WAN IP address (Single IP, Range IP or Subnet) that the session is being sent to, which could be used to prioritise traffic to a remote website or the IP addresses of remote PCs available through a VPN tunnel
Service Type The type of traffic, such as HTTPS, FTP, DNS, Ping. The router has a number of pre-defined types and any TCP or UDP port / range can be specified
DiffServ CodePoint (DSCP) Traffic that has a DSCP or 802.1Q Priority tag assigned to it either by a managed switch or an IP phone. Many IP phones can tag time sensitive call audio so that it can be prioritised when the IP address and Service Type may not be constant

Prioritisation

The queuing system of Quality of Service uses five queues to determine the importance of each type of traffic. The router's packet scheduling re-orders packets so that highest priority traffic is sent first and with less latency than lower priority traffic, which is sent after the high priority packets have been sent.

This Quality of Service Status gives an example of how traffic is split into each of these queues:

  • Time sensitive data is assigned the VoIP, High and Medium priority queues
  • High bandwidth, bulk data is being assigned to the Low and Other priority queues

The Class 1, 2 and 3 queues can be configured to re-tag packets sent out by the router to the Internet connection with a DiffServ-CodePoint priority tag, your ISP can use these to prioritise traffic based on the tag used, if your ISP or WAN supports DSCP packet tags.

Bandwidth Reservation

DrayTek's Quality of Service system is designed to be able to guarantee specified levels of bandwidth to each of the Class queues, as a percentage of the bandwidth available to each one of its Internet connections. When there is a matching traffic type detected, the router reserves the bandwidth assigned to the queue so that traffic in other queues cannot use that bandwidth, leaving it instantly available for use when needed.

The bandwidth available to each Internet connection is specified so that the router can divide traffic fairly between the different queues. On DrayTek routers with a built-in ADSL or VDSL modem, the router will automatically define the bandwidth available for the Quality of Service system through the DSL connection's Link Speed.

In this example, traffic in the High priority queue has 20Mbps reserved when High priority sessions are passing through the router; even if they're not using the full bandwidth at the time. This stops lower priority queues from interrupting the High priority queue if it needs to use more bandwidth.

The QoS system will allow the High priority queue to use the full 80Mbps of bandwidth if it's required, with 20Mbps being the minimum it would have available.

When there is no traffic detected in the High priority queue, that reserved bandwidth is available for use by the lower priority queues.