Quality of service
|
In the fields of packet-switched networks and computer networking, the traffic engineering term Quality of Service (QoS) refers to the probability of the network meeting a given traffic contract, or in many cases is used informally to refer the probability of a packet passing between two points in the network.
In the field of telephony, telephony quality of service refers to lack of noise and tones on the circuit, appropriate loudness levels etc., and includes grade of service.
Contents |
Problems
When the Internet was first being created, there was no perceived need for a QoS application. So in fact the entire internet ran on a "best effort" system. There were 4 "type of service" bits and three "precedence" bits provided in each message, but they were largely unused. There are many things that can happen to packets as they travel from origin to destination and they result in the following problems, as seen from the point of view of the sender and receiver:
- dropped packets - the routers might fail to deliver (drop) some packets if they arrive when their buffers are already full. Some, none, or all of the packets might be dropped, depending on the state of the network, and it is impossible to determine what happened in advance. The receiving application must ask for this information to be retransmitted, possibly causing severe delays in the overall transmission.
- delay - it might take a long time for a packet to reach its destination, because it gets held up in long queues, or takes a more indirect route to avoid congestion. Alternatively, it might follow a fast, direct route. The delay is very unpredictable.
- out-of-order delivery - when a collection of related packets are routed through the internet, different packets may take different routes, each resulting in a different delay. The result is that the packets arrive in a different order than the one with which they were sent. This problem necessitates special additional protocols responsible for rearranging out-of-order packets once they reach their destination.
- error - sometimes packets are misdirected, or combined together, or corrupted, while en route. The receiver has to detect this and, just as if the packet was dropped, ask the sender to repeat itself.
Applications requiring QoS
A traffic contract (SLA, Service Level Agreement) specifies guarantees for the ability of a network/protocol to give guaranteed performance/throughput/latency bounds based on mutually agreed measures, usually by prioritising traffic. A defined Quality of Service may be required for certain types of network traffic, for example:
- streaming multimedia may require guaranteed throughput
- IP telephony may require strict limits on jitter and delay
- dedicated link emulation requires both guaranteed throughput and imposes limits on maximum delay
- a safety-critical application, such as remote surgery may require a guaranteed level of availability (this is also called hard QoS).
These types of service are called inelastic, meaning that they require a certain level of bandwidth to function - if they get more than that they can't use it, and if they get less, then they can't function at all. By contrast, elastic applications can take advantage of however much or little bandwidth is available.
Obtaining QoS
There are essentially two ways to provide QoS guarantees. The first is simply to provide lots of resources, enough to meet the expected peak demand with a substantial safety margin. This is nice and simple, but some people believe it to be expensive in practice, and can't cope if the peak demand increases faster than predicted: deploying the extra resources takes time.
The second one is to require people to make reservations, and only accept the reservations if the routers are able to serve them reliably. Naturally, you can then charge people money for making reservations! There are two popular variations on this:
DiffServ are typically used with:
- weighted round robin, WRR.
- RED, WRED - Lessens the possibility of port queue buffer tail-drops and this lowers the likelihood of TCP global synchronization.
- Traffic shaping
- A number of port queue buffers.
- VLAN IEEE 802.1p and IEEE 802.1D.
Network equipment, that supports DiffServ and perhaps IntServ, are called multilayer network equipment. A switch that supports DiffServ and perhaps IntServ is called a multilayer switch.
However, the market has not yet favoured QoS services. Some people believe that this is because a "dumb" network that offers sufficient bandwidth for most applications, most of the time, is already economically stable, with little incentive to deploy non-standard stateful QoS-based applications.
Internet peering arrangements are already complex, and there appears to be no enthusiasm among providers for supporting QoS across peering connections, or agreement about what policies should be supported in order to do so.
QoS skeptics further point out that if you are dropping many packets on elastic low-QoS connections, you are already dangerously close to the point of congestion collapse on your inelastic high-QoS applications, without any way of further dropping traffic without violating traffic contracts.
QoS problems with some technologies
The following properties may only be used on end ports, but not on server, backbone or other ports, that mediates many concurrent flows.
- half duplex - link collisions make delay variations (jitter), because the packets are delayed with each collision by the backoff-time.
- Port queue buffer IEEE 802.3x "flow"-control.
IEEE 802.3x "flow"-control are not a real flow control, but instead a queue-control. An example of a IEEE 802.3x problem are "head of Line"-blocking. Many of today's switches have IEEE 802.3x on as default - even on uplink/backbone ports.
Quote from: Network World, 09/13/99, 'Flow control feedback' (http://www.nwfusion.com/netresources/0913flow.html): "...Hewlett-Packard points out that quality of service is a better way to handle potential congestion, and Cabletron and Nortel note that QoS features can't operate properly if a switch sends [IEEE 802.3x] pause frames...."
This quote suggests that QoS and IEEE 802.3x are incompatible.
An ethernet connection with 100 Mbit/s full duplex instead of 100 Mbit/s half duplex increases the effective speed from ca. 60-100 Mbit/s half duplex to 200 Mbit/s (100 Mbit/s transmit + 100 Mbit/s receive).
See also
- ATM
- Class of Service
- Internet
- Network congestion avoidance
- PSTN
- Telephony quality of service
- Traffic Shaping
- 802.11e: Quality of Service enhancements for WiFi standard 802.11b
- Wireless Multimedia Extensions (WME) also known as Wi-Fi Multimedia (WMM)
- Broadband Remote Access Server
External links
- IEEE 802.1 P,Q - QoS on the MAC level, 24.4.1999, Niclas Ek (http://www.tml.hut.fi/Opinnot/Tik-110.551/1999/papers/08IEEE802.1QosInMAC/qos.html)
- IEEE 802.1 LAN/MAN Bridging & Management (http://standards.ieee.org/getieee802/802.1.html)
- "Good old days" IP QoS: Type of Service in the Internet Protocol Suite (http://sunsite.dk/RFC/rfc/rfc1349.html)
- On the Effects of the IEEE 802.3x Flow Control in Full-Duplex Ethernet LANs, Oliver Feuser, Andre Wenzel, University of Bonn (http://www.computer.org/proceedings/lcn/0309/03090160abs.htm)
- sslug.dk: Hyggemøde tirsdag den 11. juni 2002: Båndbreddebegrænsning (http://www.sslug.dk/moede/hygge/2002-06-11/)
- sslug.dk: Hyggemøde tirsdag den 11. juni 2002: Båndbreddebegrænsning. Eksempler (http://www.sslug.dk/moede/hygge/2002-06-11/eksempler.txt)
- Linux Advanced Routing & Traffic Control (http://lartc.org/)
- Linux Advanced Routing & Traffic Control, HowTo (http://lartc.org/HOWTO//cvs/2.4routing/html/index.html)
- lartc.org: The Wonder Shaper (http://lartc.org/wondershaper/)
- WRR and WIPL (http://wipl-wrr.sourceforge.net/)
- Packeteer PacketShaper 2500: Traffic Control on Autopilot, September 4, 2000, By David Newman (http://www.networkcomputing.com/1117/1117sp1.html)
- Packeteer PacketShaper (http://www.packeteer.com/products/packetshaper/index.cfm)
- Traffic Shaping application for Windows (has free version) (http://inetshaper.com/)
- ALTQ: Alternate Queueing for BSD UNIX (http://www.csl.sony.co.jp/person/kjc/kjc/software.html#ALTQ)da:Datanet servicekvalitet
de:Quality of Service ja:Quality of Service pl:QoS pt:Qualidade de serviço sv:Quality of Service zh:服务质量