Professional Documents
Culture Documents
03 - Class - of - Service (Modo de Compatibilidad)
03 - Class - of - Service (Modo de Compatibilidad)
Voice
Packet A
Video
Packet A Packet B Packet C
Packet B
Data
P k tC
Packet
N t CoS
Note: C Sd
does nott make
k a network
t k faster
f t or reduce
d congestion!
ti !
Voice Voice
VoIP VoIP
Data Data
Data Data
Forwarding classes:
•Identify traffic that should receive common treatment
•Used to assign traffic to output queues
Forwarding Class Output Queue
Voice
Queue 2
Packet A
Video
Packet A Packet B Packet C Queue 1
Packet B
Data
Queue 0
Packet C
Loss priority:
•Identifies the priority a system should give to dropping a
packet
•Used to select the drop profile used in the RED process
If congestion exists…
Data
Ingress
BA Policing Multifield Forwarding
Classifier (Ingress) Classifier Policy
Forwarding Class
Fabric
Loss Priority
Egress
Rewrite Scheduler Shaper RED
Multifield Policing
Marker Classifier (Egress)
(No (No
Data BA) Data BA)
(No (No
Data BA) Data BA Data BA)
Definition Application
ge-0/0/1.0
(No (No
Data BA) Data BA)
R1 R2
ge-0/0/3
ge 0/0/3.0
0 ge-0/0/3.0
ge 0/0/3.0
(No (No
Data BA) Data BA Data BA)
Data
policer admin-traffic-policer {
if-exceeding
if exceeding {
bandwidth-limit 1m;
Data
burst-size-limit 3k;
}
then forwarding-class best-effort;
}
family inet {
filter apply-cos-markings {
term admin { Policer
from { Best Effort
source-address {
192.168.200.0/25; Out-of-Profile
} Traffic
}
then {
policer admin-traffic-policer;
forwarding-class expedited-forwarding;
accept;
} Expedited Forwarding
}
term all-other-traffic { Conforming Traffic
then accept;
}
}
}
}
Data
Forwarding classes map to queues
Data
a
•Default queue and forwarding class
mappings for most devices running
Junos OS:
• 0: best-effort Queue 0 Queue 1 Queue 2 Queue 3
(BE) (EF) (AF) (NC)
• 1:
1 expedited-forwarding
dit d f di
• 2: assured-forwarding Scheduler Map
• 3: network-control
network control
Displays current queue and forwarding class mappings
Data
user@router> show class-of-service forwarding-class
g
Data
Forwarding class ID Queue
best-effort 0 0
expedited-forwarding 1 1
assured-forwarding 2 2
network-control
k l 3 3
[edit class-of-service]
user@router# set forwarding-classes queue 1 important-traffic
[edit class-of-service]
user@router# set forwarding-classes queue 2 critical-traffic
[edit class-of-service]
class of service]
user@router# commit
commit complete
[edit class-of-service]
user@router# run show class-of-service forwarding-class
Forwarding class ID Queue
general-traffic 0 0
important-traffic 1 1
critical-traffic
i i l ffi 2 2
network-control 3 3
Components of scheduling:
Data
D
•Priority Defines the order in
which packets transmit
Data
•Transmission rate
•Buffer size Defines the
storage and
g
•RED configuration dropping
d opp g of
o
packets
Queue 0 Queue 1 Queue 2 Queue 3
Scheduler Map
Data
Da
ata
© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 13
Queue Priority
y
Scheduler Map
•Low Queue 2
(MH)
2
Data 5 1 3 2 6 4
Queue 1
(ML)
3
Queue 0
(L)
5 1
Serviced last
[edit class
class-of-service
of service schedulers]
user@router# show
sched-best-effort {
transmit-rate percent 40;
buffer-size p
percent 40;
;
priority low;
}
Ingress
BA Policing Multifield Forwarding
Classifier (Ingress) Classifier Policy
Forwarding Class
Fabric
Loss Priority
Eg
Egress
Rewrite Scheduler Shaper RED
Multifield Policing
Marker Classifier (Egress)
Scheduling rules:
-Give network-control traffic high priority and 5% of the available bandwidth.
Give traffic from professors medium
-Give medium-high
high priority and 45% of the bandwidth.
-Give traffic from students medium-low priority and 40% of the bandwidth.
-Give best-effort traffic low priority and 10% of the bandwidth. Prohibit use of extra bandwidth.
Professors
(192.168.25.64/26)
R1
1 R2
ge-0/0/2.0 ge-0/0/3.0
ge-0/0/3.0 ge-0/0/1.0
Internet
Students
(192.168.25.128/25)
uler Map
buffer-size percent 45;
Queue 2
priority medium-high;
(MH)
}
sched-students { 2
transmit-rate percent 40; Data 5 1 3 2 6 4
Schedu
buffer-size percent 40; Queue 1
priority medium-low; (ML)
}
sched-best-effort { 3
transmit-rate percent 10 exact;
buffer-size percent 10; Queue 0
priority low; (L)
Prohibits the use of bandwidth Serviced last
}
assigned to other queues 5 1
Professors
(192.168.25.64/26)
R1 R2
ge-0/0/2.0
0 0 20 ge-0/0/3.0
0/0/3 0
ge-0/0/3.0 ge-0/0/1.0
Internet
Students
(192 168 25 128/25)
(192.168.25.128/25)