Use PHB when designing or checking end-to-end QoS: which DSCP means which treatment, and whether every hop really implements it.
PHB
A Per-Hop Behavior (PHB) is the forwarding treatment a DSCP value requests at each hop: EF for low-latency voice, AF classes with drop precedence, CS for class selectors, and default best effort.
1. PHB is the per-hop treatment for a DSCP value (EF, AF, CS, default).
2. Each device must implement consistent PHBs.
3. EF = low latency priority.
4. AF = assured forwarding with drop precedence.
5. Default = best effort.
DSCP → PHB → queue/drop treatment per hop
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Layered verification and original-test closure Verify boundary
PHB — Generate one classified flow and correlate DSCP, class counters, queue depth/drop counters and observed latency/loss at the egress where the PHB is actually enforced.
Step 2 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| Class treated as best effort | show policy-map interface <if> output | The DSCP lands in the intended class | class-map match values |
| DSCP changes on the path | Capture at each hop | DSCP stays the same | Re-marking at an untrusted boundary or provider edge |
| Provider has fewer classes | Provider class mapping | How your DSCPs map to their classes | Re-mark at the WAN edge to the provider's values |
Step 3 Observation → implication → next check Narrow the fault
PHB — If a class performs poorly, show classification and marking first, then inspect egress class/queue counters. If packets enter the right queue but drop, examine congestion/scheduler; if they enter the wrong queue, inspect policy mapping.
Step 4 Common mistakes Narrow the fault
- Using non-standard DSCP values across domains.
- Assuming providers honour your markings.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A PHB (per-hop behaviour) is the treatment a DSCP value gets at each hop.
- EF = low latency priority; AF = assured forwarding classes; Default = best effort.
- Every device must be configured to honour the PHB.
show policy-map interface <interface>— per-class treatment- DSCP → PHB mapping table — design
ReferenceWhat it is1 section · depth on demand
What it is
A per-hop behavior (PHB) is the forwarding treatment a DiffServ node gives packets with a given DSCP:
| PHB | DSCP | Treatment |
|---|---|---|
| EF (RFC 3246) | 46 | Low loss, latency and jitter: strict priority, policed |
| AF4x / AF3x / AF2x / AF1x (RFC 2597) | e.g. AF41 34, AF31 26, AF21 18, AF11 10 | Assured bandwidth per class; x = 1, 2, 3 drop precedence (3 dropped first) |
| CS0–CS7 | multiples of 8 (CS6 48 network control, CS1 8 scavenger) | Compatibility with IP precedence |
| Default | 0 | Best effort |
The DSCP is only a label. The PHB exists only if every hop's policy maps that DSCP to the matching queue and drop behaviour.
ReferenceWhy it matters1 section · depth on demand
When to use it
Use PHBs to design consistent treatment end to end: agree on one DSCP-to-class mapping across LAN, WAN and the provider, and check that each hop implements it.
ReferenceHow it works1 section · depth on demand
Operational mechanics and ownership
PHB — A DiffServ per-hop behavior is the forwarding treatment applied to a traffic class at a node, such as queue selection, drop precedence or scheduling behavior; the DSCP label alone is not the PHB. Classification/marking chooses metadata, while queuing/scheduling/policing enforce treatment later. A correctly marked packet can still receive unexpected service if the egress policy maps it differently.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Per-hop behaviour: what the DSCP value asks each hop to do
A per-hop behaviour (PHB) is the forwarding treatment a DSCP value requests at each router or switch. The marking is set once, near the source. Every hop then maps the DSCP to its own queue, drop threshold and policer. The Catalyst 9300 QoS guide trusts DSCP on IP traffic by default, so markings set at the edge are kept and acted on at later hops.
The main PHB groups
| PHB | DSCP | Meaning | Typical traffic |
|---|---|---|---|
| Default (best effort) | 0 | No special treatment | Most data |
| EF (expedited forwarding) | 46 | Low loss, low latency, low jitter | Voice |
| AF (assured forwarding) | AFxy: 10–38 | Four classes (x = 1–4), three drop precedences (y = 1–3) | Business data classes |
| CS (class selector) | 8, 16, …, 56 | Compatible with IP precedence | Signalling (CS3), network control (CS6) |
AF values
| Low drop (y=1) | Medium (y=2) | High (y=3) | |
|---|---|---|---|
| AF1x | 10 | 12 | 14 |
| AF2x | 18 | 20 | 22 |
| AF3x | 26 | 28 | 30 |
| AF4x | 34 | 36 | 38 |
DSCP = 8x + 2y. The drop precedence (y) is what WTD thresholds act on within a queue.
C9300(config)# class-map match-any CM-VOICE
C9300(config-cmap)# match dscp ef
C9300(config)# class-map match-any CM-CRITICAL
C9300(config-cmap)# match dscp af31 af32 af33
C9300(config)# policy-map PM-UPLINK-OUT
C9300(config-pmap)# class CM-VOICE
C9300(config-pmap-c)# priority level 1
C9300(config-pmap-c)# police rate percent 10
C9300(config-pmap)# class CM-CRITICAL
C9300(config-pmap-c)# bandwidth remaining percent 30
C9300(config-pmap-c)# queue-limit dscp af33 percent 80
Implementing PHBs on the switch
| PHB | Catalyst 9300 implementation |
|---|---|
| EF | priority level 1 with a policer |
| AF class | A bandwidth queue; drop precedence mapped to WTD thresholds |
| Default | class-default with the remaining bandwidth |
Consistency
A PHB only works end to end if every hop maps the same DSCP to equivalent treatment. Document the DSCP-to-queue mapping once and apply the same policy templates on all uplinks.
Documented example, not captured output.
Quick reference
A PHB (Per-Hop Behaviour) is the forwarding treatment a router gives to packets with a given DSCP value. The standard PHBs are Default (best effort), Expedited Forwarding (EF, low latency) and Assured Forwarding (AF classes with drop precedence), plus Class Selector values for compatibility with IP precedence.
| PHB | DSCP | Typical use |
|---|---|---|
| EF | 46 | Voice |
| AF4x | 34/36/38 | Interactive video |
| AF3x | 26/28/30 | Streaming/critical data |
| AF2x | 18/20/22 | Transactional data |
| AF1x | 10/12/14 | Bulk data |
| CS6 | 48 | Network control |
| Default | 0 | Best effort |
In AFxy, x is the class and y the drop precedence (higher y dropped first).
ReferenceConfiguration & state1 section · depth on demand
Configuration example: DSCP to queues (Cisco IOS XE)
class-map match-any VOICE
match dscp ef
class-map match-any VIDEO
match dscp af41 af42 af43
class-map match-any CRITICAL-DATA
match dscp af21 af22 af23
!
policy-map WAN-OUT
class VOICE
priority percent 10
class VIDEO
bandwidth percent 20
random-detect dscp-based
class CRITICAL-DATA
bandwidth percent 25
random-detect dscp-based
class class-default
fair-queue
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → QoS → PHB. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%