Qos-profiles are referenced under the "action" context of qos-policies, and app-qos-policies. The main function of a qos-profile is to associate a forwarding-class with the matching flow (to classify the traffic), besides that it can also enforce a "policer"
to rate-limit the traffic, one can also set up a loss-priority (high/low) association, along with controlling whether the flow will be subject to dscp re-write
class-of-service {
qos-profiles {
qos-profile cs6 {
description "Network control class";
forwarding-class fc_nc;
loss-priority low;
dscp-rw-enable yes;
dot1p-rw-enable no;
}
qos-profile ef {
description "Realtime class";
forwarding-class fc_ef;
loss-priority low;
dscp-rw-enable yes;
dot1p-rw-enable no;
}
qos-profile cs5 {
description "Realtime class";
forwarding-class fc_ef;
loss-priority low;
dscp-rw-enable yes;
dot1p-rw-enable no;
}
qos-profile af41 {
description "Priority class";
forwarding-class fc_af;
loss-priority low;
dscp-rw-enable yes;
dot1p-rw-enable no;
}