VXLAN DSCP Mapping
VXLAN DSCP Mapping allows selecting Differentiated Services Code Point DSCPand Traffic Class TC values for packets at VTEPs ( VXLAN Tunnel Endpoint) along VXLAN encapsulation and decapsulation directions respectively.
An incoming packet from an edge port is encapsulated with a new IP and VXLAN header before being sent out to a remote VTEP via a core facing port for encapsulation direction.When this is enabled, the DSCP field of the outgoing packet is set as the value of the DSCP of the incoming packet at the edge port.
An incoming VXLAN packet on a core port is decapsulated and forwarded out via an edge port for decapsulation direction. When this is enabled, the TC value is derived from the value of the DSCP of the incoming VXLAN encapsulated packet at the core port. This is applicable for both VXLAN Bridging and Routing.
The following command enables the propagation of the DSCP field from the incoming packet to the VXLANencapsulated packet.
switch(config)#interface vxlan 1 switch(config-if-Vx1)#vxlan qos dscp propagation encapsulation
switch(config)#interface vxlan 1 switch(config-if-Vx1)#vxlan qos dscp to traffic-class decapsulation
switch#show vxlan qos VXLAN ECN Propagation is Disabled. Outer header DSCP is derived from Inner DSCP. Traffic Class is derived from Outer DSCP.
The core ports must be in DSCP Trust mode in order to derive TC on the outer DSCP field of the incoming VXLAN packet.