question

Tubai-5968 avatar image
0 Votes"
Tubai-5968 asked XiaopoYang-MSFT commented

DSCP markings set using QoS2 api are not present in captured packets

Hi, I am trying to run (https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/netds/Qos/Qos2) this sample app on my Windows 10 Pc to understand the concept of DSCP markings. DSCP value is being set here using the following function:
result = QOSAddSocketToFlow(qosHandle,
socket,
NULL,
QOSTrafficTypeExcellentEffort,
0,
&flowID);
142937-dscp.jpg
I didn't get any errors or warnings while making this API call, but when I am trying to analyze the packets captured using Wireshark, I am getting DSCP markings to be set as 0. (Please refer to the attached image). So my questions are as follows:
1. Are these APIs supported for windows 10?
2. Is this the right approach to call this API?
3. Do we have any workaround for this issue?




windows-apic++windows-10-network
dscp.jpg (30.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

XiaopoYang-MSFT avatar image
0 Votes"
XiaopoYang-MSFT answered

QOSSetFlow can set Outgoing DSCP Value And the document hasn't shown these APIs will be depreciated.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Tubai-5968 avatar image
0 Votes"
Tubai-5968 answered XiaopoYang-MSFT commented

Hi Xiaopo, thanks for your reply.

I am already calling QOSSetFlow function :
result = QOSSetFlow(qosHandle,
flowID,
QOSSetOutgoingRate,
sizeof(flowRate),
&flowRate,
0,
NULL);
Yet, the DSCP field is not being changed from its Default(0) for outgoing packets.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Try specifying third parameter Operation QOSSetOutgoingDSCPValue.

0 Votes 0 ·