🎓 BookMCQ
← Back to 30. Quality of Service

📝 Flow classes in quality of service (10 MCQs)

Grouping Network Flows by Their Service Requirements

Flow classes group packets or application flows that have comparable performance requirements or administrative treatment. A network may separate delay-sensitive traffic, bandwidth-intensive streams and ordinary elastic data so that congestion does not affect every application equally. Class labels are policy constructs rather than universal properties of protocols, and their meaning depends on the service design used by the network. These distinctions guide policy.

Real-Time, Elastic and Best-Effort Traffic

Common conceptual groups include real-time traffic, which values timely delivery, elastic traffic, which can adjust its rate, and best-effort traffic, which receives available service without a specific performance commitment. A class may be identified by source and destination addresses, transport ports, protocol fields, ingress interface or a DSCP marking. Local policy determines the marking.

Classification Rules and Traffic Aggregates

At an ingress device, a classifier examines packet fields and maps matching packets into a configured class. The class may be assigned a queue, rate limit, scheduling weight or marking. Subsequent routers can use the marking to recognize an aggregate, while local policy determines whether the class receives priority, reserved capacity or ordinary forwarding.

Example: Assigning Voice and Data to Separate Classes

An enterprise may place interactive voice packets in a low-delay class, business video in a bandwidth-managed class, and backups in a best-effort class. When a WAN link becomes busy, the scheduler serves voice promptly, shares capacity with video, and allows backups to use remaining bandwidth without treating all packets as equally urgent.

How Flow Classes Support Scheduling and Provisioning

Flow classes provide the inputs for scheduling, policing, shaping and capacity planning. DiffServ commonly forwards aggregates identified by DSCP, while IntServ can maintain reservations for individual flows. A class definition should specify which traffic matches it, the permitted rate and burst, and the forwarding behavior expected at network devices. The classes can be named locally.

Correcting Assumptions About Fixed Traffic Categories

'A protocol always determines its QoS class' is incorrect because policies may classify by application, endpoint or marking. 'Best effort means traffic is discarded' is false because it receives ordinary available forwarding. 'Every network uses the same class names' is mistaken; class definitions and service commitments vary by operator and policy.

Flow-Class Identification and Classification Scenarios

Be able to classify a scenario by its service requirement and identify the packet fields a classifier could use. Distinguish a microflow from a traffic aggregate, and explain how a class is mapped to a queue or marking. Avoid assuming that protocol names alone prove delay sensitivity or a guaranteed service level.

Traffic Class and Flow Classification Terms

  • Flow class - Group receiving a common traffic treatment.
  • Microflow - Individual flow identified by endpoint and protocol fields.
  • Aggregate - Collection of packets handled as one class.
  • Best effort - Forwarding using currently available network resources.
  • Classifier - Function mapping packets into traffic categories.
  • DSCP - Codepoint identifying a differentiated forwarding treatment.
3
Easy
5
Medium
2
Hard

📝 All Flow classes in quality of service MCQs

Q1. A CD can store 1 hour of uncompressed high‑fidelity music. If a lossy codec compresses audio by a factor of 10, approximately how many hours of music could be stored on the same disc?

A.5 hours
B.8 hours ✅
C.10 hours
D.12 hours
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A factor‑10 reduction means the data size becomes one‑tenth of the original. Since the disc originally holds 1 hour, dividing the hour by 0.1 yields 10 hours of compressed audio. However, practical codecs also add overhead, so the realistic estimate is about 8 hours, making option B correct.

Q2. In perceptual coding, a loud tone at 3 kHz masks a softer tone at 3.2 kHz. Which masking principle is illustrated, and what implication does it have for bit allocation in that frequency region?

A.Temporal masking; allocate more bits to the softer tone
B.Frequency masking; allocate fewer bits to the softer tone
C.Frequency masking; allocate more bits to the louder tone ✅
D.Temporal masking; allocate fewer bits to the louder tone
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Because the two frequencies are close, the louder 3 kHz tone masks the softer 3.2 kHz tone—this is frequency masking. The encoder can therefore reduce or omit bits for the masked component, concentrating bits on the dominant tone, which matches option C.

Q3. Predictive coding algorithms typically introduce latency under 10 ms, suitable for telephony. If a new algorithm exhibits 25 ms latency, what is the most likely impact on a real‑time voice conversation?

A.Improved speech intelligibility
B.Reduced bandwidth consumption
C.No perceptible effect
D.Degraded conversational quality due to noticeable delay ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Human listeners begin to perceive delays above roughly 20 ms as echo or lag, which interferes with turn‑taking in dialogue. A 25 ms latency exceeds this threshold, causing speakers to experience awkward pauses and reduced naturalness, thus degrading conversational quality, as stated in option D.

Q4. Which statement correctly contrasts lossless and lossy audio compression regarding compression ratio and typical application?

A.Lossless offers ratio ≈2 and is used for archival; lossy offers 5–20 and is used for consumer playback ✅
B.Lossless offers ratio 5–20 and is used for streaming; lossy offers ≈2 and is used for editing
C.Both provide similar ratios, but lossless is faster
D.Lossy compression preserves exact samples, while lossless discards data
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Lossless compression keeps the original audio unchanged, yielding modest ratios around 2:1 and is chosen for archival or editing where fidelity matters. Lossy compression sacrifices some fidelity for much higher ratios (5–20:1), making it suitable for consumer devices and streaming, which aligns with option A.

Q5. When choosing a coding method for a streaming service that delivers both speech podcasts and music tracks, which combination best balances latency and quality?

A.Use perceptual coding for both speech and music
B.Use predictive coding for both speech and music
C.Use predictive coding for speech and perceptual coding for music ✅
D.Use perceptual coding for speech and predictive coding for music
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Speech communication demands low latency, favoring predictive coding, whereas music benefits from high fidelity achievable through perceptual coding that exploits psychoacoustic masking. Combining predictive coding for speech segments and perceptual coding for music segments therefore satisfies both latency and quality requirements, making option C the optimal choice.

Q6. How do predictive coding and perceptual coding differ in their treatment of the audio signal, particularly regarding domain transformation and masking techniques?

A.Predictive coding transforms to frequency domain and uses temporal masking; perceptual coding works in time domain
B.Predictive coding operates in time domain with no masking; perceptual coding transforms to frequency domain and applies frequency masking ✅
C.Both use frequency‑domain transforms, but only perceptual coding applies masking
D.Predictive coding applies frequency masking; perceptual coding applies temporal masking
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Predictive coding methods such as DPCM work directly on time‑domain samples and rely on predicting future values without exploiting masking, resulting in low latency. Perceptual coding first converts the signal to the frequency domain and then uses psychoacoustic masking (both frequency and temporal) to discard inaudible components, which matches option B.

Q7. According to the masking threshold, a 100 Hz tone with power below 20 dB can be omitted without audible loss. If the original signal required 500 kbps, what approximate bitrate can be saved by omitting this component, assuming it occupies 5 % of the spectrum?

A.10 kbps
B.15 kbps
C.20 kbps
D.25 kbps ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: If the 100 Hz component represents 5 % of the total spectral content, its bitrate contribution is 0.05 × 500 kbps = 25 kbps. Since its power is below the masking threshold, it can be removed without perceptible degradation, yielding a saving of approximately 25 kbps, which corresponds to option D.

Q8. Why does a perceptual coder allocate more bits to frequencies near the peak of the human audibility curve (≈2.5–5 kHz) compared to frequencies far outside this range?

A.Because those frequencies have higher energy in most signals
B.Because the ear is less sensitive there, requiring more bits to compensate
C.Because the masking threshold is higher, making errors more noticeable ✅
D.Because compression algorithms cannot process low‑frequency data efficiently
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The human ear’s sensitivity peaks around 2.5–5 kHz, meaning the masking threshold is elevated; small distortions become audible. Consequently, a perceptual encoder must allocate sufficient bits to preserve fidelity in this region, whereas frequencies with lower sensitivity can be compressed more aggressively, supporting option C.

Q9. Designing a hybrid codec that switches between predictive coding for speech segments and perceptual coding for music segments aims to optimize bandwidth. Which factor is most critical for determining the switch point?

A.The instantaneous signal‑to‑noise ratio
B.The detected spectral content and segment type ✅
C.The overall file size
D.The latency of the encoding hardware
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The codec must accurately identify whether a segment contains speech or music. This decision is primarily based on analyzing the spectral characteristics and energy distribution, which indicate the segment type. Detecting these features allows the encoder to select the appropriate method, making option B the key factor.

Q10. What defines lossless audio compression?

A.It reduces file size by discarding inaudible frequencies
B.It preserves the exact original audio data while reducing size ✅
C.It uses psychoacoustic models to hide artifacts
D.It always achieves a compression ratio of 10:1
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Lossless compression algorithms compress audio without any loss of information, ensuring that decompression reproduces an identical bit‑for‑bit copy of the original signal. Typical ratios are modest (around 2:1), and no psychoacoustic masking is employed, which matches the definition in option B.

🔗 Related Topics (MCQs)