Qos Quality of Service: 1 Presentation - Id
Qos Quality of Service: 1 Presentation - Id
Quality of Service
• Dedicated bandwidth
• Improved loss characteristics
• Congestion management and Avoidance
• Traffic Shaping
• Prioritization of traffic
2
What makes up QoS?
3
Components of QoS - Loss
4
Components of QoS - Delay
5
Components of QoS - Jitter
ISP 1 ISP 2
Multihomed WAN
or Redundant Core Layer
Si HSRP Si
STP
7
Quality of Service Requirements for
Data
• Gold (Mission-Critical)
Transactional, software
• Silver (Guaranteed-Bandwidth)
Streaming video, messaging, intranet
• Bronze (Best-Effort and Default class)
Internet browsing, E-Mail
• Less-than-Best-Effort (Optional; higher-drop preferences)
FTP, backups, applications (Napster, KaZaa)
8
Quality of Service Requirements for
Voice
9
Quality of Service Requirements for
Video
Requirements vary:
• Video conferencing requirements are similar to voice.
• Streaming media is often buffered for several seconds
so latency requirements can be relaxed.
• Allow for video’s bursty nature…
10
Quality of Service Mechanisms
• Best Effort
The default if no explicit QoS is configured
• Integrated Services Model – IntServ
RSVP – A pre-negotiated QoS path is established end-to-end.
Not well established as the application software must do the
negotiating.
• Differentiated Services Model – DiffServ
Each hop (router) prioritises traffic according to configuration.
Sometimes referred to as a per-hop-behaviour.
• DiffServ is the focus of this course
11
Establishing Differentiated Services
vlan X VLAN ID
15
MQC - Defining the QoS Policy
The policy-map
• Policy Name
• Traffic class (specified with the class command)
• QoS policies to be applied to each class
Eg.
Switch(config)# policy-map policy1
Switch(config-pmap)# class critical
Switch(config-pmap-c)# bandwidth 3000
A bandwidth total of 3000 kbps will be given to the traffic classified as “critical” by the
class-map in the previous slide.
16
MQC - Applying the policy to an interface
The service-policy
17
MQC – Using QoS in real networks
In order to give priority QoS to one class of traffic, another (lower) class of traffic must suffer.
• Policing – Involves either marking down the DSCP value for packets that are exceeding the bandwidth allocation (non
conforming) or dropping the packet.
• Policing uses a
“Token Bucket” to
determine non
conformance.
• Rate and burst-size
are configurable
• CAR – Committed Access
Rate – Similar to Frame
Relay’s CIR
19
Scheduling
20
Weighted Fair Queuing (WFQ)
WFQ Services queues with a higher ToS more frequently than those
with a lower ToS
Traffic Destined
for Interface
Transmit Queue Output Line
Classify
Configurable Number of
Queues
Class 1 Interface
Traffic is 4 BW=64
grouped into Weight=32
user-defined
classes. 2 1 4 3
Class 2
3 BW=128 WFQ
Dispatch
Weight=16
4 3 2 1
2 1 Class 3
BW=32
Weight=64
V V Interface
Priority Class 1 1
Class 1 2 2 PQ V V
4 3 2 1 1
Class 2 3 3 3 3
WFQ
Class 3 4 4 4 4
Class-Default 7 6 5
24
Congestion Avoidance
Weighted Random Early Detection - WRED
25
Traffic Shaping
• Designed to smooth traffic flows by limiting
instantaneous bandwidth.
• Cisco IOS QoS software has three types of traffic shaping:
• Generic Traffic Shaping (GTS)
• Class-based (CAR)
• Frame Relay Traffic Shaping (FRTS)
• All three traffic shaping methods are similar in implementation,
though their CLIs differ somewhat and they use different types of
queues to contain and shape traffic that is deferred. In particular
the token bucket is employed by all schemes.
26
QoS over low speed links
27
QoS over low speed links
64 256
1 Byte 128 Bytes 512 Bytes 1024 Bytes 1500 Bytes
Bytes Bytes
56 kbps 143 us 9 ms 18 ms 36 ms 72 ms 144 ms 214 ms
64 kbps 125 us 8 ms 16 ms 32 ms 64 ms 126 ms 187 ms
128 kbps 62.5 us 4 ms 8 ms 16 ms 32 ms 64 ms 93 ms
256 kbps 31 us 2 ms 4 ms 8 ms 16 ms 32 ms 46 ms
512 kbps 15.5 us 1 ms 2 ms 4 ms 8 ms 16 ms 32 ms
768 kbps 10 us 640 us 1.28 ms 2.56 ms 5.12 ms 10.24 ms 15 ms
1536 kbps 5 us 320 us 640 us 1.28 ms 2.56 ms 5.12 ms 7.5 ms
28
Link Fragmentation and
Interleaving LFI
• The solution is to use LFI to cut-up the larger packets so that the
priority packets can be interleaved with fragments of larger packets.
• You can specify the maximum amount of time in milliseconds that
each fragment can take. This will determine the size of the fragment
• LFI uses PPP to handle the reassembly
29
Compressed Real-Time Transport
Protocol
• RTP is the Internet-standard protocol for the transport of real-time
data, including audio and video.
• Compressed Real-Time Transport Protocol, or CRTP, is used on a
link-by-link basis to compress the IP/UDP/RTP header. In a packet
voice environment when framing speech samples every 20
milliseconds; this scenario generates a payload of 20 bytes. The
total packet size comprises an IP header (20 bytes), a UDP header (8
bytes), and an RTP header (12 bytes) combined with a payload of 20
bytes.
• It is evident that the size of the header is twice the size of the
payload. When generating packets every 20 milliseconds on a slow
link, the header consumes a large portion of the bandwidth. To avoid
the unnecessary consumption of available bandwidth, CRTP is used
on a link-by-link basis.
• This compression scheme reduces the IP/UDP/RTP header to 2
bytes most of the time when no UDP checksums are being sent or 4
bytes when UDP checksums are used.
• Note: Cisco only recommends using cRTP with links lower than 768
Kbps, unless the router is running at a low CPU utilization rate.
Monitor the router's CPU utilization and disable cRTP if it's above
75%.
30
31
Questions
?
32