Ethernet Switching
Highlighted
Ethernet Switching

QOS config for EX switches

‎10-10-2018 03:21 PM

Hi All,

 

1)Can someone please have a look at the config and please confirm if this will honor DSCP markings from endpoints on the EX switch.

 

2)Also can this config be applied to interface range ?

 

3)  Can someone please make sure the rest of the traffic will be put into default forwarding-class and not be dropped.

 

Create a fw filter:

set firewall family ethernet-switching filter <name> term t1 from ? - Match conditions

set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding from protocol udp
set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding from port 50000-50019
set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding from dscp 101110

set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding from protocol udp
set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding from port 50020-50039
set firewall family ethernet-switching filter Ex-Fwd term Assured-Forwarding from dscp 100010

set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding then count firewallhit - For counters
set firewall family ethernet-switching filter Ex-Fwd term Assured-Forwarding then count firewallhit - For counters

set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding then forwarding-class expedited-forwarding loss-priority low
set firewall family ethernet-switching filter Ex-Fwd term Assured-Forwarding then forwarding-class assured-forwarding loss-priority low

set firewall family ethernet-switching filter Ex-Fwd term Expedited-Forwarding then accept
set firewall family ethernet-switching filter Ex-Fwd term Assured-Forwarding then accept
set firewall family ethernet-switching filter Ex-Fwd term Allow-all then accept


2. Apply the filter to the interface:

set interfaces <> unit 0 family ethernet-switching filter input Ex-Fwd

1 REPLY
Ethernet Switching

Re: QOS config for EX switches

‎10-16-2018 09:41 AM

configure it in groups (change as needed this is basic config (also watch your TCAM)

 

make sure you apply the Rewrite to your uplink port, and apply your FW filter to that port as outbound.  

 

set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier import default
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class VOIP-EF loss-priority low code-points 101110
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class VOIP-EF loss-priority low code-points 101000
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class VIDEO-AF41 loss-priority low code-points 100010
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class VIDEO-AF41 loss-priority low code-points 100000
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class CONTROL-AF31 loss-priority low code-points 011000
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class CONTROL-AF31 loss-priority low code-points 011010
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class CONTROL-AF31 loss-priority low code-points 110000
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class DATA-AF21 loss-priority low code-points 010000
set groups XX-COS class-of-service classifiers dscp XX-dscp-classifier forwarding-class DATA-AF21 loss-priority low code-points 010010
set groups XX-COS class-of-service forwarding-classes class VOIP-EF queue-num 5
set groups XX-COS class-of-service forwarding-classes class VIDEO-AF41 queue-num 2
set groups XX-COS class-of-service forwarding-classes class CONTROL-AF31 queue-num 7
set groups XX-COS class-of-service forwarding-classes class DATA-AF21 queue-num 1
set groups XX-COS class-of-service forwarding-classes class Best-Effort-0 queue-num 0

**********example****** below the port 0/0/0 is a uplink port********
set groups XX-COS class-of-service interfaces ge-0/0/0 scheduler-map NAME-sched-map
set groups XX-COS class-of-service interfaces ge-0/0/0 unit 0 classifiers dscp XX-dscp-classifier
set groups XX-COS class-of-service interfaces ge-0/0/0 unit 0 rewrite-rules dscp Branch-Rewrite

**********example****** below the port 0/1/0-3 are uplink ports********
set groups XX-COS class-of-service interfaces ge-0/1/* scheduler-map NAME-sched-map
set groups XX-COS class-of-service interfaces ge-0/1/* unit 0 classifiers dscp XX-dscp-classifier
set groups XX-COS class-of-service interfaces ge-0/1/* unit 0 rewrite-rules dscp Branch-Rewrite

**********example****** below the ports are acces ports th * apply this all ports you could also use 0/0/* here
set groups XX-COS class-of-service interfaces ge-*/*/* scheduler-map NAME-sched-map
set groups XX-COS class-of-service interfaces ge-*/*/* unit 0 classifiers dscp XX-dscp-classifier


set groups XX-COS class-of-service rewrite-rules dscp Branch-Rewrite forwarding-class VOIP-EF loss-priority low code-point 101110
set groups XX-COS class-of-service rewrite-rules dscp Branch-Rewrite forwarding-class VIDEO-AF41 loss-priority low code-point 100010
set groups XX-COS class-of-service rewrite-rules dscp Branch-Rewrite forwarding-class CONTROL-AF31 loss-priority low code-point 011010
set groups XX-COS class-of-service rewrite-rules dscp Branch-Rewrite forwarding-class DATA-AF21 loss-priority low code-point 010010
set groups XX-COS class-of-service rewrite-rules dscp Branch-Rewrite forwarding-class Best-Effort-0 loss-priority low code-point 000000
set groups XX-COS class-of-service scheduler-maps NAME-sched-map forwarding-class VOIP-EF scheduler XX-voice-scheduler
set groups XX-COS class-of-service scheduler-maps NAME-sched-map forwarding-class VIDEO-AF41 scheduler XX-video-scheduler
set groups XX-COS class-of-service scheduler-maps NAME-sched-map forwarding-class CONTROL-AF31 scheduler XX-control-scheduler
set groups XX-COS class-of-service scheduler-maps NAME-sched-map forwarding-class DATA-AF21 scheduler XX-data-scheduler
set groups XX-COS class-of-service scheduler-maps NAME-sched-map forwarding-class Best-Effort-0 scheduler XX-best-effort
set groups XX-COS class-of-service schedulers XX-voice-scheduler buffer-size percent 20
set groups XX-COS class-of-service schedulers XX-voice-scheduler priority strict-high
set groups XX-COS class-of-service schedulers XX-video-scheduler transmit-rate percent 50
set groups XX-COS class-of-service schedulers XX-video-scheduler buffer-size percent 20
set groups XX-COS class-of-service schedulers XX-video-scheduler priority low
set groups XX-COS class-of-service schedulers XX-control-scheduler buffer-size percent 10
set groups XX-COS class-of-service schedulers XX-control-scheduler priority strict-high
set groups XX-COS class-of-service schedulers XX-data-scheduler transmit-rate percent 10
set groups XX-COS class-of-service schedulers XX-data-scheduler buffer-size remainder
set groups XX-COS class-of-service schedulers XX-data-scheduler priority low
set groups XX-COS class-of-service schedulers XX-best-effort transmit-rate remainder
set groups XX-COS class-of-service schedulers XX-best-effort buffer-size remainder
set groups XX-COS class-of-service schedulers XX-best-effort priority low