*A:Dut-A>config>service>cust>multi-service-site# pwc
-------------------------------------------------------------------------------
Present Working Context :
-------------------------------------------------------------------------------
<root>
configure
service
customer 2
multi-service-site "mss1"
-------------------------------------------------------------------------------
*A:Dut-A>config>service>cust>multi-service-site# info
----------------------------------------------
assignment port 9/1/4
ingress
policer-control-policy "pcp"
exit
egress
policer-control-policy "pcp"
exit
----------------------------------------------
*A:Dut-A>config>service>vpls# pwc
-------------------------------------------------------------------------------
Present Working Context :
-------------------------------------------------------------------------------
<root>
configure
service
vpls "101"
-------------------------------------------------------------------------------
*A:Dut-A>config>service>vpls# info
----------------------------------------------
shutdown
stp
shutdown
exit
sap 9/1/4 create
multi-service-site "mss1"
egress
qos 3
exit
exit
----------------------------------------------
*A:Dut-A>config>qos>sap-egress$ pwc
-------------------------------------------------------------------------------
Present Working Context :
-------------------------------------------------------------------------------
<root>
configure
qos
sap-egress 3 create
-------------------------------------------------------------------------------
*A:Dut-A>config>qos>sap-egress$ info
----------------------------------------------
queue 1 create
exit
queue 2 create
exit
policer 2 create
exit
fc ef create
policer 2 queue 2
exit
----------------------------------------------
*A:Dut-A>config>qos>sap-egress$ info
----------------------------------------------
queue 1 create
exit
queue 2 create
exit
policer 2 create
exit
fc af create
queue 2
exit
fc ef create
policer 2 queue 2
exit
----------------------------------------------
In order to simplify subscriber destination string provisioning, you can use a def-inter-dest-id command under the sub-sla-mgmt node within a SAP which allows the definition of a default destination string for all subscribers associated with the SAP. The command also accepts the use-top-q flag that automatically derives the string based on the top most delineating Dot1Q tag from the SAP’s encapsulation.
Applying a policer control policy to a SAP creates an instance of the policy that is used to control the bandwidth associated with the child policers on the SAP. In a similar fashion, an instance of the policy is created when a subscriber profile associated with the policy is applied to a subscriber context. The subscriber policy instance is used to control the bandwidth of the child policers created by the SLA profile instances within the subscriber context.
Policers are not created on a SAP or subscriber context until at least one forwarding class has been mapped to the policer. Simply creating a policer within a QoS policy does not cause policers to be created on the SAPs or subscriberss where the policy is applied.
SAP QoS policy applicability and policy policer forwarding class mappings are dependent on policer resource availability. Attempting to map the first forwarding class to a policer causes the policer to be created on the SAPs or subscribers where the policy is applied. If the forwarding plane where the SAP or subscriber exists either doesn't support policers or has insufficient resources to create the policer for the object, the forwarding class mapping will fail.
Once a forwarding class is successfully mapped to a policer within the policy, attempting to apply the policy to a SAP or a subscriber where the policer cannot be created either due to lack of policer support or insufficient policer resources will fail.
An arbiter exists on a SAP when a policer-control-policy containing the arbiter is applied to the appropriate direction (ingress or egress) of the SAP. An arbiter exists on a subscriber when a policer-control-policy containing the arbiter is applied to the subscriber's sub-profile in the appropriate direction as well.
Table 43 demonstrates how the CIR rate and initial profile of each packet affects the output of normal (non-profile-capped) and profile-capped mode policers.
See Table 43 to track the ingress behavior of initial profile and the effect of the CIR bucket on that initial state.
When profile-capped mode is enabled, the packet handling behavior defined in Ingress ‘Undefined’ Initial Profile is altered in one aspect. The CIR output state of yellow at the greater threshold is actually honored and the packet will be treated as out-of-profile. The packet will be sent to egress in the ‘soft-out-of-profile’ state in this case.
Second, explicit egress profile in and soft-in-profile that has not been reclassified to
profile out at egress are allowed to be marked out-of-profile by an egress policer with CIR not set to 0.
Setting the stat-mode does not modify the packet handling behavior of the policer. For example, if the configured stat-mode does not support in-profile and out-of-profile output accounting, the policer is not blocked from having a configured CIR rate. The CIR rate will be enforced, but the amount of in-profile and out-of-profile traffic output from the policer will not be counted separately (or maybe not at all based on the configured stat-mode).
A policer is created with minimal counters sufficient to provide total offered and total discarded (the total forwarded is computed as the sum of the offered and discarded counters). The stat-mode is defined within the
sap-ingress or
sap-egress QoS policy in the policer context. When defining the
stat-mode, the counter resources needed to implement the mode must be available on all forwarding planes where the policer has been created using the QoS policy unless the policer instance has a stat-mode override defined. You can see the resources used and available by using the
tools dump system-resources command. If insufficient resources exist, the change in the mode will fail without any change to the existing counters currently applied to the existing policers. If the QoS policy is being applied to a SAP or subscriber context and insufficient counter resources exist to implement the configured modes for the policers within the policy, the QoS policy will not be applied. For SAPs, this means the previous QoS policy will stay in effect. For subscribers, it could mean that the subscriber host event where the QoS policy is being applied will fail and the subscriber host may be blocked or removed.
Make sure to use the correct stat-mode if the policer’s CIR is explicitly not set or is set to 0. The no-cir version of the stat-mode must be used and when the CIR has a non-zero value. Also when overriding the policer’s cir mode, make sure you override the stat-mode instance (cir override can be performed using snmp access).
*A:sr7-1# show service id 2 sap 1/1/1:2 stats
===============================================================================
Service Access Points(SAP)
===============================================================================
Service Id : 2
SAP : 1/1/1:2 Encap : q-tag
Description : (Not Specified)
Admin State : Up Oper State : Down
Flags : ServiceAdminDown
PortOperDown
Multi Svc Site : None
Last Status Change : 02/08/2010 13:55:18
Last Mgmt Change : 02/09/2010 07:24:00
-------------------------------------------------------------------------------
Sap per Queue stats
-------------------------------------------------------------------------------
Packets Octets
Ingress Queue 11 (Multipoint) (Priority)
Off. HiPrio : 0 0
Off. LoPrio : 0 0
Dro. HiPrio : 0 0
Dro. LoPrio : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Egress Queue 1
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
-------------------------------------------------------------------------------
Sap per Policer stats
-------------------------------------------------------------------------------
Packets Octets
Ingress Policer 1 (Stats mode: no-stats)
Ingress Policer 2 (Stats mode: minimal)
Off. All : 0 0
For. All : 0 0
Dro. All : 0 0
Ingress Policer 3 (Stats mode: offered-profile-no-cir)
Off. InProf : 0 0
Off. OutProf : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Ingress Policer 4 (Stats mode: offered-priority-no-cir)
Off. HiPrio : 0 0
Off. LowPrio : 0 0
For. HiPrio : 0 0
For. LoPrio : 0 0
Dro. HiPrio : 0 0
Dro. LowPrio : 0 0
Ingress Policer 5 (Stats mode: offered-profile-cir)
Off. InProf : 0 0
Off. OutProf : 0 0
Off. Uncolor : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Ingress Policer 6 (Stats mode: offered-priority-cir)
Off. HiPrio : 0 0
Off. LowPrio : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Ingress Policer 7 (Stats mode: offered-total-cir)
Off. All : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Ingress Policer 8 (Stats mode: offered-limited-profile-cir)
Off. OutProf : 0 0
Off. Uncolor : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Egress Policer 1 (Stats mode: no-stats)
Egress Policer 2 (Stats mode: minimal)
Off. All : 0 0
For. All : 0 0
Dro. All : 0 0
Egress Policer 3 (Stats mode: offered-profile-no-cir)
Off. InProf : 0 0
Off. OutProf : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Egress Policer 4 (Stats mode: offered-profile-cir)
Off. InProf : 0 0
Off. OutProf : 0 0
Off. Uncolor : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
Egress Policer 5 (Stats mode: offered-total-cir)
Off. All : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Dro. InProf : 0 0
Dro. OutProf : 0 0
===============================================================================
*A:sr7-1#
*A:sr7-1#
*A:sr7-1#
*A:sr7-1# admin display-config
# TiMOS-C-8.0.B1-6 cpm/hops ALCATEL SR 7750 Copyright (c) 2000-2010 Alcatel-Lucent.
# All rights reserved. All use subject to applicable license agreements.
# Built on Fri Jan 22 20:44:19 PST 2010 by builder in /rel8.0/b1/B1-6/panos/main
# Generated TUE FEB 09 07:25:26 2010 UTC
exit all
configure
#--------------------------------------------------
echo "System Configuration"
#--------------------------------------------------
system
name "sr7-1"
snmp
shutdown
exit
time
sntp
shutdown
exit
zone UTC
exit
thresholds
rmon
exit
exit
exit
#--------------------------------------------------
echo "System Security Configuration"
#--------------------------------------------------
system
security
per-peer-queuing
cpu-protection
policy 1 create
exit
policy 254 create
exit
policy 255 create
exit
exit
exit
exit
#--------------------------------------------------
echo "Log Configuration"
#--------------------------------------------------
log
exit
#--------------------------------------------------
echo "System Security Cpm Hw Filters Configuration"
#--------------------------------------------------
system
security
exit
exit
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
qos
exit
#--------------------------------------------------
echo "Card Configuration"
#--------------------------------------------------
card 1
card-type iom3-xp
mda 1
mda-type m20-1gb-xp-sfp
exit
exit
card 2
card-type iom3-xp
mda 1
mda-type m20-1gb-xp-sfp
exit
exit
card 5
card-type iom2-20g
mda 1
mda-type isa-video
exit
mda 2
mda-type isa-video
exit
exit
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
port 1/1/1
ethernet
mode access
encap-type dot1q
mtu 9212
efm-oam
no shutdown
exit
exit
no shutdown
exit
port 1/1/2
ethernet
mode access
encap-type dot1q
exit
no shutdown
exit
port 1/1/3
shutdown
ethernet
exit
exit
port 1/1/4
shutdown
ethernet
exit
exit
...
port 2/1/20
shutdown
ethernet
exit
exit
#--------------------------------------------------
echo "System Sync-If-Timing Configuration"
#--------------------------------------------------
system
sync-if-timing
begin
ref1
shutdown
exit
ref2
shutdown
exit
bits
input
shutdown
exit
output
shutdown
line-length 110
exit
exit
commit
exit
exit
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
qos
policer-control-policy "pcp1" create
root
max-rate 70000
exit
exit
sap-ingress 10 create
queue 1 create
exit
queue 11 multipoint create
exit
policer 1 create
stat-mode offered-priority-cir
parent "root"
rate 60000 cir 30000
exit
policer 2 create
stat-mode offered-priority-cir
parent "root" level 2
rate 50000 cir 20000
exit
policer 3 create
stat-mode offered-priority-cir
parent "root" level 3
rate 40000 cir 10000
exit
fc "af" create
policer 2
exit
fc "be" create
policer 1
exit
fc "ef" create
policer 3
exit
dot1p 2 fc "af"
dot1p 5 fc "ef"
exit
sap-ingress 100 create
queue 1 create
exit
queue 11 multipoint create
exit
policer 1 create
stat-mode no-stats
exit
policer 2 create
exit
policer 3 create
stat-mode offered-profile-no-cir
exit
policer 4 create
stat-mode offered-priority-no-cir
exit
policer 5 create
stat-mode offered-profile-cir
exit
policer 6 create
stat-mode offered-priority-cir
exit
policer 7 create
stat-mode offered-total-cir
exit
policer 8 create
stat-mode offered-limited-profile-cir
exit
fc "af" create
policer 3
exit
fc "be" create
policer 1
exit
fc "ef" create
policer 6
exit
fc "h1" create
policer 7
exit
fc "h2" create
policer 5
exit
fc "l1" create
policer 4
exit
fc "l2" create
policer 2
exit
fc "nc" create
policer 8
exit
exit
sap-egress 10 create
queue 1 create
exit
queue 2 create
exit
queue 3 create
exit
fc af create
queue 2
exit
fc ef create
queue 3
exit
exit
sap-egress 100 create
queue 1 create
exit
policer 1 create
stat-mode no-stats
exit
policer 2 create
exit
policer 3 create
stat-mode offered-profile-no-cir
exit
policer 4 create
stat-mode offered-profile-cir
exit
policer 5 create
stat-mode offered-total-cir
exit
fc af create
policer 3
exit
fc be create
policer 1
exit
fc h2 create
policer 5
exit
fc l1 create
policer 4
exit
fc l2 create
policer 2
exit
exit
exit
#--------------------------------------------------
echo "Management Router Configuration"
#--------------------------------------------------
router management
exit
#--------------------------------------------------
echo "Router (Network Side) Configuration"
#--------------------------------------------------
router
interface "system"
exit
#--------------------------------------------------
echo "NAT (Network Side) Configuration"
#--------------------------------------------------
exit
#--------------------------------------------------
echo "Service Configuration"
#--------------------------------------------------
service
customer 1 create
description "Default customer"
exit
vpls 1 customer 1 create
stp
shutdown
exit
sap 1/1/1:1 create
ingress
policer-control-policy "pcp1"
qos 10
exit
exit
sap 1/1/2:1 create
egress
qos 10
exit
exit
no shutdown
exit
vpls 2 customer 1 create
shutdown
stp
shutdown
exit
sap 1/1/1:2 create
ingress
qos 100
exit
egress
qos 100
exit
exit
exit
exit
#--------------------------------------------------
echo "Router (Service Side) Configuration"
#--------------------------------------------------
router
#--------------------------------------------------
echo "NAT (Service Side) Configuration"
#--------------------------------------------------
exit
exit all
# Finished TUE FEB 09 07:25:27 2010 UTC
config qos
policer-control-policy policy-name [create]
no policer-control-policy policy-name
description “description-string”
no description
root
max-rate {kilobits-per-second | max}
no max-rate
[no] profile-preferred
priority-mbs-thresholds
min-thresh-separation size [bytes | kilobytes]
no min-thresh-separation
priority level
mbs-contribution size [bytes | kilobytes] [fixed]
no mbs-contribution