Port scheduler policy commands

port-scheduler-policy

Syntax

[no] port-scheduler-policy port-scheduler-name [create]

Context

config>qos

Platforms

7210 SAS-T (in access-uplink mode and Network), 7210 SAS-Sx 1/10GE: standalone and standalone-VC, and 7210 SAS-Sx 10/100GE

Description

The default scheduling done for a port is strict scheduling. When a port-scheduler policy is applied to a port, it overrides the default scheduling and determines the type of scheduling (Strict, RR, WRR, WDRR, WRR/WDRR + Strict) to be done between the 8 CoS queues of that particular port. When a port scheduler policy is detached from a port, the port reverts back to the default scheduling (strict).

The no form of this command removes the policy from the system.

Parameters

port-scheduler-name

Specifies an existing policy name. Each port-scheduler policy name should be unique and can go up to 32 ASCII characters in length.

create

Keyword to create a port scheduler policy.

mode

Syntax

mode {strict | rr | wrr | wdrr}

no mode

Context

config>qos>port-sched-plcy

Platforms

7210 SAS-T (in access-uplink mode and Network), 7210 SAS-Sx 1/10GE: standalone and standalone-VC, and 7210 SAS-Sx 10/100GE

Description

This command configures a particular mode of scheduling for the policy. For example, this implies that when a policy with a mode RR is applied to a port then that port will follow the round robin type of scheduling between its queues.

Parameters

mode

Specifies the port scheduler policy mode.

strict — Strict scheduler mode

rr — Round Robin

wrr — Weighted Round Robin

wdrr — Weighted Deficit Round Robin

queue

Syntax

queue queue-id [strict | weight weight]

no queue queue-id

Context

config>qos>port-sched-plcy

Platforms

7210 SAS-T (in access-uplink mode and Network), 7210 SAS-Sx 1/10GE: standalone and standalone-VC, and 7210 SAS-Sx 10/100GE

Description

This command configures a port scheduler queue. The queue and its weights can be configured only for WRR/WDRR modes. The weight specified in case of WRR corresponds to the number of packets that needs to be sent out in a cycle for that particular queue.

For WDRR, the weight specified is the ratio of traffic that will be sent out for that particular queue. For example, in WDRR, if a weight value for queue 1 is 1 and a weight value for queue 2 is 5, then traffic out of the port is in the ratio of 1:5 between the queues (1 and 2) provided no traffic is flowing in the other queues. If the keyword strict is specified in any of the queues, then that particular queue will be treated as strict. This set of strict priority queues is serviced first in the order of their CoS numbering (the higher numbered CoS queue receives service before smaller numbered queues).

Note:

On the 7210 SAS-Sx 1/10GE: standalone and standalone-VC, the queue ID represents the FC. The FC is determined by the FC-to-queue ID map. For more information, see Schedulers on 7210 SAS-Sx/S 1/10GE and 7210 SAS-Sx 10/100GE.

The no form of this command under a WRR/WDRR mode will set the queue weights to default; for example, 1.

Parameters

queue-id

Specifies the queue ID.

Values

1 to 8

strict

Specifies strict access.

weight weight

Specifies the number of packets in case of WRR and ratio of traffic out in WDRR.

Values

1 to 15