Respected people, What is the correct procedure to use Policer in VPP? I want to limit bandwidth to 4Mbps for each connection. Using steps below I can assign 4Mbps to the combined traffic, instead of separate 4Mbps for each pppoe connection.
I made a policy to limit bandwidth. Then added 2 rules for filtering on the source IPs of 2 different PPPoE Sessions. Bandwidth is being limited, as required. But both clients seem to be sharing the same token bucket. That is, the cumulative bandwidth for the two clients is 4Mbps. I wanted each client to have an individual limit of 4Mbps. The link has a capacity of 10Gbps, so, just two clients should not be sharing bandwidth yet. Currently, I can assign exclusive bandwidths to clients, by defining a new policy for each. But I don’t feel that is the correct procedure... Steps I followed: ➢ VPP Version: stable/1901 ➢ Unrelated Code diff: PFA: vppPolicer1.diff ➢ Start-up Configuration file: PFA: vpp-startup.conf ➢ Installtion: o make install-dep o make install-ext-deps o make build o make pkg-rpm o sudo rpm -i build-root/*.rpm ➢ Connected two pppoe sessions o create pppoe session client-ip 192.168.255.254 session-id 1 client-mac 00:50:56:00:3e:83 o create pppoe session client-ip 192.168.255.253 session-id 2 client-mac 00:50:56:00:bb:87 ➢ Policer configuration: o classify table mask hex 0000ffffffff00000000000000000000 buckets 65535 skip 2 match 1 o configure policer name policy1 type 1r2c cir 4096 cb 16384 rate kbps conform-action transmit exceed-action drop violate-action drop o set policer classify interface TenGigabitEthernet5/0/0 ip4-table 0 o classify session policer-hit-next policy1 table-index 0 match hex 00000000000000000000000000000000000000000000000000000000000000000000c0a8fffe00000000000000000000 o classify session policer-hit-next policy1 table-index 0 match hex 00000000000000000000000000000000000000000000000000000000000000000000c0a8fffd00000000000000000000 Warm Regards, AbduSami bin Khurram Software Design Engineer, xFlow Research Pvt. Ltd. +92-331-5543190 [email protected] www.xflowresearch.com
vppPolicer1.diff
Description: Binary data
vpp-startup.conf
Description: Binary data
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13178): https://lists.fd.io/g/vpp-dev/message/13178 Mute This Topic: https://lists.fd.io/mt/31836214/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
