QOS - Classification and Marking Flashcards

1
Q

What is Packet Classification?

A

A QoS mechanism responsible for distinguishing between different traffic streams.

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

What are 7 Traffic Descriptors used for Classification?

A
  • Internal: QoS groups (locally significant to a router) * Layer 1: Physical interface, subinterface, or port * Layer 2: MAC address and 802.1Q/ p Class of Service (CoS) bits * Layer 2.5: MPLS Experimental (EXP) bits * Layer 3: DSCP, IP Precedence (IPP), and source/ destination IP address * Layer 4: TCP or UDP ports * Layer 7: NBAR2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is NBAR2?

A

A deep packet inspection engine that can classify and identify a wide variety of protocols and applications using Layer 3 to Layer 7 data, including difficult-to-classify applications that dynamically assign TCP or UDP port numbers.

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

What are NBAR2 two modes of operation?

A
  • Protocol Discovery mode * Modular QOS CLI (MQC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are 2 things about NBAR2 Protocol Discovery Mode?

A
  • It enables NBAR2 to discover and get real-time statistics on applications currently running in the network * These statistics can be used to define QoS classes and policies using MQC configuration.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

NBAR2 Modular QOS CLI (MQC)

A

Network traffic such as Cisco Webex placed into one traffic class, while YouTube traffic placed into another traffic class.

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

What happens after traffic has been classified by NBAR2 in MQC mode?

A

Different QoS policies can be applied to the different classes of traffic.

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

What is Packet Marking?

A

A QoS mechanism that changes a field within a packet or a frame header with a traffic descriptor so it is distinguished from other packets during the application of other QoS mechanisms (such as re-marking, policing, queuing, or congestion avoidance).

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

What are 4 descriptors used for Marking traffic?

A
  • Internal: QoS groups * Layer 2: 802.1Q/ p Class of Service (CoS) bits * Layer 2.5: MPLS Experimental (EXP) bits * Layer 3: Differentiated Services Code Points (DSCP) and IP Precedence (IPP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the descriptor Internal: QOS groups?

A

Used by the router to mark packets as they are received and processed internally within the router and are automatically removed when packets egress the router.

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

When would a router use QOS groups descriptor?

A

Used only in special cases in which traffic descriptors marked or received on an ingress interface would not be visible for packet classification on egress interfaces due to encapsulation or de-encapsulation.

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

What are the 2 fields inserted into an 802.1q header?

A
  • Tag Protocol ID (TPID) * Tag Control Information (TCI)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How big are the 2 fields inserted into an 802.1q header?

A

Each of the 2 fields are 2 bytes.

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

In an ethernet frame where is the 802.1q header located?

A

Behind the Source MAC address field

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

What is the TPID value?

A

0x8100 which identifies it as an 802.1q tagged frame

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

What 3 fields make up the TCI ?

A
  • Priority Code Point (PCP) * Drop Eligible Indicator (DEI) * VLAN ID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are the sizes of each of the 3 fields that make up the TCI?

A
  • PCP 3 bits * DEI 1 bit * VLAN ID 12 bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which of the 3 fields are used for layer 2 QOS?

A

PCP

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

How many levels of COS are in the PCP?

A

8 levels - 0 thru 7

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

What are the 8 COS levels?

A
  • Level 0 - BK - Background * Level 1 - BE - Best Effort * Level 2 - EE - Excellent Effort * Level 3 - CA - Critical apps * Level 4 - Video * Level 5 - VO - Voice * Level 6 - IC - Internetwork Control * Level 7 - NC - Network Control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

In COS levels 4 and 5 what is the specified latency?

A
  • Level 4 - VI - less than 100 ms latency and jitter * Level 5 - VO - less than 10 ms latency and jitter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the one drawback to using COS markings?

A

Frames lose their CoS markings when traversing a non-802.1Q link or a Layer 3 network.

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

How is the COS drawback overcome?

A
  • Use higher layer markings whenever possible * the CoS priority levels correspond directly to IPv4’ s IP Precedence Type of Service (ToS) values so they can be mapped directly to each other
24
Q

What is the default value of the DEI field and what does it mean?

A
  • Default value is 0 * It means the frame cannot be dropped
25
Q

Which field in an IP packet has been used in the past for QOS marking?

26
Q

How big is the ToS field and how are the bits used?

A
  • 8 bits * Only the first 3 are used for marking * The rest of the bits were unused
27
Q

What is another name for the first 3 bits of the ToS byte?

A

IP Precedence

28
Q

How many usable classes does IPP allow for?

A
  • 8 values - 0 thru 7 * 6 and 7 are reserved
29
Q

How have newer standards redefined the ToS byte?

A

Now defined as DiffServ field

30
Q

What is the name of the ToS field in IPv6?

A

Traffic Class

31
Q

What makes up the DiffServ field?

A
  • 6 bit DSCP field * 2 bit Explicit Congestion Notification (ECN)
32
Q

What makes DiffServ backward compatible with PCP?

A

3 bits of PCP line up with 3 bits of the DSCP field

33
Q

How many values does the 6 bit DSCP field allow for?

A

64 values - 0 thru 63

34
Q

What is the DSCP field used for?

A

It is used to mark packets according to their classification into DiffServ Behavior Aggregates (BAs).

35
Q

What is a DiffServe Behavior Aggregate (BA)?

A

It is a collection of packets with the same DiffServ value crossing a link in a particular direction.

36
Q

What is Per Hop Behavior (PHB)?

A

The externally observable forwarding behavior (forwarding treatment) applied at a DiffServ-compliant node to a collection of packets with the same DiffServ value crossing a link in a particular direction

37
Q

What is the advantage of identifying a DiffServ Behavior Aggregate?

A

The core of the network applies a single PHB for an identified BA while classifying, marking, policing and shaping are done at the network edge.

38
Q

What are 4 PHBs?

A
  • Class Selector (CS) PHB * Default Forwarding (DF) PHB * Assured Forwarding (AF) PHB * Expedited Forwarding (EF) PHB
39
Q

What identifies a packet as using PCP for QOS?

A
  • First 3 bits are used * Last 3 bits are set to 0
40
Q

How many CS classes are there?

A

8 classes CS0 thru CS7

41
Q

What is CS PHB?

A

Per Hop Behavior that uses a Class Selector value from the first 3 bits in the DSCP field (formerly IPP).

42
Q

What is DF PHB?

A

Per Hop Behavior when all bits in DS field are set to 0 causing the PHB to use best effort.

43
Q

Name 3 times when DF PHB is used?

A
  • When packets that cannot be classified by a QoS mechanism such as queueing, shaping, or policing * QoS policy on the node is incomplete * when DSCP values are outside those defined for CS, AF, and EF PHBs
44
Q

What is AF PHB?

A

Per Hop Behavior based on an AF class (AF1 thru AF4) and a Drop Probability (1 thru 3)

45
Q

What bits within the DSCP field are used to mark the AF class and Drop Probability?

A
  • First 3 bits used to identify the AF class (AF1 thru AF4) * The next 2 bits are used to identify Drop Probability (1 thru 3) * The 6th bit is unused
46
Q

What is the significance of the different AF classes?

A
  • The AF class does not represent precedence * Each should be in its own queue
47
Q

What is the formula to convert an AF Name into a DSCP value in decimal?

A
  • 8(x) + 2(y) * If AF41 then 8(4) + 2(1) = 34
48
Q

In AF Names what is the significance of the Drop Probability?

A
  • Drop probabilities range from 1 thru 3 * 1 has a low probability of being dropped * 3 has a high probility of being dropped
49
Q

What 2 things describe how AF responds to long term congestion?

A
  • Drops packets using congestion-avoidance algorithm like WRED * WRED uses the AF Drop Probability to decide which packets should be dropped first during congestion
50
Q

How does an AF implementation respond to short term congestion from bursts?

A

Each class is placed in a separate queue, AF uses a queueing algorithm such as class-based weighted fair queueing (CBWFQ).

51
Q

What is EF PHB?

A

PHB that guarantees bandwidth by ensuring a minimum departure rate * Provides the lowest possible delay to delay-sensitive applications by using low-latency queueing * Prevents quque starvation of other applications or classes that are not using the EF PHB by policing EF traffic when congestion occurs.

52
Q

How are EF packets marked in the 6-bit DSCP field?

A
  • 101110 (46 in decimal) * First 3 bits are 101 which maps directly to IPP’s highest value (5) *
53
Q

What is Scavenger Class?

A
  • intended to provide less than best-effort services * Marked as CS1
54
Q

What markings does an IP Phone place on voice packets?

A
  • CoS value of 5 * DSCP value of 46
55
Q

What does an IP phone do to packets coming from an attached PC?

A
  • Sets CoS to 0 * Sets DSCP to 0
56
Q

What are the 4 traffic categories for Wireless traffic?

A
  • Platinum - Voice * Gold - Video * Silver - Best effort * Bronze - Background