JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to...

17
JUNIPER QOS JNCIA

Transcript of JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to...

Page 1: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

JUNIPER QOSJNCIA

Page 2: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

QOS?

• Converged networks supports various applications and flows.

• Need to prioritize sensitive traffic

• Intserv, diffserv

Page 3: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

MAIN QOS BUILDING BLOCKS

• Classification

• Marking

• Congestion management

• Congestion avoidance

• Traffic policing and shaping

• Link efficiency

Page 4: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

DIFFSERV – L2Priority Code Point (PCP) for Ethernet encapsulation

PCP Priority Acronym Traffic Types

1 0 (lowest) BK Background

0 1 BE Best Effort

2 2 EE Excellent Effort

3 3 CA Critical Applications

4 4 VI Video, < 100 ms latency and jitter

5 5 VO Voice, < 10 ms latency and jitter

6 6 IC Internetwork Control

7 7 (highest) NC Network Control

Page 5: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

DIFFSERV – L3

Page 6: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

DSCP Class

DSCP (bin)

DSCP (dec)

IP precedence ToS (dec)

none 0 0 0 0cs1 1000 8 1 32af11 1010 10 1 40af12 1100 12 1 48af13 1110 14 1 56cs2 10000 16 2 64af21 10010 18 2 72af22 10100 20 2 80af23 10110 22 2 88cs3 11000 24 3 96af31 11010 26 3 104af32 11100 28 3 112af33 11110 30 3 120cs4 100000 32 4 128af41 100010 34 4 136af42 100100 36 4 144af43 100110 38 4 152cs5 101000 40 5 160ef 101110 46 5 184

cs6 110000 48 6 192cs7 111000 56 7 224

Page 7: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

CLASSIFICATION

• Match traffic and put it into proper queue

• Firewall filtersuser@host# showfrom { protocol [ udp tcp ]; port 5060;}then { forwarding-class cos-voice; accept;}

Page 8: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

MARKING

• Rewrites DSCP value with a new one per forwarding class

• Forwarding classes should be the same across whole network

• There is no special meaning of particular classes

[edit class-of-service]rewrite-rules { dscp rewrite-dscps { forwarding-class cos-voice { loss-priority low code-points ef; } forwarding-class cos-video { loss-priority low code-points cs5; } forwarding-class cos-critical { loss-priority low code-points af31; } forwarding-class cos-bulk { loss-priority low code-points af11; loss-priority high code-points cs1; } }}

Page 9: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

CONGESTION MANAGEMENT

• Queuing mechanisms

• FIFO

• WFQ

• CBWFQ

• CBWFQ + PQ = LLQ

Page 10: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

LLQ

Page 11: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

CONGESTION AVOIDANCE

• RED

• WRED, CBWRED

• Configured as drop-profile under [edit class-of-service schedulers scheduler-name]

Page 12: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

TRAFFIC SHAPING AND POLICING

• SINGLE TOKEN BUCKET

• DUAL TOKEN BUCKET (SINGLE RATE THREE COLOR MARKER)

• DUAL RATE TOKEN BUCKET (TWO RATE THREE COLOR MARKER)

[edit firewall]three-color-policer 1m-cir {

two-rate {committed-burst-

size 3k;committed-

information-rate 1m;peak-burst-size

3k;peak-

information-rate 2m;}

}

Page 13: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

TWO RATE THREE COLOR MARKER

Page 14: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

LAB

Task 1:

[ ] Mark and classify HTTP and ICMP traffic between C1 and C2.[ ] Use DSCP EF for HTTP traffic and assign it to Queue1.[ ] Use DSCP AF1x for ICMP traffic and assign it Queue2.[ ] Verify your setting on C1 and C2 in Wireshark.

Task 2:

[ ] Assign to EF traffic 10% of BW and assign it to strict priority queue.[ ] Assign to AF traffic 30% of BW.[ ] Use default BW assignment for NC and rest for BE.

Page 15: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

root@JR1# show firewallfilter qos-marker { term icmp { from { source-address { 10.0.0.2/32; } protocol icmp; } then { forwarding-class expedited-forwarding; accept; } } term http { from { source-address { 10.0.0.2/32; } destination-port 80; } then { forwarding-class assured-forwarding; accept; } } term default { then accept; }}

root@JR1# show interfaces fe-0/0/3unit 0 { description To-PC1; family inet { filter { input qos-marker; } address 10.0.0.1/24; }}

root@JR1# show class-of-serviceinterfaces { fe-0/0/3 { unit 0 { classifiers { dscp default; } rewrite-rules { dscp default; } } }}

Page 16: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

class-of-service {interfaces {

fe-* {scheduler-map

http-icmp-qos;}

}

schedulers {sched-ef {

transmit-rate percent 10;

buffer-size percent 10;

priority strict-high;

}sched-af {

transmit-rate percent 30;

buffer-size percent 30;

priority high;}sched-be {

transmit-rate percent 55;

buffer-size percent 55;

priority high;}sched-nc {

transmit-rate percent 5;

buffer-size percent 5;

priority high;}

}}

class-of-service {scheduler-maps {

http-icmp-qos {forwarding-class network-control scheduler

sched-nc;forwarding-class best-effort scheduler sched-

be;forwarding-class assured-forwarding scheduler

sched-af;forwarding-class expedited-forwarding

scheduler sched-ef;}

}}

Page 17: JUNIPER QOS JNCIA. QOS? Converged networks supports various applications and flows. Need to prioritize sensitive traffic Intserv, diffserv.

END