Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
ISO/IEC 29341-8-5 specifies the QoS Policy v2 component of the UPnP QoS architecture, defining how network traffic policies are structured, stored, and applied across UPnP QoS-enabled devices. The QoS Policy service provides a standardized mechanism for creating, managing, and distributing policy rules that determine how different types of network traffic should be treated. Policies serve as the bridge between high-level application requirements and low-level device configurations, translating abstract QoS needs into concrete packet handling instructions that QoS Device instances can execute.
The QoS Policy v2 specification defines a hierarchical policy model in which each policy contains one or more rules, and each rule consists of a condition set and an action set. The condition set specifies matching criteria including source and destination addresses, protocol types, port ranges, DSCP values, and VLAN tags. The action set specifies the treatment to apply when a condition match occurs, including the target traffic class, DSCP marking value, 802.1p priority, and optional metering parameters. Policies are stored in a policy repository that can be local to a device or centralized within the network.
Rule evaluation follows a first-match semantics: incoming traffic is tested against policy rules in order of increasing precedence value. As soon as a matching rule is found, the corresponding actions are executed and evaluation stops. This deterministic evaluation model simplifies troubleshooting and ensures predictable behavior. The specification also defines a PolicyInvalidation mechanism that allows the QoS Manager to notify devices when policies have been updated, triggering re-evaluation of active traffic flows against the new policy set.
| Attribute | Description | Example Value |
|---|---|---|
| PolicyID | Unique identifier for the policy | urn:upnp-qos:policy:voip:1 |
| Precedence | Evaluation priority (lower = higher priority) | 10 |
| ConditionMatch | Traffic matching criteria expression | Proto=UDP AND Port=5060 |
| TargetTrafficClass | Assigned traffic class on match | TC_AV (Audio/Video) |
| MarkingAction | Packet marking behavior | DSCP=46 (EF), 802.1p=5 |
| MeteringParams | Rate limiting and burst parameters | CIR=256kbps, CBS=64KB |
Designing an effective QoS policy framework requires understanding both the application requirements and the network topology. A recommended engineering pattern is the layered policy approach: define base policies at the network edge that classify traffic into broad categories (voice, video, critical data, best-effort, background), then apply more specific policies deeper in the network that refine treatment based on local congestion conditions and administrative domains. This approach minimizes the number of policies that need to be maintained while ensuring appropriate treatment at every network segment.
Another critical consideration is policy lifecycle management. The QoS Policy v2 specification supports policy versioning through the PolicyVersion state variable, enabling control points to detect when policies have changed and trigger re-application. In practice, engineers should implement a change management workflow where policy updates are first deployed to a staging environment, validated against test traffic patterns, and then promoted to production using the QoS Manager’s policy distribution interface. The specification also supports scheduled policy activation through time-based conditions, allowing automatic deployment of different policies during business hours versus maintenance windows.
MaxPolicyRules state variable indicates the device’s capacity. Typical implementations support between 64 and 512 rules, depending on hardware resources.QosDeviceCapabilities to determine which policy actions are supported. Unsupported actions are typically ignored or replaced with best-effort defaults, and the device returns a warning status.