Configure QoS Map

You can use the efa policy qos map command to create, delete, update, and list QoS map.

About this task

Follow this procedure to configure QoS map.

Procedure

  1. To create a QoS map, run the efa policy qos map create command.

    For PCP and TC, the value list can have comma separated or range values between 0 to 7. For DSCP the value can be between 0 to 63. The following are the examples for PCP to TC and DSCP to TC mapping. Valid values for DP is 0 to 3. The efa policy qos map create command allows you to map many values to a single destination. The dscp-tc command allows you to map multiple dscp values to the same Traffic Class and Drop Precedence. For example, dscp[2-5;11] tc[2] dp[1] maps dscp values 2, 3, 4, 5, and 11 to traffic class with a drop precedence of 1.

    1. The following CLI creates a QoS map tenant1PcpToTCMap, which will classify packets with PCP values 0 to 7 in different Traffic Classes. You can provide values as a range:
      % efa policy qos map create –-name tenant1PcpToTCMap –-type pcp-to-tc –-rule “pcp[0],tc[7],dp[1]” --rule “pcp[1],tc[6]” --rule “pcp[2-5]tc[5],dp[3]”
    2. The following CLI creates a QoS map tenant1DscpToTCMap, which will classify packets with various DSCP values into different Traffic Classes. You can provide values as a range. Values that are not specified will be classified into default classes.
      % efa policy qos map create –-name tenant1DscpToTCMap –-type dscp-to-tc –-rule “dscp[14-25],tc[7],dp[2]” --rule “dscp[8],tc[1]” --rule “dscp[10],tc[1],dp[1]”
  2. To update QoS map, run the efa policy qos map update command.
    1. The following command updates the mapping for QoS map tenant1PcpToTCMap for the PCP values specified in the command. The original configuration prior to the “update” is as follows.
      efa policy qos map create –-name tenant1PcpToTCMap –-type pcp-to-tc –-rule “pcp[0],tc[7],dp[1]” --rule “pcp[1],tc[6]” --rule “pcp[2-5]tc[4],dp[3]”

      Now map pcp 0 and pcp 1 to different traffic classes using the following command:

      % efa policy qos map update –-name tenant1PcpToTCMap –-type pcp-to-tc –-rule “pcp[0],tc[6],dp[1]” --rule “pcp[1],tc[7]”
    2. The following command updates the mapping for QoS map tenant1DscpToTCMap for the DSCP values specified in the command. Mapping that are not specified will remain unchanged. The original configuration prior to the “update” is as follows.
      % efa policy qos map create –-name tenant1DscpToTCMap –-type dscp-to-tc –-rule “dscp[14-25],tc[7],dp[2]” --rule “dscp[8],tc[1]” --rule “dscp[10],tc[1],dp[1]”

      Now provide additional DSCP mappings beyond those originally specified using the following command:

      % efa policy qos map update –-name tenant1DscpToTCMap –-type dscp-to-tc –-rule “dscp[0-7],tc[1]” --rule “dscp[22-38],tc[5],dp[1]”
  3. To delete QoS map, run the efa policy qos map delete command.

    The efa policy qos map delete command deletes the configuration from XCO database. Deletion of QoS map fails if it is part of a profile.

    1. The following command deletes the QoS map tenant1PcpToTCMap from XCO database:
      % efa policy qos map delete –-name tenant1PcpToTCMap –-type pcp-to-tc
    2. The following command deletes the user defined DSCP to TC mapping for DSCP values 0 to 7 in the QoS map tenant1DscpToTCMap. This will cause the traffic with DSCP values 0 to 7 to be classified based on the system defaults.
      % efa policy qos map delete –-name tenant1DscpToTCMap –-type dscp-to-tc –rule “dscp[0-7]”
  4. To list QoS maps, run the efa policy qos map list command.

    When you provide the --ip option, the app-state of configuration will be displayed for a given device.

    Note

    Note

    The app-state only conveys the state of the map on the device and not the bindings to the interfaces. To see the app-state of the maps applied on an interface, check the output of QoS profile list commands.
    1. The following command lists configuration details of the QoS Map tenant1DscpToTCMap10 that was created with parameters:
      % efa policy qos map create –-name tenant1DscpToTCMap10 –-type dscp-to-tc –-rule “dscp[0-7],tc[3],dp[1]” --rule “dscp[8],tc[1]” --rule “dscp[10],tc[1],dp[1]” 
       
      % efa policy qos map list –-name tenant1DscpToTCMap10 –-type dscp-to-tc  
       
      QoS Map details: 
      Name: tenant1DscpToTCMap10 
      +-------+-------+-------+ 
      |  DSCP |   TC  |   DP  | 
      +-------+-------+-------+ 
      |   0   |   3   |   1   | 
      +-------+-------+-------+  
      |   1   |   3   |   1   | 
      +-------+-------+-------+  
      |   2   |   3   |   1   | 
      +-------+-------+-------+  
      |   3   |   3   |   1   | 
      +-------+-------+-------+  
      |   4   |   3   |   1   | 
      +-------+-------+-------+  
      |   5   |   3   |   1   | 
      +-------+-------+-------+  
      |   6   |   3   |   1   | 
      +-------+-------+-------+  
      |   7   |   3   |   1   | 
      +-------+-------+-------+  
      |   8   |   1   |   0   | 
      +-------+-------+-------+ 
      |  10   |   1   |   1   | 
      +-------+-------+-------+
    2. The following command lists configuration details of the QoS map tenant1DscpToTCMap with the app state on the specified devices:
      % efa policy qos map list –-name tenant1DscpToTCMap10 –-type dscp-to-tc –-ip 10.20.245.1-2 
      QoS Map details: 
      Name: tenant1DscpToTCMap10 
      +-------+-------+-------+ 
      |  DSCP |   TC  |   DP  | 
      +-------+-------+-------+ 
      |   0   |   3   |   1   | 
      +-------+-------+-------+  
      |   1   |   3   |   1   | 
      +-------+-------+-------+  
      |   2   |   3   |   1   | 
      +-------+-------+-------+  
      |   3   |   3   |   1   | 
      +-------+-------+-------+  
      |   4   |   3   |   1   | 
      +-------+-------+-------+  
      |   5   |   3   |   1   | 
      +-------+-------+-------+  
      |   6   |   3   |   1   | 
      +-------+-------+-------+  
      |   7   |   3   |   1   | 
      +-------+-------+-------+  
      |   8   |   1   |   0   | 
      +-------+-------+-------+ 
      |  10   |   1   |   1   | 
      +-------+-------+-------+ 
       
       
      Device Bindings: 
      +-----------------------+------+----------------+----------------+ 
      |           Name        | DSCP |   IP Address   |   App State    | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   0  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   1  |   10.20.245.1  |  cfg-refreshed | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   2  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   3  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   4  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   5  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   6  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   7  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |   8  |   10.20.245.1  |  cfg-refreshed | 
      +-----------------------+------+----------------+----------------+ 
      | tenant1DscpToTCMap10  |  10  |   10.20.245.1  |   cfg-in-sync  | 
      +-----------------------+------+----------------+----------------+
    3. The following command lists configuration details of all the QoS maps of type dscp-to-tc with the app state on specified device:
      % efa policy qos map list –-type dscp-to-tc –-ip 10.20.245.1 
      QoS Map details: 
      Name: tenant1DscpToTCMap15 
      +--------+-------+-------+ 
      |  DSCP  |   TC  |   DP  | 
      +--------+-------+-------+ 
      |   10   |   3   |   1   | 
      +--------+-------+-------+  
      |   15   |   3   |   1   | 
      +--------+-------+-------+ 
       
       
      Name: oobDscpToTCMap1 
      +--------+-------+-------+ 
      |  DSCP  |   TC  |   DP  | 
      +--------+-------+-------+ 
      |   20   |   5   |   1   | 
      +--------+-------+-------+  
      |   25   |   5   |   1   | 
      +--------+-------+-------+ 
       
       
       
      Device Bindings: 
      +-----------------------+-------+----------------+----------------=-+ 
      |           Name        |  DSCP |   IP Address   |    App State     | 
      +-----------------------+-------+----------------+------------------+ 
      | tenant1DscpToTCMap15  |   10  |   10.20.245.1  |    cfg-in-sync   | 
      +-----------------------+-------+----------------+------------------+ 
      | tenant1DscpToTCMap15  |   15  |   10.20.245.1  |   cfg-refreshed  | 
      +-----------------------+-------+----------------+------------------+ 
      |   oobDscpToTCMap1     |   20  |   10.20.245.1  |  cfg-not-managed | 
      +-----------------------+-------+----------------+------------------+ 
      |   oobDscpToTCMap1     |   25  |   10.20.245.1  |  cfg-not-managed | 
      +-----------------------+-------+----------------+------------------+
    Note

    Note

    For more information about commands and supported parameters, see ExtremeCloud Orchestrator Command Reference, 3.3.1 .