📝 Application sensitivity to QoS parameters (10 MCQs)
Different Applications Place Different Demands on Networks
Network applications react differently to delay, jitter, packet loss and available throughput. Interactive voice and video conversations are highly sensitive to delay because late information disrupts conversation, while jitter can make playback uneven. Stored video can buffer data before display, and file transfer usually values correct delivery more than immediate arrival. QoS policy must therefore reflect application behavior. These differences matter in practice.
Delay, Jitter, Loss and Rate Sensitivity
Real-time interactive applications need packets to arrive before their usefulness expires. Audio codecs can conceal some missing frames, but sustained loss reduces clarity. Streaming applications use buffers to absorb delay variation, provided throughput remains sufficient. File transfer protocols can retransmit missing data, so they tolerate more delay but may suffer when loss triggers repeated recovery.
How Application Requirements Influence Packet Handling
A network administrator identifies application traffic through endpoint addresses, protocol types, ports or trusted markings. The traffic is grouped into suitable classes and placed into queues with configured scheduling treatment. Rate limits and shaping may protect shared links, while monitoring checks whether actual delay, loss and throughput remain within policy objectives.
Example: Comparing Voice, Video and File Transfer
On a congested link, a voice conversation may need low-latency priority, a video stream may need a sustained share of capacity, and an email attachment can use best-effort service. The voice packets are scheduled promptly, video receives adequate throughput, and the attachment proceeds when capacity is available without requiring a permanent reservation.
Mapping Application Behavior to QoS Policies
Application sensitivity informs service classes in IntServ and traffic classes in DiffServ. It also influences buffer sizing, queue selection, admission decisions and capacity planning. Application requirements do not replace transport behavior: TCP can retransmit lost data, whereas UDP-based media applications often handle late or missing packets through playback strategies. This guides class assignment.
Avoiding Overgeneralizations About Application Traffic
'All video traffic has identical delay needs' ignores the difference between live conferencing and buffered playback. 'File transfers do not need QoS' overlooks throughput and fairness requirements. 'UDP traffic is always real-time' is false because UDP serves many applications with very different timing and reliability needs. This distinction matters during live communication.
Application Requirements and QoS Parameter Comparisons
For application scenarios, identify the dominant requirement rather than memorizing one fixed class for every protocol. Compare interactive voice, conferencing, buffered streaming, gaming and bulk transfer by delay, jitter, loss and throughput sensitivity. Explain how buffering, retransmission and packet scheduling change the effect of network impairment. Use realistic network scenarios.
Application Sensitivity and Performance Terms
- Real-time - Information useful only within a limited time.
- Buffering - Temporarily storing data before playback or use.
- Latency - Time required for data to traverse a path.
- Elastic traffic - Traffic able to adapt its sending rate.
- Concealment - Receiver technique masking missing data.
- Throughput - Rate of useful data delivered successfully.
📝 All Application sensitivity to QoS parameters MCQs
Q1. Given the Huffman code set {A:00, B:010, C:011, D:10, E:11}, which of the following statements correctly infers the consequence of the prefix property?
📖 Explanation: Because the code is prefix‑free, once the decoder reads a complete codeword it knows that no longer code can begin with those bits. Therefore the decoder can immediately identify each symbol without needing to look ahead or backtrack, which is the defining consequence of the prefix property.
Q2. Compare the average bit length per symbol for the Huffman code above with a fixed‑length code for five symbols. Which statement best evaluates the compression gain?
📖 Explanation: A fixed‑length code for five symbols requires \\\lceil\\log_2 5\\rceil = 3\ bits per symbol. The Huffman code uses lengths 2,3,3,2,2 bits, giving an average of \(2+3+3+2+2)/5 = 2.4\ bits. The difference of 0.6 bits per symbol represents the compression gain, matching option C.
Q3. In Huffman coding, what term describes a code where no codeword is a prefix of any other codeword?
📖 Explanation: An instantaneous code is one in which no codeword is a prefix of any other, allowing immediate symbol identification as each codeword is received. This property is exactly the definition of the prefix‑free condition used in Huffman coding.
Q4. If a message consisting of the sequence A‑B‑C‑D‑E is encoded using the given Huffman code, and the receiver decodes the bitstream 0010011, which inference about the original sequence is correct?
📖 Explanation: Parsing 0010011 using the given code: 00 → A, remaining 10011; 10 → D, remaining 011; 011 → C. The decoder thus recovers the sequence A‑D‑C. No other parsing is possible because the prefix property guarantees unique segmentation, so option B is correct.
Q5. Evaluate the impact on average code length if the probability of symbol A doubles while all other symbols keep the same relative probabilities. Which statement best reflects the change?
📖 Explanation: Doubling the probability of A makes it more likely to be assigned a shorter code, but the Huffman tree must be rebuilt to reflect the new frequencies. The average length can either decrease or increase depending on how the tree restructures, so the safest statement is that the effect is uncertain without recomputing the tree.
Q6. Apply the principle of entropy to estimate the theoretical minimum average bits per symbol for the five‑symbol source with probabilities {0.4,0.2,0.2,0.1,0.1}. Which value is closest to the entropy \H = -\\sum p_i \\log_2 p_i\?
📖 Explanation: The entropy is \H = -\\sum p_i\\log_2 p_i = -(0.4\\log_2 0.4 + 2\\cdot0.2\\log_2 0.2 + 2\\cdot0.1\\log_2 0.1) \\approx 2.12\ bits. Among the options, 2.0 bits is the closest approximation, making option C the best choice.
Q7. Given that no Huffman codeword is a prefix of another, what can be deduced about the decoding process when reading a bitstream sequentially?
📖 Explanation: Because the code is prefix‑free, the decoder can stop as soon as it matches a complete codeword; there is no need for backtracking or extra delimiters. This immediate decision capability is a direct consequence of the prefix property, validating option B.
Q8. Contrast the compression ratio achieved by the Huffman code with that of a naive fixed‑length code for a large text where symbol frequencies follow a Zipf distribution. Which analysis is most accurate?
📖 Explanation: Zipf‑like frequencies give a few very common symbols and many rare ones. Huffman assigns short codes to the frequent symbols and longer codes to the rare ones, often cutting the average bits per symbol roughly in half compared with a uniform 3‑bit fixed length for five symbols. Hence option B accurately reflects the typical improvement.
Q9. Synthesize a method to extend the given Huffman code to support an additional symbol F with probability 0.05, while preserving the prefix property. Which of the following steps correctly describes the process?
📖 Explanation: To add a new symbol F with probability 0.05, the standard procedure is to combine F with the current least probable symbol (the one with the smallest weight) and rebuild the Huffman tree. This maintains the optimal prefix property while incorporating the new symbol, which corresponds to option B.
Q10. If the Huffman coding tree for the five symbols is altered by swapping the positions of symbols D and E in the tree, how does this affect the average code length and why?
📖 Explanation: Swapping two leaf nodes that reside at the same depth does not alter the depth of any symbol; therefore the total weighted path length, i.e., the average code length, stays the same. The probabilities of D and E are unchanged, so option A correctly describes the effect.