π 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.
π 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?
π 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?
π 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 and end time . What is the session duration, and does it exceed the typical SIP timeout of 3600 seconds?
π Explanation: Subtracting the start time from the end time gives 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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.