Is the shaping-rate on a CoS scheduler per-port or aggregate on a Juniper EX

cosjuniper-exjuniper-junos

I'm using a Juniper EX2200 as demarc/CPE device for a customer that has multiple handoff ports on the one switch. I need to make sure that, across all their ports, they don't use more bandwidth than they ordered.

I've read the Juniper doc Defining CoS Schedulers and I'm still not sure if the egress shaper is applied per-interface or per-scheduler.

My config snippit is below. Ports 0/1/0-3 are downstream to the customer and port 0/1/0 is upstream.

# show class-of-service
interfaces {
    ge-0/0/0 {
        scheduler-map all-cust;
    }
    ge-0/0/1 {
        scheduler-map all-cust;
    }
    ge-0/0/2 {
        scheduler-map all-cust;
    }
    ge-0/0/3 {
        scheduler-map all-cust;
    }
    ge-0/1/0 {
        shaping-rate 20971520;
    }
}
scheduler-maps {
    all-cust {
        forwarding-class best-effort scheduler all-cust;
    }
}
schedulers {
    all-cust {
        shaping-rate 31457280;
    }
}

Best Answer

Per port, not aggregate. Schedulers are not global, rather per interface queue.