Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
The Traffic Descriptor service, defined in ISO/IEC 29341-8-16, provides a standardized mechanism for describing network traffic flows in the UPnP QoS architecture. A Traffic Descriptor defines the classification criteria that identify which packets belong to a specific traffic flow — including source and destination IP addresses, port numbers, protocol types, and DSCP markings. These descriptors serve as the fundamental building blocks upon which QoS policies are applied.
The service defines several types of traffic descriptors to cover different classification scenarios. Each descriptor type uses a specific set of parameters to identify traffic flows with varying levels of granularity.
| Descriptor Type | Scope | Key Parameters |
|---|---|---|
| IPv4Flow | Matches IPv4 unicast flows | SourceIP, DestIP, SourcePort, DestPort, Protocol, DSCP |
| IPv6Flow | Matches IPv6 unicast flows | IPv6SourcePrefix, IPv6DestPrefix, SourcePort, DestPort, Protocol, TrafficClass |
| EthernetFrame | Matches Layer 2 Ethernet frames | SourceMAC, DestMAC, EtherType, VLAN_ID, 802.1pPriority |
When implementing a Traffic Descriptor service, the primary engineering challenge is balancing classification accuracy with processing efficiency. Each packet that traverses the QoS device must be evaluated against all active descriptors — a linear search through hundreds of descriptors can significantly impact throughput on high-speed links.
A common optimization technique is to build a hierarchical classification tree. Descriptors are organized in a trie or hash-based structure keyed by protocol and port ranges, reducing the classification search from O(n) to O(log n) or O(1) for common cases. This approach is especially effective for IPv4Flow descriptors, where the 5-tuple (source IP, destination IP, source port, destination port, protocol) lends itself well to hash-based lookup.
The service also manages descriptor lifecycle — creation, modification, and deletion. Each descriptor is identified by a unique DescriptorID that is referenced by QoS policies installed via the QoS Device service. When a descriptor is deleted, all policies referencing it must be invalidated or updated.
In practical deployments, Traffic Descriptors play a crucial role in application-aware networking. For instance, a video streaming service like Netflix or YouTube uses specific IP address ranges and port numbers that can be captured with an IPv4Flow descriptor. By defining descriptors for each application category — streaming, gaming, browsing, VoIP — network administrators can build a comprehensive QoS policy framework without duplicating classification criteria. The descriptor abstraction also simplifies troubleshooting: when an application’s network characteristics change (e.g., a new CDN range is added), only the relevant descriptor needs updating, and all policies referencing it automatically use the updated criteria.
Yes. A QoS policy can reference multiple Traffic Descriptors, allowing the same QoS treatment to be applied to different traffic flows. This is useful when the same priority and marking rules need to apply to, for example, both IPv4 and IPv6 versions of the same application.
Active flows that were matched by the deleted descriptor are typically handled according to the device implementation. Some devices continue applying the last-known QoS treatment until the flow ends, while others immediately re-classify the flow. The standard recommends the latter for consistency.
The standard does not mandate a specific limit, but each device advertises its capacity through the QoS Device service’s GetQoSDeviceInfo action. Embedded devices may support as few as 16 descriptors, while software-based implementations can support thousands.