Community-Based BGP QoS Rate Limiting: Cisco IOS-XE QPPB & Juniper Junos SCU/DCU

In service provider and data center networks, enforcing per-destination or per-region bandwidth caps—for example, shaping traffic differently toward China Telecom (CT), China Unicom (CNC), Asia-Pacific, and North America—quickly hits a wall with static interface rate limits or per-IP ACLs. By extending the BGP Community control-plane model into the forwarding plane, we can enforce dynamic regional QoS policies at line rate using Cisco QPPB and Juniper SCU/DCU.

In this hands-on walkthrough, we build and verify bidirectional community-based QoS rate limiting across both Cisco IOS-XE (QPPB) and Juniper Junos (SCU/DCU) using live iperf3 benchmarks.

How QPPB & SCU/DCU Work (Without Burning Router TCAM)

Standard QoS classifiers cannot inspect BGP attributes like AS_PATH or Community directly on transit packets. Attempting to mirror BGP routing tables inside IP ACLs would exhaust router TCAM resources immediately.

QPPB (QoS Policy Propagation Through the Border Gateway Protocol) solves this cleanly: the control plane matches BGP routes by community-list, as-path, or prefix-list and stamps a compact QoS tag (qos-group or IP precedence) onto each entry inside the FIB/CEF table via table-map. When packets transit the router, a single FIB lookup surfaces both the forwarding next-hop and the QoS class with zero ACL overhead.

Cisco refers to this feature as QPPB, whereas Juniper implements the equivalent mechanism as SCU / DCU (Source Class Usage / Destination Class Usage)—propagating routing-policy classes into the PFE forwarding table for firewall-filter matching.

Multi-Region Lab Topology & Per-Region Bandwidth Targets

Inside AS-LITTLEWOLF (AS 65000), we run parallel Juniper (Juniper-Backbone / Juniper-Access) and Cisco IOS-XE (Cisco-Backbone / Cisco-Access) stacks connected to four simulated upstream/regional domains, as shown in Figure 1:

Multi-vendor BGP QPPB (Cisco IOS-XE) and SCU/DCU (Juniper Junos) lab topology for AS 65000 across CNC 5M, CT 10M, Asia 50M, and NA 200M
Figure 1: Multi-region lab topology spanning Juniper Junos (SCU/DCU) and Cisco IOS-XE (QPPB) inside AS-LITTLEWOLF (AS 65000).

AS 65000 enforces the following symmetric (bidirectional) per-destination/source rate targets:

  • China Mainland CNC (routed via CT, carrying 9929:0 and 65001:1): 5 Mbps
  • China Mainland CT (direct cross-connect, carrying 65001:1): 10 Mbps
  • Asia Intl (carrying 65001:2): 50 Mbps
  • NA Intl (carrying 65001:3): 200 Mbps

Control-Plane to Data-Plane Pipeline Comparison

Figure 2 compares the exact configuration pipeline from BGP Community matching down to FIB propagation and egress enforcement on both Cisco IOS-XE and Juniper Junos:

Side-by-side pipeline comparing Cisco IOS-XE QPPB (table-map qos-group and MQC shaping) against Juniper Junos SCU/DCU (forwarding-table export and firewall policer)
Figure 2: Control-plane to data-plane execution pipeline for Cisco IOS-XE QPPB vs. Juniper Junos SCU/DCU.
  • Cisco IOS-XE QPPB: Match via ip community-list → set ip qos-group in ordered route-map → propagate to CEF via BGP table-map → activate bgp-policy destination/source ip-qos-map on ingress interfaces → classify via class-map → shape on egress via service-policy output.
  • Juniper Junos SCU/DCU: Define community members → assign destination-class and source-class in a routing policy → apply to routing-options forwarding-table export → match classes in a stateless firewall family inet filter calling policer rules under forwarding-options output.

Part A: Configuring Bidirectional BGP QPPB on Cisco IOS-XE

We classify incoming prefixes using the standard communities stamped by each upstream peer (upstream tagging config omitted for brevity):

  • Routes received from CT: 65001:1
  • Routes received from Asia: 65001:2
  • Routes received from NA: 65001:3
  • CNC routes learned via CT: 9929:0 (Because these prefixes also carry 65001:1, cnc must precede ct inside the ordered route-map qppb.)

1. Define Community Lists & Ordered Route-Map

ip community-list standard na permit 65001:3
ip community-list standard asia permit 65001:2
ip community-list standard ct permit 65001:1
ip community-list standard cnc permit 9929:0
// Match standard BGP communities advertised by upstream regional peers

route-map qppb permit 100 ordering-seq 100
 match community na
 set ip qos-group 1
!
route-map qppb permit 110 ordering-seq 110
 match community asia
 set ip qos-group 2
!
route-map qppb permit 115 ordering-seq 115
 match community cnc
 set ip qos-group 4
!
route-map qppb permit 120 ordering-seq 120
 match community ct
 set ip qos-group 3
!
route-map qppb permit 9999 ordering-seq 9999
!
named-ordering-route-map enable

2. Propagate QoS-Group Tags into CEF via BGP Table-Map

router bgp 65000
 table-map qppb // Propagate route-map qos-group assignments into the FIB/CEF table

3. Build MQC Class-Maps & Traffic-Shaping Policy-Map

class-map match-all na
 match qos-group 1 // Match FIB qos-group stamped by BGP table-map
class-map match-all ct
 match qos-group 3
class-map match-all asia
 match qos-group 2
class-map match-all cnc
 match qos-group 4
!
policy-map traffic-shaping
 class na
  shape average 200000000 // Enforce 200 Mbps shaping for North America
 class asia
  shape average 50000000
 class ct
  shape average 10000000
 class cnc
  shape average 5000000

4. Enable Bidirectional QPPB on Upstream & Downstream Interfaces

Because MQC shape average operates purely on egress queuing, attach service-policy output traffic-shaping to the outbound interface while enabling bgp-policy destination/source ip-qos-map on the ingress interface where packets enter the router. For outbound (upload) rate limiting alone, apply:

interface GigabitEthernet2 (Upstream)
 ip address 100.64.0.5 255.255.255.254
 (...protocol config ignored)
 service-policy output traffic-shaping 
// Shape outbound upload traffic leaving toward upstream core

interface GigabitEthernet3 (Downstream)
 ip address 172.0.2.1 255.255.255.0
 (...protocol config ignored)
 bgp-policy destination ip-qos-map 
// Enable destination-based FIB QPPB lookup for packets arriving from server LAN
// (For ingress CIR policing instead of egress shaping, apply service-policy input here)

To enforce inbound (download) shaping symmetrically toward the downstream server subnet, add source-based QPPB lookup on the upstream ingress interface and attach the shaping policy outbound toward the servers:

interface GigabitEthernet2 (Upstream)
 ip address 100.64.0.5 255.255.255.254
 (...protocol config ignored)
 bgp-policy source ip-qos-map
// Enable source-based FIB QPPB lookup for inbound traffic returning from upstreams
// (For ingress CIR policing instead of egress shaping, apply service-policy input here)

interface GigabitEthernet3 (Downstream)
 ip address 172.0.2.1 255.255.255.0
 (...protocol config ignored)
 service-policy output traffic-shaping 
// Shape inbound download traffic leaving toward downstream server subnet

5. Cisco IOS-XE Bidirectional iperf3 Verification

Run forward and reverse (-R) iperf3 tests from Server-Silver-A (172.0.2.2) behind Cisco-Access to all four regional endpoints:

root@localhost:~# iperf3 -c 100.64.1.2 -p 443 -t 5 // Outbound traffic toward CT
Connecting to host 100.64.1.2, port 443
[  5] local 172.0.2.2 port 15888 connected to 100.64.1.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.26 MBytes  10.5 Mbits/sec   42   33.9 KBytes
[  5]   1.00-2.00   sec  1.13 MBytes  9.49 Mbits/sec    0   28.3 KBytes
[  5]   2.00-3.00   sec  1.13 MBytes  9.46 Mbits/sec    0   25.5 KBytes
[  5]   3.00-4.00   sec  1.13 MBytes  9.46 Mbits/sec    0   28.3 KBytes
[  5]   4.00-5.00   sec  1.13 MBytes  9.50 Mbits/sec    0   28.3 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  5.78 MBytes  9.69 Mbits/sec   42             sender
[  5]   0.00-5.06   sec  5.73 MBytes  9.51 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.1.2 -p 443 -t 5 -R // Inbound traffic from CT
Connecting to host 100.64.1.2, port 443
Reverse mode, remote host 100.64.1.2 is sending
[  5] local 172.0.2.2 port 15892 connected to 100.64.1.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  1.24 MBytes  10.4 Mbits/sec
[  5]   1.00-2.00   sec  1.14 MBytes  9.57 Mbits/sec
[  5]   2.00-3.00   sec  1.14 MBytes  9.57 Mbits/sec
[  5]   3.00-4.00   sec  1.14 MBytes  9.57 Mbits/sec
[  5]   4.00-5.00   sec  1.14 MBytes  9.56 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec  5.86 MBytes  9.76 Mbits/sec  443             sender
[  5]   0.00-5.00   sec  5.80 MBytes  9.74 Mbits/sec                  receiver
root@localhost:~# iperf3 -c 100.64.2.2 -p 443 -t 5 // Outbound traffic toward CNC
Connecting to host 100.64.2.2, port 443
[  5] local 172.0.2.2 port 22762 connected to 100.64.2.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   739 KBytes  6.05 Mbits/sec   26   67.9 KBytes
[  5]   1.00-2.00   sec   498 KBytes  4.08 Mbits/sec    0   22.6 KBytes
[  5]   2.00-3.00   sec   581 KBytes  4.76 Mbits/sec    0   22.6 KBytes
[  5]   3.00-4.00   sec   602 KBytes  4.94 Mbits/sec    0   28.3 KBytes
[  5]   4.00-5.00   sec   580 KBytes  4.75 Mbits/sec    0   22.6 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  2.93 MBytes  4.92 Mbits/sec   26             sender
[  5]   0.00-5.08   sec  2.88 MBytes  4.76 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.2.2 -p 443 -t 5 -R // Inbound traffic from CNC
Connecting to host 100.64.2.2, port 443
Reverse mode, remote host 100.64.2.2 is sending
[  5] local 172.0.2.2 port 22766 connected to 100.64.2.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   636 KBytes  5.21 Mbits/sec
[  5]   1.00-2.00   sec   584 KBytes  4.78 Mbits/sec
[  5]   2.00-3.00   sec   584 KBytes  4.79 Mbits/sec
[  5]   3.00-4.00   sec   584 KBytes  4.78 Mbits/sec
[  5]   4.00-5.00   sec   583 KBytes  4.77 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec  2.95 MBytes  4.92 Mbits/sec    0             sender
[  5]   0.00-5.00   sec  2.90 MBytes  4.87 Mbits/sec                  receiver
root@localhost:~# iperf3 -c 100.64.3.2 -p 443 -t 5 // Outbound traffic toward Asia
Connecting to host 100.64.3.2, port 443
[  5] local 172.0.2.2 port 46002 connected to 100.64.3.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  6.06 MBytes  50.8 Mbits/sec  2212    110 KBytes
[  5]   1.00-2.00   sec  5.65 MBytes  47.4 Mbits/sec    0   73.5 KBytes
[  5]   2.00-3.00   sec  5.64 MBytes  47.3 Mbits/sec    0   70.7 KBytes
[  5]   3.00-4.00   sec  5.66 MBytes  47.5 Mbits/sec    0   73.5 KBytes
[  5]   4.00-5.00   sec  5.67 MBytes  47.5 Mbits/sec    0   65.0 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  28.7 MBytes  48.1 Mbits/sec  2212             sender
[  5]   0.00-5.07   sec  28.6 MBytes  47.4 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.3.2 -p 443 -t 5 -R // Inbound traffic from Asia
Connecting to host 100.64.3.2, port 443
Reverse mode, remote host 100.64.3.2 is sending
[  5] local 172.0.2.2 port 46006 connected to 100.64.3.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  6.03 MBytes  50.6 Mbits/sec
[  5]   1.00-2.00   sec  5.70 MBytes  47.8 Mbits/sec
[  5]   2.00-3.00   sec  5.70 MBytes  47.8 Mbits/sec
[  5]   3.00-4.00   sec  5.70 MBytes  47.8 Mbits/sec
[  5]   4.00-5.00   sec  5.70 MBytes  47.8 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec  28.9 MBytes  48.1 Mbits/sec  835             sender
[  5]   0.00-5.00   sec  28.8 MBytes  48.4 Mbits/sec                  receiver
root@localhost:~# iperf3 -c 100.64.4.2 -p 443 -t 5 // Outbound traffic toward NA
Connecting to host 100.64.4.2, port 443
[  5] local 172.0.2.2 port 18818 connected to 100.64.4.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  24.3 MBytes   204 Mbits/sec  1233    407 KBytes
[  5]   1.00-2.00   sec  22.9 MBytes   192 Mbits/sec   71    450 KBytes
[  5]   2.00-3.00   sec  22.5 MBytes   189 Mbits/sec  192    229 KBytes
[  5]   3.00-4.00   sec  22.9 MBytes   192 Mbits/sec    0    283 KBytes
[  5]   4.00-5.00   sec  22.8 MBytes   191 Mbits/sec    0    272 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec   115 MBytes   193 Mbits/sec  1496             sender
[  5]   0.00-5.04   sec   115 MBytes   192 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.4.2 -p 443 -t 5 -R // Inbound traffic from NA
Connecting to host 100.64.4.2, port 443
Reverse mode, remote host 100.64.4.2 is sending
[  5] local 172.0.2.2 port 18822 connected to 100.64.4.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  23.9 MBytes   201 Mbits/sec
[  5]   1.00-2.00   sec  22.8 MBytes   191 Mbits/sec
[  5]   2.00-3.00   sec  22.8 MBytes   191 Mbits/sec
[  5]   3.00-4.00   sec  22.8 MBytes   191 Mbits/sec
[  5]   4.00-5.00   sec  22.8 MBytes   191 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec   116 MBytes   193 Mbits/sec   19             sender
[  5]   0.00-5.00   sec   115 MBytes   193 Mbits/sec                  receiver

Every region hits its exact shaping ceiling smoothly in both directions. Next, let us implement the exact same behavior on Juniper Junos.

Part B: Configuring SCU/DCU Rate Limiting on Juniper Junos

Juniper’s SCU/DCU workflow is notably clean: export a routing policy into forwarding-table to assign both destination-class and source-class labels, then enforce bandwidth policers inside a stateless firewall filter.

1. Define Communities & Assign SCU/DCU in Forwarding-Table

root@access> show policy-options...
community import-cnc-via-ct members [ 65001:1 9929:0 ]; 
community import-from-asia members 65001:2;
community import-from-ct members 65001:1;
community import-from-na members 65001:3;
// Match upstream BGP communities carried on received prefixes

root@access> show policy-options policy-statement export-dcu-scu | no-more
term cnc {
    from community import-cnc-via-ct;
    then {
        destination-class cnc-dcu; // Classify outbound traffic destined to CNC
        source-class cnc-scu; // Classify inbound traffic sourced from CNC
        next policy; // Continue to next forwarding-table policy (e.g., load-balancing policy)
    }
}
term ct {
    from community import-from-ct;
    then {
        destination-class ct-dcu;
        source-class ct-scu;
        next policy;
    }
}
term asia {
    from community import-from-asia;
    then {
        destination-class asia-dcu;
        source-class asia-scu;
        next policy;
    }
}
term na {
    from community import-from-na;
    then {
        destination-class na-dcu;
        source-class na-scu;
        next policy;
    }
}
term last {
    then next policy;
}

root@access> show configuration routing-options forwarding-table
export [ export-dcu-scu lb-export ];  
// Install SCU/DCU class labels into the PFE forwarding table

2. Create Policers & Apply Stateless Firewall Filter

root@access> show firewall policer...

policer cnc-via-ct {
    if-exceeding {
        bandwidth-limit 5m;
        burst-size-limit 1m;
    }
    then discard;
}
policer asia {
    if-exceeding {
        bandwidth-limit 50m;
        burst-size-limit 1m;
    }
    then discard;
}
policer na {
    if-exceeding {
        bandwidth-limit 200m;
        burst-size-limit 1m;
    }
    then discard;
}
policer ct {
    if-exceeding {
        bandwidth-limit 10m;
        burst-size-limit 1m;
    }
    then discard;
}

Reference those policers inside a stateless family inet firewall filter matching destination-class and source-class, and apply it outbound under forwarding-options (or per-interface output on physical hardware):

root@access> show firewall family inet filter scu-dcu-shaping | no-more
term dest:na {
    from {
        destination-class na-dcu; // Match outbound traffic destined toward NA
        source-address {
            172.0.0.0/24;
        }
    }
    then policer na; // Apply 200 Mbps policer
}
term dest:asia {
    from {
        destination-class asia-dcu;
        source-address {
            172.0.0.0/24;
        }
    }
    then policer asia;
}
term dest:ct {
    from {
        destination-class ct-dcu;
        source-address {
            172.0.0.0/24;
        }
    }
    then policer ct;
}
term dest:cnc {
    from {
        destination-class cnc-dcu;
        source-address {
            172.0.0.0/24;
        }
    }
    then policer cnc-via-ct;
}
term src:cnc {
    from {
        source-class cnc-scu; // Match inbound traffic arriving from CNC
    }
    then policer cnc-via-ct; // Apply 5 Mbps policer
}
term src:ct {
    from {
        source-class ct-scu;
    }
    then policer ct;
}
term src:asia {
    from {
        source-class asia-scu;
    }
    then policer asia;
}
term src:na {
    from {
        source-class na-scu;
    }
    then policer na;
}
term last {
    then accept;
}

root@access> show configuration forwarding-options
family inet {
    filter {
        output scu-dcu-shaping;
    }
}
// Apply globally at forwarding-options output direction.
// Per-interface SCU/DCU filters also require output direction (input filters cannot match SCU/DCU).
// Applied under forwarding-options here due to a virtual lab interface bug; both work on physical MX hardware.

3. Juniper Junos Bidirectional iperf3 Verification

Run the same four bidirectional iperf3 checks from Server-Platinum-A (172.0.0.2) behind Juniper-Access:

root@localhost:~# iperf3 -c 100.64.1.2 -p 443 -t 5 // Outbound traffic toward CT
Connecting to host 100.64.1.2, port 443
[  5] local 172.0.0.2 port 14538 connected to 100.64.1.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.79 MBytes  15.0 Mbits/sec  708   50.9 KBytes
[  5]   1.00-2.00   sec  1.22 MBytes  10.2 Mbits/sec  202   17.0 KBytes
[  5]   2.00-3.00   sec  1.19 MBytes  9.99 Mbits/sec  157   33.9 KBytes
[  5]   3.00-4.00   sec  1.16 MBytes  9.77 Mbits/sec   47   14.1 KBytes
[  5]   4.00-5.00   sec  1.12 MBytes  9.37 Mbits/sec   86   25.5 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  6.48 MBytes  10.9 Mbits/sec  1200             sender
[  5]   0.00-5.04   sec  6.42 MBytes  10.7 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.1.2 -p 443 -t 5 -R // Inbound traffic from CT
Connecting to host 100.64.1.2, port 443
Reverse mode, remote host 100.64.1.2 is sending
[  5] local 172.0.0.2 port 14542 connected to 100.64.1.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  1.73 MBytes  14.5 Mbits/sec
[  5]   1.00-2.00   sec  1.28 MBytes  10.7 Mbits/sec
[  5]   2.00-3.00   sec  1.15 MBytes  9.65 Mbits/sec
[  5]   3.00-4.00   sec  1.16 MBytes  9.73 Mbits/sec
[  5]   4.00-5.00   sec  1.13 MBytes  9.44 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec  6.53 MBytes  10.9 Mbits/sec  1148             sender
[  5]   0.00-5.00   sec  6.45 MBytes  10.8 Mbits/sec                  receiver
root@localhost:~# iperf3 -c 100.64.2.2 -p 443 -t 5 // Outbound traffic toward CNC
Connecting to host 100.64.2.2, port 443
[  5] local 172.0.0.2 port 18480 connected to 100.64.2.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.10 MBytes  9.23 Mbits/sec  510   11.3 KBytes
[  5]   1.00-2.00   sec   421 KBytes  3.45 Mbits/sec  250   56.6 KBytes
[  5]   2.00-3.00   sec   619 KBytes  5.07 Mbits/sec   47   22.6 KBytes
[  5]   3.00-4.00   sec   577 KBytes  4.73 Mbits/sec   46   22.6 KBytes
[  5]   4.00-5.00   sec   568 KBytes  4.66 Mbits/sec   69   25.5 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  3.24 MBytes  5.43 Mbits/sec  922             sender
[  5]   0.00-5.05   sec  3.21 MBytes  5.33 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.2.2 -p 443 -t 5 -R // Inbound traffic from CNC
Connecting to host 100.64.2.2, port 443
Reverse mode, remote host 100.64.2.2 is sending
[  5] local 172.0.0.2 port 18484 connected to 100.64.2.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   834 KBytes  6.83 Mbits/sec
[  5]   1.00-2.00   sec   699 KBytes  5.72 Mbits/sec
[  5]   2.00-3.00   sec   467 KBytes  3.82 Mbits/sec
[  5]   3.00-4.00   sec   718 KBytes  5.89 Mbits/sec
[  5]   4.00-5.00   sec   595 KBytes  4.88 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec  3.31 MBytes  5.52 Mbits/sec  966             sender
[  5]   0.00-5.00   sec  3.24 MBytes  5.43 Mbits/sec                  receiver
root@localhost:~# iperf3 -c 100.64.3.2 -p 443 -t 5 // Outbound traffic toward Asia
Connecting to host 100.64.3.2, port 443
[  5] local 172.0.0.2 port 58888 connected to 100.64.3.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  6.48 MBytes  54.3 Mbits/sec  1969    481 KBytes
[  5]   1.00-2.00   sec  5.55 MBytes  46.6 Mbits/sec  2273    997 KBytes
[  5]   2.00-3.00   sec  5.21 MBytes  43.7 Mbits/sec  2681    417 KBytes
[  5]   3.00-4.00   sec  4.80 MBytes  40.2 Mbits/sec  2244    625 KBytes
[  5]   4.00-5.00   sec  4.58 MBytes  38.4 Mbits/sec  1464    533 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  26.6 MBytes  44.6 Mbits/sec  10631             sender
[  5]   0.00-5.04   sec  25.9 MBytes  43.1 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.3.2 -p 443 -t 5 -R // Inbound traffic from Asia
Connecting to host 100.64.3.2, port 443
Reverse mode, remote host 100.64.3.2 is sending
[  5] local 172.0.0.2 port 58892 connected to 100.64.3.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  4.99 MBytes  41.8 Mbits/sec
[  5]   1.00-2.00   sec  5.78 MBytes  48.5 Mbits/sec
[  5]   2.00-3.00   sec  5.03 MBytes  42.2 Mbits/sec
[  5]   3.00-4.00   sec  5.33 MBytes  44.7 Mbits/sec
[  5]   4.00-5.00   sec  4.43 MBytes  37.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec  26.5 MBytes  44.2 Mbits/sec  10458             sender
[  5]   0.00-5.00   sec  25.6 MBytes  42.9 Mbits/sec                  receiver
root@localhost:~# iperf3 -c 100.64.4.2 -p 443 -t 5 -b 400M // Outbound traffic toward NA
Connecting to host 100.64.4.2, port 443
[  5] local 172.0.0.2 port 50024 connected to 100.64.4.2 port 443
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  19.8 MBytes   166 Mbits/sec  3853    452 KBytes
[  5]   1.00-2.00   sec  18.9 MBytes   159 Mbits/sec  3799    314 KBytes
[  5]   2.00-3.00   sec  22.9 MBytes   192 Mbits/sec  1522    123 KBytes
[  5]   3.00-4.00   sec  23.2 MBytes   194 Mbits/sec  1132    478 KBytes
[  5]   4.00-5.00   sec  23.3 MBytes   195 Mbits/sec  2893    574 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec   108 MBytes   181 Mbits/sec  13199             sender
[  5]   0.00-5.03   sec   107 MBytes   179 Mbits/sec                  receiver

iperf Done.
root@localhost:~# iperf3 -c 100.64.4.2 -p 443 -t 5 -b 400M -R // Inbound traffic from NA
Connecting to host 100.64.4.2, port 443
Reverse mode, remote host 100.64.4.2 is sending
[  5] local 172.0.0.2 port 50028 connected to 100.64.4.2 port 443
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  11.1 MBytes  93.1 Mbits/sec
[  5]   1.00-2.00   sec  23.0 MBytes   193 Mbits/sec
[  5]   2.00-3.00   sec  23.0 MBytes   193 Mbits/sec
[  5]   3.00-4.00   sec  23.1 MBytes   194 Mbits/sec
[  5]   4.00-5.00   sec  23.2 MBytes   195 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.04   sec   104 MBytes   173 Mbits/sec  14906             sender
[  5]   0.00-5.00   sec   103 MBytes   174 Mbits/sec                  receiver

Policer CIR vs. Traffic Shaping & Official References

Both Cisco QPPB and Juniper SCU/DCU enforce every regional rate target accurately. Notice that the Juniper configuration uses a stateless CIR policer (dropping excess packets immediately rather than queuing them), which accounts for the higher TCP Retr counts compared to Cisco’s MQC shape average. In production, choose queuing-based traffic shaping over hard policing whenever burst tolerance and TCP smoothness matter.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.