The traffic statistics is a very common method in packets loss or drop scenes,we can easy to find where the packets loss and give suggest.
But for CloudEngine switch there have some limit in outbound statistics when the packets is send by itself.
Bellow is a traffic statistics configuration example for CE12800 V2R2C50SPC800

1、The traffic is going through the switch
The topology example as follow:
PC(192.168.1.10)----- (10ge 1/0/1) CE Switch(10ge 2/0/1)------Server(192.168.2.10)
Traffic statistics configuration from CE switch
acl 3999 rule permit icmp source 192.168.1.10 0.0.0.0 destination 192.168.2.10 0.0.0.0 (Source->Destination) rule permit icmp source 192.168.2.10 0.0.0.0 destination 192.168.1.10 0.0.0.0 (Destination->Source) # traffic classifier ping if-match acl 3999 # traffic behavior ping statistic enable # traffic policy ping classifier ping behavior ping # interface 10ge 1/0/1 traffic-policy ping inbound traffic-policy ping outbound # interface 10ge 2/0/1 traffic-policy ping inbound traffic-policy ping outbound |
Then use the follow command to check the result:
<huawei> display traffic-policy statistics interface 10ge 1/0/1 inbound rule-base
<huawei> display traffic-policy statistics interface 10ge 1/0/1 outbound rule-base
<huawei> display traffic-policy statistics interface 10ge 2/0/1 inbound rule-base
<huawei> display traffic-policy statistics interface 10ge 2/0/1 outbound rule-base
2、The traffic is send to switch
The topology example as follow:
CE Switch(192.168.1.10)------Server(192.168.2.10)
Traffic statistics configuration from CE switch
acl 3999 rule permit icmp source 192.168.1.10 0.0.0.0 destination 192.168.2.10 0.0.0.0 (Source->Destination) rule permit icmp source 192.168.2.10 0.0.0.0 destination 192.168.1.10 0.0.0.0 (Destination->Source) # traffic classifier ping if-match acl 3999 # traffic behavior ping statistic enable # traffic policy ping classifier ping behavior ping # interface 10ge 1/0/1 traffic-policy ping inbound port-mirroring observe-port 1 outbound (Send the outbound traffic to observe-port) # observe-port 1 interface 10ge 1/0/2 # interface
10ge 1/0/2 (Enable
the traffic statistics) |
Then use the follow command to check the result:
<huawei> display traffic-policy statistics interface 10ge 1/0/1 inbound rule-base
<huawei> display traffic-policy statistics interface 10ge 1/0/2 inbound rule-base (this command can check the outbound statistics for interface 10ge 1/0/1)
END