QoS per-hop behavior: classifying and marking traffic, trust boundaries, queuing, congestion, policing and shaping.
CCNA 200-301 v1.1, exam topic 4.7 · part of 4. IP Services, 10% of the exam
What this topic covers
Integrated versus differentiated services
Per-flow reservations versus per-class treatment of marked packets.
Traffic classification and marking
Packets are classified and marked so routers can prioritize them.
Per-hop behaviors
DiffServ's expedited and assured forwarding define how routers treat each marked class.
Classifying traffic
Traffic is sorted into classes by fields such as addresses, ports or protocol, as close to its source as possible.
DSCP and CoS markings
The 6-bit DSCP field in the IP header and the 3-bit priority in an 802.1Q tag carry a packet's class.
Trust boundaries
Where the network starts to believe the markings it receives, re-marking anything that arrives from beyond it.
FIFO and tail drop
Packets are served in arrival order and dropped when the buffer is full.
Fair queuing
Each flow gets its own queue, served round robin.
Random early detection
Routers drop packets early and at random to signal congestion before queues fill.
Shaping
Shaping holds excess traffic in a queue and sends it later, smoothing it to a rate at the cost of delay.
Policing
Policing drops or re-marks traffic beyond the agreed rate at once, with no added delay.
Where each is used
Senders shape to stay within a contract; providers police what they receive against it.
Why routers buffer
Buffers absorb short bursts that exceed the outgoing link's rate; packets are lost only when a buffer is full.
Effects of loss
Loss makes TCP slow down and retransmit, and causes gaps or glitches in real-time traffic that cannot wait.
Causes of congestion
Queues build and packets drop when traffic arriving at a router exceeds what its outgoing link can carry.
Bandwidth versus latency
Bandwidth is bits per second; latency is time for one bit to travel.
Jitter
Variation in packet delay and why it matters for real-time traffic.
Sample question
Try it, then open the answer. Our questions are written by AI and checked independently before they are published.
EasySingle choice
Refer to the exhibit. What is the effect of the interface configuration on incoming traffic?
SW1# show running-config interface GigabitEthernet0/1
Building configuration...
Current configuration : 98 bytes
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
mls qos trust dscp
end
A. re-marks the DSCP of all incoming packets to 0
B. trusts the Layer 2 CoS value received in the 802.1Q tag
C. accepts the DSCP markings received on the port
D. maps incoming IP precedence bits directly to internal DSCP
Show the answer
Answer: C. accepts the DSCP markings received on the port
The command 'mls qos trust dscp' establishes the interface as a QoS trust boundary for Layer 3 markings. When configured, the switch preserves the 6-bit DSCP field in incoming IP packets rather than re-marking them to default (0).