---
title: qos
slug: enterprise-v6p1/zspi-qos
createdAt: 2025-12-17T08:17:56.693Z
---

AsterNOS Model for Quality of Service.

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-qos
  +--rw qos
     +--rw qos-maps
     |  +--rw dscp-tc-maps
     |  |  +--rw dscp-tc-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [dscp]
     |  |        +--rw dscp    uint8
     |  |        +--rw tc?     uint8
     |  +--rw dot1p-tc-maps
     |  |  +--rw dot1p-tc-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [dot1p]
     |  |        +--rw dot1p    uint8
     |  |        +--rw tc?      uint8
     |  +--rw mpls-exp-tc-maps
     |  |  +--rw mpls-exp-tc-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [exp]
     |  |        +--rw exp    uint8
     |  |        +--rw tc?    uint8
     |  +--rw tc-queue-maps
     |  |  +--rw tc-queue-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [tc]
     |  |        +--rw tc       uint8
     |  |        +--rw queue?   uint8
     |  +--rw tc-mpls-exp-maps
     |  |  +--rw tc-mpls-exp-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [tc]
     |  |        +--rw tc     uint8
     |  |        +--rw exp?   uint8
     |  +--rw tc-dscp-maps
     |  |  +--rw tc-dscp-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [tc]
     |  |        +--rw tc      uint8
     |  |        +--rw dscp?   uint8
     |  +--rw tc-dot1p-maps
     |  |  +--rw tc-dot1p-map* [name]
     |  |     +--rw name       string
     |  |     +--rw mapping* [tc]
     |  |        +--rw tc       uint8
     |  |        +--rw dot1p?   uint8
     |  +--rw switch-qos-map
     |  |  +--rw tc-queue-map-name?   -> /qos/qos-maps/tc-queue-maps/tc-queue-map/name
     |  +--rw port-qos-maps
     |     +--rw port-qos-map* [name]
     |        +--rw name                    cmn:ethernet-port-name
     |        +--rw dscp-tc-map-name?       string
     |        +--rw dot1p-tc-map-name?      string
     |        +--rw mpls-exp-tc-map-name?   string
     |        +--rw tc-dscp-map-name?       string
     |        +--rw tc-dot1p-map-name?      string
     |        +--rw tc-mpls-exp-map-name?   string
     +--rw traffic-behaviors
     |  +--rw traffic-behavior* [name]
     |     +--rw name                    string
     |     +--rw mode                    policy-mode
     |     +--rw meter-type?             meter-type
     |     +--ro color-source?           string
     |     +--rw cir                     uint64
     |     +--rw cbs?                    uint64
     |     +--rw pir?                    uint64
     |     +--rw pbs?                    uint64
     |     +--rw yellow-packet-action?   packet-action
     |     +--rw red-packet-action?      packet-action
     |     +--rw remark-dot1p?           uint8
     |     +--rw remark-dscp?            uint8
     |     +--rw remark-tc?              uint8
     +--rw port-shapers
     |  +--rw port-shaper* [name]
     |     +--rw name    cmn:ethernet-port-name
     |     +--rw pir     uint64
     |     +--rw pbs     uint64
     +--rw schedulers
     |  +--rw scheduler* [name queue]
     |     +--rw name         cmn:ethernet-port-name
     |     +--rw queue        uint8
     |     +--rw algorithm    enumeration
     |     +--rw weight?      uint8
     |     +--rw pir?         uint64
     |     +--rw pbs?         uint64
     +--rw limit-rates
        +--rw limit-rate* [port direction]
           +--rw port         cmn:ethernet-port-name
           +--rw direction    limit-direction-type
           +--rw cir          uint64
           +--rw cbs?         uint64

  augment /if:interfaces/if:interface:
    +--rw ingress-policer-name?   -> /qos/traffic-behaviors/traffic-behavior/name

  rpcs:
    +---x show-qos-map
    |  +---w input
    |  |  +---w name?   string
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-queue-counters
    |  +---w input
    |  |  +---w interface_num?   uint16
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x clear-queue-counters
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-queue-cpu-port
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-traffic-behavior-counters
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-interface-policer
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-interface-port-shaper
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-interface-qos-map-bind
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x show-interface-uc-tx-queue
       +--ro output
          +--ro data?   <anydata>
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **Path**                                                      | **Access** |
| ------------------------------------------------------------- | ---------- |
| /qos                                                          | Read-Write |
| /qos/qos-maps                                                 | Read-Write |
| /qos/qos-maps/dscp-tc-maps                                    | Read-Write |
| /qos/qos-maps/dscp-tc-maps/dscp-tc-map                        | Read-Write |
| /qos/qos-maps/dscp-tc-maps/dscp-tc-map/name                   | Read-Write |
| /qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping                | Read-Write |
| /qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping/dscp           | Read-Write |
| /qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping/tc             | Read-Write |
| /qos/qos-maps/dot1p-tc-maps                                   | Read-Write |
| /qos/qos-maps/dot1p-tc-maps/dot1p-tc-map                      | Read-Write |
| /qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/name                 | Read-Write |
| /qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping              | Read-Write |
| /qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping/dot1p        | Read-Write |
| /qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping/tc           | Read-Write |
| /qos/qos-maps/mpls-exp-tc-maps                                | Read-Write |
| /qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map                | Read-Write |
| /qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/name           | Read-Write |
| /qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping        | Read-Write |
| /qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping/exp    | Read-Write |
| /qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping/tc     | Read-Write |
| /qos/qos-maps/tc-queue-maps                                   | Read-Write |
| /qos/qos-maps/tc-queue-maps/tc-queue-map                      | Read-Write |
| /qos/qos-maps/tc-queue-maps/tc-queue-map/name                 | Read-Write |
| /qos/qos-maps/tc-queue-maps/tc-queue-map/mapping              | Read-Write |
| /qos/qos-maps/tc-queue-maps/tc-queue-map/mapping/tc           | Read-Write |
| /qos/qos-maps/tc-queue-maps/tc-queue-map/mapping/queue        | Read-Write |
| /qos/qos-maps/tc-mpls-exp-maps                                | Read-Write |
| /qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map                | Read-Write |
| /qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/name           | Read-Write |
| /qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping        | Read-Write |
| /qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping/tc     | Read-Write |
| /qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping/exp    | Read-Write |
| /qos/qos-maps/tc-dscp-maps                                    | Read-Write |
| /qos/qos-maps/tc-dscp-maps/tc-dscp-map                        | Read-Write |
| /qos/qos-maps/tc-dscp-maps/tc-dscp-map/name                   | Read-Write |
| /qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping                | Read-Write |
| /qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping/tc             | Read-Write |
| /qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping/dscp           | Read-Write |
| /qos/qos-maps/tc-dot1p-maps                                   | Read-Write |
| /qos/qos-maps/tc-dot1p-maps/tc-dot1p-map                      | Read-Write |
| /qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/name                 | Read-Write |
| /qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping              | Read-Write |
| /qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping/tc           | Read-Write |
| /qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping/dot1p        | Read-Write |
| /qos/qos-maps/switch-qos-map                                  | Read-Write |
| /qos/qos-maps/switch-qos-map/tc-queue-map-name                | Read-Write |
| /qos/qos-maps/port-qos-maps                                   | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map                      | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/name                 | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/dscp-tc-map-name     | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/dot1p-tc-map-name    | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/mpls-exp-tc-map-name | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/tc-dscp-map-name     | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/tc-dot1p-map-name    | Read-Write |
| /qos/qos-maps/port-qos-maps/port-qos-map/tc-mpls-exp-map-name | Read-Write |
| /qos/traffic-behaviors                                        | Read-Write |
| /qos/traffic-behaviors/traffic-behavior                       | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/name                  | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/mode                  | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/meter-type            | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/color-source          | Read-Only  |
| /qos/traffic-behaviors/traffic-behavior/cir                   | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/cbs                   | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/pir                   | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/pbs                   | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/yellow-packet-action  | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/red-packet-action     | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/remark-dot1p          | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/remark-dscp           | Read-Write |
| /qos/traffic-behaviors/traffic-behavior/remark-tc             | Read-Write |
| /qos/port-shapers                                             | Read-Write |
| /qos/port-shapers/port-shaper                                 | Read-Write |
| /qos/port-shapers/port-shaper/name                            | Read-Write |
| /qos/port-shapers/port-shaper/pir                             | Read-Write |
| /qos/port-shapers/port-shaper/pbs                             | Read-Write |
| /qos/schedulers                                               | Read-Write |
| /qos/schedulers/scheduler                                     | Read-Write |
| /qos/schedulers/scheduler/name                                | Read-Write |
| /qos/schedulers/scheduler/queue                               | Read-Write |
| /qos/schedulers/scheduler/algorithm                           | Read-Write |
| /qos/schedulers/scheduler/weight                              | Read-Write |
| /qos/schedulers/scheduler/pir                                 | Read-Write |
| /qos/schedulers/scheduler/pbs                                 | Read-Write |
| /qos/limit-rates                                              | Read-Write |
| /qos/limit-rates/limit-rate                                   | Read-Write |
| /qos/limit-rates/limit-rate/port                              | Read-Write |
| /qos/limit-rates/limit-rate/direction                         | Read-Write |
| /qos/limit-rates/limit-rate/cir                               | Read-Write |
| /qos/limit-rates/limit-rate/cbs                               | Read-Write |
| /?/interfaces/interface/ingress-policer-name                  | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/qos</font>

**Path**
/qos
****
**Node Type**
container
****
**Description**
Top-level container for QoS data.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps</font>

**Path**
/qos/qos-maps

**Node Type**
container

**Description**
There are two types of QoS Maps. The first type allows user to create QoS mapping to Traffic Class/color based on DSCP/Dot1p fields. These mappings are applied to inbound ports to classify the packets into different traffic classes/colors based on DSCP/Dot1p fields.
Different traffic classes/colors can be associated with different SAI QoS objects (e.g., queues, wred) to provides differentiated services. User can also create map between traffic class to egress queue.
^ DCSP -> Traffic Class/Color ^ Dot1p -> Traffic Class/Color ^ MPLS Exp -> Traffic Class/Color ^ Traffic Class -> egress queue ^ Traffic Class -> MPLS Exp ^ Traffic Class -> DSCP ^ Traffic Class -> Dot1p
The second type allows use to map incoming traffic to ingress buffer as well as set the priority field in the PFC frames.
^ Traffic Class to ingress buffer: This maps incoming traffic to ingress buffer.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dscp-tc-maps</font>

**Path**
/qos/qos-maps/dscp-tc-maps
****
**Node Type**
container
****
**Description**
Mapping of DSCP to Traffic Class.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dscp-tc-maps/dscp-tc-map</font>

**Path**
/qos/qos-maps/dscp-tc-maps/dscp-tc-map

**Node Type**
list

**Description**
In the new RFC 2474 specification, the ToS field in the IP header has been redefined and is now referred to as the DS (Differentiated Services) field, which is also a single byte (8 bits). In total, the 0-5 bits (6 bits in total) are used to indicate the DSCP (Differentiated Services Code Point) priority, ranging from 0 to 63, which can identify 64 priority values (the higher the value, the higher the priority), and the last two bits are reserved. Explicit Congestion Notification (ECN).
^ DCSP -> Traffic Class/Color

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dscp-tc-maps/dscp-tc-map/name</font>

**Path**
/qos/qos-maps/dscp-tc-maps/dscp-tc-map/name
****
**Node Type**
leaf
****
**Description**
Name of dscp-tc-map, Represents a set of mappings.
****
**Access**
Read-Write**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping</font>

**Path**
/qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping

**Node Type**
list

**Description**
Mapping relationship between dscp value and traffic class.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping/dscp</font>

**Path**
/qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping/dscp
****
**Node Type**
leaf
****
**Description**
The value of dscp.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 63

### <font color="#1d50a2">/qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping/tc</font>

**Path**
/qos/qos-maps/dscp-tc-maps/dscp-tc-map/mapping/tc
****
**Node Type**
leaf
****
**Description**
The value of traffic class.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/dot1p-tc-maps</font>

**Path**
/qos/qos-maps/dot1p-tc-maps
****
**Node Type**
container
****
**Description**
Mapping of dot1p to Traffic Class.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map</font>

**Path**
/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map
****
**Node Type**
list
****
**Description**
The priority in the VLAN frame is the value 802.1p priority (defined by the IEEE 802.1p protocol), which is located in the 'PRI' subfield of the '802.1Q Tag' field in the VLAN frame.
^ Dot1p -> Traffic Class/Color
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/name</font>

**Path**
/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/name
****
**Node Type**
leaf
****
**Description**
Name of dot1p-tc-map.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping</font>

**Path**
/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping
****
**Node Type**
list
****
**Description**
Mapping relationship between dot1p value and traffic class.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping/dot1p</font>

**Path**
/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping/dot1p
****
**Node Type**
leaf
****
**Description**
The value of dot1p.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping/tc</font>

**Path**
/qos/qos-maps/dot1p-tc-maps/dot1p-tc-map/mapping/tc
****
**Node Type**
leaf
****
**Description**
The value of Traffic Class.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/mpls-exp-tc-maps</font>

**Path**
/qos/qos-maps/mpls-exp-tc-maps
****
**Node Type**
container
****
**Description**
Mapping of MPLS Exp to Traffic Class.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map</font>

**Path**
/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map
****
**Node Type**
list
****
**Description**
^ MPLS Exp -> Traffic Class/Color
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/name</font>

**Path**
/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/name
****
**Node Type**
leaf
****
**Description**
Name of exp-tc-map, Represents a set of mappings.
****
**Access**
Read-Write
**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping</font>

**Path**
/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping
****
**Node Type**
list
****
**Description**
Mapping relationship between exp value and traffic class.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping/exp</font>

**Path**
/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping/exp
****
**Node Type**
leaf
****
**Description**
The value of MPLS exp.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping/tc</font>

**Path**
/qos/qos-maps/mpls-exp-tc-maps/mpls-exp-tc-map/mapping/tc
****
**Node Type**
leaf
****
**Description**
The value of traffic class.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-queue-maps</font>

**Path**
/qos/qos-maps/tc-queue-maps
****
**Node Type**
container
****
**Description**
Mapping of Traffic Class to Queue.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-queue-maps/tc-queue-map</font>

**Path**
/qos/qos-maps/tc-queue-maps/tc-queue-map
****
**Node Type**
list
****
**Description**
The map between traffic class to egress queue.
^ Traffic Class -> egress queue
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-queue-maps/tc-queue-map/name</font>

**Path**
/qos/qos-maps/tc-queue-maps/tc-queue-map/name
****
**Node Type**
leaf
****
**Description**
Name of tc-queue-map.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/tc-queue-maps/tc-queue-map/mapping</font>

**Path**
/qos/qos-maps/tc-queue-maps/tc-queue-map/mapping
****
**Node Type**
list
****
**Description**
Mapping relationship between traffic class and egress queue.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-queue-maps/tc-queue-map/mapping/tc</font>

**Path**
/qos/qos-maps/tc-queue-maps/tc-queue-map/mapping/tc
****
**Node Type**
leaf
****
**Description**
The value of Traffic Class.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-queue-maps/tc-queue-map/mapping/queue</font>

**Path**
/qos/qos-maps/tc-queue-maps/tc-queue-map/mapping/queue
****
**Node Type**
leaf
****
**Description**
The value of egress queue.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-mpls-exp-maps</font>

**Path**
/qos/qos-maps/tc-mpls-exp-maps
****
**Node Type**
container
****
**Description**
Mapping of Traffic Class To MPLS Exp.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map</font>

**Path**
/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map
****
**Node Type**
list
****
**Description**
^ Traffic Class/Color -> MPLS Exp
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/name</font>

**Path**
/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/name
****
**Node Type**
leaf
****
**Description**
Name of tc-exp-map, Represents a set of mappings.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping</font>

**Path**
/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping
****
**Node Type**
list
****
**Description**
Mapping relationship between exp value and traffic class.
****
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping/tc</font>

**Path**
/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping/tc
****
**Node Type**
leaf
****
**Description**
The value of MPLS exp.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping/exp</font>

**Path**
/qos/qos-maps/tc-mpls-exp-maps/tc-mpls-exp-map/mapping/exp
****
**Node Type**
leaf
****
**Description**
The value of traffic class.
****
**Access**
Read-Write
****
**Data Type**
\<YANG type uint8>
****
**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-dscp-maps</font>

**Path**
/qos/qos-maps/tc-dscp-maps
****
**Node Type**
container
****
**Description**
Mapping of Traffic Class to DSCP.
**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-dscp-maps/tc-dscp-map</font>

**Path**
/qos/qos-maps/tc-dscp-maps/tc-dscp-map

**Node Type**
list

**Description**
In the new RFC 2474 specification, the ToS field in the IP header has been redefined and is now referred to as the DS (Differentiated Services) field, which is also a single byte (8 bits). In total, the 0-5 bits (6 bits in total) are used to indicate the DSCP (Differentiated Services Code Point) priority, ranging from 0 to 63, which can identify 64 priority values (the higher the value, the higher the priority), and the last two bits are reserved. Explicit Congestion Notification (ECN).
^ Traffic Class/Color -> DCSP

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-dscp-maps/tc-dscp-map/name</font>

**Path**
/qos/qos-maps/tc-dscp-maps/tc-dscp-map/name

**Node Type**
leaf

**Description**
Name of dscp-tc-map, Represents a set of mappings.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping</font>

**Path**
/qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping

**Node Type**
list

**Description**
Mapping relationship between dscp value and traffic class.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping/tc</font>

**Path**
/qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping/tc

**Node Type**
leaf

**Description**
The value of traffic class.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping/dscp</font>

**Path**
/qos/qos-maps/tc-dscp-maps/tc-dscp-map/mapping/dscp

**Node Type**
leaf

**Description**
The value of dscp.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Valid range: 0 to 63

### <font color="#1d50a2">/qos/qos-maps/tc-dot1p-maps</font>

**Path**
/qos/qos-maps/tc-dot1p-maps

**Node Type**
container

**Description**
Mapping of do Traffic Class to dot1p.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map</font>

**Path**
/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map

**Node Type**
list

**Description**
The priority in the VLAN frame is the value 802.1p priority (defined by the IEEE 802.1p protocol), which is located in the 'PRI' subfield of the '802.1Q Tag' field in the VLAN frame.
^ Traffic Class/Color -> Dot1p

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/name</font>

**Path**
/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/name

**Node Type**
leaf

**Description**
Name of tc-dot1p-map.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping</font>

**Path**
/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping

**Node Type**
list

**Description**
Mapping relationship between dot1p value and traffic class.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping/tc</font>

**Path**
/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping/tc

**Node Type**
leaf

**Description**
The value of Traffic Class.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping/dot1p</font>

**Path**
/qos/qos-maps/tc-dot1p-maps/tc-dot1p-map/mapping/dot1p

**Node Type**
leaf

**Description**
The value of dot1p.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/qos-maps/switch-qos-map</font>

**Path**
/qos/qos-maps/switch-qos-map

**Node Type**
container

**Description**
TC to Queue map for Switch.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/switch-qos-map/tc-queue-map-name</font>

**Path**
/qos/qos-maps/switch-qos-map/tc-queue-map-name

**Node Type**
leaf

**Description**
TC to Queue map name.

**Access**
Read-Write

**Data Type**
\<YANG type leafref>

**Constraints**
LeafRef pointing to: asternos-qos-map\:qos-map-top/qos-maps/switch-qos-map/leafref

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps</font>

**Path**
/qos/qos-maps/port-qos-maps

**Node Type**
container

**Description**
QoS map for port. include dscp-tc and dot1p-tc.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map

**Node Type**
list

**Description**
QoS map for port.

**Access**
Read-Write

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/name

**Node Type**
leaf

**Description**
Port name.

**Access**
Read-Write

**Data Type**
\<YANG type ethernet-port-name>

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/dscp-tc-map-name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/dscp-tc-map-name

**Node Type**
leaf

**Description**
DSCP to TC map name.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/dot1p-tc-map-name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/dot1p-tc-map-name

**Node Type**
leaf

**Description**
Dot1p to TC map name.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/mpls-exp-tc-map-name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/mpls-exp-tc-map-name

**Node Type**
leaf

**Description**
MPLS exp to TC map name.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/tc-dscp-map-name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/tc-dscp-map-name

**Node Type**
leaf

**Description**
TC to DSCP map name.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/tc-dot1p-map-name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/tc-dot1p-map-name

**Node Type**
leaf

**Description**
TC to Dot1p map name.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/qos-maps/port-qos-maps/port-qos-map/tc-mpls-exp-map-name</font>

**Path**
/qos/qos-maps/port-qos-maps/port-qos-map/tc-mpls-exp-map-name

**Node Type**
leaf

**Description**
TC to MPLS exp map name.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/traffic-behaviors</font>

**Path**
/qos/traffic-behaviors

**Node Type**
container

**Description**
qos module, traffic behavior container configuration.

**Access**
Read-Write

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior</font>

**Path**
/qos/traffic-behaviors/traffic-behavior

**Node Type**
list

**Description**
The token bucket algorithm is used to implement the Policer rate-limiting function. Currently, both sr\_tcm and tr\_tcm token bucket modes are supported, where sr\_tcm stands for single bucket, single speed mode (EBS=0). tr\_tcm stands for two-bucket, two-speed mode. sr\_tcm focuses on the burst of packet size, while tr\_tcm focuses on the burst of packet rate.
To configure the speed limit, it is necessary to configure cir, cbs and other parameters, where cir refers to the commitment information rate, that is, the average rate that is guaranteed to pass.
cbs refers to the commitment burst size, that is, the commitment burst traffic that can pass in an instant. pir refers to the peak information rate, which is the maximum allowed rate. pbs refers to the peak burst size, which is the maximum burst flow allowed to pass in an instant

**Access**
Read-Write

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/name</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/name

**Node Type**
leaf

**Description**
Name of traffic behavior.

**Access**
Read-Write

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/mode</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/mode

**Node Type**
leaf

**Description**
Policer mode.

**Access**
Read-Write

**Data Type**
\<YANG type policy-mode>

**Constraints**

Enumeration with options:
sr-tcm
tr-tcm

**Mandatory**
Yes

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/meter-type</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/meter-type

**Node Type**
leaf

**Description**
Policer Meter Type, default is bytes.

**Access**
Read-Write

**Data Type**
\<YANG type meter-type>

**Constraints**
Enumeration with options:
packets
bytes

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/color-source</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/color-source

**Node Type**
leaf

**Description**
Policer Color Source; Currently only the configuration is supported as 'AWARE'.

**Access**
Read-Only

**Data Type**
\<YANG type string>

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/cir</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/cir

**Node Type**
leaf

**Description**
Committed information rate KBPS/KPPS based on.

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Constraints**
Valid range: 0 to 13653229

**Mandatory**
Yes

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/cbs</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/cbs

**Node Type**
leaf

**Description**
Committed burst size bytes/packets based on.

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Constraints**
Valid range: 0 to 27961600

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/pir</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/pir

**Node Type**
leaf

**Description**
Peak information rate KBPS/KPPS based on, It works when the mode is tr-tcm.

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Constraints**
Multiple constraints:
Valid range: 0 to 16383875
When condition: ../mode = 'tr-tcm'

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/pbs</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/pbs

**Node Type**
leaf

**Description**
Peak burst size bytes/packets based on, It works when the mode is tr-tcm.

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Constraints**
Multiple constraints:
Valid range: 0 to 33553920
When condition: ../mode = 'tr-tcm'

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/yellow-packet-action</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/yellow-packet-action

**Node Type**
leaf

**Description**
Action to take for Yellow color packets.

**Access**
Read-Write

**Data Type**
\<YANG type packet-action>

**Constraints**
Enumeration with options:
FORWARD
DROP
REMARK

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/red-packet-action</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/red-packet-action

**Node Type**
leaf

**Description**
Action to take for RED color packets.

**Access**
Read-Write

**Data Type**
\<YANG type packet-action>

**Constraints**
Enumeration with options:
FORWARD
DROP
REMARK

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/remark-dot1p</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/remark-dot1p

**Node Type**
leaf

**Description**
The value of dot1p for remark action.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Multiple constraints:
When condition: ../yellow-action = 'REMARK' or ../red-action = 'REMARK'
Valid range: 0 to 7

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/remark-dscp</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/remark-dscp

**Node Type**
leaf

**Description**
The value of dscp for remark action.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Multiple constraints:
When condition: ../yellow-action = 'REMARK' or ../red-action = 'REMARK'
Valid range: 0 to 63

### <font color="#1d50a2">/qos/traffic-behaviors/traffic-behavior/remark-tc</font>

**Path**
/qos/traffic-behaviors/traffic-behavior/remark-tc

**Node Type**
leaf

**Description**
The value of tc for remark action.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Multiple constraints:
When condition: ../yellow-action = 'REMARK' or ../red-action = 'REMARK'
Valid range: 0 to 7

### <font color="#1d50a2">/qos/port-shapers</font>

**Path**
/qos/port-shapers

**Node Type**
container

**Description**
QoS port-shapers for port.

**Access**
Read-Write

### <font color="#1d50a2">/qos/port-shapers/port-shaper</font>

**Path**
/qos/port-shapers/port-shaper

**Node Type**
list

**Description**
QoS port-shapers for port.

**Access**
Read-Write

### <font color="#1d50a2">/qos/port-shapers/port-shaper/name</font>

**Path**
/qos/port-shapers/port-shaper/name

**Node Type**
leaf

**Description**
Port name.

**Access**
Read-Write

**Data Type**
\<YANG type ethernet-port-name>

### <font color="#1d50a2">/qos/port-shapers/port-shaper/pir</font>

**Path**
/qos/port-shapers/port-shaper/pir

**Node Type**
leaf

**Description**
Maximum port shape rate \[bytes].

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Mandatory**
Yes

### <font color="#1d50a2">/qos/port-shapers/port-shaper/pbs</font>

**Path**
/qos/port-shapers/port-shaper/pbs

**Node Type**
leaf

**Description**
Maximum Burst for port shape rate \[bytes].

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Mandatory**
Yes

### <font color="#1d50a2">/qos/schedulers</font>

**Path**
/qos/schedulers

**Node Type**
container

**Description**
QoS scheduler(uc-tx-queue) for port.

**Access**
Read-Write

### <font color="#1d50a2">/qos/schedulers/scheduler</font>

**Path**
/qos/schedulers/scheduler

**Node Type**
list

**Description**
QoS scheduler(uc-tx-queue) for port.

**Access**
Read-Write

### <font color="#1d50a2">/qos/schedulers/scheduler/name</font>

**Path**
/qos/schedulers/scheduler/name

**Node Type**
leaf

**Description**
Port name.

**Access**
Read-Write

**Data Type**
\<YANG type ethernet-port-name>

### <font color="#1d50a2">/qos/schedulers/scheduler/queue</font>

**Path**
/qos/schedulers/scheduler/queue

**Node Type**
leaf

**Description**
The value of egress queue.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Valid range: 0 to 7

### <font color="#1d50a2">/qos/schedulers/scheduler/algorithm</font>

**Path**
/qos/schedulers/scheduler/algorithm

**Node Type**
leaf

**Description**
Users can put important protocol packets and delay-sensitive service packets into the queue scheduled by PQ, and allocate the specified bandwidth to the queue. Other packets are put into each queue scheduled by DWRR according to their priority, and each queue is scheduled circularly according to their weight.
Note: By standard, the queue priority of all DWRRS should be less than the priority of all PQ queues.

**Access**
Read-Write

**Data Type**
\<YANG type enumeration>

**Constraints**
Enumeration with options:
STRICT
DWRR

**Mandatory**
Yes

### <font color="#1d50a2">/qos/schedulers/scheduler/weight</font>

**Path**
/qos/schedulers/scheduler/weight

**Node Type**
leaf

**Description**
The weighted value of the queue scheduling algorithm.

**Access**
Read-Write

**Data Type**
\<YANG type uint8>

**Constraints**
Multiple constraints:
When condition: ../algorithm = 'DWRR'
Valid range: 1 to 100

### <font color="#1d50a2">/qos/schedulers/scheduler/pir</font>

**Path**
/qos/schedulers/scheduler/pir

**Node Type**
leaf

**Description**
Maximum queue rate \[bytes].

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

### <font color="#1d50a2">/qos/schedulers/scheduler/pbs</font>

**Path**
/qos/schedulers/scheduler/pbs

**Node Type**
leaf

**Description**
Maximum Burst for queue rate \[bytes].

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

### <font color="#1d50a2">/qos/limit-rates</font>

**Path**
/qos/limit-rates

**Node Type**
container

**Description**
qos module, limit rate container configuration.

**Access**
Read-Write

### <font color="#1d50a2">/qos/limit-rates/limit-rate</font>

**Path**
/qos/limit-rates/limit-rate

**Node Type**
list

**Description**
To configure the speed limit, it is necessary to configure cir, cbs and other parameters, where cir refers to the commitment information rate, that is, the average rate that is guaranteed to pass.
cbs refers to the commitment burst size, that is, the commitment burst traffic that can pass in an instant.

**Access**
Read-Write

### <font color="#1d50a2">/qos/limit-rates/limit-rate/port</font>

**Path**
/qos/limit-rates/limit-rate/port

**Node Type**
leaf

**Description**
Port name

**Access**
Read-Write

**Data Type**
\<YANG type ethernet-port-name>

### <font color="#1d50a2">/qos/limit-rates/limit-rate/direction</font>

**Path**
/qos/limit-rates/limit-rate/direction

**Node Type**
leaf

**Description**
Export or import router.

**Access**
Read-Write

**Data Type**
\<YANG type limit-direction-type>

**Constraints**
Enumeration with options:
ingress
egress

### <font color="#1d50a2">/qos/limit-rates/limit-rate/cir</font>

**Path**
/qos/limit-rates/limit-rate/cir

**Node Type**
leaf

**Description**
Committed information rate KBPS/KPPS based on.

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Constraints**
Valid range: 0 to 13653229

**Mandatory**
Yes

### <font color="#1d50a2">/qos/limit-rates/limit-rate/cbs</font>

**Path**
/qos/limit-rates/limit-rate/cbs

**Node Type**
leaf

**Description**
Committed burst size bytes/packets based on.

**Access**
Read-Write

**Data Type**
\<YANG type uint64>

**Constraints**
Valid range: 0 to 27961600

### <font color="#1d50a2">/?/interfaces/interface/ingress-policer-name</font>

**Path**
/?/interfaces/interface/ingress-policer-name

**Node Type**
leaf

**Description**
Traffic behavior for port

**Access**
Read-Write

**Data Type**
\<YANG type leafref>

**Constraints**
Multiple constraints:
When condition: ../if\:name
LeafRef pointing to: asternos-qos:?/if\:interfaces/if\:interface/leafref

