How to enable the traffic statistics in CE12800

Created: Aug 31, 2018 13:52:08Latest reply: Sep 5, 2018 22:19:50 489 1 0 0
Issue Description

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



transparent.gifSolution

1The traffic is going through the switch

 

The topology example as follow:

 

PC(192.168.1.10)----- (10ge 1/0/1) CE Switch10ge 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

 

2The traffic is send to switch

 

The topology example as follow:

 

CE Switch192.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)
traffic-policy ping inbound         
loopback internal 

 

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

  • x
  • convention:

Sergio93  Enthusiast Technician   Created Sep 5, 2018 22:19:50 Helpful(0) Helpful(0)

Nice one :)
  • x
  • convention:

BEST ANSWER! If you think I earn it!
If this post was useful to you, please click the Helpful button and flag my post as a "BEST ANSWER" so others can benefit. Thank you

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top