Creating a dscp-to-cos mutation map – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 466

Advertising
background image

434

Network OS NETCONF Operations Guide

53-1003231-02

Queueing

29

Creating a DSCP-to-CoS mutation map

You can use the incoming DSCP value of ingress packets to remap the outgoing 802.1P CoS priority
values by configuring a DSCP-to-CoS mutation map on the ingress interface. 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-cos> node element.

4. Under the <dscp-cos> node, include the following elements.

a. In the <dscp-cos-map-name> element, assign a name to the map.

b. A <mark> node element for each outgoing CoS priority value.

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 CoS value.

b. In the <to> element, specify the CoS value.

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-CoS map named “test,” which performs the following
mapping of DSCP values to CoS priorities:

•

DSCP values 1, 3, 5, and 7 are set to output as CoS priority 3.

•

DSCP values 11, 13, 15, and 17 are set to output as CoS priority 5.

•

DSCP values 12, 14, 16, and 18 are set to output as CoS priority 6.

•

DSCP values 2, 4, 6, and 8 are set to output as CoS priority 7.

<rpc message-id="2314" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<qos xmlns="urn:brocade.com:mgmt:brocade-qos">

<map>

<dscp-cos>

<dscp-cos-map-name>test</dscp-cos-map-name>

<mark>

<dscp-in-values>1,3,5,7</dscp-in-values>

<to>3</to>

</mark>

<mark>

<dscp-in-values>11,13,15,17</dscp-in-values>

<to>5</to>

</mark>

<mark>

<dscp-in-values>12,14,16,18</dscp-in-values>

<to>6</to>

</mark>

<mark>

<dscp-in-values>2,4,6,8</dscp-in-values>

<to>7</to>

</mark>

Advertising