To create a network QoS policy of the port type when operating in network mode, define the following:
Specify a network policy ID value. The system does not dynamically assign a value.
Set the network-policy-type parameter to port.
Include a description that provides a brief overview of policy features.
Modify the egress DSCP and dot1p marking map; otherwise, the default values are applied:
remarking
When enabled, this command remarks all IP packets that egress the specified network port. The remarking is based on the FC-to-DSCP bit mapping defined in the remark policy and associated under the egress node of the network QoS policy for all IP traffic. FC-to-dot1p marking for MPLS packets is not supported; it is supported only for IP packets.
FC criteria
The FC name represents an egress queue. Specify FC criteria to define the egress characteristics of the queue and the marking criteria of packets flowing through it.
DSCP and dot1p
Specify the DSCP and dot1p value to use for IP packets requiring marking that egress on this FC queue that are in or out of profile.
Specify ingress criteria as either DSCP or dot1p (but not both) to FC mapping for all IP packets. Define the following:
default action
Defines the default action to take for packets that have undefined DSCP or dot1p bits set. The default action specifies the FC to which these packets are assigned.
DSCP or dot1p
Creates a mapping between the DSCP or dot1p bits of network ingress IP traffic and the FC. Ingress IP traffic that match the specified DSCP or dot1p bits are assigned to the corresponding FC.
The following example shows the command usage to associate a network QoS policy with the network port.
network port (in network mode)
config> port
ethernet
network
qos network-policy-id
Use the following syntax to create a network QoS policy.
config>qos#
network policy-id [network-policy-type network-policy-type]
description description-string
scope {exclusive|template}
egress
remarking
remark <policy-id>
ingress
default-action fc {fc-name} profile {in|out}
lsp-exp lsp-exp-value fc fc-name profile {in | out}
fc {fc-name}
meter {meter-id}
multicast-meter {id}
meter meter-id [multipoint]
adaptation-rule cir {closest | max | min} pir {closest | max | min}
cbs {size-in-kbits}
mbs {size-in-kbits}
mode {trtcm | srtcm}
rate cir cir-rate-in-kbps [pir pir-rate-in-kbps]
mpls-lsp-exp-profile policy-id
The following is a sample configuration output of a network port type QoS policy on the 7210 SAS-T, 7210 SAS-Sx/S 1/10GE, 7210 SAS-Sx 10/100GE, and 7210 SAS-Mxp.
*A:dut-d>config>qos>network# info detail
----------------------------------------------
description "Default network-port QoS policy."
scope template
ingress
default-action fc be profile out
meter 1 create
mode trtcm1
adaptation-rule cir closest pir closest
rate cir 0 pir max
mbs default kbits
cbs default kbits
exit
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 af41 fc h2 profile in
exit
egress
no remarking
fc af
dscp-in-profile af11
dscp-out-profile af12
no dot1p
dot1p-in-profile 3
dot1p-out-profile 2
no de-mark
exit
fc be
dscp-in-profile be
dscp-out-profile be
no dot1p
dot1p-in-profile 0
dot1p-out-profile 0
no de-mark
exit
fc ef
The following is a sample configuration output of a network port type QoS policy on the 7210 SAS-R6 and 7210 SAS-R12.
A:Dut-B>config>qos>network# info detail
----------------------------------------------
description "Default network-port QoS policy."
scope template
ingress
default-action fc be profile out
meter 1 create
mode trtcm1
adaptation-rule cir closest pir closest
rate cir 0 pir max
mbs default kbits
cbs default kbits
exit
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 af41 fc h2 profile in
exit
egress
no remarking
remark 1
exit
----------------------------------------------
A:Dut-B>config>qos>network#