17 - IP Services II - QoS Flashcards
What four characteristics of network traffic does QoS let you manage?
Bandwidth
Delay
Jitter
Loss
What two types of Delay are there?
One way delay
Round trip delay
What is Jitter?
The variation in one way delay between consecutive packets sent to the same application
What causes most loss in networks (more than faulty cabling)?
Device queues getting too full then discarding packets
What is QoE?
Quality of Experience
Typically the users perception of their use of the application on the network
What was historically called ‘batch traffic’?
Non interfactive data / data applications e.g. Data backup or file transfers
What are the general steps taken for VoIP packets?
- Codec processes (digitizes) sound to create binary code for a certain time period e.g. 20ms
- Data placed into IP packet
- Packet transmitted over network
What characteristics of QoS would you balance for VoIP?
Don’t neccessarily need much Bandwidth.
But interactive voice needs better level of quality for Delay, Jitter and Loss
What are the recommended guidelines for QoS for interactive voice?
Delay (one-way): <150ms
Jitter: <30ms
Loss: <1%
What are the recommended guidelines for QoS for video?
Bandwidth: 384kbps to 20+Mbps
Delay (one-way): 200-400ms
Jitter: 30-50ms
Loss: 0.1 - 1%
What are 4 key areas of QoS tools?
Classification and Marking
Queuing
Shaping and Policing
Congestion Avoidance
What is Classification and Marking for QoS?
The QoS tool that classifies packets based on their header contents and then marks the message by changing some bits in specific header fields
What roles do queues playing in Classification?
Packets can be classified into different types of queues to then be sent as determined appropriately by scheduling / prioritization
What are the rough steps for a router forwarding a packet with respect to classification and queuing?
- Router makes forwarding decisions
- Classification logic applied to put packets in appropriate output queue
- Router waits for outgoing interface to be available
- Queuing tools scheduling logic chooses the next packet prioritizing one over the other
What is the recommended strategy for Matching in terms of complexity?
Do complex matching early in the life of a packet, then marking the packet to allow devices that process the packet later in its life to use much simpler classification logic
What does marking a packet do?
QoS tool changes header fields to set values
What is the DSCP field?
Differentiated Services Code Point
6 bit field for QoS marking
Can you perform classification with an ACL?
Yes but not every classification can be made with an ACL due to more complex requirements
What is NBAR?
Cisco Network Based Application Recognition
Matches packets for classification in a large variety of ways that are useful for QoS
How might you use NBAR?
Classify traffic type for an Amazon Video and give it a unique DSCP marking
What is CoS?
Class of Service
3 bit field in the third byte of the 802.1Q header
A way of managing traffic by grouping similar types of traffic and treating each as a class with a certain level of service priority
Why does marking a QoS field in the IP header work well?
Because the IP header exists for the entire trip from source to destination host
What is an IPv4 ToS field?
Type of Service field
1 byte
Used to put the DSCP (6 bits) marking value
What was formerly used in the ToS field before DSCP?
3 bits of IPP (IP Precedence)
What is the DSCP field contained within in an IPv6 header?
Traffic Class byte
What is PcP?
Priority Code Point
Another name for the CoS field in the 802.1q header
What is a downside of QoS fields such as CoS?
Because they are in the 802.1q header, they only exist when 802.1q trunking is used on a link
What is the TID field and where is it used?
QoS field for WiFi in 802.11 headers
What is the EXP field and where is it used?
MPLS WAN in the MPLS label header
What is the trust boundary for a network with respect to QoS?
The point in the path of a packets flow at which the networking devices can trust the QoS markings
True/False: When the access layer includes an IP phone, it is typically the trust boundary instead of the access layer switch
True
What are three important sets of DSCP values used in DiffServ?
Expedited Forwarding (EF) Assured Forwarding (AF) Class Selector (CS)
What is the EF DSCP used for and what is its value?
Expedited Forwarding. Single DSCP value
Used for packets that need
- Low Delay (low latency)
- Low Jitter
- Low Loss
Value: 46
What is the AF DSCP used for and what is its value?
Assured Forwarding. 12 DSCP values
4 queues, using the 3 levels of drop priority for congestion avoidance tools
AFXY
- X is queue number
- Y is priority
Lowest is best
What is the CS DSCP used for and what is its value?
Class Selector. 8 DSCP values
Equivalents of IPP 0 -7 (CS0-7)
Decimal values 0, 8…56
How might you DSCP mark video and high priority data?
AF4x: Interactive video (conferencing)
AF3x: Streaming video
AF2x: High priority (low latency) data
How might you DSCP mark standard data?
CS0
What are two key things a Queuing system needs to do?
Classifier and Scheduler
Needs a classifier function to choose which packets are placed into which queue (reacting to previously marked values or more extensive matches).
Also needs a scheduler to decide which message to take next when interface becomes available
What can a scheduler perform for a queuing system?
Priorization
What is weighted round robin scheduling?
Round robin but with the concept of weighting, wherein one queue gets given more preference than another
What is CBWFQ
Class Based Weighted Fair Queuing
Used by routers to guarantee a minimum amount of bandwidth to each class
How does CBWFQ work?
Uses weighted round robin queuing but lets engineer define the weightings as a percentage of link bandwidth
What is the downside of a round-robin scheduler for delay, jitter and loss for voice and video packets? And how is it remedied?
It adds too much delay for voice and video packets. It does not provide low enough delay, jitter or loss. A round robin queue may have to send from other queues before it gets back to the queue the important packet is on.
Add Low Latency Queuing (LLQ) to the scheduler
How does LLQ work?
Tells a scheduler to treat one or more queues as special priority queues, always taking the next message from one of these special priority queues
What is a potential problem with LLQ / priority queuing and what would be the solution?
Queue starvation
The speed of the interface is X bits per second but there is always more than this number of bits coming into the priority queue, thus the other queues never get served
Solution is to limit the amount of traffic placed in to the priority queue
What is Policing?
A way of limiting the amount of traffic placed into the priority queue
How do you prevent a Policer discarding too many excess messages beyond the bandwidth limit for a priority queue (which would affect experience)?
Limit the amount of voice and video that the network routes out this link
What type of queuing method would you use for data classes and non interactive voice and video?
A round robin queuing method such as CBWFQ
What type of queuing method would you use for interactive voice and video?
Priority queue with LLQ
Why should you define enough bandwidth for each priority queue?
So that the built in policer doesn’t discard messages from the priority queues
What is CAC and what should you use it for?
Call Admission Control
Avoid adding too much voice or video to the network which would trigger the policer function
What do Shapers and Policers do?
Monitor the traffic rate through a device versus a configured shaping or policing rate
What is the difference in functionality between a Shaper and Policer?
Shapers hold packets in queues to delay packets
Policers discard or mark packets
How would you summarize the logic of Shaping and Policing?
- Check packet and if it pushes measured rate past the configured shaping / policing rate
- If no, do nothing
- If yes:
If Shaping then delay by queuing
If Policing then discard or mark differently
What is a burst with respect to Policers?
Policers allow for a burst beyond the set policing rate for a short time after a period of low activity
Where is it generally best to use Policing?
Best used at the edge between two networks e.g. PPP Ethernet WAN between two enterprise routers
What is the CIR?
Committed information rate.
Agreed allowed sending rate in each direction
How would you summarize the key features of policing?
- Measures traffic rate over time in comparison to configured rate
- Allows short bursts after inactivity
- Enabled in either direction but typically at ingress
- Can discard packets but can also re-mark for later
What does a Shaper do?
Slows down messages by queuing them and then servicing shaping queues, but not based on when the physical interface is available but the shaping rate
What is a bad side effect of Shaping and how should it be fixed?
Because it slows down packets it creates more delay and sometimes jitter
You should configure a shaper’s setting to change the internal operation of the shaper to reduce delay and jitter caused to voice and video traffic
What is a Shapers time interval?
It’s internal logic that deals with how a shaper averages, over time, sending at a particular rate. It sends as fast as it can then waits, and repeats
Why should you configure a short Time interval for a shaper for voice or video packets that need low delay and jitter?
To prevent a packet arriving just as the shaper finishes sending data for a time interval, which would cause it to have to wait before the shaper schedules the next packet, even if its in the priority shaping queue
How would you summarize the key features of Shapers?
- Measure traffic rate over configured period of time in comparison to configured rate
- Allows short bursts after inactivity
- Enabled for egress
- Slow down packets by queuing and releasing over time at shaping rate
- Use queuing tools to create and schedule shaping queues
What flow control mechanism does TCP use?
Windowing
What is a TCP window
A window size granted to the sender by the receiver which defines the number of bytes a sender can transmit over the TCP connection before receiving an ACK
How much does the TCP window grow and shrink by when everything good / when loss is detected
- Receiver doubles window every time receiver acknowledges data eventually growing to size sender never has to stop sending
- When receiver senses loss of TCP segment, window shrinks by one half
What is tail drop?
When output queues are full and new packets arriving to be added have to be dropped
What do congestion avoidance tools primarily use?
TCPs own windowing mechanisms