[Edgecore SONiC] Rate-limit Follow
Reference model:
- Switch model name:
- AS7726-32X
- AS7326-56X
- AS7816-64X
- AS5835-54X(T)
- AS9716-32D
- AS8000(Minipack)
- Wedge100BF-32X
- Edgecore SONiC version:
- Edgecore-SONiC_20201123_130028_ec202006_74
- Edgecore-SONiC_20201229_070315_ec202006_101
- Edgecore-SONiC_20201229_070315_ec202006_bfn_65(Wedge100BF-32X)
Restriction:
Doesn't support Rate-limit for CLI.
AS4630-54PE doesn't support rate-limit for egress.
Example: Setting Rate-limit on AS5835-54X (ingress and egress)
Topology:
Procedure:
Step 1: Down speed to 1G on Ethernet0 and Ethernet1.
admin@sonic:~$ sudo config interface speed Ethernet0 1000
admin@sonic:~$ sudo config interface speed Ethernet1 1000
Step 2: Disable TX-disable on Ethernet0 and Ethernet1.
admin@sonic:~$ sudo accton_as5835_54x_util.py set sfp 1 0
admin@sonic:~$ sudo accton_as5835_54x_util.py set sfp 1 0
Step 3: Created the VLAN and allowed the VLAN member to the port.
admin@sonic:~$ sudo config vlan add 1
admin@sonic:~$ sudo config vlan member add -u 1 Ethernet0
admin@sonic:~$ sudo config vlan member add -u 1 Ethernet1
Step 4: Setting rate limit on Ethernet0 via editing config_db.json.
Example of Ingress.
Ports "Ethernet0" will be limited to 400mbps/sec.
"SCHEDULER": {
"scheduler.port": {
"meter_type": "bytes",
"pir": "50000000",
"pbs": "8192"
}
},
"PORT_QOS_MAP": {
"Ethernet0": {
"ing_scheduler": "[SCHEDULER|scheduler.port]"
}
}
Note:
- scheduler.port is the name of this SCHEDULER
- "meter_type": "packets"/"bytes"
- "pir": max rate in pps (packet per second)
- "pbs": max burst size in packets
- "PORT_QOS_MAP": Binding the "SHEDULER" on the Ethernet0 and the direction is ingress.
"ing_scheduler": it means the direction is ingress.
"egr_scheduler": it means the direction is egress.
Test result:
Example of Egress.
Ports "Ethernet0" will be limited to 800mbps/sec.
"SCHEDULER": {
"scheduler.port": {
"meter_type": "bytes",
"pir": "100000000",
"pbs": "8192"
}
},
"PORT_QOS_MAP": {
"Ethernet1": {
"egr_scheduler": "[SCHEDULER|scheduler.port]"
}
}
Test result:
Comments
0 comments
Please sign in to leave a comment.