This command creates a text description stored in the configuration file for a configuration context.
The no form of this command removes any description string from the context.
n/a
This command is used to create or edit a service egress QoS policy. The egress policy defines the Service Level Agreement (SLA) for service packets as they egress on the SAP.
Policies in effect are templates that can be applied to multiple services as long as the scope of the policy is template. The queues defined in the policy are not instantiated until a policy is applied to a service.
A sap-egress policy differs from sap-ingress policies in the complexity of the QoS parameters that can be defined. At ingress, policies determine queue mappings based on ingress DSCP and dot1p criteria. Multiple queues can be created per forwarding class and each queue can have different CIR or PIR parameters.
At egress, the policies are much simpler, since the forwarding class and in-profile or out-of-profile determination is done at the original service ingress SAP. Egress SAP QoS policies allow the definition of queues and the mapping of forwarding classes to those queues. Each queue needs to have a relative CIR for determining its allocation of QoS resources during periods of congestion. A PIR can also be defined that forces a hard limit on the packets transmitted through the queue. When the forwarding class is mapped to the queue, a dot1p value can optionally be specified. If specified, and the SAP has a dot1q or qinq encapsulation type, the dot1p value will be used for all packets that egress on that forwarding class. If the SAP is qinq-encapsulated, the qinq-mark-top-only command (under config>service) can be used to specify which qtags will have their dot1p marked or re-marked with the specified dot1p value. If the dot1p value is not specified, a dot1p value of 0 will be used. If the SAP is null-encapsulated, the dot1p value has no meaning.
![]() | Note: The ATM access egress shaping configuration in a SAP egress QoS policy is ignored when that policy is assigned to an ATM SAP. The shaping of the egress cell stream is controlled by the atm-td-profile command. If the atm-td-profile is not configured, the default atm-td-profile is in effect. See the atm-td-profile command for more information. |
The sap-egress policy with policy-id 1 is the default sap-egress QoS policy and is applied to service egress SAPs when an explicit policy is not specified or removed.
The factory default settings for sap-egress policy-id 1 define a single queue with PIR set to the maximum value and a CIR set to 0. The single queue is the default queue and all forwarding classes will map to it. Packets being tagged according to the defined SAP encapsulation will have the dot1p bits set to 0 for the new tags being added. If the tag already exists and the default sap-egress policy is being used, the dot1p bits are not changed.
![]() | Note: If the egress port encapsulation type is qinq, the SAP type is X.Y, and one tag already exists and a new tag must be added, then the new outer tag’s dot1p bits will be set to the inner tag’s dot1p bits value. For all other port types and SAP types, new tags will have a dot1p-bits value of 0 if the default policy is used. |
Any changes made to an existing policy, using any of the sub-commands, will be applied immediately to all egress SAPs where this policy is applied. For this reason, when many changes are required on a policy, it is highly recommended that the policy be copied to a work area policy-id. That work-in-progress policy can be modified until complete and then written over the original policy-id. Use the config qos copy command to maintain policies in this manner.
The no form of this command deletes the sap-egress policy. A policy cannot be deleted until it is removed from all service SAPs where it is applied. When a sap-egress policy is removed from a SAP, the SAP will revert to the default sap-egress policy-id 1.
The fc fc-name mode within the SAP egress QoS policy is used to contain the explicitly defined queue mapping and dot1p marking commands for fc-name. When the mapping for fc-name points to the default queue and the dot1p marking is not defined, the mode for fc-name is not displayed in the show configuration or save configuration output unless the detail option is specified.
The no form of the command removes the explicit queue mapping and dot1p marking commands for fc-name. The queue mapping reverts to the default queue for fc-name, and the dot1p marking (if appropriate) uses the default of 0.
n/a
This command is used to modify the size of the packet that schedulers operate on. Modification only impacts schedulers and queue statistics. The actual packet size is not modified, nor can it be. Only the size used by the schedulers to determine the scheduling is changed. The packet-byte-offset command is meant to be a mechanism that can be used to compensate for downstream encapsulation or header removal. The scheduling rates are affected by the offset, as well as the statistics (accounting) associated with the queue. The packet-byte-offset command does not affect port-level and service-level statistics. It only affects the queue statistics. The network-queue policy applies in both the ingress and egress directions.
The add and subtract keywords are mutually exclusive. Either add, subtract, or none must be specified.
There are three possible modes of packet-byte-offset operation:
Packet byte offset configuration can be applied at the policy level, in which case it applies to all of the queues within the policy, or at the individual queue level so that it applies only to a specific queue.
The no version of this command enables legacy 7705 SAR behavior where the queue rates are relative to the packet size with the internal fabric header added, but without the FCS.
This command configures a policy name for the SAP egress policy.
This command enables the context to configure a service egress policy queue. Explicit definition of an egress queue’s hardware scheduler status is supported. A single egress queue allows support for multiple forwarding classes.
The default behavior automatically chooses the expedited or non-expedited nature of the queue based on the forwarding classes mapped to it. As long as all forwarding classes mapped to the queue are expedited (nc, ef, h1, or h2), the queue is treated as an expedited queue by the hardware schedulers. When any non-expedited forwarding classes are mapped to the queue (be, af, l1, or l2), the queue is treated as best effort (be) by the hardware schedulers. The expedited hardware schedulers are used to enforce expedited access to egress ports. The hardware status of the queue must be defined at the time of queue creation within the policy.
The no form of the command removes the queue-id from the service egress policy. Removing the queue-id also removes it from any existing SAPs using the policy. If any forwarding classes are mapped to the queue, they revert to the default queue.
When a queue is removed, pending accounting information for each service egress queue created due to the definition of the queue in the policy is discarded.
n/a
This command is used to enter the scope of the policy. The scope of the policy cannot be changed if the policy is applied to one or more services.
The no form of this command sets the scope of the policy to the default of template.
template
This command explicitly defines the egress dot1p priority bits values for the forwarding class.
![]() | Note:
|
The no form of the command sets the dot1p priority bits value to 0.
0
This command defines the DSCP name or DSCP priority bits mapping for the forwarding class.
![]() | Note: When the dscp dscp-name command is used, the dscp-name is applied to all packets regardless of the profile state. The in-profile and out-profile form of the command allows differentiated values to be applied to packets based on the profile state. |
Access IP traffic (that is, VPRN and IES access interfaces) will always be re-marked if the interfaces are configured as part of the SAP egress QoS policy.
The no form of the command removes the DSCP mapping associated with the forwarding class.
n/a
dscp-name |
be, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cs1, cp9, af11, cp11, af12, cp13, af13, cp15, cs2, cp17, af21, cp19, af22, cp21, af23, cp23, cs3, cp25, af31, cp27, af32, cp29, af33, cp31, cs4, cp33, af41, cp35, af42, cp37, af43, cp39, cs5, cp41, cp42, cp43, cp44, cp45, ef, cp47, nc1, cp49, cp50, cp51, cp52, cp53, cp54, cp55, nc2, cp57, cp58, cp59, cp60, cp61, cp62, cp63 |
This command specifies the egress queue to which the traffic associated with the forwarding class is to be forwarded. The command overrides the default queue mapping for fc fc-name. The specified queue-id must exist within the policy before the mapping can be made. Once the forwarding class mapping is executed, all traffic classified to the fc-name on a SAP using this policy will use the indicated queue.
The no form of the command sets the queue-id back to the default queue for the forwarding class (queue 1).
no queue
This command enables the context to configure MC-MLPPP SAP egress QoS commands.
This command is used to create or edit an MC-MLPPP SAP egress QoS policy. The egress policy defines the Service Level Agreement (SLA) for service packets as they egress on the SAP.
Policies are templates that can be applied to multiple services as long as the scope of the policy is template. The queues defined in the policy are not instantiated until a policy is applied to a service. At egress, the forwarding class and in- or out-of-profile determination is done at the original service ingress SAP. MC-MLPPP egress SAP QoS policies allow the definition of queues and the mapping of forwarding classes to those queues. Each queue must have a PIR defined that forces a hard limit on the packets transmitted through the queue.
The sap-egress policy with policy-id 1 is the default sap-egress QoS policy and is applied to MC-MLPPP egress SAPs when an explicit policy is not specified or is removed.
The default settings for sap-egress policy-id 1 define a single queue with PIR set to the maximum value. The single queue is the default queue and all forwarding classes will map to it. Any changes made to an existing policy, using any of the sub-commands, will be applied immediately to all egress SAPs where this policy is applied. For this reason, when many changes are required on a policy, it is highly recommended that the policy be copied to a work area policy-id. That work-in-progress policy can be modified until complete and then written over the original policy-id. Use the config qos copy command to maintain policies in this manner.
The no form of this command deletes the sap-egress policy. A policy cannot be deleted until it is removed from all service SAPs where it is applied. When a sap-egress policy is removed from a SAP, the SAP will revert to the default sap-egress policy-id 1, which cannot be deleted.
The fc fc-name mode within the MC-MLPPP SAP egress QoS policy is used to contain the explicitly defined queue mapping for fc-name.
The no form of the command removes the explicit queue mapping for fc-name. The queue mapping reverts to the default queue for fc-name.
n/a
This command configures a policy name for the MC-MLPPP SAP egress policy.
This command enables the context to configure an MC-MLPPP SAP egress policy queue. Explicit definition of an egress queue’s hardware scheduler status is supported. A single egress queue allows support for multiple forwarding classes.
The no form of the command removes the queue-id from the MC-MLPPP SAP egress policy. Removing the queue-id also removes it from any existing SAPs using the policy. If any forwarding classes are mapped to the queue, they revert to the default queue.
When a queue is removed, pending accounting information for each SAP egress queue created due to the definition of the queue in the policy is discarded.
n/a
This command is used to enter the scope of the policy. The scope of the policy cannot be changed if the policy is applied to one or more services.
The no form of this command sets the scope of the policy to the default of template.
template
This command defines the DSCP name for the forwarding class.
n/a
This command specifies the MC-MLPPP egress queue to which the traffic associated with the forwarding class is to be forwarded. The command overrides the default queue mapping for fc fc-name. The specified queue-id must exist within the policy before the mapping can be made. Once the forwarding class mapping is executed, all traffic classified to the fc-name on a SAP using this policy will use the indicated queue.
The no form of the command sets the queue-id back to the default queue for the forwarding class (queue 1).
queue 1
This command is used to define how an operational rate is selected based on the configured PIR rate. Operational rates are the finite set of rates at which the schedulers on the network processor can operate.
The no form of the command removes any adaptation-rule constraints used to derive the operational rates for the policy. When a specific adaptation-rule is removed, the default constraints for rate apply.
closest
This command overrides the default Committed Buffer Space (CBS) reserved buffers for the queue.
The value in kilobytes is converted automatically to the number of buffers. The conversion calculation uses a non-configurable buffer size of 2304 bytes or 512 bytes, depending on the type of adapter card. See Table 4 for a list of adapter cards and their associated buffers. The calculation is:
Number of buffers = Configured CBS value in bytes / Buffer size in bytes
The no form of this command returns the CBS size to the default value.
“default” (8 kbytes for adapter cards and platforms with 512 byte buffer size) (18 kbytes for adapter cards and platforms with 2304 byte buffer size)
The high-prio-only command configures the percentage of buffer space for the queue, used exclusively by high-priority packets. The specified value overrides the default value for the context.
The priority of a packet can only be set in the service ingress policy and is only applicable on the ingress queues for a SAP. The profile state is used for enqueuing priority at sap-egress.
The no form of this command restores the default high-priority reserved size.
10 (percent)
This command sets the Maximum Burst Size (MBS) value for the buffers of the specific queue. The value is configured in bytes or kilobytes and overrides the default value for the context. The default configuration is in kilobytes.
The config>qos>mc-mlppp>sap-egress>info detail screen shows the MBS in terms of bytes, unless it is a multiple of 1000. In that case, the display shows the MBS in kilobytes. For example, entering mbs 200 or mbs 200 kilobytes configures and displays “200 kilobytes”, entering mbs 200000 bytes also configures and displays “200 kilobytes”, and entering mbs 200100 bytes configures and displays “200100 bytes”.
![]() | Note: For the 7705 SAR, a 1 kbyte of buffer management space is 1000 bytes. |
The MBS value in bytes is converted automatically to packets. The conversion calculation uses a non-user-configurable buffer size of 2304 bytes or 512 bytes, depending on the type of adapter card. See Table 4 for a list of adapter cards and their associated buffers. The calculation is:
Number of buffers = Configured MBS value in bytes / Buffer size in bytes (2304 or 512)
The MBS value is used by a queue to determine whether it has exhausted all of its buffers while enqueuing packets. Once the queue has exceeded the amount of buffers allowed by MBS, all packets are discarded until packets have been drained from the queue.
The sum of the MBS for all queues on an adapter card can exceed the total amount of buffering available. Therefore, for a packet arriving at a queue that has not exceeded its MBS size, it is not guaranteed that a buffer will be available. If a buffer is not available, the packet will be discarded. RED/WRED slope parameters can be configured to control congestion in the case where the buffer capacity of the card is becoming exhausted.
Setting proper CBS parameters and controlling CBS oversubscription is one major safeguard against queue starvation (that is, when a queue does not receive its fair share of buffers). Another safeguard is to properly set the RED/WRED slope parameters for the needs of services on this port or channel.
The no form of this command returns the MBS size assigned to the queue to the default value.
180 (kbytes) (converted to 78 packets when buffer size is 2304 bytes and to 351 packets when buffer size is 512 bytes)
This command defines the administrative PIR parameters for the queue. The PIR defines the maximum rate that the queue can transmit packets out an egress interface. Defining a PIR does not necessarily guarantee that the queue can transmit at the intended rate. The actual rate sustained by the queue can be limited by oversubscription factors or available egress bandwidth.
The rate command can be executed at any time, altering the PIR rates for all queues created through the association of the MC-MLPPP SAP egress policy with the queue-id.
The no form of the command returns all queues created with the queue-id by association with the QoS policy to the default PIR parameters (max).
max (this value specifies the amount of bandwidth in kb/s. The max value and the pir-rate value are mutually exclusive.)
The actual PIR rate is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.
![]() | Note: If a PIR rate lower than 8kb/s is specified, it is rounded up to this minimum value. |
This command specifies the slope parameters controlling the queue.
The no form of this command reverts to the default value.
default
This command is used to create or edit the ingress policy. The ingress policy defines the Service Level Agreement (SLA) enforcement that service packets receive as they ingress a SAP. SLA enforcement is accomplished through the definition of queues that have Forwarding Class (FC), Committed Information Rate (CIR), Peak Information Rate (PIR) and Maximum Burst Size (MBS) characteristics. The simplest policy defines a single queue that all ingress traffic flows through. Complex policies have multiple queues that indicate which queue a packet will flow though.
Policies are templates that can be applied to multiple services as long as the scope of the policy is template. Queues defined in the policy are not instantiated until a policy is applied to a service SAP.
It is possible that a service ingress policy will include the dscp map command and the dot1p map command. When multiple matches occur for the traffic, the order of precedence will be used to arrive at the final action. The order of precedence is as follows:
The service ingress policy with policy-id 1 is a system-defined policy applied to services when no other policy is explicitly specified. The system-defined service ingress policy cannot be modified or deleted.
The no version of this command restores the factory default settings when used on policy-id 1. The default service ingress policy defines one queue associated with the best effort (be) forwarding class, with CIR of 0 and PIR of line rate.
Any changes made to the existing policy, using any of the sub-commands, are applied immediately to all services where this policy is applied. For this reason, when many changes are required on a policy, it is recommended that the policy be copied to a work area policy ID. That work-in-progress policy can be modified until complete and then written over the original policy-id. Use the config qos copy command to maintain policies in this manner.
The no sap-ingress policy-id command deletes the service ingress policy. A policy cannot be deleted until it is removed from all services where it is applied. The system default sap-ingress policy is a special case.
This command configures the Service Ingress QoS policy scope as exclusive or template.
The policy’s scope cannot be changed if the policy is applied to a service.
The no form of this command sets the scope of the policy to the default of template.
template
This command configures the default forwarding class for the policy. In the event that an ingress packet does not match a higher priority (more explicit) classification command, the default forwarding class will be associated with the packet. Unless overridden by an explicit forwarding class classification rule, all packets received on an ingress SAP using this ingress QoS policy will be classified to the default forwarding class. Optionally, the default ingress enqueuing priority for the traffic can be overridden as well.
The default forwarding class for default-fc is best effort (be). The default-fc settings are displayed in the show configuration and save output regardless of inclusion of the detail keyword.
The no form of this command reverts to the default value.
be
This command configures the default enqueuing priority for all packets received on an ingress SAP using this policy.
The no form of this command reverts to the default value.
low
This command is used to create a class of the forwarding class fc-name.
The no form of the command removes all the explicit queue mappings for fc-name forwarding types. The queue mappings revert to the default queues for fc-name.
This command explicitly sets the forwarding class and/or enqueuing priority when a packet is marked with a dot1p-priority specified. Adding a dot1p rule on the policy forces packets that match the dot1p-priority specified to override the forwarding class and enqueuing priority based on the parameters included in the dot1p rule. When the forwarding class is not specified in the rule, a matching packet preserves (or inherits) the existing forwarding class derived from earlier matches in the classification hierarchy. When the enqueuing priority is not specified in the rule, a matching packet preserves (or inherits) the existing enqueuing priority derived from earlier matches in the classification hierarchy.
The dot1p-priority is derived from the most significant three bits in the IEEE 802.1Q or IEEE 802.1P header. The three dot1p bits define eight Class-of-Service (CoS) values commonly used to map packets to per-hop Quality-of-Service (QoS) behavior.
For QinQ applications, the dot1p bits used for classification are from either the top or bottom tag based on the match-qinq-dot1p configuration. For more information, refer to the command description and the “QinQ Dot1p Match Behavior” section in the 7705 SAR Services Guide.
The no form of this command removes the explicit dot1p classification rule from the service ingress policy. Removing the rule on the policy immediately removes the rule on all ingress SAPs using the policy.
A maximum of eight dot1p rules are allowed on a single policy.
This command explicitly sets the forwarding class and/or enqueuing priority when a packet is marked with the DiffServ Code Point (DSCP) value contained in dscp-name. Adding a DSCP rule on the policy forces packets that match the specified DSCP value to override the forwarding class and enqueuing priority based on the parameters included in the DSCP rule.
When the forwarding class is not specified in the rule, a matching packet preserves (or inherits) the existing forwarding class derived from earlier matches in the classification hierarchy. When the enqueuing priority is not specified in the rule, a matching packet preserves (or inherits) the existing enqueuing priority derived from earlier matches in the classification hierarchy.
The DSCP value (referred to by dscp-name) is derived from the most significant six bits in the IP header ToS byte field (DSCP bits). The six DSCP bits define 64 DSCP values used to map packets to per-hop QoS behavior.
A list of up to 8 DSCP names can be specified to assign DSCP values to an FC mapping for DSCP classification.
The no form of this command removes the DiffServ code point to forwarding class association. The default-action then applies to that code point value.
A maximum of 64 DSCP rules are allowed on a single policy. The specified name must exist as a dscp-name. Table 46 lists all the valid DSCP names.
This command configures a policy name for the SAP ingress policy.
This command enables the context to configure a service ingress policy queue.
Explicit definition of an ingress queue’s hardware scheduler status is supported. A single ingress queue allows support for multiple forwarding classes.
The default behavior automatically chooses the expedited or non-expedited nature of the queue based on the forwarding classes mapped to it. As long as all forwarding classes mapped to the queue are expedited (nc, ef, h1, or h2), the queue is treated as an expedited queue by the hardware schedulers. When any non-expedited forwarding classes are mapped to the queue (be, af, l1, or l2), the queue is treated as best effort (be) by the hardware schedulers.
The expedited hardware schedulers are used to enforce expedited access to internal switch fabric destinations. The hardware status of the queue must be defined at the time of queue creation within the policy.
The no form of this command removes the queue-id from the service ingress policy and from any existing SAPs using the policy. If any forwarding class forwarding types are mapped to the queue, they revert to their default queues. When a queue is removed, any pending accounting information for each service queue created due to the definition of the queue in the policy is discarded.
This command maps the broadcast forwarding type queue to the fc fc-name. The specified queue-id must already have been created within the policy before the mapping can be made. Once the forwarding class mapping is executed, all broadcast traffic on a SAP using this policy will be forwarded using the queue-id.
The no form of the command sets the broadcast forwarding type queue-id back to the default of no mapping to an FC.
no broadcast-queue
This command, when enabled on a parent forwarding class, applies a color profile mode to the packets stored in the queue associated with this forwarding class.
When this QoS policy is applied to the ingress of an FR VLL SAP, DE=1 frames are classified as out-of-profile and are not subject to the CIR marking.
All received DE=0 frames that exceed the CIR are marked as out-of-profile and have the DE set to 1, regardless of whether this command is enabled or disabled.
The priority option, if used, has no effect. All FR VLL DE=1 frames have their priority automatically set to low; DE=0 frames have their priority set to high.
All other capabilities of the Fpipe service are maintained. These capabilities include re-marking of the DE bit on egress SAP, and FR PW control word on egress network port for the packets that were classified as out-of-profile at the ingress SAP.
The de-1-out-profile command has an effect only when it is applied to the ingress of a SAP that is part of an Fpipe service.
The no form of the command disables the color profile mode of operation on all SAPs to which this ingress QoS policy is applied.
no de-1-out-profile
This command maps the multicast forwarding type queue to the fc fc-name. The specified queue-id must already have been created within the policy before the mapping can be made. Once the forwarding class mapping is executed, all multicast traffic on a SAP using this policy will be forwarded using the queue-id.
The no form of the command sets the multicast forwarding type queue-id back to the default of no mapping to an FC.
no multicast-queue
This command overrides the default forwarding type queue mapping for fc fc-name.
The no form of this command sets the queue-id back to the default queue for the forwarding class (queue 1).
This command maps the unknown forwarding type queue to the fc fc-name. The specified queue-id must already have been created within the policy before the mapping can be made. Once the forwarding class mapping is executed, all unknown forwarding type traffic on a SAP using this policy will be forwarded using the queue-id.
The no form of the command sets the unknown forwarding type queue-id back to the default of no mapping to an FC.
no unknown-queue
This command can be used to define how an operational rate is selected based on the configured PIR or CIR rate. Operational rates are the finite set of rates at which the schedulers on the network processor can operate.
The no form of the command removes any adaptation-rule constraints used to derive the operational rates for the policy. When a specific adaptation-rule is removed, the default constraints for rate and cir apply.
pir closest cir closest
This command overrides the default Committed Buffer Space (CBS) reserved for buffers of a specified queue. The value is configured in kilobytes.
The value in kilobytes is converted automatically to the number of buffers. The conversion calculation uses a non-configurable buffer size of 2304 bytes or 512 bytes, depending on the type of adapter card. See Table 4 for a list of adapter cards and their associated buffers. The calculation is:
Number of buffers = Configured CBS value in bytes / Buffer size in bytes
At the egress of an N > 1 Apipe, the CBS value in a SAP egress QoS policy that is assigned to a SAP aggregation group causes n times that value of buffers to be committed, where n is the number of SAPs in the SAP aggregation group. See the show pools command for information about how to view buffer pools for SAPs that are members of a SAP aggregation group. See the 7705 SAR Services Guide for information about how to configure SAP aggregation groups.
The no form of this command returns the CBS size to the default value.
“default” (8 kbytes for adapter cards and platforms with 512 byte buffer size) (18 kbytes for adapter cards and platforms with 2304 byte buffer size).
This command configures the percentage of buffer space for the queue, used exclusively by high-priority packets. The specified value overrides the default value for the context.
The priority of a packet can only be set in the service ingress policy and is only applicable on the ingress queues for a SAP. The profile state is used for enqueuing priority at sap-egress.
The no form of this command restores the default high-priority reserved size.
This command sets the Maximum Burst Size (MBS) value for the buffers of the specified queue. The value is configured in bytes or kilobytes, and overrides the default MBS value. The default configuration is in kilobytes.
The config>qos>sap-ingress>info detail and sap-egress>info detail screens show the MBS in terms of bytes, unless it is a multiple of 1000. In that case, the display shows the MBS in kilobytes. For example, entering mbs 200 or mbs 200 kilobytes configures and displays “200 kilobytes”, entering mbs 200000 bytes also configures and displays “200 kilobytes”, and entering mbs 200100 bytes configures and displays “200100 bytes”.
![]() | Note: For the 7705 SAR, 1 kbyte of buffer management space is 1000 bytes. |
The MBS value in bytes is converted automatically to the number of buffers. The conversion calculation uses a non-configurable buffer size of 2304 bytes or 512 bytes, depending on the type of adapter card. See Table 4 for a list of adapter cards and their associated buffers. The calculation is:
Number of buffers = Configured MBS value in bytes / Buffer size in bytes (2304 or 512)
At the egress of an N > 1 Apipe, the MBS value in a SAP egress QoS policy that is assigned to a SAP aggregation group is used for each of the per-SAP queues for SAPs that are members of a SAP aggregation group. See the show pools command for information about how to view buffer pools for SAPs that are members of a SAP aggregation group. See the 7705 SAR Services Guide for information about how to configure SAP aggregation groups.
The MBS value is used by a queue to determine whether it has exhausted all of its buffers while enqueuing packets. Once the queue has exceeded the amount of buffers allowed by MBS, all packets are discarded until packets have been drained from the queue.
The sum of the MBS for all queues on an adapter card can exceed the total amount of buffering available. Therefore, for a packet arriving at a queue that has not exceeded its MBS size, it is not guaranteed that a buffer will be available. If a buffer is not available, the packet will be discarded. RED/WRED slope parameters can be configured to control congestion in the case where the buffer capacity of the card is becoming exhausted.
Setting proper CBS parameters and controlling CBS oversubscription is one major safeguard against queue starvation (that is, when a queue does not receive its fair share of buffers). Another safeguard is to properly set the RED/WRED slope parameters for the needs of services on this port or channel.
The no form of this command returns the MBS size assigned to the queue to the default value.
180 (kbytes) (converted to 78 packets when buffer size is 2304 bytes and to 351 packets when buffer size is 512 bytes)
This command defines the administrative PIR and the administrative CIR parameters for the queue. Defining a PIR does not necessarily guarantee that the queue can transmit at the intended rate. Similarly, defining a CIR does not necessarily guarantee that the queue can schedule at the intended rate. The actual rate sustained by the queue can be limited by oversubscription factors or available bandwidth.
The cir keyword defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth.
For service ingress, the PIR defines the maximum rate that the queue can transmit packets towards the fabric. The cir keyword defines the rate that packets are considered in-profile by the system. In-profile packets are preferentially queued by the system at egress and at subsequent next hop nodes where the packet can traverse. To be properly handled as in- or out-of-profile throughout the network, the packets must be marked accordingly for profiling at each hop.
For service egress queues, the PIR defines the maximum rate that the queue can transmit packets out an egress interface.
When the PIR is set to max on a SAP-ingress queue, the max value defaults to the physical port line rate. On a SAP-egress queue, the PIR is set to the physical port line rate.
The no form of the command returns all queues created with the queue-id by association with the QoS policy to the default PIR and CIR parameters (max, 0).
![]() | Caution: The rate command can be executed at any time but should be executed during a maintenance window because the command can be service-affecting. Altering the PIR and CIR rates affects all queues created through the association of the service ingress or service egress QoS policy with the queue-id. |
![]() | Note: The ingress traffic to an Epipe, Ipipe, IES, VPLS, and VPRN service may be shaped to a lower rate than the PIR and CIR values configured in the SAP ingress policy. At SAP ingress, the CIR and PIR settings under rate include both payload (customer) traffic and overhead traffic, which affects the shaping rate internally. Additional overhead bytes include the internal fabric header minus any bytes that have been removed from the original packet (such as the four-byte FCS). At SAP ingress, the actual shaping rate is related to the service rate (PIR or CIR) specified in the SAP ingress QoS policy, as shown below: Shaping rate (actual) = (PIR or CIR) / ratio where ratio = (customer packet size + additional bytes - removed headers - 4 byte FCS) / (customer packet size) At SAP egress, shaping does not include the FCS, so the actual shaping rate is a bit higher than the PIR/CIR ratio configured in the QoS policy. Shaping rate (actual) = (PIR or CIR) / ratio where ratio = (customer packet size - 4 byte FCS) / (customer packet size) |
rate max cir 0 (this default specifies the amount of bandwidth in kb/s. The max value and the pir-rate value are mutually exclusive.)
The actual PIR rate is dependent on the queue’s adaptation-rule parameters and the actual hardware where the queue is provisioned.
![]() | Note: If a PIR rate lower than 8 kb/s is specified, it is rounded up to this minimum value. |
![]() | Note: If a CIR rate lower than 8kb/s is specified, it is rounded up to this minimum value (with the exception of 0, which does not get rounded up). |
This command specifies the slope parameters controlling the queue.
slope-policy default
This command copies existing QoS policy entries for a QoS policy ID to another QoS policy ID.
This command is a configuration level maintenance tool used to create new policies using existing policies. It also allows bulk modifications to an existing policy with the use of the overwrite keyword.
![]() | Note: The following command outputs are examples only; actual displays may differ depending on supported functionality and user configuration. |
This command displays service egress and MC-MLPPP SAP egress QoS policy information.
The following output is an example of service egress and MC-MLPPP SAP egress QoS policy information, and Table 47 describes the fields.
Label | Description |
Policy-Id | The ID that uniquely identifies the policy |
Type | Indicates the type of SAP egress policy; Default, Standard, or MC-MLPPP |
Scope | Exclusive - this policy can only be applied to a single SAP |
Template - this policy can be applied to multiple SAPs on the router | |
Name | The policy name |
Description | A text string that helps identify the policy’s context in the configuration file |
Pkt.Byte Offset | Indicates the value of the packet byte offset applied to the packet for scheduling, if applicable. A value of “default” indicates that legacy mode packet scheduling is in use, in which packets are scheduled based on size including internal overhead. |
Queue | |
CIR Admin | The administrative Committed Information Rate (CIR) parameters for the queue. The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth. |
CIR Rule | min - the operational CIR for the queue will be equal to or greater than the administrative rate specified using the rate command except where the derived operational CIR is greater than the operational PIR. If the derived operational CIR is greater than the derived operational PIR, the operational CIR will be made equal to the operational PIR. |
max - the operational CIR for the queue will be equal to or less than the administrative rate specified using the rate command | |
closest - the operational CIR for the queue will be the rate closest to the rate specified using the rate command without exceeding the operational PIR | |
PIR Admin | The administrative Peak Information Rate (PIR) parameters for the queue. The PIR defines the maximum rate that the queue can transmit packets out an egress interface. |
PIR Rule | min - the operational PIR for the queue will be equal to or greater than the administrative rate specified using the rate command |
max - the operational PIR for the queue will be equal to or less than the administrative rate specified using the rate command | |
closest - the operational PIR for the queue will be the rate closest to the rate specified using the rate command | |
CBS | def - the CBS value reserved for the queue |
value - the value to override the default reserved buffers for the queue | |
MBS | def - the MBS value reserved for the queue |
value - the value to override the default maximum size for the queue | |
HiPrio | The percentage of buffer space for the queue, used exclusively by high-priority packets |
Packet Offset | The value of the packet byte offset applied to the queue. A value of “default” indicates that legacy mode packet scheduling is in use, in which packets are scheduled based on size including internal overhead. |
Slope-Policy | The slope policy for the queue |
FC Name | The override for the forwarding class value |
Queue-id | The queue-id that uniquely identifies the queue within the policy |
Dot1p | The egress dot1p priority bits values for the forwarding class |
Explicit/Default | Explicit - the egress IEEE 802.1P (dot1p) bits marking for fc-name |
Default - the default dot1p value (0) is used | |
DSCP | The DSCP name for the forwarding class |
Marking | The DSCP priority bits mapping for the forwarding class |
Associations | Service Name - the name of the service |
Service-Id - the unique service ID number that identifies the service in the service domain | |
Customer-Id - the customer ID that identifies the customer to the service | |
SAP - the Service Access Point within the service where the policy is applied |
This command displays service ingress QoS policy information.
The following output is an example of service ingress QoS policy information, and Table 48 describes the fields.
Label | Description |
Policy-Id | The ID that uniquely identifies the policy |
Scope | Exclusive - this policy can only be applied to a single SAP |
Template - this policy can be applied to multiple SAPs on the router | |
Default FC | The default forwarding class for the policy |
Priority | The default enqueuing priority |
Name | The policy name |
Description | A text string that helps identify the policy’s context in the configuration file |
Pkt.Byte Offset | Indicates the value of the packet byte offset applied to the packet for scheduling, if applicable. A value of “default” indicates that legacy mode packet scheduling is in use, in which packets are scheduled based on size including internal overhead. |
Queue | The queue number |
Mode | The priority mode for the queue |
CIR Admin | The CIR parameters for the queue. The CIR defines the rate at which the system prioritizes the queue over other queues competing for the same bandwidth. |
CIR Rule | min - the operational CIR for the queue will be equal to or greater than the administrative rate specified using the rate command except where the derived operational CIR is greater than the operational PIR. If the derived operational CIR is greater than the derived operational PIR, the operational CIR will be made equal to the operational PIR. |
max - the operational CIR for the queue will be equal to or less than the administrative rate specified using the rate command | |
closest - the operational CIR for the queue will be the rate closest to the rate specified using the rate command without exceeding the operational PIR | |
PIR Admin | The administrative PIR parameters for the queue. The PIR defines the maximum rate that the queue can transmit packets through the switch fabric. |
PIR Rule | min - the operational PIR for the queue will be equal to or greater than the administrative rate specified using the rate command |
max - the operational PIR for the queue will be equal to or less than the administrative rate specified using the rate command | |
closest - the operational PIR for the queue will be the rate closest to the rate specified using the rate command | |
CBS | def - the CBS value reserved for the queue |
value - the value to override the default reserved buffers for the queue | |
MBS | def - the MBS value reserved for the queue |
value - the value to override the default maximum size for the queue | |
HiPrio | The percentage of buffer space for the queue, used exclusively by high-priority packets |
Packet Offset | The value of the packet byte offset applied to the queue. A value of “default” indicates that legacy mode packet scheduling is in use, in which packets are scheduled based on size including internal overhead. |
Slope-Policy | The slope policy for the queue |
UCastQ | The unicast forwarding type queue mapping (default or queue number) |
MCastQ | The multicast forwarding type queue mapping (default or queue number) |
BCastQ | The broadcast forwarding type queue mapping (default or queue number) |
UnknownQ | The unknown unicast forwarding type queue mapping (default or queue number) |
Dot1p | The forwarding class and/or enqueuing priority when a packet is marked with a dot1p-value specified |
FC | The override for the forwarding class |
Priority | The optional priority setting overrides the default enqueuing priority for the packets received on an ingress SAP that uses the policy that matches this rule |
High - the high enqueuing parameter for a packet increases the likelihood of enqueuing the packet when the ingress queue is congested | |
Low - the low enqueuing parameter for a packet decreases the likelihood of enqueuing the packet when the ingress queue is congested | |
DSCP | The forwarding class and/or enqueuing priority when a packet is marked with the DiffServ Code Point (DSCP) value |
FC | One of the predefined forwarding classes in the system. When a packet matches the rule, the forwarding class is only overridden when the fc fc-name parameter is defined on the rule. |
Priority | The default enqueuing priority overrides for all packets received on an ingress SAP using this policy that match this rule |
High - the high enqueuing parameter for a packet increases the likelihood of enqueuing the packet when the ingress queue is congested | |
Low - the low enqueuing parameter for a packet decreases the likelihood of enqueuing the packet when the ingress queue is congested | |
FC | The override for the forwarding class value |
Associations | Service Name - the name of the service |
Service-Id - the unique service ID number that identifies the service in the service domain | |
Customer-Id - the customer ID that identifies the customer to the service | |
SAP - the SAP within the service where the service ingress policy is applied |
This command displays buffer pool information on an adapter card. This information pertains to the memory allocation that is used for queuing purposes. The information is displayed according to the number of allocated buffers.
Since the 10-port 1GigE/1-port 10GigE X-Adapter card has separate ingress and egress buffer pools, there are two sets of pool information displayed for the card. Use the egress keyword to display only egress buffer pool information; use the ingress keyword to display only ingress buffer pool information; use the mda keyword by itself to display both egress buffer pool information and ingress buffer pool information.
![]() | Note: The egress and ingress keywords only apply to the 10-port 1GigE/1-port 10GigE X-Adapter card. The ring and v-port keywords only apply to the 2-port 10GigE (Ethernet) Adapter card and 2-port 10GigE (Ethernet) module. |
All adapter cards allocate a fixed-size space for each buffer. The 7705 SAR supports two buffer sizes: 2304 and 512 bytes, depending on the type of adapter card. See Table 4 for a list of adapter cards and their associated buffers.
A buffer size of 2304 bytes is large enough to accommodate the maximum frame size supported on the non-buffer-chaining adapter cards on the 7705 SAR. The adapter cards that support a buffer size of 2304 bytes always have a 1-to-1 correspondence of packets to buffers.
A buffer size of 512 bytes is smaller than the largest frame size supported on the 7705 SAR. Packets that are larger than 512 bytes use more than one buffer. The adapter cards that support a buffer size of 512 bytes dynamically divide packets that are larger than 512 bytes into a series of concatenated buffers in a method called buffer chaining. See Buffer Unit Allocation and Buffer Chaining for more information.
Adapter cards that support byte-based WRED use 512-byte buffers and can have a many-to-1 correspondence of packets to buffers. For example, assuming 128-byte packets, to fill 512 bytes in a queue takes four buffers using payload-based WRED (also called byte-based WRED), compared to one buffer in buffer-based WRED. When using byte-based WRED for frame sizes smaller than 512 bytes (128 or 256 bytes), the actual number of buffers used in the queue may exceed the MBS configured for the queue, since byte-based WRED does not count buffer overhead (filler) bytes in the queue to determine packet discard or tail drop eligibility, as is the case for buffer-based WRED. See Payload-based WRED for more information.
The following outputs are examples of detailed buffer pool information for an 8-port Gigabit Ethernet Adapter card, a 32-port T1/E1 ASAP Adapter Card, a 10-port 1GigE/1-port 10GigE X-Adapter card, and a 2-port 10GigE (Ethernet) Adapter card. Table 49 describes the fields.
The following outputs are examples of ingress and egress buffer pool information for a 10-port 1GigE/1-port 10GigE X-Adapter card, and v-port and ring buffer pool information on the 2-port 10GigE (Ethernet) Adapter card. Table 49 describes the fields.
The following output is an example of buffer pool information for an 8-port Gigabit Ethernet Adapter card. Outputs for the 8-port Ethernet Adapter card, version 2, and the 6-port Ethernet 10Gbps Adapter card are similar. The buffer size (512 bytes) is used by all Ethernet adapter cards, except the 8-port Ethernet Adapter card, version 1. Table 49 describes the fields.
The following output is an example of buffer pool information on a 32-port T1/E1 ASAP Adapter card that supports an ATM N > 1 SAP aggregation group. The buffer size used by the adapter card is 2304 bytes, and the naming convention used at the access ingress queue identifies a SAP aggregation group for an N > 1 ATM pseudowire. Table 49 describes the fields.
The following output is an example of showing both ingress and egress buffer pool information on a 10-port 1GigE/1-port 10GigE X-Adapter card. Table 49 describes the fields.
The following output is an example of showing only summary egress buffer pool information on a 10-port 1GigE/1-port 10GigE X-Adapter card. Table 49 describes the fields.
The following output is an example of showing only detailed egress buffer pool information on a 10-port 1GigE/1-port 10GigE X-Adapter card. Table 49 describes the fields.
The following output is an example of showing only summary ingress buffer pool information on a 10-port 1GigE/1-port 10GigE X-Adapter card. Table 49 describes the fields.
The following output is an example of showing only detailed ingress buffer pool information on a 10-port 1GigE/1-port 10GigE X-Adapter card. Table 49 describes the fields.
The following output is an example of showing both v-port and ring buffer pool information on a 2-port 10GigE (Ethernet) Adapter card. Table 49 describes the fields.
Label | Description |
Buffer Pool Information (not applicable for the 10-port 1GigE/1-port 10GigE X-Adapter card) | |
Ingress Buffer Pool Information (applies only to the 10-port 1GigE/1-port 10GigE X-Adapter card) | |
Egress Buffer Pool Information (applies only to the 10-port 1GigE/1-port 10GigE X-Adapter card) | |
V-Port Buffer Pool Information (applies only to the 2-port 10GigE (Ethernet) Adapter card and 2-port 10GigE (Ethernet) module) | |
Ring Buffer Pool Information (applies only to the 2-port 10GigE (Ethernet) Adapter card and 2-port 10GigE (Ethernet) module) | |
Pool Total | The total number of available buffers |
Pool Shared | The number of buffers that can be shared |
Pool Total In Use | The total number of buffers in use, in real time |
Pool Exhaustion Drop | The number of packets dropped due to pool exhaustion |
Buffer Size | The buffer size supported by the adapter card: 512 or 2304 bytes |
Pool Resv | The number of packets reserved or committed |
Access Ingress Queues Access Egress Queues | |
Name | For access ingress queues associated with N > 1 Apipes, the format of the queue identifier is: Service-Id->Sap Aggregation Group Name->Queue Number All other queues use the following: Service-Id->Sap-Id->Queue Number |
FC-Maps | The forwarding class-to-queue mappings |
O.MBS (buf) | The maximum operational buffers in the queue |
O.CBS (buf) | The committed operational buffers in the queue |
Depth (buf) | The queue occupancy (the number of buffer units currently queued), in real time For byte-based WRED, the number of Depth buffers may exceed the number of MBS buffers |
Network Ingress Queues | |
FC-Maps | The forwarding class-to-queue mappings |
Dest | The destination MDA identifier |
O.MBS (buf) | The maximum operational buffers in the queue |
O.CBS (buf) | The committed operational buffers in the queue |
Depth (buf) | The queue occupancy (the number of buffer units currently queued), in real time For byte-based WRED, the number of Depth buffers may exceed the number of MBS buffers |
Network Egress Queues | |
FC-Maps ID | The forwarding class identifier Entries with the port-id:tag->int-name format indicate the use of per-VLAN shapers |
O.MBS (buf) | The maximum operational buffers in the queue |
O.CBS (buf) | The committed operational buffers in the queue |
Depth (buf) | The queue occupancy (the number of buffer units currently queued), in real time For byte-based WRED, the number of Depth buffers may exceed the number of MBS buffers |
IPv4 GRE Fragment Reassembly Queue Groups (not applicable for the 2-port 10GigE (Ethernet) Adapter card or 8-port Ethernet Adapter card, version 2) | |
FC-Maps ID | The forwarding class identifier |
Profile ID | The IP reassembly profile identifier |
O.MBS (buf) | The maximum operational buffers in the queue |
O.CBS (buf) | The committed operational buffers in the queue |
Depth (buf) | The queue occupancy (the number of buffer units currently queued), in real time |