GRE tunnel marking is configured with the
set
ip
precedence
tunnel or
set
ip
dscp
tunnel command on PE routers that carry incoming traffic from customer sites. GRE tunnel marking allows you to mark the header of
a GRE tunnel by setting a DSCP value from 0 to 63 or an IP precedence value from 0 to 7 to control GRE tunnel traffic bandwidth
and priority.
GRE traffic can also be marked under traffic policing with the
set-dscp-tunnel-transmit and the
set-prec-tunnel-transmit actions (or keywords) of the
police command. The tunnel marking value is from 0 to 63 for the
set-dscp-tunnel-transmit actions and from 0 to 7 for the
set-prec-tunnel-transmit command. Under traffic policing, tunnel marking can be applied with conform, exceed, and violate action statements, allowing
you to automatically apply a different value for traffic that does not conform to the expected traffic rate.
After the tunnel header is marked, GRE traffic is carried through the tunnel and across the service provider network. This
traffic is decapsulated on the interface of the PE router that carries the outgoing traffic to the other customer site. The
configuration of GRE tunnel marking is transparent to customer sites. All internal configuration is preserved.
There is a different between the
set
ip
precedence and
set
ip
dscp commands and the
set
ip
precedence
tunnel and
set
ip
dscp
tunnel commands:
-
The
set
ip
precedence and
set
ip
dscp commands are used to set the IP precedence value or DSCP value in the header of an IP packet.
-
The
set
ip
precedence
tunnel and
set
ip
dscp
tunnel commands are used to set (mark) the IP precedence value or DSCP value in the tunnel header that encapsulates the GRE traffic.
-
The
set
ip
precedence
tunnel and
set
ip
dscp
tunnel commands have no effect on egress traffic that is not encapsulated in a GRE tunnel.