The 7x50 platforms provide an extensive Quality of Service (QoS) capability for service provider solutions. QoS is a system behavior to treat different traffic with different amounts of resources, including buffer memory and queue serving time.
The SAP ingress policies are created under the qos node of the CLI and require a unique identifier (from 1 to 65535). The default
sap-ingress policy has identifier 1.
configure service
ies 1 customer 1 create
interface "int-access" create
address 192.168.1.1/30
sap 3/2/10:2 create
ingress
qos 10
exit
exit
exit
no shutdown
exit
|
|
|
|
|
|
Note: For an ingress QoS policy, either IP match criteria or MAC match criteria can be defined, not both.
|
|
|
|
|
|
|
|
|
|
|
configure qos
sap-ingress 10 create
queue 2 create
exit
fc "af" create
queue 2
exit
dot1p 1 fc "af"
exit
exit
configure service
epipe 1 customer 1 create
sap 1/1/1:100.1 create
ingress
qos 10
match-qinq-dot1p top
exit
exit
no shutdown
exit
The classification of traffic using the default, top and
bottom keyword parameters is summarized in
Table 14. Note that a TopQ SAP is a QinQ SAP where only the outer (top) VLAN tag is explicitly specified (sap 1/1/1:10.* or sap 1/1/1:10.0).
The Drop Eligibility Indicator (DEI)
1 bit can be used to indicate the in/out profile state of the packet, this will be covered later in the discussion on profile mode.
configure qos
sap-ingress 10 create
fc "af" create
exit
fc "ef" create
exit
dot1p 3 fc "ef" priority high
default-fc "af"
default-priority low # this is the default
exit
configure qos
sap-ingress 10 create
queue 3 expedite create
exit
queue 13 multipoint expedite create
exit
fc ef create
queue 3
multicast-queue 13
exit
default-fc "ef"
exit
These marking actions are known as color marking (green for in-profile and yellow for out-of-profile). Using the default queue setting of priority-mode, as described above, the in/out-of-profile state of a packet is determined from the queue scheduling state (within CIR or above CIR, as described later) at the time that the packet is dequeued. An alternative queue mode is
profile-mode.
configure qos
sap-ingress 20 create
queue 2 profile-mode create
exit
fc "af" create
queue 2
exit
fc "af.in" create
profile in
exit
fc "af.out" create
profile out
exit
dot1p 0 fc "af"
dot1p 2 fc "af.out"
dot1p 3 fc "af.in"
exit
Remarking at the service ingress is possible when using an IES or VPRN service. The DSCP/precedence field can be remarked for in-profile (in-remark) and out-of-profile (
out-remark) traffic as defined above for queues in either priority mode or profile mode. If configured for other services, the remarking is ignored. If remarking is performed at the service ingress, then the traffic is not subject to any egress remarking on the same system.
configure qos
sap-ingress 300 create
queue 2 profile-mode create
exit
fc “ef" create
queue 2
profile in
in-remark dscp ef
exit
ip-criteria
entry 10 create
match
dst-ip 10.0.0.0/8
exit
action fc “ef"
exit
exit
exit
Similar to the service ingress enqueuing process, it is possible that a packet can not get a buffer and thus gets dropped. Once on an egress queue, a packet is scheduled from the queue based on priority of the queue (expedited or best-effort) and the scheduling state with respect to the CIR/PIR rates (note that the profile state of the packet [in/out] is not modified here). Egress queues do not have a priority/profile mode and have no concept of multipoint.
Only one queue exists in the default SAP egress QoS policy (id=1) and also when a new sap-egress policy is created, this being queue 1 which is used for both unicast traffic and multipoint traffic. All FCs are assigned to this queue unless otherwise explicitly configured to a different configured queue.
When a SAP egress
policy is applied to a SAP, physical hardware queues on the IOM are allocated for each queue with FC assigned (if no QoS policy is explicitly configured, the default policy is applied).
As mentioned earlier, re-classification of IP traffic at a SAP egress is possible.
The following configuration shows a remark example with different FCs with different dot1p values. FC af also differentiates between in/out-of-profile and then remarks the DEI bit accordingly based on the packet’s profile.
configure qos
sap-egress 10 create
queue 1 create
rate 20000
exit
queue 2 create
rate 10000 cir 5000
exit
queue 3 create
rate 2000 cir 2000
exit
fc af create
queue 2
dot1p in-profile 3 out-profile 2
de-mark
exit
fc be create
queue 1
dot1p 0
exit
fc ef create
queue 3
dot1p 5
exit
exit
configure service
vpls 2 customer 1 create
sap 1/1/11:2.2 create
egress
qos 20
qinq-mark-top-only
exit
exit
exit
configured qos
sap-egress 20 create
queue 2 create
fc af create
queue 2
dscp in-profile af41 out-profile 43
exit
exit
The network QoS policy has an ingress section and an egress section. It is created under the qos node of the CLI and requires a unique identifier (from 1 to 65535). The default network policy has identifier 1. Network QoS policies are applied to IP interfaces configured on a network port.
configure router
interface "int-network-1"
address 192.168.0.1/30
port 1/1/11:1
qos 28
exit
interface "int-network-2"
address 192.168.0.5/30
port 1/1/12
qos 18
exit
exit
1.
|
EXP (for MPLS packets) or DSCP (for IP packets) Dot1p/DEI bit 2
|
For tunneled traffic (GRE or MPLS), the match is based on the outer encapsulation header unless the keyword ler-use-dscp is configured. In this case, traffic received on the router terminating the tunnel that is to be routed to the base router or a VPRN destination is classified based on the encapsulated packet DSCP value (assuming it is an IP packet) rather than its EXP bits.
For tunneled traffic exiting a network port, the remarking
3 applies to the DSCP/EXP bits in any tunnel encapsulation headers (GRE/MPLS) pushed
4 onto the packet by this system, together with the associated dot1p/DEI bits if the traffic has an outer VLAN tag. Note that for MPLS tunnels, the EXP bits in the entire label stack are remarked.
•
|
The remarking keyword in the network QoS policy at the network egress. The configuration combinations are summarized in Table 17.
|
There is one addition to the above to handle the marking for IP-VPN Option-B in order to remark the EXP, DSCP and dot1p/DEI bits at a network egress, this being remarking force. Without this, only the EXP and dot1p/DEI bits are remarked. Note that this does not apply to label switched path traffic switched at a label switched router.
configure qos
network 20 create
ingress
default-action fc af profile out
ler-use-dscp
dscp ef fc ef profile in
exit
egress
remarking
fc af
no dscp-in-profile
dscp-out-profile af13
lsp-exp-in-profile 6
lsp-exp-out-profile 5
exit
fc ef
dscp-in-profile af41
exit
exit
exit
exit
configure router
interface "int-network-3"
address 192.168.0.9/30
port 1/1/3
qos 20
exit
configure service
ies 1 customer 1 create
interface "int-access" create
address 192.168.1.1/30
tos-marking-state trusted
sap 1/1/10:1 create
exit
exit
no shutdown
exit
The network queue QoS policy defines the queues and their parameters together with the FC to queue mapping. The policies are named, with the default policy having the name default and are applied under
config>card>mda>network>ingress for the network ingress queues and under Ethernet:
config>port>ethernet>network, POS:
config>port>sonet-sdh>path>network, TDM:
config>port>tdm>e3 | ds3>network for the egress.
configure card 1
card-type iom3-xp
mda 1
mda-type m20-1gb-xp-sfp
network
ingress
queue-policy "network-queue-1"
exit
exit
exit
exit
configure port 1/1/11
ethernet
encap-type dot1q
network
queue-policy "network-queue-1"
exit
exit
no shutdown
exit
The following configuration defines a network-queue policy with FC af and
ef assigned to queues 2 and 3 for unicast traffic, and queue 9 for multipoint traffic.
configure qos
network-queue "network-queue-1" create
queue 1 create
mbs 50
high-prio-only 10
exit
queue 2 create
exit
queue 3 create
exit
queue 9 multipoint create
mbs 50
high-prio-only 10
exit
fc af create
multicast-queue 9
queue 2
exit
fc ef create
multicast-queue 9
queue 3
exit
exit
Figure 257 displays the default network policies with respect to classification, FC to queue mapping and remarking.
The packet buffer space is divided equally between ingress and egress. Beyond that, by default there is one pool for network ingress per FP25/IOM, with one pool per access ingress port and one pool per access/network egress port. This is shown in Figure 258. This segregation provides isolation against buffer starvation between the separate pools. An additional ingress pool exists for managed multicast traffic (the multicast path management pool) but this is beyond the scope of this note.
The following configuration changes the relative size for the ingress/egress buffer space on port 1/1/10 to 50% of the default.
configure port 1/1/10
modify-buffer-allocation-rate
ing-percentage-of-rate 50
egr-percentage-of-rate 50
exit
Each of the buffer pools created is further divided into a section of reserved buffers and another of shared buffers, see Figure 260. The amount of reserved buffers is calculated differently for network and access pools. For network pools, the default is approximately the sum of the CBS (committed burst size) values defined for all of the queues within the pool. The reserved buffer size can also be statically configured to a percentage of the full pool size (ingress: config>card>mda>network>ingress>pool; egress: config>port>network>egress>pool). For access pools, the default reserved buffer size is 30% of the full pool size and can be set statically to an explicit value (ingress: config>port>access>ingress>pool; egress: config>port>access>egress>pool).
configure port 1/1/10
network
egress
pool
resv-cbs 50
exit
exit
exit
exit
configure port 1/1/11
access
egress
pool
resv-cbs 50
exit
exit
exit
exit
configure port 1/1/1
access
ingress
pool
amber-alarm-threshold 25
red-alarm-threshold 50
resv-cbs 20 amber-alarm-action step 5 max 50
exit
exit
egress
pool
amber-alarm-threshold 25
red-alarm-threshold 25
resv-cbs 20 amber-alarm-action step 5 max 50
exit
exit
exit
19 2011/12/20 16:38:14.94 UTC MINOR: PORT #2050 Base Resv CBS Alarm
"Amber Alarm: CBS over Amber threshold: ObjType=port Owner=1/1/1 Type=accessEgre
ss Pool=default NamedPoolPolicy= Old ResvSize=13824 ResvSize=16128 SumOfQ ResvSi
ze=3744 Old ResvCBS=20 New ResvCBS=25"
configure port 1/1/1
ethernet
mode hybrid
encap-type dot1q
exit
hybrid-buffer-allocation
ing-weight access 70 network 30
egr-weight access 70 network 30
exit
Queue sizes change dynamically when packets are added to a queue faster than they are removed, without any traffic the queue depth is zero. When packets arrive for a queue there will be request for buffer memory which will result in buffers being allocated dynamically from the buffer pool that the queue belongs to.
configure qos
sap-ingress 10 create
queue 1 create
mbs 10000
cbs 100
high-prio-only 0
exit
exit
In order to gracefully manage the use of the shared portion of the buffer pool, WRED can be configured on that part of the pool, and therefore applies to all queues in the shared pool as it fills. WRED is a congestion avoidance mechanism designed for TCP traffic. This note will only focus on the configuration of WRED. WRED-per-queue is an option to have WRED apply on a per egress queue basis, but is not covered here.
configure qos
slope-policy "slope1" create
high-slope
start-avg 80
max-avg 100
max-prob 100
no shutdown
exit
low-slope
max-avg 100
start-avg 80
max-prob 100
no shutdown
exit
time-average-factor 12
exit
exit
configure port 1/1/10
access
ingress
pool
slope-policy "slope1"
exit
exit
exit
exit
config>qos#
qos
sap-egress 10 create
queue 1 create
percent-rate 50.00 cir 10.00 port-limit
exit
configure qos
sap-ingress 20 create
queue 2 create
adaptation-rule pir max cir min
rate 10000 cir 5000
exit
exit
The following displays show command output for:
The show pools command output for network-ingress and network/access-egress is similar to that of access-ingress and is not included here.
B:PE-1# show pools 1/1/10 access-ingress
===============================================================================
Pool Information
===============================================================================
Port : 1/1/10
Application : Acc-Ing Pool Name : default
Resv CBS : Sum
-------------------------------------------------------------------------------
Queue-Groups
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Utilization State Start-Avg Max-Avg Max-Prob
-------------------------------------------------------------------------------
High-Slope Up 80% 100% 100%
Low-Slope Up 80% 100% 100%
Time Avg Factor : 12
Pool Total : 8448 KB
Pool Shared : 5856 KB Pool Resv : 2592 KB
High Slope Start Avg : 5088 KB High slope Max Avg : 5856 KB
Low Slope Start Avg : 5088 KB Low slope Max Avg : 5856 KB
Pool Total In Use : 6861 KB
Pool Shared In Use : 5853 KB Pool Resv In Use : 1008 KB
WA Shared In Use : 5853 KB
Hi-Slope Drop Prob : 100 Lo-Slope Drop Prob : 100
-------------------------------------------------------------------------------
Name Tap FC-Maps MBS HP-Only A.PIR A.CIR
CBS Depth O.PIR O.CIR
-------------------------------------------------------------------------------
28->1/1/10:28->3
1/* af 10176 0 10000 0
1008 0 10000 0
28->1/1/10:28->1
1/* be l2 l1 h2 1224 144 1000000 0
h1 nc 0 0 Max 0
28->1/1/10:28->11
MCast be l2 af l1 1224 144 1000000 0
h2 ef h1 nc 0 0 Max 0
1->1/1/10:1->1
1/* be l2 l1 h2 1224 144 1000000 0
h1 nc 0 0 Max 0
1->1/1/10:1->3
1/* af 10176 0 10000 0
1008 6858 10000 0
1->1/1/10:1->2
1/* ef 1224 144 1000000 0
0 0 Max 0
28->1/1/10:28->2
1/* ef 1224 144 1000000 0
0 0 Max 0
===============================================================================
B:PE-1#
This note has described the basic QoS functionality available on the Alcatel-Lucent 7x50 platforms, specifically focused on the FP2 chipset. This comprises of the use of queues to shape traffic at the ingress and egress of the system and the classification, buffering, scheduling and remarking of traffic on both access, network and hybrid ports.