One can set up app-qos-policies to match a flow in a bi-directional manner, with qos-policy a traffic flow in matched in one-direction so you may need to set up two qos-policy rules if you want to match a traffic flow in both directions. Instead, you can set
up an app-qos-policy rule, where you can match pre-defined applications, user-defined applications, or address-groups, once a flow matches the rule, the action is imposed bi-directionally.
Sample configuration is as below
class-of-service {
app-qos-policies {
app-qos-policy-group Default-Policy {
rules {
app-qos-policy AUDIO {
match {
application {
predefined-filter-list [ Audio-Video-Streaming ];
}
}
set {
action allow;
tcp-session-keepalive disabled;
qos-profile ef;
}
}
app-qos-policy MS_TEAMS {
rule-disable false;
match {
application {
predefined-application-list [ MS_TEAMS ];
}
}
set {
action allow;
qos-profile af41;
}
}
app-qos-policy MS_SHARE_POINT {
match {
application {
predefined-application-list [ SHAREPOINT ];
}
}
set {
action allow;
qos-profile af21;
}