Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
QOS for
CCNA Students
By
Eng. Abeer Hosni
Introduction to QoS:
- QOS helps to ensure that the voice and video streams receive the propper level of
attention which ensures that the voice and video are of high quality.
- Due to voice codec, like sampling, voice frames are very small. They don’t require a lot of BW.
But voice is very sesitive for delay.
- Video frames are large in size. It consumes a lot of BW. But they are very sesitive to loss
causing the video to be choppy or stops for a second or two.
Queue:
It is any buffer used for QOS.
On routers, it is a logical part of the shared memory buffer.
On switches, each interface has its own memory which is used as
interface queue, making it a fast buffer but it can’t be extended as
the interface needs more space for data.
Each interface has ingress queue and egress queue.
For example. Assume that a fast ethernet interface sends data to a serial
interface which of course has a much more less buffer size. The router will
then allocate extra buffer space for the serial interface. When egress
traffic cannot immediately be transmitted, it is places in an egress queue.
What is affected by QOS?
Bandwidth (For example, giving VOIP more bandwidth than other types
of traffic).
Delay (For example, sending VOIP to the beginning of the queue).
Jitter (QOS can reduce jitter).
Loss (or drops) (Dropping less priority traffic if we have to).
Traffic must first be divided into classes. Each class of traffic will receive
the same type of QOS treatment.
Most common ways of classifying traffic:
1- Addressing (Based on port number or destination network)
2- ACL
3- MAC address
4- Application signature (A certain size of the packet or the traffic body
has a specific URL or certain range of port numbers).
5- Markings (A downstream device has marked the traffic)
6- L2 classification.
7- L3 classification.
8- NBAR (Network-Based Application Recognition).
Marking:
Packets belonging to the same class marked on egress to allow for easier
classification by upstream devices.
L2 Classification:
Ethernet frames contain no priority field unless they are carried on dot1q
or ISL trunks.
ISL header (COS is 3 bits)
Dot1q header (User priority is 3 bits)
Default is 000 (routine traffic).
L2 classification is point to pint only.
L3 Classification:
Both IPv4 and IPv6 contain a byte used for indication priority of
the packet.
For IPv4 it is TOS (Type of Service).
For IPv6 it is Traffic Class.
TOS value in IPv4:
Only 3 bits are used. That is why created DSCP to make use of other bits.
Exercise:
Express the following DSCP values as binary numbers (express the entire
TOS byte in binary):
R1(config)#class-map TSHOOT
R1(config-cmap)#exit
R1(config)#policy-map ECST
R1(config-pmap)#class TSHOOT
R1(config-pmap-c)#set ip dscp ?
- Configuring that value manually with an odd number will cause that value to be
1 not 0. If you configure that value manually, it will be binary represented not
using the previous method.
Trust Boundaries:
Some host devices may mark traffic upon creation.
Default when QOS is enabled = untrusted.
- To avoid congestion on the aggregation switch, the ISP will apply policing on
the ingress interfaces facing the customers.
- The customer could configure shaping on the egress interfaces facing the ISP to
avoid dropping the data by the ISP. Traffic shaping will delay the data by
putting it in buffers.
Best wishes:
Abeer