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.
To create a network QoS policy when operating, define the following:
A network policy ID value. The system does not dynamically assign a value.
Include a description. The description provides a brief overview of policy features.
Egress criteria can be modified to customize the forwarding class queues to be instantiated. Otherwise, the default values are applied.
remarking
When enabled, this command remarks all packets that egress on the specified network port. The remarking is based on the forwarding class to DSCP and LSP EXP bit mapping defined under the egress node of the network QoS policy.
forwarding class criteria
The forwarding class name represents an egress queue. The forwarding class criteria define the egress characteristics of the queue and the marking criteria of packets flowing through it.
DE marking
This specifies that the DE bit should be marked based on whether the packet profile is in-profile, inplus-profile, out-of-profile, or exceed-profile.
dot1p
The dot1p value is used for all VLAN-tagged packets requiring marking that egress on this forwarding class queue, with the option of specifying a different value for packets that are in-profile or out-of-profile. Inplus-profile traffic is marked with the same values as in-profile traffic. Exceed-profile traffic is marked with the same values as out-of-profile traffic.
DSCP
The DSCP value is used for all IP packets requiring marking that egress on this forwarding class queue that are in-profile or out-of-profile. Inplus-profile traffic is marked with the same values as in-profile traffic. Exceed-profile traffic is marked with the same values as out-of-profile traffic.
LSP EXP
The EXP value is used for all MPLS-labeled packets requiring marking that egress on this forwarding class queue that are in-profile or out-of-profile. Inplus-profile traffic is marked with the same values as in-profile traffic. Exceed-profile traffic is marked with the same values as out-of-profile traffic.
port redirection
This specifies that the traffic should be redirected to a network egress queue group policer or queue.
DSCP
Creates a mapping between the DSCP of the network egress traffic and the forwarding class and profile. Egress traffic that matches the specified DSCP is assigned to the corresponding forwarding class with the specified profile.
IP criteria
Creates a mapping between the possible match criteria of the network egress traffic and the forwarding class and profile. Egress traffic that matches the IPv4 criteria is assigned to the corresponding forwarding class and profile.
IPv6 criteria
Creates a mapping between the possible match criteria of the network egress traffic and the forwarding class and profile. Egress traffic that matches the IPv6 criteria is assigned to the corresponding forwarding class and profile.
prec
Creates a mapping between the IP precedence of the network egress traffic and the forwarding class and profile. Egress traffic that matches the specified IP precedence is assigned to the corresponding forwarding class with the specified profile.
Ingress criteria specifies the DSCP- or dot1p-to-forwarding class mapping for all IP packets and defines the MPLS EXP bits-to-forwarding class mapping for all labeled packets.
default action
Defines the default action to be taken for packets that have an undefined configured classification. The default action specifies the forwarding class and profile to which such packets are assigned.
dot1p
Creates a mapping between the dot1p of the network ingress traffic and the forwarding class and profile. Ingress traffic that matches the specified dot1p is assigned to the corresponding forwarding class and profile.
DSCP
Creates a mapping between the DSCP of the network ingress traffic and the forwarding class and profile. Ingress traffic that matches the specified DSCP is assigned to the corresponding forwarding class.
forwarding class
The forwarding class name represents an ingress queue.
IP criteria
Creates a mapping between the possible match criteria of the network ingress traffic and the forwarding class and profile. Ingress traffic that matches the IPv4 criteria is assigned to the corresponding forwarding class and profile.
IPv6 criteria
Creates a mapping between the possible match criteria of the network ingress traffic and the forwarding class and profile. Ingress traffic that matches the IPv6 criteria is assigned to the corresponding forwarding class and profile.
LER use DSCP
Specifies that DSCP matching based on the tunneled IP packet should be used on an LER instead of matching on the outer encapsulated header.
LSP EXP
Creates a mapping between the LSP EXP bits of the network ingress traffic and the forwarding class and profile. Ingress traffic that matches the specified LSP EXP bits is assigned to the corresponding forwarding class and profile.
Use the following CLI syntax to create a network QoS policy:
config>qos# network network-policy-id [create]
description description-string
egress
dscp dscp-name fc fc-name profile {in | out | exceed
| inplus}
fc {be | l2 | af | l1 | h2 | ef | h1 | nc}
de-mark [force de-value]
dot1p dot1p-priority
dot1p-in-profile dot1p-priority
dot1p-out-profile dot1p-priority
dscp-in-profile dscp-name
dscp-out-profile dscp-name
lsp-exp-in-profile lsp-exp-value
lsp-exp-out-profile lsp-exp-value
port-redirect-group {queue queue-id | policer
plcr-id [queue queue-id]}
prec dscp-name fc fc-name profile {in | out | exceed
| inplus}
remarking
ip-criteria
entry entry-id [create]
action [fc fc-name profile {in | out | exceed
| inplus}]
[port-redirect-group {queue queue-id |
policer policer-id [queue queue-id]}]
description description-string
match [protocol protocol-id]
dscp dscp-name
dst-ip {ip-address/mask | ip-address ipv4-
address-mask}
dst-port [{lt | gt | eq} {dst-port-number |
range start end}]
fragment {true | false}
icmp-type icmp-type
src-ip {ip-address/mask | ip-address ipv4-
address-mask}
src-port [{lt | gt | eq} {src-port-number |
range start end}]
renum old-entry-id new-entry-id
ipv6-criteria
entry entry-id [create]
action fc fc-name profile {in | out |exceed |
inplus}]
[port-redirect-group {queue queue-id |
policer policer-id [queue queue-id]}]
description description-string
match [next-header next-header]
dscp dscp-name
dst-ip {ipv6-address/mask | ipv6-address
ipv6-address-mask}
dst-port [{lt | gt | eq} {dst-port-number |
range start end}]
fragment {true | false | first-only | non-
first-only}
src-ip {ipv6-address/mask | ipv6-address
ipv6-address-mask}
src-port [{lt | gt | eq} src-port-number
src-port range start end
renum old-entry-id new-entry-id
ler-use-dscp
lsp-exp lsp-exp-value fc fc-name profile {in | out}
scope {exclusive | template}
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#