Platform SDK: Quality of Service

QOS_OBJECT_TRAFFIC_CLASS

The traffic control object QOS_OBJECT_TRAFFIC_CLASS is used to override the default UserPriority value ascribed to packets that classify to (are associated with) a given flow. By default, the UserPriority value of a flow is derived from the ServiceType; the capability to override the default UserPriority is necessary because packets can be tagged in their Layer 2 headers (such as an 802.1p header) to specify their priority to Layer-2 devices. Using QOS_OBJECT_TRAFFIC_CLASS enables application developers to override the default UserPriority setting.

typedef struct _QOS_TRAFFIC_CLASS 
{
    QOS_OBJECT_HDR  ObjectHdr;
    ULONG           TrafficClass;

} QOS_TRAFFIC_CLASS, *LPQOS_TRAFFIC_CLASS;

Members

ObjectHdr
The QOS object QOS_OBJECT_HDR. The object type for this traffic control object should be QOS_OBJECT_TRAFFIC_CLASS.
TrafficClass
User priority value of the flow. The valid range is zero through seven. The following settings are chosen (by default) when the QOS_OBJECT_TRAFFIC_CLASS traffic control object is not used.
Service Types Traffic Class Default Value
ServiceTypeBestEffort, ServiceTypeQualitative 0
ServiceTypeControlledLoad 4
ServiceTypeGuaranteed 5
ServiceTypeNetworkControl 7
Non Conformant traffic 1

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Traffic.h.

See Also

QOS_DIFFSERV_RULE, QOS_OBJECT_DS_CLASS, QOS_OBJECT_DIFFSERV