Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Applying CoS Attributes to VLANs Using Agent-Circuit-Identifiers

To apply CoS attributes, such as shaping, at the household level. you must set and define the CoS policy for the agent-circuit-identifier VLAN interface set using the dynamic profile for the agent-circuit-identifier interface set (not the subscriber profile). You can also configure a traffic control profile and a remaining traffic control profile for a dynamic interface set.

The following example is a CoS profile for an ACI set using a unique-ID based dynamic scheduler map:

Before you apply CoS attributes to VLANs:

Configure a CoS dynamic profile with a simple traffic control profile that is applied to the dynamic interface set that represents the ACI VLAN.

  1. Configure CoS to support a dynamic interface set in the CoS profile:
    [edit dynamic-profiles profile-name]user@host# edit interface "$junos-interface-name"
  2. Configure the interfaces.
    [edit dynamic-profiles profile-name interfaces]user@host# edit interface-set "$junos-interface-set-name"user@host# edit interface "$junos-interface-ifd-name"
  3. Configure the CoS traffic control profile.
    [edit class-of-service]user@host# edit traffic-control-profiles traffic-control-profile-nameuser@host# set shaping-rate rateuser@host# set guaranteed-rate rate
  4. Specify the interfaces.
    [edit class-of-service interfaces]user@host# edit interface-set "$junos-interface-set-name"user@host# edit output-traffic-control-profile profile-name

The following example is a CoS profile for an ACI set using a unique ID-based dynamic scheduler map:

aci-set-profile {variables {ds1q0q2DP uid;ds1q1q2DP uid;be1_dp uid;ef1_dp uid;af1_dp uid;nc1_dp uid;}interfaces {interface-set "$junos-interface-set-name" {interface "$junos-interface-ifd-name";}}class-of-service {traffic-control-profiles {tcp2 {inactive: scheduler-map ss1q0q1DP;shaping-rate 50m;guaranteed-rate 30m;overhead-accounting bytes -20;}tcp3 {scheduler-map "$ds1q1q2DP";shaping-rate 30m;guaranteed-rate 10m;overhead-accounting bytes -20;}}interfaces {interface-set "$junos-interface-set-name" {output-traffic-control-profile tcp2;output-traffic-control-profile-remaining tcp3;}}scheduler-maps {"$ds1q0q2DP" {forwarding-class be scheduler "$be1_dp";forwarding-class af scheduler "$af1_dp";forwarding-class nc scheduler "$nc1_dp";}"$ds1q1q2DP" {forwarding-class ef scheduler "$ef1_dp";forwarding-class af scheduler "$af1_dp";forwarding-class nc scheduler "$nc1_dp";}}schedulers {"$be1_dp" {transmit-rate percent 25;priority low;drop-profile-map loss-priority low protocol any drop-profile d3;drop-profile-map loss-priority medium-low protocol any drop-profile d2;drop-profile-map loss-priority medium-high protocol any drop-profile d1;drop-profile-map loss-priority high protocol any drop-profile d0;}"$ef1_dp" {transmit-rate percent 25;priority low;drop-profile-map loss-priority low protocol any drop-profile d3;drop-profile-map loss-priority medium-low protocol any drop-profile d2;drop-profile-map loss-priority medium-high protocol any drop-profile d1;drop-profile-map loss-priority high protocol any drop-profile d0;}"$af1_dp" {transmit-rate percent 25;priority low;drop-profile-map loss-priority low protocol any drop-profile d3;drop-profile-map loss-priority medium-low protocol any drop-profile d2;drop-profile-map loss-priority medium-high protocol any drop-profile d1;drop-profile-map loss-priority high protocol any drop-profile d0;}"$nc1_dp" {transmit-rate percent 25;priority low;drop-profile-map loss-priority low protocol any drop-profile d3;drop-profile-map loss-priority medium-low protocol any drop-profile d2;drop-profile-map loss-priority medium-high protocol any drop-profile d1;drop-profile-map loss-priority high protocol any drop-profile d0;}}}}

Published: 2013-02-11