Configuring CoS for Tunnels
For Adaptive Services, Link Services, and Tunnel PICs installed on T-series platforms and M-series platforms with enhanced FPCs, class-of-service information is preserved inside GRE and IP-IP tunnels.
For the ES PIC installed on T-series platforms and M-series platforms with enhanced FPCs, class-of-service information is preserved inside IPSec tunnels. For IPsec tunnels, you do not need to configure CoS, because the ES PIC copies the TOS byte from the inner IP header to the GRE or IP-IP header.
To configure class-of-service (CoS) for tunnels, you can include the following statements at the
[edit class-of-service]hierarchy level of the configuration:class-of-service {interfaces {interface-name{unitlogical-unit-number{rewrite-rules {dscp (rewrite-name| default);dscp-ipv6 (rewrite-name| default);exp (rewrite-name| default)protocolprotocol-types;exp-push-push-push default;exp-swap-push-push default;ieee-802.1(rewrite-name| default);inet-precedence (rewrite-name| default);}}}}rewrite-rules {(dscp | dscp-ipv6 | exp | ieee-802.1 | inet-precedence)rewrite-name{import (rewrite-name| default);forwarding-classclass-name{loss-prioritylevelcode-point (alias|bits);}}}}