﻿# RoCE markings across ingress trust and egress rewriting

Trace packet marking, internal switch priority and egress rewriting separately when a correctly marked RoCE flow reaches the wrong queue.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/roce-ingress-trust-egress-remarking/
Language: en

## The failure hidden by a correct capture

A training sender emits the intended DSCP, yet the next switch counts its traffic in an unexpected class. A source capture verifies the header at that observation point. It cannot establish the ingress trust rule, internal switch priority, queue selection or outgoing header at another device. Treat this as a sequence of transformations, rather than a search for a single correct priority number.

## The internal value is not a header

The [Cumulus QoS documentation](https://docs.nvidia.com/networking-ethernet-software/cumulus-linux/Layer-1-and-Switch-Ports/Quality-of-Service/) distinguishes incoming markings from an internal switch priority that is not written into the packet. Classification can trust DSCP, tagged frame priority or the port default. With port trust, existing markings are ignored. Several incoming values can map to the same internal value, so observing an outgoing value cannot generally reconstruct the original marking.

## Rewriting creates another boundary

Egress remarking maps the internal switch priority back to an external DSCP or frame priority. That map is separately configured and can collapse multiple internal priorities into one outgoing marking. Therefore, unchanged headers do not prove unchanged internal classification, and changed headers do not by themselves prove that the traffic used an unintended queue inside the first switch. The next device applies its own trust policy to that outgoing representation.

## Reconstruct the actual path

For the affected direction, record the sender interface, tagging state, ingress port, applied trust profile, classification map, queue association and egress remark profile. Distinguish configured intent from operationally applied settings, including port-specific overrides. Compare the same bounded test flow at the sender and after the switch where observation is available. Preserve the flow identity and the observation location with each capture; aggregated traffic counters cannot identify which transformation changed this particular stream.

## Evidence that resolves the question

An acceptable record connects the input marking to an internal priority and then to the actual egress marking, with counters or supported telemetry consistent with that mapping. A controlled fixture can deliberately use incoming values that collapse into one priority, demonstrating why reverse inference fails. Separately inspect the relevant congestion-control role: [DOCA ECN documentation](https://networking-docs.nvidia.com/doca/archive/3-4-0/explicit-congestion-notification) describes notification and reaction settings. Those settings do not repair a classification map that sends the flow elsewhere.

## Boundaries of the conclusion

This procedure establishes classification for a documented path and configuration snapshot; it does not prove losslessness or a universal vendor mapping. Avoid copying defaults between switch families, and do not change live QoS merely to improve a capture. The [priority pause guide](/journal/guide-net-roce-pfc/) explains what pause counters can support, while [ECN observation boundaries](/journal/guide-net-roce-ecn/) explain why a marked packet and a working feedback loop are separate findings. Record a later port profile or tagging change as a new path state requiring renewed verification.
