SRX CoS configuration example

QOS

> configure

# edit interfaces ge-0/0/0

# set unit 0 family inet filter input MapCoS
# set per-unit-scheduler

# top

# set policy-options prefix-list VlanA20Percent 10.0.0.0/24
# set policy-options prefix-list VlanB80Percent 10.0.1.0/24
# set policy-options prefix-list VlanB80Percent 10.0.2.0/24
# set policy-options prefix-list MNG 2.2.2.2/32

# edit class-of-service

# set classifiers dscp Classifie_VLAN import default

# set forwarding-classes queue 5 VlanA20Percent
# set forwarding-classes queue 1 VlanB80Percent

# set interfaces ge-0/0/0 unit 0 scheduler-map VLAN_Map
# set interfaces ge-0/0/0 unit 0 classifiers dscp Classifie_VLAN
# set interfaces ge-0/0/1 unit 0 scheduler-map VLAN_Map
# set interfaces ge-0/0/1 unit 0 classifiers dscp Classifie_VLAN

# set scheduler-maps VLAN_Map forwarding-class VlanA20Percent scheduler VlanA20Percent
# set scheduler-maps VLAN_Map forwarding-class VlanB80Percent scheduler VlanB80Percent

# set schedulers VlanA20Percent transmit-rate percent 20
# set schedulers VlanA20Percent shaping-rate percent 20
# set schedulers VlanA20Percent buffer-size percent 20
# set schedulers VlanA20Percent priority high

# set schedulers VlanB80Percent transmit-rate percent 80
# set schedulers VlanB80Percent shaping-rate percent 80
# set schedulers VlanB80Percent buffer-size percent 80
# set schedulers VlanB80Percent priority low

# edit firewall filter MapCoS

# set term VlanA80Percent from prefix-list VlanA80Percent
# set term VlanA80Percent then forwarding-class VlanA80Percent
# set term VlanA80Percent then accept

# set term VlanB20Percent from prefix-list VlanB20Percent
# set term VlanB20Percent then forwarding-class VlanB20Percent
# set term VlanB20Percent then accept

# set term AllowMNG from source-prefix-list MNG
# set term AllowMNG then accept

# commit

Good Luck 🙂

By: Abed AL-R. Bishara

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s