Advanced Communication Networks

Chapter 6
Quality of Service and Network Performance Engineering

Post Graduate Program in Electronics and Communication Engineering
Advanced Communication Networks   •   Post Graduate

Quality of Service and Network Performance Engineering

Introduction

Modern communication networks carry traffic with very different performance requirements. A file transfer can tolerate several seconds of delay, whereas interactive voice, industrial control, financial transactions, and cloud gaming may fail when delay, jitter, loss, or service interruption exceeds a narrow limit. Quality of Service (QoS) is the set of mechanisms used to classify, control, prioritize, and monitor traffic so that available resources are aligned with application requirements.

QoS is not equivalent to simply increasing bandwidth. Performance depends on the complete path, including access links, routers, wireless segments, transport protocols, servers, and endpoint processing. Network performance engineering therefore combines traffic measurement, mathematical modeling, resource allocation, protocol design, monitoring, and operational governance.

This chapter examines QoS architectures based on classification, marking, scheduling, shaping, policing, admission control, Differentiated Services (DiffServ), and resource reservation. It also develops the interpretation of latency, jitter, availability, goodput, and Quality of Experience (QoE), and explains how these measures are incorporated into Service-Level Agreements (SLAs).

Learning Objectives

After studying this chapter, a learner should be able to:

1. Distinguish QoS, Quality of Service objectives, QoE, and network performance metrics.

2. Design a QoS treatment path from classification and marking to queuing, shaping, and policing.

3. Compare Integrated Services/resource reservation with DiffServ architectures.

4. Calculate and interpret delay, jitter, utilization, goodput, availability, and SLA compliance.

5. Select admission-control and scheduling policies for realistic traffic classes.

6. Evaluate the limitations, governance implications, and operational risks of QoS designs.

1. QoS as a Resource-Allocation Problem

A network node has finite link capacity, buffer memory, processing capability, and scheduling opportunities. When the offered load is below capacity, most packets receive service promptly. As load approaches or exceeds capacity, queues grow and packets experience delay, jitter, or loss. QoS engineering determines which traffic receives preferential treatment and under what contractual or technical conditions.

QoS has several dimensions:

  • Bandwidth or throughput: the rate at which data is transferred.
  • Latency: the time between transmission and successful reception.
  • Jitter: variation in packet delay, usually measured over a sequence of packets.
  • Loss: packets discarded because of errors, congestion, policing, or failures.
  • Availability: the proportion of time that a service is usable.
  • Reliability: the probability that transmission or service operation succeeds.
  • Goodput: useful application data delivered per unit time, excluding retransmissions and protocol overhead.

A QoS policy must state whose traffic is classified, what treatment it receives, where that treatment applies, and how compliance is measured. Priority without a defined scope can cause starvation of lower classes; reservation without admission control can create an infeasible promise; and monitoring without agreed measurement points can produce disputes rather than accountability.

2. Performance Metrics and Their Interpretation

2.1 Delay

For a packet traversing a network, end-to-end delay can be represented as

\[

D_{e2e}=D_{proc}+D_{queue}+D_{trans}+D_{prop}+D_{other}

\]

where processing delay is time spent examining and preparing a packet, queuing delay is time waiting for service, transmission delay is the time required to place all packet bits on the link, propagation delay is the signal travel time, and other delay includes protocol or endpoint processing. The equation is a decomposition, not necessarily a directly measurable separation in every implementation.

For a packet of length \(L\) bits on a link with rate \(R\) bits/s, transmission delay is

\[

D_{trans}=L/R.

\]

This assumes the complete packet is serialized onto the link and excludes propagation and queueing. For example, a 1500-byte packet on a 100 Mb/s link has \(L=12{,}000\) bits and transmission delay \(0.00012\) s, or 0.12 ms.

Propagation delay is approximately \(d/v\), where \(d\) is path distance and \(v\) is signal velocity. It cannot generally be reduced by a faster interface. Queueing delay, in contrast, is strongly affected by traffic intensity and scheduling policy.

2.2 Jitter

If packet \(i\) experiences delay \(D_i\), a simple consecutive-packet delay variation is

\[

J_i=|D_i-D_{i-1}|.

\]

This is one operational definition; other standards and monitoring systems use different delay-variation statistics. Therefore, an SLA must specify the definition, sampling interval, percentile, and measurement points. A receiver may use a playout buffer to absorb jitter, but doing so adds latency and cannot compensate for unbounded delay variation.

2.3 Throughput and Goodput

Throughput is the rate of all successfully delivered bits at a specified layer. Goodput measures useful application payload:

\[

G=\frac{B_{useful}}{T},

\]

where \(B_{useful}\) is application data delivered without counting retransmitted or protocol-control bytes, and \(T\) is the measurement interval. If 900 MB of useful data reaches an application in 120 s, goodput is 7.5 MB/s, or 60 Mb/s using decimal units.

Goodput is often lower than link rate because of headers, acknowledgements, encryption overhead, retransmissions, congestion control, and receiver limitations. A high link throughput can therefore coexist with poor application performance.

2.4 Availability

Availability over an observation period can be defined as

\[

A=\frac{T_{total}-T_{unavailable}}{T_{total}}\times100\%.

\]

This assumes that unavailable intervals have been defined consistently and that planned maintenance is either included or excluded according to the SLA. A nominal 99.9% monthly availability permits approximately 43.2 minutes of unavailability in a 30-day month, since 0.001 × 43,200 minutes equals 43.2 minutes. Percentages should never be interpreted without their observation window and exclusion rules.

2.5 Utilization and Congestion

For an offered traffic rate \(\lambda\) and service capacity \(\mu\), utilization is

\[

\rho=\lambda/\mu.

\]

This ratio is dimensionless and applies to a stable single-resource model only when \(\lambda<\mu\). As \(\rho\) approaches one, queueing delay generally becomes more sensitive to traffic variability. Real networks contain multiple queues, bursty sources, finite buffers, and scheduling interactions, so utilization alone is not a sufficient QoS indicator.

3. QoS Architecture: From Packets to Treatment

A robust QoS design follows a logical chain:

1. Identify traffic: classify by interface, VLAN, IP prefix, protocol, application signature, user, device, or trusted marking.

2. Mark traffic: assign a class indicator, such as an IP Differentiated Services Code Point (DSCP) or an IEEE 802.1p priority value.

3. Police or shape: compare traffic with a contract and either discard/remark excess traffic or delay it to smooth bursts.

4. Queue and schedule: place packets in queues and determine service order.

5. Reserve or admit: ensure that a new flow or service request does not violate existing commitments.

6. Monitor and verify: measure compliance and revise policy based on evidence.

Classification should occur close to the trust boundary. A provider should not blindly trust markings supplied by an unmanaged customer, because a user could mark bulk traffic as high priority. Edge devices commonly classify using authenticated identity, access port, application policy, or contractual service class, then remark traffic before it enters the provider network.

Classification and Marking

Classification can be coarse or fine-grained. Coarse classes are easier to operate and scale; fine classification can express differentiated business requirements but increases policy complexity. Typical classes include network control, real-time media, transactional data, standard data, and scavenger or background traffic.

Marking is a compact way to carry the intended treatment through multiple devices. A marking has meaning only if all relevant devices share a consistent per-hop behavior. Markings should be protected from unauthorized rewriting, documented in a policy matrix, and tested at domain boundaries.

Scheduling

Scheduling determines which queued packet is transmitted next. Common policies include:

  • First-In, First-Out: simple and fair in arrival order, but unable to express service priorities.
  • Strict priority: always serves the highest-priority nonempty queue first. It supports stringent delay objectives but can starve lower queues unless bounded by policing or a priority limit.
  • Weighted Fair Queuing (WFQ): approximates bit-by-bit fair sharing using weights and provides isolation among flows or classes.
  • Class-Based Weighted Fair Queuing: allocates configured bandwidth among classes and may include a priority class.
  • Deficit Round Robin: efficient for variable-sized packets and scalable across many queues.

A scheduler should be selected according to the objective. Strict priority is appropriate for a carefully bounded voice or control class, not as a universal solution. Weighted methods are preferable when lower classes must receive predictable service.

Shaping and Policing

A token-bucket model describes a traffic contract using token generation rate \(r\) and bucket capacity \(B\). Tokens accumulate up to \(B\); transmitting \(L\) bits consumes \(L\) tokens. A conforming packet has sufficient tokens. The bucket permits bursts up to approximately \(B\) bits while maintaining a long-term average near \(r\), assuming the bucket is initially configured and replenished at rate \(r\).

A policer acts immediately: excess packets may be dropped, remarked, or passed into another class. A shaper delays excess packets, usually requiring a buffer. Policing protects a network from nonconforming traffic but may cause loss; shaping reduces burstiness but adds delay and may overflow if the offered load remains too high.

For a constant input rate \(x>r\), a finite token bucket cannot sustain the input indefinitely. The excess accumulation rate is \(x-r\), so a bucket of size \(B\) would be exhausted after approximately \(B/(x-r)\) seconds, ignoring packet granularity and implementation details.

Admission Control

Admission control decides whether a requested flow or service instance can be accepted without violating commitments. It may consider peak rate, mean rate, burst size, available capacity, delay bounds, wireless channel conditions, and failure states. A simple capacity test is

\[

\sum_i R_i + R_{new} \leq R_{alloc},

\]

where each \(R_i\) is a committed allocation and \(R_{alloc}\) is the capacity reserved for the relevant class. This is only a conservative engineering test; it does not prove a delay bound when traffic is bursty or paths share bottlenecks.

Admission control can be centralized, distributed, static, or dynamic. Static provisioning is operationally simple but may waste capacity. Dynamic admission improves utilization but requires accurate state, signaling, authorization, and failure handling.

4. Integrated Services and Resource Reservation

The Integrated Services (IntServ) model seeks per-flow guarantees. A flow requests resources, routers maintain flow state, and a reservation protocol such as the Resource Reservation Protocol (RSVP) can signal requirements along a path. A node performs admission control and installs classification and scheduling state.

The strengths of IntServ include explicit resource requests, potentially strong per-flow guarantees, and close alignment between admission and treatment. Its weaknesses include state growth with the number of flows, signaling overhead, sensitivity to route changes, and operational complexity in large provider networks. IntServ is more practical in controlled domains, specialized enterprise networks, and environments where strong per-flow assurance justifies the cost.

Resource reservation must account for failure. If a link fails and traffic is rerouted through a path without equivalent capacity, an earlier reservation may no longer be feasible. Effective designs therefore combine reservation with fast reroute, backup capacity, state refresh, and well-defined degradation behavior.

5. DiffServ and Scalable QoS

Differentiated Services (DiffServ) aggregates packets into a limited number of classes. Packets are marked at the edge, and core routers apply a Per-Hop Behavior (PHB) to each class without maintaining individual flow state. This improves scalability and is well suited to provider backbones.

A DiffServ domain requires:

  • a classification and marking policy at ingress;
  • traffic conditioning, including policing and possibly shaping;
  • a defined mapping from markings to queues and PHBs;
  • capacity planning for each class;
  • monitoring at ingress, core, and egress;
  • agreements between connected administrative domains.

Expedited Forwarding is commonly associated with low-loss, low-delay treatment, but its usefulness depends on strict provisioning and traffic conditioning. Assured Forwarding defines classes and drop-precedence behavior, allowing congestion management to discard lower-precedence packets first. Neither marking alone nor a PHB name guarantees end-to-end performance; all bottlenecks and administrative domains must implement compatible behavior.

DiffServ and IntServ are not mutually exclusive. A network may use per-flow admission at an edge or access domain, then aggregate admitted traffic into DiffServ classes across a core. This hybrid approach combines local precision with backbone scalability.

6. SLA Engineering and Performance Assurance

An SLA is a measurable agreement between a provider and customer. It should specify the service, scope, measurement points, metric definitions, target values, observation period, exclusions, reporting method, and remedies. A statement such as “low latency” is not an adequate SLA.

A practical SLA might define:

  • one-way latency, measured between named probes;
  • 95th or 99th percentile rather than only an average;
  • packet-loss ratio and whether loss is measured per packet or per flow;
  • jitter definition and threshold;
  • monthly availability and permitted maintenance exclusions;
  • minimum goodput under a specified test method;
  • incident response and restoration objectives;
  • credits or escalation procedures for noncompliance.

Percentiles are important because an average can conceal short but damaging congestion events. However, percentiles must be accompanied by sample counts and sampling methodology. A provider could otherwise meet a percentile target while allowing severe outliers or under-sampling busy periods.

A performance dashboard should correlate network metrics with application outcomes. For example, increased voice packet loss, codec concealment events, and customer complaints may reveal a service problem that link utilization alone does not show. Observability should include flow records, active probes, queue drops, interface counters, telemetry, and endpoint measurements.

7. QoE and Application-Level Meaning

QoE is the user’s perceived quality, while QoS metrics are network-level indicators. QoE depends on codec, device, content, human expectations, application adaptation, and context. A video stream may maintain acceptable QoE through adaptive bitrate selection despite fluctuating throughput; conversely, a low average delay may not prevent poor QoE if interruptions occur during an interactive task.

Useful application indicators include startup delay, rebuffering ratio, call completion rate, transaction response time, speech concealment, frame rate, and task success. Network engineering should therefore map technical objectives to application objectives. For example, an interactive control service may require bounded tail latency and extremely high availability, whereas backup traffic may need only high eventual goodput.

8. Worked Design Example

Consider a 100 Mb/s access link carrying three classes: voice at 10 Mb/s, transactional data at 30 Mb/s, and ordinary data at 60 Mb/s. The design reserves 15 Mb/s for voice, 35 Mb/s for transactional data, and assigns the remaining 50 Mb/s to ordinary traffic. Voice is placed in a bounded strict-priority queue; the other classes use weighted scheduling. At ingress, voice is policed at 10 Mb/s with a 1 Mb token bucket, while transactional data is shaped to 30 Mb/s.

The reservation total is 15+35+50=100 Mb/s, so the configuration has no spare capacity under the stated allocation. If a 20 Mb/s new transactional request arrives, a simple admission test rejects it because 100+20 exceeds the 100 Mb/s link capacity. If the ordinary allocation is reduced to 35 Mb/s, the released 15 Mb/s is still insufficient for the new request; 100−15+20=105 Mb/s. The request could be admitted only after a further reallocation, traffic reduction, or capacity upgrade.

The example illustrates three principles. First, a class’s configured share is not necessarily its continuous consumption; unused capacity may be redistributed depending on scheduler design. Second, a high-priority class must be bounded to prevent starvation. Third, admission control must consider the complete bottleneck, not merely the nominal access rate.

9. Illustrative Case: QoS for a Regional Telemedicine Network

Background

A regional health organization connects clinics to a central hospital using an IP/MPLS and Internet-assisted WAN. Services include video consultations, electronic medical records, imaging transfers, voice, and software updates.

Problem

Users report frozen video and delayed consultations during evening imaging transfers. The network team observes acceptable average utilization but substantial queue drops and delay variation on two access circuits. Existing devices trust customer DSCP markings, allowing bulk transfers to enter the highest-priority queue.

Analysis

Flow monitoring identifies three bottlenecks: uncontrolled edge bursts, excessive priority marking, and insufficient capacity on one asymmetric access link. Average latency is within the informal target, but the 99th-percentile latency and jitter are unacceptable. This demonstrates why tail measurements and application correlation are necessary.

Approach and Solution

The organization establishes a trust boundary at each clinic router. Authenticated voice and consultation endpoints are classified and remarked. Real-time media receives a bounded priority queue, while records and imaging receive weighted classes. Imaging traffic is shaped during consultation hours and given a lower drop precedence. A token-bucket policer limits priority traffic, and admission control prevents additional high-bandwidth video sessions when the access circuit lacks headroom. Active probes measure one-way delay, loss, and jitter, while application telemetry measures video freezes and consultation completion.

Outcome

In this illustrative scenario, priority-queue abuse is eliminated, burst-induced loss decreases, and consultation traffic receives predictable treatment. Imaging transfers take longer during protected periods, but the organization accepts this trade-off because clinical interaction has greater time sensitivity. The SLA is revised to include percentile latency, consultation availability, and measurement-point definitions.

Learning Points

QoS must be designed around business and application priorities, not merely protocol numbers. Trust boundaries, bounded priority, shaping, admission control, and application-aware monitoring are mutually reinforcing. A policy that improves one class by starving another is not a complete service design.

10. Limitations, Governance, and Contemporary Directions

QoS cannot create capacity that does not exist. It reallocates service under constraint and may improve one class at the expense of another. Encryption can hide application identity, making classification more dependent on endpoint cooperation, identity, or trusted metadata. Wireless links introduce variable capacity, interference, retransmission, and mobility, complicating static guarantees.

QoS policies also raise governance concerns. Preferential treatment may disadvantage users or applications if criteria are opaque or discriminatory. Enterprise and public-network operators should document legitimate service classes, protect personal data in telemetry, restrict access to policy systems, and retain auditable change records. Regulatory requirements concerning network neutrality, emergency communications, accessibility, and lawful service obligations may apply depending on jurisdiction.

Software-defined networking and intent-based networking can automate policy deployment and telemetry correlation, but automation creates risks of incorrect intent translation, inconsistent rollout, and large-scale failure. Machine-learning systems may predict congestion or classify flows, yet their decisions require explainability, validation, drift monitoring, and fallback policies. AI should augment—not replace—capacity analysis and human accountability.

Best practices include keeping the number of classes small, defining trust boundaries, bounding priority traffic, reserving headroom, testing failure modes, measuring tails rather than averages alone, validating policies in production-like conditions, and reviewing SLAs against actual application experience. QoS should be treated as a lifecycle: discover, design, implement, measure, troubleshoot, and redesign.

Chapter Summary

QoS engineering aligns finite network resources with differentiated application requirements. Its principal mechanisms are classification, marking, policing, shaping, scheduling, admission control, and monitoring. Delay consists of processing, queueing, transmission, propagation, and other components; jitter describes delay variation; goodput measures useful application delivery; and availability measures usable service time over a defined interval.

IntServ and resource reservation provide per-flow control but scale less easily, whereas DiffServ aggregates traffic into classes and supports large domains when edge conditioning and consistent PHBs are applied. Scheduling must balance priority against fairness, and priority traffic must be bounded. SLAs require precise metric definitions, observation windows, measurement points, percentile targets, exclusions, and remedies. Finally, network metrics must be related to QoE because user satisfaction depends on application behavior as well as packet treatment.

Key Terms

QoS: Mechanisms that control network treatment to meet differentiated performance objectives.

QoE: User-perceived quality of an application or service.

Latency: Time taken for data to travel between specified endpoints.

Jitter: Variation in packet delay according to a stated measurement definition.

Goodput: Useful application data delivered per unit time.

Availability: Percentage of an observation period during which a service is usable.

Classification: Identification of traffic for policy treatment.

Marking: Encoding a traffic class in a packet or frame field.

Policing: Immediate enforcement of a traffic contract, often by dropping or remarking excess traffic.

Shaping: Delaying traffic to smooth its rate or burstiness.

Scheduler: Mechanism that selects packets from queues for transmission.

Admission control: Decision process determining whether new traffic may be accepted.

Token bucket: Rate-and-burst model using replenished tokens to describe conforming traffic.

DiffServ: Scalable class-based QoS architecture using per-hop behaviors.

IntServ: Per-flow integrated-services architecture with reservation and admission state.

PHB: Per-Hop Behavior applied to a DiffServ traffic class.

SLA: Contract specifying measurable service obligations and remedies.

Tail latency: High-percentile latency representing adverse performance episodes.

Review Questions

Short Answer Questions

1. Distinguish throughput from goodput.

2. Why must priority traffic be bounded?

3. What is the purpose of a trust boundary in QoS classification?

4. State two differences between shaping and policing.

5. Why is an SLA average-latency target often insufficient?

Long Answer Questions

1. Explain the complete QoS treatment chain from classification to monitoring.

2. Compare IntServ/resource reservation and DiffServ with respect to scalability, state, and assurance.

3. Discuss how scheduling policies influence fairness, delay, and starvation.

4. Explain the role of token buckets in traffic conditioning and admission policy.

5. Describe how QoS metrics should be mapped to QoE for an interactive service.

Analytical / Application Questions

1. A 200 Mb/s link carries 40 Mb/s of voice, 80 Mb/s of transactional traffic, and 80 Mb/s of ordinary traffic. A new 30 Mb/s transactional flow is requested. Using a basic capacity admission test, should it be accepted? State what additional factors a real design must consider.

2. Design a QoS policy for a university network carrying videoconferencing, learning-management traffic, research transfers, and software updates. Specify classes, trust boundaries, scheduling, conditioning, and monitoring.

3. An SLA reports 2 ms average latency but 40 ms 99th-percentile latency during examinations. Analyze why the average is misleading and propose a measurement and remediation plan.

Multiple Choice Questions with Answers

Question 1

Which QoS mechanism delays excess traffic rather than immediately discarding or remarking it?

A. Policing

B. Shaping

C. Classification

D. Admission control

Correct Answer: B. Shaping

Question 2

A 1500-byte packet is transmitted on a 100 Mb/s link. Ignoring headers and other delays, what is its transmission delay?

A. 0.012 ms

B. 0.12 ms

C. 1.2 ms

D. 12 ms

Correct Answer: B. 0.12 ms

Question 3

What is the principal scalability advantage of DiffServ over per-flow IntServ?

A. It eliminates congestion

B. It requires no traffic classification

C. It aggregates traffic into classes rather than maintaining per-flow state

D. It guarantees identical delay for every packet

Correct Answer: C. It aggregates traffic into classes rather than maintaining per-flow state

Question 4

Which scheduling policy risks starvation of lower-priority traffic if the priority class is not bounded?

A. Strict priority

B. FIFO

C. Deficit Round Robin

D. Weighted Fair Queuing

Correct Answer: A. Strict priority

Question 5

If 900 MB of useful data is delivered in 120 seconds, what is the goodput using decimal units?

A. 7.5 MB/s

B. 10 MB/s

C. 60 MB/s

D. 108 MB/s

Correct Answer: A. 7.5 MB/s

Question 6

What is the availability of a service with 30 minutes of unavailability in a 30-day month, ignoring exclusions?

A. 99.90%

B. 99.93%

C. 99.97%

D. 99.99%

Correct Answer: C. 99.97%

Question 7

In a token-bucket model, what does the bucket capacity primarily control?

A. Propagation velocity

B. Maximum sustainable link speed

C. Permitted burst size

D. Packet address length

Correct Answer: C. Permitted burst size

Question 8

Which statement best describes good QoS architecture?

A. Trust all customer markings

B. Use unlimited strict priority for real-time traffic

C. Combine classification, conditioning, scheduling, admission, and measurement

D. Measure only average link utilization

Correct Answer: C. Combine classification, conditioning, scheduling, admission, and measurement

Question 9

A basic admission test has 100 Mb/s allocated and a new request of 20 Mb/s. What is the result if the available capacity is already fully allocated?

A. Accept, because QoS creates capacity

B. Reject, because 100+20 exceeds the allocation

C. Accept, because queueing removes the excess

D. Reject only if propagation delay is zero

Correct Answer: B. Reject, because 100+20 exceeds the allocation

Question 10

Why should an SLA define measurement points and metric definitions?

A. To make all networks use the same hardware

B. To ensure that reported compliance is reproducible and unambiguous

C. To eliminate the need for monitoring

D. To guarantee that averages equal percentiles

Correct Answer: B. To ensure that reported compliance is reproducible and unambiguous

Advanced Communication Networks
Chapter 6 of 15