You can setup dscp re-write rules, which can then be called under a tunnel interface or a wan-interface, to over-write the dscp values on the inner packet (the packet recieved on the lan interface) and/or the outer packet header (vxlan header, the marking which
is visible when the packet is traversing the underlay).
To set up a dscp re-write rule the match criteria is the "forwarding class" and loss-priority, the action essentially is to set the dscp values. You can also enable 'copy-from-inner' if you want to copy the dscp values from the packets recieved on the lan
interface, onto the outer header (when it's sent over the underlay), you can also enable 'copy-from-outer' if you want to copy the dscp values from the incoming packets, on the wan, to the inner packet before it's set towards the lan interface
class-of-service {
rw-rules {
dscp {
rewrite-table LAN-to-MPLS {
forwarding-class fc_nc {
loss-priority low {
code-point cs6;
}
}
forwarding-class fc_ef {
loss-priority low {
code-point ef;
}
}
forwarding-class fc_af {
loss-priority low {
code-point af41;
}
loss-priority high {
code-point af43;
}
}
rw-rule-copy-attribute {
copy-from-outer false;
copy-from-inner false;
}
Once you configure the dscp re-write rules you can associate them with a tunnel interface or wan interface