QOS_TRAFFIC_TYPE enumeration (qos2.h)
The QOS_TRAFFIC_TYPE enumeration defines the various traffic types. Each flow has a single traffic type. This allows the QOS subsystem to apply user-specified policies to each type.
Syntax
typedef enum _QOS_TRAFFIC_TYPE {
QOSTrafficTypeBestEffort = 0,
QOSTrafficTypeBackground = 1,
QOSTrafficTypeExcellentEffort = 2,
QOSTrafficTypeAudioVideo = 3,
QOSTrafficTypeVoice = 4,
QOSTrafficTypeControl = 5
} QOS_TRAFFIC_TYPE, *PQOS_TRAFFIC_TYPE;
Constants
QOSTrafficTypeBestEffort Value: 0 Flow traffic has the same network priority as regular traffic not associated with QOS. This traffic type is the same as not specifying priority, and as a result, the DSCP mark and 802.1p tag are not added to sent traffic. |
QOSTrafficTypeBackground Value: 1 Flow traffic has a network priority lower than that of QOSTrafficTypeBestEffort. This traffic type could be used for traffic of an application doing data backup. Sent traffic will contain a DSCP mark with a value of 0x08 and an 802.1p tag with a value of 2. |
QOSTrafficTypeExcellentEffort Value: 2 Flow traffic has a network priority higher than QOSTrafficTypeBestEffort, yet lower than QOSTrafficTypeAudioVideo. This traffic type should be used for data traffic that is more important than normal end-user scenarios, such as email. Sent traffic will contain a DSCP mark with value of 0x28 and 802.1p tag with a value of 5. |
QOSTrafficTypeAudioVideo Value: 3 Flow traffic has a network priority higher than QOSTrafficTypeExcellentEffort, yet lower than QOSTrafficTypeVoice. This traffic type should be used for A/V streaming scenarios such as MPEG2 streaming. Sent traffic will contain a DSCP mark with a value of 0x28 and an 802.1p tag with a value of 5. |
QOSTrafficTypeVoice Value: 4 Flow traffic has a network priority higher than QOSTrafficTypeAudioVideo, yet lower than QOSTrafficTypeControl. This traffic type should be used for realtime voice streams such as VOIP. Sent traffic will contain a DSCP mark with a value of 0x38 and an 802.1p tag with a value of 7. |
QOSTrafficTypeControl Value: 5 Flow traffic has the highest network priority. This traffic type should only be used for the most critical of data. For example, it may be used for data carrying user inputs. Sent traffic will contain a DSCP mark with a value of 0x38 and an 802.1p tag with a value of 7. |
Remarks
802.1p tags are added to sent traffic only when the following conditions are met:
- QOSAddSocketToFlow is called without the QOS_NON_ADAPTIVE_FLOW flag
- The destination host is on the local link and not across a router
- The qWAVE subsystem has determined that 802.1p tagged packets are not discarded by a network element on the end-to-end path
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | qos2.h |