| Configuring
a BA Classifier |
|
Use a BA classifier to classify traffic based on the IP precedence of
the packet. The classifier defines IP precedence value 101 as voice traffic
and 000 as data traffic.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Class of service, click Configure or Edit.
- Next to Classifiers, click Configure or Edit.
- Next to Inet precedence, click Add new
entry.
- Enter corp-traffic in the Name box.
- Next to Forwarding class, click Add new
entry.
- Enter voice-class in the Class name box.
- Next to Loss priority, click Add new entry.
- Enter low in the Loss val box.
- Next to Code points, click Add new entry.
- Enter 101 in the Value box.
- Click OK three times.
- In the Inet precedence forwarding class page, enter voice-class in
the Class name box.
- Next to Loss priority, click Add new entry.
- Enter high in the Loss val box.
- Next to Code points, click Add new entry.
- Enter 000 in the Value box.
- Click OK five times.
|
From the [edit] hierarchy level, enter
edit Class of service classifiers inet-precedence corp-traffic forwarding-class
voice-class loss-priority low
Enter set code-points 101
From the [edit] hierarchy level, enter
edit class-of-service classifiers inet-precedence corp-traffic forwarding-class
data-class loss-priority high
Enter set code-points 000
|
| Configuring
the Forwarding Classes |
|
Assign priority queuing to voice and data traffic.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Class of service, click Configure or Edit.
- Next to Forwarding classes, click Configure or Edit.
- Next to Queue, click Add new entry.
- Enter 0 in the Queue num box.
- Enter voice-class in the Class name box.
- Click OK to return to the Forwarding
Classes page.
- Next to Queue, click Add new entry.
- Enter 1 in the Queue num box.
- Enter data-class in the Class name box.
- Click OK three times.
|
From the [edit] hierarchy level, enter
edit class-of-service forwarding-classes queue 0 voice-class
enter
edit class-of-service forwarding-classes queue 1 data-class
|
| Configuring
the Scheduler Map and Schedulers |
|
Configure the scheduler map and voice scheduler.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Class of service, click Configure or Edit.
- Next to Scheduler maps, click Add new entry.
- In the Map name box, type corp-map.
- Next to Forwarding class, click Add new
entry.
- In the Class name box, type voice-class.
- In the Scheduler name box, type voice-sched.
- Click OK three times.
|
From the [edit] hierarchy level, enter
edit class-of-service scheduler-maps corp-map forwarding-class voice-class
Enter
set scheduler voice-sched
|
|
Define the voice and data traffic schedulers, and set the priority.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Class of service, click Configure or Edit.
- Next to Schedulers, click Add new entry.
- In the Scheduler name box, type voice-sched.
- In the Priority box, type strict-high.
- Click OK.
- Next to Schedulers, click Add new entry.
- In the Scheduler name box, type data-sched.
- In the Priority box, type low.
- Click OK twice.
|
From the [edit] hierarchy level, enter
edit class-of-service schedulers voice-sched
Enter
set priority strict-high
From the [edit] hierarchy level, enter
edit class-of-service schedulers data-sched
Enter
set priority low
|
| Applying the
BA Classifier to an Input Interface and Scheduler Map to an Output Interface
|
|
Apply the BA classifier to an input interface—for example, fe-0/0/0.
Apply the scheduler map to and output interface—for example, e1-1/0/0.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Interfaces, click Configure or Edit.
- Next to Interface, click Add new entry.
- In the Interface name box, type fe-0/0/0.
- Click OK three times.
- In the Edit Configuration page, next to Class of service,
click Configure or Edit.
- Next to Classifiers, click Edit.
- Next to Inet precedence, click Add new
entry.
- In the Name box, type corp-traffic.
- Click OK three times.
- In the Edit Configuration page, next to Interfaces, click Configure or Edit.
- Next to Interface name, type e1-1/0/1.
- Click OK twice.
- In the Edit Configuration page, next to Class of service,
click Configure or Edit.
- Next to Scheduler maps, click Add new entry.
- In the Map name box, type corp-map.
- Click OK twice.
|
From the [edit] hierarchy level, enter
edit interfaces fe-0/0/0 unit 0
From the [edit] hierarchy level, enter
edit class of service classifiers inet-precedence corp-traffic
From the [edit] hierarchy level, enter
edit interfaces e1-1/0/0 unit 0
From the [edit] hierarchy level, enter
edit class-of-service scheduler-maps corp-map
|
| Configuring
Two Policers |
|
Configure two policers: one as voice-drop and second as voice-excess.
|
- In the J-Web interface, select Configuration>View
and Edit>Edit Configuration.
- Next to Firewall, click Configure or Edit.
- Next to Policer, click Add new entry.
- In the Policer name box, type voice-drop.
- Next to If Exceeding, select the check box and click Configure.
- In the Burst size limit box, type 200000.
- In the Bandwidth list, select Bandwidth limit.
- In the Bandwidth limit box, type 2000000.
- Click OK.
- On the Policer page, next to Then, click Configure.
- Next to Discard, select the check box.
- Click Ok twice.
- In the Firewall Configuration page next to Policer, click Add new entry.
- In the Policer name box, type voice-excess.
- Next to If Exceeding, select the check box and click Configure.
- In the Burst size limit box, type 200000.
- In the Bandwidth list, select Bandwidth limit.
- In the Bandwidth limit box, type 1000000.
- Click OK.
- On the Policer page, next to Then, click Configure.
- Next to Out of profile, select the check box.
- Click OK twice.
|
From the [edit] hierarchy level, enter
edit firewall policer voice-drop if-exceeding
Enter
set burst-size-limit 200000 bandwidth-limit 2000000
Enter
set then discard
From the [edit] hierarchy level, enter
edit firewall policer voice-excess if-exceeding
Enter
set burst-size-limit 200000 bandwidth-limit 1000000
Enter
set then out-of-profile
|
|
Create a firewall filter voice-term that includes the new policers
|
- In the Firewall Configuration page next to Filter,
click Add new entry.
- In the Filter name box, type voice-term.
- Next to Term click Add new entry.
- In the Rule name box, type term 01.
- Next to Term, click Add new entry.
- Next to From, click Configure.
- Next to Forwarding class choice, select forwarding-class.
- Next to Forwarding class, click Add new
entry.
- In the String box, type voice-class.
- Click OK twice.
- In the Term Filter page, next to Then, click Configure.
- Next to Policer choice, select policer.
- In the Policer box, type voice-drop.
- Next to Designation, select Next.
- In the Next box, select term.
- Click OK twice.
- In the Firewall Filter page, next to Term, click Add
new entry.
- In the Rule name box, type term 02.
- Next to From, click Configure.
- Next to Forwarding class choice, select forwarding-class.
- Next to Forwarding class, click Add new
entry.
- In the String box, type voice-class.
- Click OK twice.
- In the Term Filter page, next to Then, click Configure.
- Next to Policer choice, select policer.
- In the Policer box, type voice-excess.
- Next to Designation, select Accept.
- Click OK four times.
|
From the [edit] hierarchy level, enter
edit firewall filter voice-term term 01 from forwarding-class voice-class
then policer voice-drop next term
Enter
edit firewall filter voice-term term 02 from forwarding-class voice-class
then policer voice-excess accept
|
| Applying the
Filter to the Output Interface |
|
Apply filter voice-term to e1-1/0/0 using the CLI.
|
|
From the [edit] hierarchy level, enter
edit interfaces e1-1/0/1 unit 0 family inet filter output voice-term
Enter
set family inet address 11.1.1.1/24
|