πŸŽ“ BookMCQ
← Back to 30. Quality of Service

πŸ“ DS field in DiffServ (10 MCQs)

The Eight-Bit Field in IPv4 and IPv6 Headers

The Differentiated Services field is an eight-bit field in the IPv4 header and IPv6 Traffic Class field used to support packet classification and congestion notification. Its six most significant bits form the DSCP, which selects a per-hop behavior in a DiffServ network. The remaining two bits carry Explicit Congestion Notification information when ECN is used. This supports differentiated packet forwarding decisions.

Six DSCP Bits and Two ECN Bits

A DSCP is a six-bit codepoint, giving 64 possible bit patterns, although assigned and recommended uses are managed by standards and policy. The two ECN bits identify whether the transport is not ECN-capable, ECN-capable, or has experienced congestion. DSCP and ECN share the octet but communicate different information. These values are interpreted in this layout.

How Routers Interpret the Codepoint for Forwarding

A sender or network boundary sets the DSCP according to service policy. A DiffServ router reads the six-bit value and maps it to a configured per-hop behavior. An ECN-capable router may mark congestion in the ECN field instead of dropping an eligible packet, allowing the transport endpoints to respond to congestion feedback.

Example: Identifying a DSCP Value in a Packet

Consider the DS field 101110 10. The first six bits, 101110, are decimal 46 and identify the Expedited Forwarding DSCP recommended by RFC 3246; the final bits 10 represent the ECT(0) ECN codepoint. The two portions must be interpreted separately rather than treating all eight bits as one priority number.

DSCP Marking and Congestion Notification Have Different Roles

DSCP marking connects traffic classification with queue selection and DiffServ forwarding, while ECN connects router congestion signals with transport congestion control. An operator may configure which DSCP maps to which PHB, but ECN bits are interpreted according to ECN rules. Both fields can influence handling without replacing link capacity or admission policy.

Former Currently Unused DS Bits and ECN Assignment

'All eight bits form DSCP' is incorrect because DSCP uses six bits. 'The final two bits are always unused' is outdated because ECN uses them. 'ECN marks a packet's priority' is false because ECN reports congestion capability or experience, whereas DSCP selects a differentiated forwarding treatment. That description no longer applies in modern IP headers.

DS Field Layout and Codepoint Interpretation Questions

Be able to draw the octet and label DSCP and ECN positions. Convert a six-bit DSCP such as 101110 to decimal 46, while interpreting the ECN code separately. Remember that RFC 2474 originally called the last bits currently unused, but RFC 3168 subsequently specified their ECN use. Practice the bit positions for accurate interpretation.

DS Field, DSCP and ECN Terms

  • DS field - Eight-bit field supporting DiffServ and ECN.
  • DSCP - Six-bit codepoint used to select a PHB.
  • ECN - IP mechanism signalling congestion without packet loss.
  • ECT(0) - ECN-capable transport codepoint represented by binary ten.
  • CE - Codepoint indicating congestion experienced by packet.
  • Traffic Class - IPv6 field containing DS and ECN bits.
3
Easy
5
Medium
2
Hard

πŸ“ All DS field in DiffServ MCQs

Q1. If a terminal broadcasts a request and receives an IP address from the gatekeeper, what can be deduced about the gatekeeper's role in the SIP environment?

A.It acts as a DNS resolver
B.It functions as a registrar server βœ…
C.It provides media streaming services
D.It encrypts SIP messages
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: The gatekeeper supplies its own address so the terminal can register with it. In SIP this behavior corresponds to the registrar function, which maintains user location information. Hence the logical inference is that the gatekeeper is acting as a registrar server, not as a DNS resolver or media provider.

Q2. When a terminal does not receive a bandwidth allocation response via H.225, which outcome is most likely during the subsequent Q.931 negotiation phase?

A.The negotiation will continue with default bandwidth
B.The call will be immediately terminated
C.The terminal will retry the H.225 request
D.The Q.931 negotiation will stall until bandwidth is allocated βœ…
πŸ’‘ Difficulty: medium | βœ… Correct: D

πŸ“– Explanation: H.225 is responsible for negotiating bandwidth before the call can be set up. If the terminal never receives a bandwidth allocation, the Q.931 layer lacks the needed resource information, causing the negotiation to pause. The call cannot progress until the gatekeeper provides the missing allocation, making stalling the most probable result.

Q3. The SDP fields contain start time 29237218542923721854 and end time 29237254542923725454. What is the session duration, and does it exceed the typical SIP timeout of 3600 seconds?

A.1800 seconds, does not exceed
B.3600 seconds, exactly matches βœ…
C.5400 seconds, exceeds
D.7200 seconds, exceeds
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: Subtracting the start time from the end time gives 2923725454βˆ’2923721854=36002923725454-2923721854 = 3600 seconds. This duration equals the common SIP session timeout of 3600 seconds, meaning the session does not exceed the timeout limit. Therefore the correct answer is 3600 seconds, which matches the typical timeout value.

Q4. Which statement best captures the difference in protocol completeness between SIP and H.323?

A.SIP includes RTP by default
B.H.323 is only a signalling protocol
C.SIP is only signalling while H.323 includes RTP and RTCP βœ…
D.Both are identical in functionality
πŸ’‘ Difficulty: easy | βœ… Correct: C

πŸ“– Explanation: SIP provides only signalling functions and relies on external protocols such as RTP and RTCP for media transport. In contrast, H.323 defines a full suite that mandates the use of RTP and RTCP along with signalling. Thus the most accurate distinction is that SIP is purely signalling, whereas H.323 encompasses both signalling and media transport protocols.

Q5. What is the primary advantage of using H.245 to negotiate compression methods instead of fixing a static codec for all calls?

A.Dynamic negotiation reduces bandwidth waste βœ…
B.It simplifies implementation by avoiding negotiation
C.It guarantees higher audio quality regardless of network conditions
D.It eliminates the need for RTP altogether
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: H.245 enables endpoints to agree on the most efficient codec based on current network capacity, allowing the system to use lower‑bitrate codecs when bandwidth is limited and higher‑quality codecs when ample bandwidth exists. This adaptability minimizes unnecessary bandwidth consumption compared to a static codec that may be suboptimal for many calls.

Q6. If H.225 and Q.931 messages were combined into a single message, what would be the most likely impact on call setup time and protocol integrity?

A.Call setup would be faster and protocol layering preserved
B.Call setup would be slower but more reliable
C.Latency would decrease but the separation of concerns would be violated βœ…
D.No impact on either latency or protocol design
πŸ’‘ Difficulty: hard | βœ… Correct: C

πŸ“– Explanation: Merging H.225 (bandwidth negotiation) with Q.931 (call control) could reduce the number of round‑trips, lowering latency. However, it would break the layered design principle that keeps bandwidth management separate from call signaling, potentially causing interoperability and maintenance problems.

Q7. In the SIP header, the \Via\ field primarily operates at which OSI layer?

A.Application βœ…
B.Transport
C.Network
D.Data Link
πŸ’‘ Difficulty: easy | βœ… Correct: A

πŸ“– Explanation: The \Via\ header records the transport path that a SIP request follows, which is handled by the application‑level protocol. Although it contains transport‑layer information (such as UDP or TCP ports), its primary purpose is to support application‑level routing and loop detection, placing it in the Application layer of the OSI model.

Q8. How do RTP and RTCP interact in an H.323 call to ensure quality of service?

A.RTCP replaces RTP for media delivery
B.RTP carries media while RTCP monitors QoS βœ…
C.RTCP encrypts RTP streams
D.RTP handles signaling while RTCP transports audio
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: In H.323, RTP is responsible for the actual transmission of audio or video packets, whereas RTCP periodically sends control packets that convey statistics such as packet loss, jitter, and delay. These reports enable endpoints to adapt transmission parameters, thereby maintaining the desired quality of service during the call.

Q9. If a firewall blocks UDP traffic on port 5060, which strategy allows SIP communication to continue securely?

A.Change the SIP port to 5061
B.Use SIP over UDP on a different port
C.Disable the firewall entirely
D.Use TCP or TLS transport for SIP messages βœ…
πŸ’‘ Difficulty: medium | βœ… Correct: D

πŸ“– Explanation: When UDP on the standard SIP port is blocked, SIP can fall back to TCP, which provides reliable delivery, or to TLS over TCP for encrypted communication. Both alternatives use the same SIP semantics but traverse firewalls that permit TCP traffic, ensuring continued and secure signaling.

Q10. Which audio codec is mentioned as being used by H.323 for compression?

A.G.711
B.G.723.1 βœ…
C.G.729
D.G.726
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: The passage explicitly states that H.323 uses G.71 or G.723.1 for compression. Among the listed options, G.723.1 is the codec identified in the text as part of the H.323 compression suite, making it the correct choice.

πŸ”— Related Topics (MCQs)