The ingress component of the policy defines how DiffServ code points (DSCPs) and MPLS EXP bits are mapped to internal forwarding class and profile state. The forwarding class and profile state define the Per Hop Behavior (PHB) or the QoS treatment through the router. The mapping on each network interface defaults to the mappings defined in the default network QoS policy until an explicit policy is defined for the network interface.
The egress component of the network QoS policy defines the DiffServ oriented queuing parameters associated with each forwarding class.
Network policy-id 1 exists as the default policy that is applied to all network interfaces by default. The network
policy-id 1 cannot be modified or deleted. It defines the default DSCP-to-FC mapping and MPLS EXP-to-FC for the ingress. For the egress, it defines six forwarding classes which represent individual queues and the packet marking criteria.
New (non-default) network policy parameters can be modified. The no form of the command reverts the object to the default values. A new network policy must include the definition of at least one queue and specify the default-action. Incomplete network policies cannot be applied to network interfaces.
Changes made to a policy are applied immediately to all network interface where the policy is applied. For this reason, when a policy requires several changes, it is recommended that you copy the policy to a work area policy-id. The work-in-progress copy can be modified until all the changes are made and then the original policy-id can be overwritten with the
config qos copy command.
This section describes a mechanism that provides the ability to ignore the network ingress QoS mapping of a terminated tunnel containing an IP packet that is to be routed to a base router or VPRNdestination. This is advantageous when the mapping for the tunnel QoS marking does not accurately or completely reflect the required QoS handling for the IP routed packet. When the mechanism is enabled on an ingress network IP interface, the IP interface will ignore the tunnel’s QoS mapping and derive the internal forwarding class and profile based on the precedence or DiffServe Code Point (DSCP) values within the routed IP header ToS field compared to the Network QoS policy defined on the IP interface.
DSCP Name DSCP Value DSCP Value DSCP Value Label
Decimal Hexadecimal Binary
=============================================================
Default 0 0x00 0b000000 be
nc1 48 0x30 0b110000 h1
nc2 56 0x38 0b111000 nc
ef 46 0x2e 0b101110 ef
af11 10 0x0a 0b001010 assured
af12 12 0x0c 0b001100 assured
af13 14 0x0e 0b001110 assured
af21 18 0x12 0b010010 l1
af22 20 0x14 0b010100 l1
af23 22 0x16 0b010110 l1
af31 26 0x1a 0b011010 l1
af32 28 0x1c 0b011100 l1
af33 30 0x1d 0b011110 l1
af41 34 0x22 0b100010 h2
af42 36 0x24 0b100100 h2
af43 38 0x26 0b100110 h2
default* 0
•
|
Each network QoS policy must have a unique policy ID.
|
Configuring and applying QoS policies other than the default policy is optional. A default network policy of the appropriate type is applied to each router interface.
•
|
You can modify egress criteria to customize the forwarding class queues to be instantiated. Otherwise, the default values are applied.
|
→
|
LSP EXP — The EXP value is used for all MPLS labeled packets requiring marking that egress on this forwarding class queue that are in or out of profile.
|
•
|
Ingress criteria — Specifies the DSCPDot1p to forwarding class mapping for all IP packets and define the MPLS EXP bits to forwarding class mapping for all labeled packets.
|
→
|
LSP EXP — Creates a mapping between the LSP EXP bits of the network ingress traffic and the forwarding class. Ingress traffic that matches the specified LSP EXP bits will be assigned to the corresponding forwarding class.
|
scope {exclusive|template
}
fc {be|l2|af|l1|h2|ef|h1|nc
}
dot1p dot1p-priority fc {fc-name} profile {in|out}
dscp dscp-name fc
{be|l2|af|l1|h2|ef|h1|nc
} profile
{in|out
}
lsp-exp lsp-exp-value fc
fc-name profile
{in|out
}
A:ALA-10:A:ALA-12>config>qos# info
#------------------------------------------
echo "QoS Policy Configuration"
#------------------------------------------
...
network 600 create
description "Network Egress Policy"
ingress
default-action fc ef profile in
exit
egress
remarking
exit
exit
...
#------------------------------------------
A:ALA-12>config>qos#
A:ALA-7>config>router# info
#------------------------------------------
echo "IP Configuration"
#------------------------------------------
...
interface "ALA-1-2"
address 10.10.4.3/24
qos 600
exit
...
----------------------------------------------
A:ALA-7>config>router#
The default network policy for IP interfaces is identified as policy-id
1. Default policies cannot be modified or deleted. The following displays default network policy parameters:
A:ALA-49>config>qos>network# info detail
----------------------------------------------
description "Default network QoS policy."
scope template
ingress
default-action fc be profile out
no ler-use-dscp
dscp be fc be profile out
dscp ef fc ef profile in
dscp cs1 fc l2 profile in
dscp nc1 fc h1 profile in
dscp nc2 fc nc profile in
dscp af11 fc af profile in
dscp af12 fc af profile out
dscp af13 fc af profile out
dscp af21 fc l1 profile in
dscp af22 fc l1 profile out
dscp af23 fc l1 profile out
dscp af31 fc l1 profile in
dscp af32 fc l1 profile out
dscp af33 fc l1 profile out
dscp af41 fc h2 profile in
dscp af42 fc h2 profile out
dscp af43 fc h2 profile out
lsp-exp 0 fc be profile out
lsp-exp 1 fc l2 profile in
lsp-exp 2 fc af profile out
lsp-exp 3 fc af profile in
lsp-exp 4 fc h2 profile in
lsp-exp 5 fc ef profile in
lsp-exp 6 fc h1 profile in
lsp-exp 7 fc nc profile in
exit
egress
no remarking
fc af
dscp-in-profile af11
dscp-out-profile af12
lsp-exp-in-profile 3
lsp-exp-out-profile 2
dot1p-in-profile 2
dot1p-out-profile 2
exit
fc be
dscp-in-profile be
dscp-out-profile be
lsp-exp-in-profile 0
lsp-exp-out-profile 0
dot1p-in-profile 0
dot1p-out-profile 0
exit
fc ef
dscp-in-profile ef
dscp-out-profile ef
lsp-exp-in-profile 5
lsp-exp-out-profile 5
dot1p-in-profile 5
dot1p-out-profile 5
exit
fc h1
dscp-in-profile nc1
dscp-out-profile nc1
lsp-exp-in-profile 6
lsp-exp-out-profile 6
dot1p-in-profile 6
dot1p-out-profile 6
exit
fc h2
dscp-in-profile af41
dscp-out-profile af42
lsp-exp-in-profile 4
lsp-exp-out-profile 4
dot1p-in-profile 4
dot1p-out-profile 4
exit
fc l1
dscp-in-profile af21
dscp-out-profile af22
lsp-exp-in-profile 3
lsp-exp-out-profile 2
dot1p-in-profile 3
dot1p-out-profile 3
exit
fc l2
dscp-in-profile cs1
dscp-out-profile cs1
lsp-exp-in-profile 1
lsp-exp-out-profile 1
dot1p-in-profile 1
dot1p-out-profile 1
exit
fc nc
dscp-in-profile nc2
dscp-out-profile nc2
lsp-exp-in-profile 7
lsp-exp-out-profile 7
dot1p-in-profile 7
dot1p-out-profile 7
exit
exit
----------------------------------------------
A:ALA-49>config>qos>network#
A:ALA-7>config>router# info
#------------------------------------------
echo "IP Configuration"
#------------------------------------------
...
interface "ALA-1-2"
address 10.10.4.3/24 broadcast host-ones
no port
no arp-timeout
no allow-directed-broadcasts
icmp
mask-reply
redirects 100 10
unreachables 100 10
ttl-expired 100 10
exit
qos 1
ingress
no filter
exit
egress
no filter
exit
no mac
no ntp-broadcast
no cflowd
no shutdown
exit
interface "ALA-1-3"
...
#------------------------------------------
A:ALA-7>config>router#
A:ALA-12>config>qos# info detail
---------------------------------------------
...
network 1 create
description "Default network QoS policy."
scope template
ingress
default-action fc be profile out
dscp be fc be profile out
dscp ef fc ef profile in
dscp cs1 fc l2 profile in
dscp nc1 fc h1 profile in
dscp nc2 fc nc profile in
dscp af11 fc af profile in
dscp af12 fc af profile out
dscp af13 fc af profile out
dscp af21 fc l1 profile in
dscp af22 fc l1 profile out
...
network 600 create
description "Default network QoS policy."
scope template
ingress
default-action fc be profile out
dscp be fc be profile out
dscp ef fc ef profile in
dscp cs1 fc l2 profile in
dscp nc1 fc h1 profile in
dscp nc2 fc nc profile in
dscp af11 fc af profile in
dscp af12 fc af profile out
dscp af13 fc af profile out
dscp af21 fc l1 profile in
dscp af22 fc l1 profile out
...
network 700 create
description "Default network QoS policy."
scope template
ingress
default-action fc be profile out
dscp be fc be profile out
dscp ef fc ef profile in
dscp cs1 fc l2 profile in
dscp nc1 fc h1 profile in
dscp nc2 fc nc profile in
dscp af11 fc af profile in
dscp af12 fc af profile out
dscp af13 fc af profile out
dscp af21 fc l1 profile in
dscp af22 fc l1 profile out
...
---------------------------------------------
A:ALA-12>config>qos#
You can change existing policies, except the default policies, and entries in the CLI. The changes are applied immediately to all interfaces where the policy is applied. To prevent configuration errors use the copy command to make a duplicate of the original policy to a work area, make the edits, and then overwrite the original policy.