The DEI bit in the received packet is used to determine the ingress profile for the packet. If DEI equals zero in the received packet, the packet is considered in-profile or green, and if DEI equals one, the packet is considered out-of-profile or yellow.
The profile assigned on ingress can be used to enable color-aware metering with SAP ingress policing and access-uplink port ingress policing. The profile of the packet can be reassigned by ingress meters/policers. When policing is used on SAP ingress, the final profile of the packet is determined by the meter/policers, based on the configured CIR/PIR rates. If a packet is below CIR rate, it is assigned in-profile/green and if it exceeds the CIR rate and is below the PIR rate, it is assigned out-of-profile/yellow.
The final profile assigned at ingress is used by egress to determine the WRED slope to use. The WRED slope determines whether the packet is eligible to be assigned a buffer and can be queued up on egress queue for transmission.
The following support is available for DEI classification:
Under the port configuration, a command is provided to enable DEI-based classification, which enables the use of DEI for ingress classification on a per-port basis. The initial profile (or color) is based on the DEI/CFI bit. If DEI equals zero in the received packet, the packet is considered in-profile or green, and if DEI equals one, the packet is considered out-of-profile or yellow by the subsequent processing flow in the hardware. The FC classification can be done using MAC or IP criteria.
All the SAPs configured on the port (access or hybrid) can use DEI classification for color-aware metering, if required. When DEI classification is enabled on the port, the user has an option to use color-blind metering for some SAPs and color-aware metering for other SAPs configured on the same port. When using color-blind mode, the ingress profile assigned to the packet based on the DEI bit is ignored.
The user is provided with an option in the SAP-ingress policy to configure a policer as color aware or color blind. In color-aware mode, the DEI bit in the packet determines the ingress profile of the packet. If the user configures the meter/policer mode as color-aware, the DEI bit of the incoming packet is used by the policer as the ingress profile.
When using policing, the final profile of the packet is assigned by the ingress meter (based on configured CIR/PIR rate) in both color-aware and color-blind mode.
For network port policies, DEI-based classification is supported only when dot1p classification criteria are in use; it cannot be used when DSCP-based classification is used.