One QoS technique that can help with this problem is to classify data into multiple queues, as shown in the figure
Delay or latency refers to the time it takes for a packet to travel from the source to the destination.
Jitter is the variation of delay of received packets
Weighted Fair Queuing (WFQ) is an automated scheduling method that provides fair bandwidth allocation to all network traffic.
WFQ applies priority, or weights, to identified traffic, classifies it into conversations or flows, and then determines how much bandwidth each flow is allowed relative to other flows.
WFQ classifies traffic into different flows based on source and destination IP addresses, MAC addresses, port numbers, protocol, and Type of Service (ToS) value.
Class-Based Weighted Fair Queuing (CBWFQ) extends the standard WFQ functionality to provide support for user-defined traffic classes.
The Low Latency Queuing (LLQ) feature brings strict priority queuing (PQ) to CBWFQ.
How a packet is classified depends on the QoS implementation.
Class Selector (CS) bits:
Map directly to the 3 bits of the CoS field and the IPP field to maintain compatibility with 802.1p and RFC 791
class-map voice
match protocol rtp
exit
class-map http
match protocol http
exit
class-map icmp
match protocol icmp
exit
policy-map mark
class voice
set ip dscp ef priority 100 —–bandwidth
class http
set ip dscp af31
bandwidth 50
class icmp
set ip dscp af11
bandwidth 25
exit
sh run
interface s0/1/0
service-policy output mark
class-map voice
match ip dscp ef
exit
class-map http
match ip dcsp af31
class-map icmp
match ip dscp af11
policy-map remark
class voice
set precedence critical or 5
exit
class http
set precedence 3
class icmp
set precedence routine or 0
interface s0/2/0
service-policy inbound remark
show policy-map
show policy-map interface s0/1/0