14–Windows Server 2016
Configuring QoS for RoCE
249
AH0054602-00 J
5 True
Global
6 False Global
7 False Global
9.
To configure QoS and assign relevant priority to each type of traffic, issue
the following commands (where Priority 5 is tagged for RoCE and Priority 0
is tagged for TCP):
PS C:\Users\Administrators>
New-NetQosPolicy "SMB"
-NetDirectPortMatchCondition 445 -PriorityValue8021Action 5 -PolicyStore
ActiveStore
PS C:\Users\Administrators>
New-NetQosPolicy "TCP" -IPProtocolMatchCondition
TCP -PriorityValue8021Action 0 -Policystore ActiveStore
PS C:\Users\Administrator>
Get-NetQosPolicy -PolicyStore activestore
Name : tcp
Owner : PowerShell / WMI
NetworkProfile : All
Precedence : 127
JobObject :
IPProtocol : TCP
PriorityValue : 0
Name : smb
Owner : PowerShell / WMI
NetworkProfile : All
Precedence : 127
JobObject :
NetDirectPort : 445
PriorityValue : 5
10. To configure ETS for all traffic classes defined in the previous step, issue the
following commands:
PS C:\Users\Administrators>
New-NetQosTrafficClass -name "RDMA class"
-priority 5 -bandwidthPercentage 50 -Algorithm ETS
PS C:\Users\Administrators>
New-NetQosTrafficClass -name "TCP class" -priority
0 -bandwidthPercentage 30 -Algorithm ETS
PS C:\Users\Administrator>
Get-NetQosTrafficClass
Name
Algorithm Bandwidth(%) Priority
PolicySet
IfIndex IfAlias
----
--------- ------------ -------- --------- ------- -------