Académique Documents
Professionnel Documents
Culture Documents
!
The following picture shows a typical VoIP network with redundant switch connections within the LAN and redundant
WAN interconnection. All the yellow boxes are VoIP phones, which are PoE connected to their respective switch (blue
boxes).
Improved QoS for Voice calls/sessions is generally achieved by priority marking within the QoS bits of the Ethernet
frame. Ethernet (802.3) however, did not include such bit information. The tag extention for Virtual LANs (VLANs) is
required to place the priority marking in the extended frame. VLAN tags are standardized in 802.1Q. They are a 4
Byte field that is inserted between the source address and the type/length field of the original ethernet frame format.
Those four bytes are split into two 2 byte fields, the "Tag Protocol Identifier (TPI)" and the "VLAN Tag Control
Information (VLAN TCI)" byte. The TPI field corresponds to the original type field where switches realize the extended
frame version by the common TPI value of 8100 hex. From the QoS perspective, the VLAN TCI is much more
important. It contains two main sections - the User Priority (UP) and the VLAN identifier (VID). There is no obligation
to use both sections all the time. Depending on the actual usage of the fields, those frames are called
± "#$""%
The general answer is - from the application and/or user input. Getting asked all the time whether to dial in as priority
user or as ordinary user is not sensible and certainly not what internet users long for. It is the demand for acceptable
service quality depending on the type of service the user is consuming. Hence the service providing application seems
to be the best source for priority requests. Most applications run on UDP or TCP and use IP as the underlying layer
three network protocol.
Marking Internet Protocol packets (Layer 3 / L3 marking) for certain quality requirements is as old as the IP standard.
The original definition is often referred to as "TOS quality" and consists of two parts for type of service marking. As
shown in the following picture this is 3 precedence bits (defined in RFC 1122) and the "DTRM" bits, which stands for
"minimize delay, maximize throughput, maximize reliability, minimize monetary cost" (defined in RFC 1349).
The first three bits simply signal which packet is more important than its neighbouring packet. The DTRM bits give
hints to the router about the required forwarding parameters (queue length, placing position, dropping strategy and
scheduling strategy).
However, the TOS type of QoS marking is hardly used and the concept of "Differentiated Services (DiffServ)"
redefines this IP header field. The new usage of those header bits is called "Differentiated Service Code Point - DSCP"
and defines 6 bits for priority selection and two unused bits of the header byte. Six bits allow for 64 classes to be
distinguished. There are only a few recommendation on how to select the number of supported classes, their encoding
and resulting forwarding behaviour (Per Hop Behaviour - PHB) in the DiffServ enabled router devices. However, the
following three DSCP groups are defined and commonly used: "Default PHB", "Class Selector PHB", "Expedited
Forwarding PHB" and "Assured Forwarding PHB". "Default PHB" is used for generall internet traffic as it is right now.
"Class Selector PHB" is there to support the original precedence enconding, "Expedited Forwarding PHB" (RFC 2598) is
the single encoding for highly prioritized traffic with strictly limited ressources (e.g. 10% of traffic), which is the basis
for services like pseudo wire emulation. "Assured Forwarding PHB" (RFC 2597) is the classification that marks relative
priority within four classes and three drop precedences within each AF class.
Using the IP precedence bits for Layer 2 / L2 marking is just one way of mapping L3 priority encoding into L2
encoding (such as Ethernet 802.1p or Token Ring 802.5 priotity). The more generic way would be to use a "$
&$'! $c $ . However, such
encoding and mapping policies are in the provider descretion and should be expected to change on multi-hop paths!
Encoding translation functions are likely to be used on domain boundaries. Such encoding tables should be integral
part of Service Level Agreements (SLAs).
As a last point I want to mention the use of Multiprotocol Label Switching (MPLS) in todays transport networks. Carrier
grade networks are rapidly reconstructed to support MPLS in order to enable the traffic engineering and fault recovery
mechanisms necessary for large networks. The so called "shim layer" version of MPLS inserts a 32 bit header structure
often referred to as "Layer 2.5" header. It consists of a 20 bit label (an address with local scope), three "Expermiental
- EXP" bits as well as a MPLS-TTL field. Those experimental bits are often used to distinguish eight classes of traffic
with such an MPLS tunnel (MPLS label switched path - LSP). Such MPLS forwarding nodes ignore any payload (e.g.
DSCP) QoS encodings. This suggests to copy the IP precendce bits into the EXP bit field and later on to copy those
three bits into the VLAN user priority field. Once again, this mapping is not strictly defined and could well be
implemented using another mapping table between IP QoS -> MPLS EXP -> Ethernet QoS.