Professional Documents
Culture Documents
Quality of Service For Ethernet: Matthew Demyttenaere, Application Engineer Sophie Legault, Product Manager
Quality of Service For Ethernet: Matthew Demyttenaere, Application Engineer Sophie Legault, Product Manager
Quality of Service For Ethernet: Matthew Demyttenaere, Application Engineer Sophie Legault, Product Manager
APPLICATION NOTE
Matthew Demyttenaere, Application Engineer Sophie Legault, Product Manager
Introduction
Data services are making a significant shift towards supporting a variety of applications on the same network. This shift has fuelled the need for quality of service (QoS) to ensure the condition and reliability of services. Service providers need to assign different qualities of service to each type of service they offer. For example, most often, real-time applications such as video and voice are assigned the highest priority. Critical data applications frequently take second place followed by email and web browsing. Different mechanisms exist to deploy QoS, and this creates the need to properly test the network configuration. This application note discusses the importance of QoS and offers QoS testing methods when activating data services.
www.exfo.com
Telecommunications Test and Measurement
Figure 1
If the QoS is implemented at Layer 3, then there are two choices available: ToS and DSCP. At this stage it is important to know which standard is being used on the networking equipment. If RFC-791 is being used, then there are a few different parameters on the router which can be configured, for example: precedence, delay, throughput, reliability and monetary cost (see Figure 2).
Figure 2
If RFC-2475 is being used, then there are two parameters that need to be configured; differentiated services code points (DSCP) and explicit congestion notification (ECN) (see Figure 3). Both standards use the same bits in the overhead of the frame; however, they are just defined differently. In most cases RFC-2475 is selected because it offers the user a lot more flexibility and is much easier when implementing QoS over Layer 3 equipment.
Figure 3
When testing for Layer 3 QoS, the same principals used for Layer 2 testing can be applied. Layer 3, however, is considerably more complicated. The reason for this is that once a service provider sells a Layer 3 service, there are many more additional parameters that need to be configured, such as the firewall. Whether Layer 2 or 3 is being used, it is important to have the capability of replicating real traffic conditions in order to test QoS properly. Sending different streams of traffic containing different levels of QoS (at Layer 2 or 3) across the network is a way of reproducing real network conditions (see Figure 4). With this type of traffic it is possible to test the proper traffic prioritization performed by switches and routers in the network.
www.exfo.com
Telecommunications Test and Measurement
Figure 4
Appendix I
VLAN tagging (IEEE 802.1Q/p) The IEEE VLAN standard, 802.1Q consists of adding 4 bytes to the Ethernet frame. The first 2 bytes are the type protocol identifier. This identifies the frame as a tagged frame. The second byte is the VLAN tag and is used to identify the frame as belonging to a specific group on the network. When the frames go through the Ethernet network, the different switches along the way will read the VLAN tag and determine where the frame should be delivered. The first 3 bits of the VLAN tag are used to identify the priority of the frame. This refers to 802.1p.
Ethernet Frame Preamble 8 Destination Address 6 Source Address 6 Type 2 DATA 46-1500
IEEE 802.1q:81-00
FCS 4
IEEE 802.1q Tagged Frame Preamble 8 Destination Address 6 Source Address 6 TPID 2
Tag 2
Type 2
DATA 46-1500
FCS 4
Priority
3 bits IEEE 802.1p
CFI
1 bit
VLAN ID
12 bits (0 to 4095)
Figure 5
www.exfo.com
Telecommunications Test and Measurement
Appendix II
Type of Service (ToS) and DiffServ The IP ToS field is an 8-bit field in the IP datagram (see Figure 6). The first 3 bits of the field are the Precedence field. This prioritizes packets within a queue. Packets with a higher priority value are transmitted before others. The other 5 fields that are present also act as routing criteria. These fields are: Delay, Throughput, Reliability, Cost and Future. Differentiated services (DiffServ) is a more recent model in which traffic is treated with relative priorities based on the same type of services (ToS) field in the IP datagram. The DiffServ standard supersedes the original specification for defining the packet priority described in RFC 791. DiffServ increases the number of definable priority levels by reallocating bits of an IP packet for priority marking. The first 6 bits of the ToS field are defined as the differentiated services code point (DSCP). There exists a number of class models for DSCP, some of them are described in the following RFCs: RFC2697, RFC 2698, and RFC 2598. Router companies also have their own automatic standard DSCP values. The last 2 bits of the ToS field in this case are not used for QoS. The ECN field is used for explicit congestion notification (RFC 3168).
IP Datagram
Bits Ver IP Header (minimum length 20 Bytes) IHL Identifier Time to live
1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Type of service Flags Protocol Source Address Destination Address Options + Padding Source Port Sequence Number Acknowledgement Number U A P R S F Option + Padding Total Length Fragment offset Header Checksum
Destination Port
Offset
Reserved Checksum
Data
Figure 6
Type of Service (TOS), RFC 791 Precedence 3 Delay 1 0 = Normal 1 = Low Throughput 1 0 = Normal 1 = High Reliability 1 0 = Normal 1 = High Cost 1 0 = Normal 1 = Low Future 1
ECN 2
Appnote134.1AN