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

πŸ“ QoS definitions in computer networks (13 MCQs)

Service Quality Beyond Ordinary Best-Effort Forwarding

Quality of Service (QoS) is the set of mechanisms and policies used to control how network traffic is handled against application requirements. It addresses measurable properties such as throughput, delay, jitter and packet loss, especially when multiple flows compete for limited resources. QoS does not create unlimited capacity; it allocates, protects or regulates available bandwidth, buffers and processing resources according to defined priorities.

Performance Measures Used to Describe QoS

A QoS design starts by identifying traffic classes and their performance needs. Classification selects packets using fields such as addresses, protocol, ports or markings. Queues store packets awaiting transmission, while schedulers decide which queue receives service. Shapers regulate when packets leave, and policers enforce traffic profiles by marking or discarding packets that exceed configured limits.

Applying Different Treatment to Competing Traffic

When a packet reaches a router, a classifier may associate it with a flow or aggregate. The router places it into an appropriate queue, applies a scheduling policy, and forwards it when link capacity becomes available. At a network boundary, traffic conditioning can also measure a stream, reshape bursts or change its marking to enforce policy.

Example: Protecting Voice While Carrying File Transfers

Suppose a 10 Mbit/s access link carries an interactive voice stream and a large file download. A configured scheduler gives the voice queue timely service while allowing the file queue to use remaining capacity. The download may take longer during congestion, but voice packets experience less queueing delay than they would under an unmanaged single queue.

QoS Policy Across Applications and Network Devices

QoS connects application behavior with link capacity, transport protocols, router queues and service agreements. It can operate within a local enterprise network or across a provider domain, but each participating device must apply compatible policies. End-to-end quality also depends on path capacity, routing, access links, endpoint processing and the behavior of remote networks.

Distinguishing QoS Guarantees from Priority Marking

'QoS always increases bandwidth' is incorrect because it manages existing resources. 'A priority mark reserves capacity end to end' is false unless network policies and resources support that service. 'QoS removes all packet loss' is mistaken because errors, failures and congestion can still cause loss even when traffic receives preferential handling.

QoS Definitions, Metrics and Service Expectations

Students should define QoS through measurable performance properties and explain how classification, queuing, scheduling and conditioning work together. Be able to distinguish a service objective from a mechanism, interpret a scenario involving competing traffic, and state why a priority marking alone cannot guarantee end-to-end delay or bandwidth. Use concrete service scenarios.

QoS Service and Performance Terminology

  • QoS - Policies controlling treatment of network traffic.
  • Delay - Time taken for a packet to arrive.
  • Jitter - Variation in packet transit delay.
  • Classifier - Device function selecting packets by defined criteria.
  • Scheduler - Mechanism choosing which queue transmits next.
  • Policer - Function enforcing a configured traffic profile.
4
Easy
6
Medium
3
Hard

πŸ“ All QoS definitions in computer networks MCQs

Q1. Why is a blank line included between the header section and the body in a SIP message?

A.It separates multiple headers
B.It indicates end of message
C.It allows the parser to skip optional fields
D.It marks the transition from header to body βœ…
πŸ’‘ Difficulty: easy | βœ… Correct: D

πŸ“– Explanation: The blank line signals the end of the header block and the start of the message body. SIP parsers treat any text after this empty line as payload, typically SDP. Without the blank line the parser cannot reliably distinguish header fields from body content, leading to misinterpretation.

Q2. If a SIP request passes through multiple proxies, how does the Via header affect the path of the response?

A.Response follows the same Via entries in reverse order βœ…
B.Response is sent directly to the originator ignoring Via
C.Via header is only used for debugging
D.Each proxy adds a new Via, causing the response to be broadcast
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: Each proxy that forwards a request appends its own Via entry. When a response is generated, it traverses the Via list in reverse, ensuring the reply returns through the same set of proxies that handled the request. This mechanism guarantees proper routing and allows each proxy to perform necessary processing on the response.

Q3. What would likely happen if the Content-Length value in a SIP INVITE header is smaller than the actual size of the SDP body?

A.The receiver will truncate the body, potentially losing media information
B.The message will be rejected with a 400 Bad Request βœ…
C.The extra bytes will be ignored, causing no error
D.The receiver will request retransmission of the entire message
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: When the Content-Length does not match the true body size, the receiver cannot reliably parse the message. According to RFC 3261, this mismatch is treated as a malformed request, and the server must respond with a 400 Bad Request error, prompting the sender to correct the header and resend.

Q4. Which statement best describes the SIP start line compared to the HTTP start line?

A.Both use method name followed by URI and version
B.SIP start line includes three-digit code while HTTP uses textual reason phrase
C.HTTP start line contains host header, SIP does not
D.SIP start line includes request name, recipient address, and SIP version βœ…
πŸ’‘ Difficulty: easy | βœ… Correct: D

πŸ“– Explanation: A SIP start line begins with a method (e.g., INVITE), followed by the request‑URI and the SIP version (SIP/2.0). This mirrors HTTP’s request line but uses SIP‑specific methods and versioning. Unlike HTTP responses, SIP responses have a status line with a numeric code, making the start line structure a key distinguishing feature.

Q5. Evaluate the distinct roles of the Call-ID header and the From header in a SIP dialog.

A.Call-ID uniquely identifies a dialog, From identifies sender address βœ…
B.Call-ID is optional, From is mandatory
C.Both provide same information and are redundant
D.From header determines routing, Call-ID determines media type
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The Call-ID header contains a globally unique identifier that distinguishes a particular SIP session, allowing both parties to correlate messages belonging to the same dialog. The From header, by contrast, specifies the logical address of the originator, which is used for routing and display purposes. Their functions are complementary, not interchangeable.

Q6. Differentiate the three parts of an SDP body based on their purpose.

A.Version and origin are for technical details; subject and info are for routing
B.General section (v,o) provides session metadata; session description (s,i,u,e) conveys human‑readable info; connection (c,t) defines network parameters βœ…
C.All sections are interchangeable
D.The third part (c,t) is optional
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: SDP is organized into logical sections: the first (v=, o=) carries version and origin information essential for session identification; the second (s=, i=, u=, e=) supplies descriptive data that assists the user in deciding whether to join; the third (c=, t=, m=) offers concrete network and timing details required to establish the media stream.

Q7. Which SDP code provides the timing information for a session?

A.v
B.c
C.t βœ…
D.s
πŸ’‘ Difficulty: easy | βœ… Correct: C

πŸ“– Explanation: The \t=\ line in SDP specifies the start and stop times of the session, using a pair of numeric values (e.g., \t=0 0\ for an ongoing session). This timing information enables participants to know when the media session is intended to be active, distinguishing it from other SDP fields that describe version, connection, or subject.

Q8. Explain the relationship between the Content-Type header and the body format in a SIP message.

A.Content-Type must be 'application/sdp' to indicate SDP body βœ…
B.Content-Type is unrelated to body
C.Content-Type determines encryption only
D.Content-Type can be any value as long as Content-Length matches
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The Content-Type header tells the receiver how to interpret the payload. For SIP messages that carry SDP, the header is typically set to \application/sdp\. This informs the parser that the following body follows SDP syntax, enabling correct decoding of session parameters. Mismatched or missing Content-Type can cause the body to be misinterpreted.

Q9. Which of the following represents a correctly constructed SIP INVITE message for establishing an audio session?

A.Include Via, From, To, Call-ID, CSeq, Contact, Content-Type, Content-Length, and SDP body with v=0, o=..., s=..., c=IN IP4 192.0.2.1, t=0 0, m=audio 49170 RTP/AVP 0 βœ…
B.Only need From and To headers
C.Use HTTP syntax
D.Omit Content-Length
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– Explanation: A valid INVITE must contain routing headers (Via, From, To), identification headers (Call-ID, CSeq), contact information, and payload descriptors (Content-Type, Content-Length). The SDP body supplies session details: version (v=0), origin (o=...), session name (s=...), connection address (c=IN IP4 192.0.2.1), timing (t=0 0), and media description (m=audio 49170 RTP/AVP 0). This combination satisfies RFC 3261 and enables audio negotiation.

Q10. What does the 'v' code represent in an SDP description?

A.Version of SDP βœ…
B.Origin
C.Subject
D.Connection
πŸ’‘ Difficulty: easy | βœ… Correct: A

πŸ“– Explanation: The \v=\ line is the first line of an SDP body and indicates the version of the SDP protocol being used. Currently, the version is always \0\, which signals compliance with the SDP specification. This line establishes a baseline for interpreting the remainder of the description.

Q11. Suppose a SIP REGISTER request includes an Expires header set to 0. What can be inferred about the client’s intent?

A.The client wants to refresh registration
B.The client intends to deregister βœ…
C.The client is requesting a new registration
D.The client is indicating a keep‑alive
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: An Expires value of zero signals that the client wishes to remove its registration from the server. According to RFC 3261, a zero expiration causes the registrar to delete the existing binding for the address of record, effectively deregistering the user agent.

Q12. Compare the purpose of the 'c=' line and the 'm=' line in SDP.

A.'c=' defines media type, 'm=' defines codec
B.'c=' gives connection address, 'm=' specifies media name, transport, and ports βœ…
C.'c=' is optional, 'm=' is mandatory
D.'c=' and 'm=' are synonyms
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: The \c=\ line conveys the network address (IP) and type (unicast/multicast) that participants must join to receive media. The \m=\ line defines the media stream itself, including the media type (audio, video), transport protocol (RTP/AVP), and the port numbers. Both lines are essential for establishing a functional media path.

Q13. How does the ordering of SDP lines (v, o, s, i, u, e, c, t, m) affect the parsing and interpretation of a SIP INVITE?

A.Order is irrelevant; parsers read any line
B.Lines must follow RFC order; out‑of‑order lines cause parsing errors βœ…
C.Only the first three lines matter
D.Headers can be interleaved with body
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: RFC 4566 specifies a strict order for SDP lines. Parsers expect the sequence vβ†’oβ†’sβ†’iβ†’uβ†’eβ†’cβ†’tβ†’m. Deviating from this order can lead to parsing failures or misinterpretation of session parameters, because the parser may treat a later line as belonging to a different section. Maintaining the prescribed order ensures reliable negotiation.

πŸ”— Related Topics (MCQs)