Technical Documentation

Packet Flow Through the CoS Process Configuration Example

The following configuration demonstrates the packet flow through the CoS process:

[edit class-of-service]interfaces { # Step 1: Define CoS interfaces.so-* {scheduler-map sched1;unit 0 {classifiers {exp exp_classifier;}}}t3-* {scheduler-map sched1;unit 0 {classifiers {exp exp_classifier;}}}}classifiers { # Step 2: Define classifiers.exp exp_classifier {forwarding-class data-queue {loss-priority low code-points 000;loss-priority high code-points 001;}forwarding-class video-queue {loss-priority low code-points 010;loss-priority high code-points 011;}forwarding-class voice-queue {loss-priority low code-points 100;loss-priority high code-points 101;}forwarding-class nc-queue {loss-priority high code-points 111;loss-priority low code-points 110;}}drop-profiles { # Step 3: Define drop profiles.be-red {fill-level 50 drop-probability 100;}}forwarding-classes { # Step 4: Define queues.queue 0 data-queue;queue 1 video-queue;queue 2 voice-queue;queue 3 nc-queue;}schedulers { # Step 5: Define schedulers.data-scheduler {transmit-rate percent 50;buffer-size percent 50;priority low;drop-profile-map loss-priority high protocol any drop-profile be-red;}video-scheduler {transmit-rate percent 25;buffer-size percent 25;priority strict-high;}voice-scheduler {transmit-rate percent 20;buffer-size percent 20;priority high;}nc-scheduler {transmit-rate percent 5;buffer-size percent 5;priority high;}}scheduler-maps { # Step 6: Define scheduler maps.sched1 {forwarding-class data-queue scheduler data-scheduler;forwarding-class video-queue scheduler video-scheduler;forwarding-class voice-queue scheduler voice-scheduler;forwarding-class nc-queue scheduler nc-scheduler;}}

Published: 2010-04-15