Hi,
An LSR would only look at the MPLS header to label-switch the packet, thus any CoS required needs MPLS EXP bits to be set.
As part of the CoS Configuration, you can configure and apply rewrite rules to mark/re-mark the packets accordingly on the egress interface such that Core facing MPLS interfaces gets MPLS EXP bits set based on the forwarding class the packet entered [either through BA or MF classifier].
Example:
class-of-service {
....
rewrite-rules {
exp CORE_EXP_REWRITE {
forwarding-class NC {
loss-priority low code-point 110;
}
}
}
interfaces x/x/x {
unit * {
classifiers {
exp BA_CORE_EXP_CLASSIFIER;
}
rewrite-rules {
exp CORE_EXP_REWRITE;
}
}
}
....
}
When using MF classifier at the network edge [for example ingress PE], setting a DSCP marking would mark the IP header which may be left intact going through an MPLS core and be read and CoS treated on the egress PE which would look at the IP header.
Setting the forwarding-class would queue the packets and may be sufficient along with rewrite rules to EXP mark the MPLS header on MPLS core egress interfaces.
I also recommend as good practice to set the loss-priority in the MF classifier to avoid any mistreatment on the CoS path.
Worth noting also is that routing protocol traffic is marked with DSCP48 [ToS 0xc0] by default.
By wanting to put ldp traffic into an LSP, I guess you are referring to tLDP.
Cheers,
Ashvin
#COS#MPLS#ldp