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
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring a CIR and a PIR on Ethernet IQ2 Interfaces

date_range 15-Mar-23

On Gigabit Ethernet IQ2 interfaces, you can configure a CIR (guaranteed rate) and a PIR (shaping rate) on a single logical interface. The configured rates are gathered into a traffic control profile. If you configure a traffic control profile with a CIR (guaranteed rate) only, the PIR (shaping rate) is set to the physical interface (port) rate.

In the following example, logical unit 0 has a CIR equal to 30 Mbps and a PIR equal to 200 Mbps. Logical unit 1 has a PIR equal to 300 Mbps. Logical unit 2 has a CIR equal to 100 Mbps and a PIR that is unspecified. For logical unit 2, the software causes the PIR to be 1 Gbps (equal to the physical interface rate) because the PIR must be equal to or greater than the CIR.

Excess bandwidth is the leftover bandwidth on the port after meeting all the guaranteed rate requirements of the logical interfaces. For each port, excess bandwidth is shared as follows:

  • Proportional to the guaranteed rate—This method is used if you configure one or more logical interfaces on a port to have a guaranteed rate.

  • Proportional to the shaping rate—This method is used if you configure none of the logical interfaces on a port to have a guaranteed rate.

In this example, bandwidth is shared proportionally to the guaranteed rate because at least one logical interface has a guaranteed rate.

  1. Create and configure the traffic control profile.
    content_copy zoom_out_map
    [edit]
    user@host# set class-of-service traffic-control-profiles profile1 scheduler-map sched-map 
    user@host# set class-of-service traffic-control-profiles profile1 shaping-rate 200m 
    user@host# set class-of-service traffic-control-profiles profile1 guaranteed-rate 30m 
    user@host# set class-of-service traffic-control-profiles profile1 delay-buffer-rate 150m 
    user@host# set class-of-service traffic-control-profiles profile2 scheduler-map sched-map 
    user@host# set class-of-service traffic-control-profiles profile2 shaping-rate 300m 
    user@host# set class-of-service traffic-control-profiles profile2 delay-buffer-rate 500k 
    user@host# set class-of-service traffic-control-profiles profile3 scheduler-map sched-map 
    user@host# set class-of-service traffic-control-profiles profile3 guaranteed-rate 100m
    
  2. Apply the traffic control profiles to the interfaces
    content_copy zoom_out_map
    [edit]
    user@host# set class-of-service interfaces ge-3/0/0 unit 0 output-traffic-control-profile profile1 
    user@host# set class-of-service interfaces ge-3/0/0 unit 1 output-traffic-control-profile profile2 
    user@host# set class-of-service interfaces ge-3/0/0 unit 2 output-traffic-control-profile profile3
    
  3. View the configuration.
    content_copy zoom_out_map
    [edit]
    
    user@host#  show class-of-service traffic-control-profiles
    
    profile1 {
        scheduler-map sched-map;
        shaping-rate 200m;
        guaranteed-rate 30m;
        delay-buffer-rate 150m;
    }
    profile2 {
        scheduler-map sched-map;
        shaping-rate 300m;
        delay-buffer-rate 500k;
    }
    profile3 {
        scheduler-map sched-map;
        guaranteed-rate 100m;
    }
    
    content_copy zoom_out_map
    [edit]
    
    user@host#  show class-of-service interfaces
    ge-3/0/0 {
        unit 0 {
            output-traffic-control-profile profile1;
        }
        unit 1 {
            output-traffic-control-profile profile2;
        }
        unit 2 {
            output-traffic-control-profile profile3;
        }
    }
    
footer-navigation