Mapping dscp-to-traffic-class – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 473

Network OS NETCONF Operations Guide
441
53-1003231-02
Queueing
29
<tengigabitethernet>
<name>0/51</name>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<default-cos>0</default-cos>
<cos-traffic-class>test</cos-traffic-class>
</qos>
</tengigabitethernet>
<tengigabitethernet>
<name>0/52</name>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<default-cos>0</default-cos>
<cos-traffic-class>test</cos-traffic-class>
</qos>
</tengigabitethernet>
</interface>
</data>
</rpc-reply>
Mapping DSCP-to-Traffic-Class
Ingress DSCP values can be used to classify traffic for the ingress interface into a specific traffic
class using a DSCP-to-Traffic Class map. To map a DSCP-to-Traffic-Class, perform the following
steps.
1. Issue the <edit-config> RPC to configure the <qos> node in the
urn:brocade.com:mgmt:brocade-qos namespace.
2. Under the <qos> node, include the <map> node element.
3. Under the <map> node, include the <dscp-traffic-class> node element.
4. Under the <dscp-traffic-class> node, include the following elements.
a. In the <dscp-traffic-class-map-name> element, assign a name to the map.
b. A <mark> node element for each traffic class for which you want to map DSCP values.
5. Under each <mark> node, include the following leaf elements.
a. In the <dscp-in-values> element, list the DSCP values to be mapped to a single traffic
class.
b. In the <to> element, specify the traffic class.
6. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example creates a DSCP-to-Traffic-Class map named “test,” which performs the
following mapping of DSCP values to traffic classes:
•
DSCP values 1, 3, 5, and 7 are mapped to traffic class 3.
•
DSCP values 11, 13, 15, and 17 are mapped to traffic class 5.
•
DSCP values 12, 14, 16, and 18 are mapped to traffic class 6.
•
DSCP values 2, 4, 6, and 8 are mapped to traffic class 7.
<rpc message-id="2322" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">