Configuring Egress Interface-based Rate Limiting


To control the rate of all outgoing traffic on an interface, configure egress interface-based rate limiting. When the transmit rate of packets exceeds the configured rate limit, the excess packets will be discarded.

set interface gigabit-ethernet <interface-name> rate-limiting egress kilobits <value>

set interface gigabit-ethernet <interface-name> rate-limiting egress ratio <value>

set interface gigabit-ethernet <interface-name> rate-limiting egress burst <burst-size>

NOTE:

  • In the same direction of the same interface, kilobits and ratio cannot be configured simultaneously.
  • When burst size is not configured, PICOS uses a burst size adapted according to the configured rate limiting value configured by the set interface gigabit-ethernet <interface-name> rate-limiting egresskilobits <value> or set interface gigabit-ethernet <interface-name> rate-limiting egressratio <value> command.

Configuration Example

  •   Set the rate limit to 8000 kbit/s on interface te-1/1/1 for the egress traffic, and use the system adapted burst size.
admin@Xorplus# set interface gigabit-ethernet te-1/1/1 rate-limiting egress kilobits 8000
admin@Xorplus# commit
  •   You can use run show interface gigabit-ethernet command to check the configuration, where Interface rate limit ingress: , egress: ” and ”Interface burst limit ingress: , egress: ” indicating the configuration of interface-based rate limit and burst size.
admin@Xorplus# run show interface gigabit-ethernet te-1/1/1 
Physical interface: te-1/1/1, Enabled, error-discard False, Physical link is Down 
Interface index: 1, Mac Learning Enabled 
Port mode: access
Description: 
Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Full 
Source filtering: Disabled, Flow control: Disabled, Auto-negotiation: Disabled 
Interface flags: Hardware-Down SNMP-Traps Internal: 0x0 
Interface rate limit ingress: unlimited,egress: 8000kbps 
Interface burst limit ingress: unlimited, egress: 10kb
Link fault signaling ignore local fault:false, ignore remote fault:false 
force up mode:false 
Precision Time Protocol mode:none 
Current address: cc:37:ab:b6:9b:55, Hardware address: cc:37:ab:b6:9b:55 
Traffic statistics: 
5 sec input rate 0 bits/sec, 0 packets/sec 
5 sec output rate 0 bits/sec, 0 packets/sec 
Input Packets............................0 
Output Packets...........................0 
Input Octets.............................0 
Output Octets............................0 

Copyright © 2024 Pica8 Inc. All Rights Reserved.