Packet Marking Overview
You can use packet marking in input policy maps to set or modify the attributes for traffic belonging to a specific class. For example, you can change the CoS value in a class or set IP DSCP or IP precedence values for a specific type of traffic. These new values are then used to determine how the traffic should be treated.
Note |
From Cisco IOS XR Release 7.2.12 onwards, support for marking packets on Layer 2 transport interfaces is the same as the support for marking on Layer 3 interfaces. However, this support applies only to the main interface (physical and bundle interfaces), and not on the sub-interfaces. |
Default Marking
When an ingress or egress interface adds VLAN tags or MPLS labels, it requires a default value for the class of service and EXP values that go into those tags and labels.
On the router, one ingress default QoS mapping profile and one egress default QoS mapping profile are created and configured per device during initialization.
QoS Behavior for Generic Routing Encapsulation (GRE) Tunnels
Feature Name |
Release Information |
Feature Description |
---|---|---|
QoS Behavior for Generic Routing Encapsulation (GRE) Tunnels: Default Marking |
Release 7.3.1 |
With the support for GRE encapsulation and decapsulation tunnel interfaces, there are some important updates to QoS behavior for GRE tunnels. These updates are applicable for default packet marking and involve Type of Service (ToS) and MPLS experimental bits. |
GRE Encapsulation
If you do not configure Type of Service (ToS), the outer IP precedence value or the differentiated services code point (DSCP) value is copied from the inner IP header. If you configure ToS, the outer IP precedence value or DCSP value is as per the ToS configuration.
GRE Decapsulation
During decapsulation, the MPLS experimental bits (EXP) are derived from the outer IP packet.
For more information on GRE tunnels, see the Interfaces Configuration Guide for Cisco 8000 Series Routers, IOS XR Release 7.3.x.
Packet Marking
The packet marking feature, also called explicit marking, provides users with a means to differentiate packets based on the designated markings. The router supports ingress and egress packet marking.
Supported Packet Marking Operations
This table shows the supported packet marking operations.
Supported Mark Types |
Range |
Support for Unconditional Marking |
Support for Conditional Marking |
---|---|---|---|
set discard-class |
0-1 |
ingress |
No |
set dscp |
0-63 |
ingress, egress |
No |
set mpls experimental topmost |
0-7 |
ingress, egress |
No |
set precedence |
0-7 |
ingress, egress |
No |
set qos-group |
0-31 |
ingress |
No |
QoS Behavior for Generic Routing Encapsulation (GRE) Tunnels
Feature Name |
Release Information |
Feature Description |
---|---|---|
QoS Behavior for Generic Routing Encapsulation (GRE) Tunnels: Explicit Marking |
Release 7.3.1 |
With the support for GRE encapsulation and decapsulation tunnel interfaces, there are some important updates to QoS behavior for GRE tunnels. These updates are applicable for explicit packet marking and involve QoS behavior during ingress and egress. |
GRE Encapsulation
During encapsulation of IPv4/IPv6 payload inside the GRE header, QoS behavior is as follows:
-
Ingress: QoS supports classification on the payload Layer 3 fields or EXP and remarking payload IP header DSCP.
-
Egress: QoS supports setting outer GRE IP header DSCP. It doesn’t overwrite the Tunnel Type of Service (ToS) configuration and doesn’t remark GRE IP header DCSP.
GRE Decapsulation
During decapsulation of the outer GRE header (during which the inner IPv4/IPv6/MPLS payload is forwarded to the next-hop router), QoS behavior is as follows:
-
Ingress: QoS supports classification on Layer 3 fields of outer GRE using the set qos-group command. Setting DSCP on the ingress interface sets DSCP for the inner headers.
-
Egress: QoS supports classification using qos-group to set DSCP or EXP for egress packets.
For more information on GRE tunnels, see the Interfaces Configuration Guide for Cisco 8000 Series Routers, IOS XR Release 7.3.x.