Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Broadband Subscriber Services User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Applying CoS Attributes to VLANs Using Agent-Circuit-Identifiers

date_range 05-Dec-23

To apply CoS attributes, such as shaping, at the household level, you must set and define the CoS policy for the ACI VLAN interface set using the dynamic profile for the ACI 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 interface set using a unique-ID based dynamic scheduler map:

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:
    content_copy zoom_out_map
    [edit dynamic-profiles profile-name]
    user@host# edit interface "$junos-interface-name"
    
  2. Configure the interfaces.
    content_copy zoom_out_map
    [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.
    content_copy zoom_out_map
    [edit class-of-service]
    user@host# edit traffic-control-profiles traffic-control-profile-name
    user@host# set shaping-rate rate
    user@host# set guaranteed-rate rate
    
  4. Specify the interfaces.
    content_copy zoom_out_map
    [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:

content_copy zoom_out_map
dynamic-profiles {
    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 {
                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;
            }
        }
    }
}
footer-navigation