华为S3552/3528 限速实例
CBS=EBS=2000/8*1.2*1024=307200Byte。 处理过程: 配置output方向端口限速整形(对出端口的报文—–2M 带宽) 推荐配置对端口上所有的流量都进行流量整形,而不要配置针对某个输出队列的流量整形, 而且粒度最小650k,所以650Kbps ×4=2600 [Quidway-Ethernet0/1]traffic-shape 10400(给用户最大速率) 140(允许速率达到最大后的突发值:140指突发1.2Mbit) 256(默认值) 配置input方向端口流量限速(对入端口的报文—–2M 带宽): 先配置一个link-group的any-any 的ACL [Quidway-acl-link-4000] rule permit ingress any egress any [Quidway-Ethernet0/1] traffic-limit inbound link-group 4000 2048 2560 2560 2048 conform remark-policed-service exceed drop 命令格式(CIR=PIR,CBS=EBS=CIR/8*1.2*1024) traffic-limit inbound ip-group 4000 CIR CBS EBS PIR traffic-shape 10400(给用户最大速率) 140(允许速率达到最大后的突发值:140指突发1.2Mbit) 256(默认值) 10M traffic-limit inbound link-group 4000 10240 1572864 1572864 10240 20M traffic-limit inbound link-group 4000 20480 3145728 3145728 20480 30M traffic-limit inbound link-group 4000 30720 4718592 4718592 30720 40M traffic-limit inbound link-group 4000 40960 6291456 6291456 40960 50M traffic-limit inbound link-group 4000 51200 7864320 7864320 51200 60M traffic-limit inbound link-group 4000 rule 0 61440 9437184 9437184 61440 70M traffic-limit inbound link-group 4000 rule 0 71680 9437184 9437184 71680 80M traffic-limit inbound link-group 4000 rule 0 81920 9437184 9437184 81920 90M traffic-limit inbound link-group 4000 rule 0 92160 9437184 9437184 92160 undo traffic-limit inbound link-group 4000 undo traffic-shape traffic-limit inbound ip-group 4000 rule 0 51200(平均流量kbps) 62914560(峰值流量byte) 0(超出流量byte) traffic-shape 52000(平均流量kbps 650的备数) 16000(峰值流量kbyte 4k的倍数) 256 traffic-shape