Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

PHB

Direct answer

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.

When to use this

Use PHB when designing or checking end-to-end QoS: which DSCP means which treatment, and whether every hop really implements it.

First 30 seconds

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.

Operational verification

DSCP → PHB → queue/drop treatment per hop

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse PHB when designing or checking end-to-end QoS: which DSCP means which treatment, and whether every hop really imple…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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
SymptomCommandLook forNext check
Class treated as best effortshow policy-map interface <if> outputThe DSCP lands in the intended classclass-map match values
DSCP changes on the pathCapture at each hopDSCP stays the sameRe-marking at an untrusted boundary or provider edge
Provider has fewer classesProvider class mappingHow your DSCPs map to their classesRe-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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • 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:

PHBDSCPTreatment
EF (RFC 3246)46Low loss, latency and jitter: strict priority, policed
AF4x / AF3x / AF2x / AF1x (RFC 2597)e.g. AF41 34, AF31 26, AF21 18, AF11 10Assured bandwidth per class; x = 1, 2, 3 drop precedence (3 dropped first)
CS0–CS7multiples of 8 (CS6 48 network control, CS1 8 scavenger)Compatibility with IP precedence
Default0Best 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

PHBDSCPMeaningTypical traffic
Default (best effort)0No special treatmentMost data
EF (expedited forwarding)46Low loss, low latency, low jitterVoice
AF (assured forwarding)AFxy: 10–38Four classes (x = 1–4), three drop precedences (y = 1–3)Business data classes
CS (class selector)8, 16, …, 56Compatible with IP precedenceSignalling (CS3), network control (CS6)

AF values

Low drop (y=1)Medium (y=2)High (y=3)
AF1x101214
AF2x182022
AF3x262830
AF4x343638

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

PHBCatalyst 9300 implementation
EFpriority level 1 with a policer
AF classA bandwidth queue; drop precedence mapped to WTD thresholds
Defaultclass-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

PHBDSCPTypical use
EF46Voice
AF4x34/36/38Interactive video
AF3x26/28/30Streaming/critical data
AF2x18/20/22Transactional data
AF1x10/12/14Bulk data
CS648Network control
Default0Best effort

In AFxy, x is the class and y the drop precedence (higher y dropped first).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
Confirmation

Confirm action

Continue?