- Latency The time it takes for a voice transmission (or any transmission) to travel from source to destination is increased as packets traverse each security node. Primary latency-producing processes are firewall/NAT traversal, negotiation of long ACLs, and traffic encryption/decryption.
- Jitter (erratic packet delays) Jitter may be increased, because in many circumstances, jitter is a function of hop count.
- Packet loss The number of non-QoS-aware routers and firewalls that ignore or fail to properly process Type of Service (ToS) fields in the IP header can influence packet loss.
Friday
QoS and Traffic Shaping
Wednesday
TIA IP Telephony QoS Recommendations
The TIA has done extensive research and analysis to understand IP telephony voice quality. It used the ITU-T recommendation G.107 E-model to develop its own recommendations for optimizing IP telephony QoS levels, categorizing them by sources of potential speech impairment: delay, speech compression, packet loss, tandeming, and loss plan. The E-model consists of several models that relate specific speech impairment factors and their interactions with end-to-end performance.
The specific recommendations, as summarized in TIA/EIA/TSB116, are:
-
Delay recommendation 1—Use G.711 end to end because it has the lowest Ie value (equipment impair value) and therefore allows more delay for a given voice quality level.
-
Delay recommendation 2—Minimize the speech frame size and the number of frames per packet.
-
Delay recommendation 3—Actively minimize jitter buffer delay.
-
Delay recommendation 4—Actively minimize one-way delay.
-
Delay recommendation 5—Accept the [TIA’s] E-model results, which permit longer delays for low Ie codecs, like G.711, for a given R value (transmission rating factor).
-
Delay recommendation 6—Use priority scheduling for voice-class traffic, RTP header compression, and data packet fragmentation on slow links to minimize the contribution of this variable delay source.
-
Delay recommendation 7—Avoid using slow serial links.
-
Speech compression recommendation 1—Use G.711 unless the link speed demands compression.
-
Speech compression recommendation 2—Speech compression codecs for wireless networks and packet networks must be rationalized to minimize transcoding issues.
-
Packet loss recommendation 1—Keep (random) packet loss well below 1 percent.
-
Packet loss recommendation 2—Use packet loss concealment (PLC) with G.711.
-
Packet loss recommendation 3—If other codecs are used, then use codecs that have built-in or add-on PLCs.
-
Packet loss recommendation 4—New PLCs should be optmized for less than 1 percent of (random) packet loss.
-
Transcoding recommendation 1—Avoid transcoding where possible.
-
Transcoding recommendation 2—For interoperability, IP gateways must support wireless codecs or IP must implement unified transcoder-free operations with wireless.
-
Tandeming recommendation 1—Avoid asynchronous tandeming, if possible.
-
Tandeming recommendation 2—Synchronous tandeming of G.726 is generally permissible. Impairment depends on delay, so long-delay digital circuit multiplication equipment (DCME) equipment should be avoided.
-
Loss Plan recommendation 1—Use TIA/EIA/TSB122-A, the voice gateway loss and level plan.
Following the Cisco Systems and TIA recommendations and guidelines may prove to be a difficult task if aging network infrastructure is installed that cannot support most, if not all, of these QoS control mechanisms. It is obvious from the material covered in this chapter that a close working relationship between voice and data communications personnel is required to successfully implement and operate an IP-PBX systems. If IP telephony QoS is not comparable to the experience station users have grown accustomed to with their circuit switched PBX system, the new technology may be rejected as an enterprise communications solution, even if it offers potential cost savings and the benefit of new applications support. A green field location offers the best bet for a large IP-PBX system installation because it is easier to begin from scratch than to attempt a network upgrade while continuing to support ongoing communications operations.
The DiffServ model divides traffic into a small numbers of classes. One way to deploy DiffServ is simply to divide traffic into two classes. Such an approach makes good sense. If you consider the difficulty that network operators experience just trying to keep a best-effort network running smoothly, it is logical to add QoS capabilities to the network in small increments.
Suppose that a network operator has decided to enhance a network by adding just one new service class, designated as “premium.” Clearly, the operator needs some way to distinguish premium (high-priority) packets from best-effort (lower-priority) packets. Setting a bit in the packet header as a one could indicate that the packet is a premium packet; if its a zero, the packet receives best-effort treatment. With this in mind, two questions arise:
-
Where is this bit set and under what circumstances?
-
What does a router do differently when it sees a packet with the bit set?
A common approach is to set the bit at an administrative boundary, such as at the edge of an Internet service provider’s (ISP’s) network for some specified subset of customer traffic. Another logical place would be in a VoIP gateway, which could set the bit only on VoIP packets.
What do the routers that encounter marked packets do with them? Here again there are many answers. The DiffServ working group of the IETF has standardized a set of router behaviors to be applied to marked packets, which are the PHBs. PHBs define the behavior of individual routers rather than of end-to-end services. Because there is more than one new behavior, there is a need for more than one bit in the packet header to tell the routers which behavior to apply. The IETF has decided to take the ToS byte from the IP header, which has not been widely used in a standard way, and redefine it. Six bits of this byte have been allocated for DSCPs. Each DSCP is a 6-bit value that identifies a particular PHB to be applied to a packet. Current releases of Cisco IOS software use only 3 bits of the ToS byte for DiffServ support. This is adequate for most applications, allowing up to eight classes of traffic. Full 6-bit DSCP support is under development.
One of the simplest PHBs, and one that is a good match for VoIP, is EF. Packets marked for EF treatment should be forwarded with minimal delay and loss at each hop. The only way that a router can guarantee this to all EF packets is if the arrival rate of EF packets at the router is limited strictly to less than the rate at which the router can forward EF packets. For example, a router with a 256-kbps interface needs to have an arrival rate of EF packets destined for an interface that is less than 256 kbps. In fact, the rate must be significantly below 256 kbps to deal with bursts of arriving traffic and to ensure that the router has some ability to send other packets.
The rate limiting of EF packets may be achieved by configuring the devices that set the EF mark (e.g., VoIP gateways) to limit the maximum arrival rate of EF packets into the network. A simple, albeit conservative, approach would be to ensure that the sum of the rates of all EF packets entering the network is less than the bandwidth of the slowest link in the domain. This would ensure that, even in the worst case, where all EF packets converge on the slowest link, the link is not overloaded and the correct behavior results.
In fact, the need to limit the arrival rate of EF packets at a bottleneck link, especially when the topology of the network is complex, turns out to be one of the greatest challenges of using only DiffServ to meet the needs of VoIP. For this reason, an approach based on integrated service and the RSVP is appropriate in those situations where it is not possible to guarantee that the offered load of voice traffic will always be significantly less than link capacity for all bottleneck links.
Sunday
QoS Controls
QoS controls can be segmented into several categories: traffic authorization, traffic modification, and traffic adaptation. Traffic authorization controls a station user’s access to resources within a domain of control. Traffic authorization methods include admission control, eligibility control, and application control. These are forms of restriction that allow traffic only if a station user provides a password, the station user is on an access list, or the station user is permitted to do so by a policy management server. Traffic modification controls the type of traffic on the network through classification (segregating traffic into different classes), shaping (smoothing out traffic peaks to avoid overload situations), or policing (dropping traffic that doesn’t respect policies). Traffic adaptation methods include protocol control, path control, user behavior, congestion avoidance, and congestion management.
There are several commonly used QoS mechanisms that are supported by most of current IP-PBX systems. The two most common class of service (CoS) mechanisms are IEEE 802.1p/Q tagging (Layer 2) and type of service (ToS) prioritization (Layer 3). Both provide prioritization but have their limitations. A better mechanism, developed by the IEEE’s IEFT, is differentiated services (DiffServ), an advanced architecture of ToS.
802.1p/Q
The IEEE 802.1p standard for QoS prioritization is a specification defining 3 bits within the IEEE 802.1Q field in the MAC header (OSI Layer 2). The 802.1Q was designed originally to support VLAN operability and then extended to support traffic priorities. IEEE 802.1p adds 16 bits to the Layer 2 header, including 3 bits that can be used to classify priority (the tag). Frames with 802.1p implementation are called tagged frames. The standard specifies six different priorities, which do not offer extensive policy-based service levels. Typically, a NIC card in a LAN system sets the bits according to its needs, and Layer 2 switches use this information to direct the forwarding process.
If multiple LANs are interconnected by routers (Layer 3 switches), then the Layer 2 bits must be used to drive Layer 3 QoS mechanisms. The 802.1p/Q mechanism does not operate on an end-to-end basis in an internetwork but does provide a simple method of defining and signaling an end system’s requirements within the entire network environment. The Layer 2 header is read only at the switch level—the boundary routers, where traffic congestion occurs—and cannot take advantage of prioritization based on 802.1p unless it is mapped to a Layer 3 prioritization scheme. Even though prioritization is achieved within the switched network, it is lost at the LAN/WAN boundary routers.
Another potential problem is installing a LAN switch supporting 802.1p in a network with non-802.1p switches, which could lead to instability: older switches would misinterpret the unexpected 16 bits specified by the standard. Implementing 802.1p in older networks could require a costly upgrade of all switches.
IEE standard 802.1D is also supported by some IP-PBX systems for traffic prioritization. IEEE 802.1D extends the concept of MAC bridging to define additional capabilities of bridged LANS: to expedite traffic capabilities in support of the transmission of time-critical information in a LAN environment and provide filtering services that support the dynamic use of Group MAC addresses in a LAN environment. IEEE 802.1D Spanning Tree Bridge Protocol is a widely used bridge standard for interconnecting the family of IEEE 802 standard LANs. In this standard, a shortest path spanning tree with respect to a predetermined bridge, known as a root bridge, is used to interconnect LANs to form an extended LAN. The spanning tree defines a unique path between a pair of LANs, but this path may not be a shortest path. Moreover, because only one spanning tree is used, some bridges and some ports may not be used at all.
ToS
ToS was first defined in the early 1980s but largely unused until recent IP traffic bottlenecks at the boundary routers required prioritization for better service levels. The IPv4 protocol always contained an 8-bit field, called the ToS field, originally intended for use in packet prioritization. The most recent version, called IP Precedence, is a control mechanism that provides end-to-end control of QoS settings. The ToS octet in the Ipv6 header includes three precedence bits defining eight different priority levels ranging from highest priority for network control packets to lowest priority for routine traffic. Three of the ToS bits are used to flag sensitivity to delay, throughput, and packet loss. Many boundary routers and ToS-enabled Layer 3 switches read the precedence bits and map them to forwarding and drop behaviors. Devices use IP Precedence bits, if set, to help with queuing management.
Differentiated Services (DiffServ)
An evolving IETF QoS control mechanisms is known as DiffServ. DiffServ will not be based on priority, application, or flow, but on the possible forwarding behaviors of packets, called per-hop behaviors (PHBs). DiffServ is rule based and offers a control mechanism for policy-based network management. The DiffServ framework is based on network policies because different kinds of traffic can be marked for different kinds of forwarding. Resources can then be allocated according to the marking and the policies. The IETF Working Group is completing a series of standards that redefine Ipv6 ToS bytes, renamed the Differentiated Services Code Point (DSCP). The new byte indicates the level of service desired and maps the packet to a particular forwarding behavior (PHB) for processing by a DiffServe-compliant router. The PHB provides a particular service level (bandwidth, queuing, and dropping decisions) in accordance with network policy.
Under DiffServ, mission-critical packets could be encoded with a DSCP that indicates a high bandwidth, 0-frame–loss routing path. The DiffServ-compliant boundary router would then make route selections and forward the packets accordingly, as defined by network policy and the PHBs the network supports. The highest-class traffic would get preferential treatment in queuing and bandwidth, and the lower class packets would be relegated to slower service.
The DSCP is 6 bits wide, allowing coding for up to 64 different forwarding behaviors. The DSCP replaces the older ToS bits, and it retains backward compatibility with the 3 precedence bits so that non–DS-compliant, ToS-enabled devices will not conflict with the DSCP mapping.
There are currently two standard PHBs, expedited forwarding (EF) and assured forwarding (AF). EF has one codepoint (DiffServ value), minimizes delay and jitter, and provides the highest level of aggregate QoS. Traffic that exceeds the traffic profile is discarded. AF has four service classes and three drop-precedences for each service class (12 total codepoints). Excess traffic is not delivered with the same level of probability as traffic within the defined profile, and it may or may not be dropped. DiffServ assumes the existence of service level agreement (SLA) between networks sharing a border. The SLA establishes policy criteria and defines the traffic profile.
Other QoS control mechanisms include RSVP, subnet bandwidth management (SBM), and multiprotocol label switching (MPLS). RSVP was used by the first generation of client/server IP-PBXs but is deemed too complex, with too much overhead for many parts of the network. SBM is concerned with layer protocols above Layer 2 for internetworking between multiple LANs. MPLS is used primarily for private network routing applications, with limited appeal for premises-only communications applications.
Another approach to IP telephony is the use of VLANs. VLANs can provide more efficient use of LAN bandwidth, are used to distribute traffic loads, and are scalable to support high-performance requirements at a microsegment level. Traffic types, such as real-time voice and delay-insensitive data, can be segmented. IEEE 802.1Q is used as a VLAN packet tagging standard.
Link Exchange
-
KSAs of Client-Centric Staff - HR staff must have the interpersonal skills needed to relate effectively to clients and the creativity skills to resolve problems when they occur (for exa...7 years ago
-
Data-Plane and Control-Plane Functions in Base Stations and Mobile Stations - Figure below shows the user data processing path at the BS and MS. As shown in the figure, the user data traverses the path from network layer to physical...7 years ago
-
Improving Coverage for a Given Service Area - Some common practices to improve the coverage for a given service area are: - Receiver selection. Selecting an eNodeB with a better receiver sens...11 years ago
-
Network Time Protocol (NTP) - *Network Time Protocol (NTP)* is a protocol for synchronizing device clocks across TCP-based computer networks. The latest documented version is NTP v3, ...14 years ago