# policy qos name <policy-name> shaper traffic-class <traffic-class> random-detect mark-probability <mark-probability>

You can visualize this as the gradient of the line in WRED algorithm, between the points that correspond to the minimum and maximum thresholds of the WRED configuration.

The gradient of the line is defined by 1 / `<mark-probability>`

.

- A
`<mark-probability>`

value of`1`

will result in the steepest gradient. - A
`<mark-probability>`

value of`255`

will result in the most gentle gradient.

`name <policy-name>`

- The name of a QoS policy.
`traffic-class <traffic-class>`

- The ID of the traffic class.
`mark-probability <mark-probability>`

- The maximum value for the inverse packet marking probability filter for a QoS traffic class. That is, to set the rate 1/
`<mark-probability>`

. The default value is`10`

. To understand more about this, see WRED algorithm.