Quality of Service (QoS) Flashcards

1
Q

What is the need for QoS

A

To improve the delivery of real time traffic such as voice and video as they are very sensitive to delays.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the leading causes of QoS issues

A

Lack of bandwidth
Latency/Jitter
Packet loss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is latency and jitter

A

Latency - the one way time it takes for packet delivery from source to destination in ms.

Jitter - the difference between highest latency and lowest latency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the recommended latency values under G.114 for real time traffic and non-real time traffic

A

Real time - 150ms max
all other traffic - 400ms MAX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the different types of latency in a network

A

Propagation delay (fixed) - delay with the refractive index of the medium taken into account.
Serialisation delay (fixed) - delay it takes to place the individual bits on to the link.
Processing delay (fixed) - delay it takes for network device to take incoming bits and place them on to the outgoing queue/ interface.
Delay (Variation) - Jitter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the main ways to overcome packet loss

A

Increase link speed
Implement congestion avoidance and congestion management techniques
Implement traffic policing and shaping.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 different ways QoS is implemented into a network (QoS implementation models)

A

Best effort
IntServ - uses a signalling protocol RSVP to reserve bandwidth end to end
DiffServ - uses traffic classification to prioritise higher priority traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the drawback of IntServ

A

A RSVP state is required to build, maintain and support the RSVP this causes issues with scalability of resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is classification in QoS

A

Classification is where different traffic flows can be identified as different descriptors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where in the network should traffic classification take place

A

On the edge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is NBAR2

A

It is a layer 7 deep packet inspection engine that is capable of identifying and classifying different applications and protocols from 1000s of different ports including dynamically assigned ports.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What layers can be classified on the OSI scale

A

All layers including 2.5 MPLS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is packet marking in QoS

A

It is when a packet or frame is coloured by changing a field with a traffic descriptor so that it is differentiated from other packets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What traffic descriptors are used for marking

A

Layer 2
Layer 2.5 MPLS
Layer 3 DSCP, IP precedence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the 802.1Q header made up of in a layer 2 frame

A

TPID - 2B field that indicates it is a 802.1Q header
TCI - 2B field made up of PCP code, DEI and VID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a PCP code used for

A

A PCP code is the 802.1P CoS layer 2 traffic marking that indicates the priority of the frame in the network. 1-7 (7 is the highest). 5 is for voice and is the highest user definable value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the drawback to Class of service (CoS) PCP

A

It looses its marking once it traverses a non 802.1Q link or layer 3 link. However CoS bits are directly mapped to IPv4 (ToS) bits performing layer 3 marking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the DSCP field used for

A

Marking layer 3 traffic so it can be processed at layer 3 on a hop by hop basis. DSCP is used for DiffServ QoS Implementations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

On a DSCP hop by hop basis packets are classified and marked with a particular DSCP per hop forwarding behaviour (PHB), what are the different PHBs

A

DF - Default forwarding (best effort delivery) DSCP value 000000
CS - Class sector (Used for backwards compatibility with IP precedence ToS)
AF - Assured forwarding - Used for guaranteed bandwidth services.
EF - Expedited forwarding - used for low latency services like voice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

IN assured forwarding what does this mean AF41

A

This DSCP value in decimal will be 34, the AFxy x is the IP precedence value and y is the drop probability of the packet in WRED.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the scavenger class used for

A

Less than best effort traffic, typically for gaming applications and entertainment like YouTube. This type of traffic will be rate limited typically.

It is assigned DSCP value of CS1 as a negative value is not possible in DSCP.

22
Q

What is a trust boundary

A

In a end-to-end QoS experience the edge of the network should mark the packets with the appropriate DSCP value.

A switchport can either:

Accept the marking already on the packet (Trust)
Refuse the marking and remark with new marking (Not Trust)

the boundary is where the packet is remarked.

23
Q

What is a traffic Policer

A

Drop or remark traffic that goes beyond a desired traffic rate.

24
Q

What is a traffic shaper

A

Buffer/queue and delay egress traffic rates that temporarily peak above desired rate and when/if rate drops traffic is sent.

25
Q

Where is the optimal placing for a policer

A

At the edge of the network for both incoming and outgoing traffic towards the core.

26
Q

Where is the optimal place for a shaper

A

Optimally placed on enterprise networks facing the ISP as the ISP side will have a policer and monetary penalties for exceeding agreed SLA.

27
Q

What is the biggest drawback to traffic policers

A

when traffic is dropped for exceeding the desired rate, the TCP session will also be dropped and need to be retransmitted.

28
Q

What 2 actions can traffic policers take with traffic that exceeds the desired rate.

A

Drop the traffic

or…

Mark down the traffic to a lower priority

29
Q

What is a token bucket algorithm

A

It is the algorithms the Cisco IOS uses for the policer function.

30
Q

What is the Committed information Rate (CIR)

A

the rate of traffic that the policer is set at. bps

31
Q

What is the committed burst size (Bc)

A

The maximum size of the token bucket

32
Q

The largest packet in the network should be equal or less than the Bc size

True or False

A

True

33
Q

What is the committed time interval (Tc)

A

The time interval over which the token bucket is sent.

34
Q

What is a token in bits/bytes

A

8 bits or 1 byte

35
Q

What happens when the token bucket is filled up to the maximum amount (Bc)

A

Packet is sent.

36
Q

What happens if the bucket is not filled up

A

Packets can either:
be buffered (shaping)
Dropped (Policing)
or marked down. (Policing)

37
Q

What are the 3 different token bucket algorithm policers

A

Single rate two-colour policer
Single rate three-colour policer (srTCM)
Two rate three-colour policer (trTCM)

38
Q

How does a Single rate two-colour policer/marker work

A

Traffic is either conforming to or exceeding the CIR, for the exceeding traffic it can either be marked down or dropped.

Uses one token bucket that once full traffic is marked down or dropped.

39
Q

How does a Single rate three-colour policer/marker work

A

Operates using 2 token buckets traffic can either be conforming, exceeding or violating the CIR.

The first bucket operates similarly to 2 colour whereas once the bucket is full the excess tokens are placed into the second bucket.

40
Q

What is the excess burst (Be)

A

The maximum number of bits that can exceed the burst size (Bc)

41
Q

How does a two rate three-colour policer/marker work

A

It uses two buckets and relies on 2 rates the CIR and the PIR the CIR fills the 1st token bucket and the 2nd token bucket is filled by the PIR.

This allows for a sustained excess rate.

42
Q

What is the peak information rate (PIR)

A

The maximum rate of traffic allowed

Should be greater or equal to CIR.

43
Q

What is queuing/buffering

A

Temporary storage of excess packets. it is activated once a output interface is experiencing congestion and is deactivated once congestion clears.

44
Q

How can congestion occur

A

Input interface is faster than the output interface

Multiple input interfaces serving one output interface

45
Q

What is a scheduling

A

When packets are in a queue they can be re-ordered to egress the device.

There is multiple algorithms for scheduling.

46
Q

What are the legacy scheduling algorithms

A

FIFO
Round robin
Weighted round robin
Custom queuing
Priority queuing
Weighted fair queuing

47
Q

What is the current scheduling algorithms used in enterprise networks

A

CBWFQ & LLQ

48
Q

What is CBWFQ

A

Class Based Weighted Fair Queuing

Allows multiple queues 256 for 256 traffic classes that are all serviced based on their assigned bandwidth (the weight).

Allows user defined classes.

Classes can have weight assigned bandwidth, maximum queue size and maximum packet size defined.

Once packets exceed queue limit packets are dropped.

ONLY SUITABLE for NON-real time traffic.

49
Q

What is LLQ

A

Low Latency Queuing

Is used for real time traffic like voice and video traffic.

Used in combination with CBWFQ. the LLQ is the priority queue and is assigned bandwidth first before CBWFQ queues.

Multiple classes can be defined e.g. voice and video. however one single queue (Priority queue combines and schedules the different class queues).

50
Q

What is congestion avoidance tools purpose

A

To monitor the network traffic loads to anticipate and avoid congestion by dropping packets.

Tools used are:
Tail drop - default
RED
WRED

51
Q

What is Tail drop, RED and WRED

A

Tail drop - treats all traffic equally, when queue fills all traffic is dropped (causes mass TCP re-synch

RED - Random early detection - when congestion is detected before queue is full random packets are dropped throughout the traffic flow to decrease the congestion.

WRED - Cisco’s implementation of RED introduces weight variable so that lower priority packets are dropped more aggressively than higher priority packets.