★ ICMP message traffic statistics

2023-12-29 11:10:31 Published
  • 0 Followed
  • 0Collected ,2165Browsed

Network Topology


Take the example of ICMP request packet traffic going to.

Configuration Steps

Step 1: Define the ACL to match the ICMP Request message with the source IP is 192.168.1.1 and destination IP is 192.168.1.2.

acl advanced 3000
rule 5 permit icmp source 192.168.1.1 0 destination 192.168.1.2 0

Step 2: Create a traffic classifier named classifier_1 that matches the packet"s rule ACL 3000. Create a traffic behavior named behavior_1 to define the traffic statistics action accounting packet.

traffic classifier classifier_1
if-match acl 3000
traffic behavior behavior_1
accounting packet

Step 3: Create a policy named policy_1 to associate the traffic classifier with traffic behavior.

qos policy policy_1
classifier classifier_1 behavior behavior_1

Step 4: Apply the QOS policy to the inward direction of port 1 and the outward direction of port 2.

interface GigabitEthernet 1/0/1

qos apply policy policy_1 inbound

interface GigabitEthernet 1/0/2

qos apply policy policy_1 outbound

Step 5: Reset interface counters and ping through 192.168.1.1 to 192.168.1.2

<H3C>reset counters interface
<H3C>ping -a 192.168.1.1 192.168.1.2

Step 6: View Traffic Qos results with the command: display qos policy interface inbound/outbound

<H3C>display qos policy interface inbound 
Interface: GigabitEthernet1/0/1 
Direction: Inbound 
Policy: policy_1
Classifier: classifier1 
Operator: AND 
Rule(s): 
lf-match acl 3000 
Behavior: behavior1 
Accounting enable: 
5 (Packets)

<H3C>display qos policy interface outbound
Interface: GigabitEthernet1/0/2
Direction: Outbound
Policy:  policy_1
Classifier: classifier_1
Operator: AND
Rule(s):
if-match acl 3000
Behavior: behavior1
Accounting enable:
5 (Packets)  


Key Configuration

Need to pay attention to where the traffic is going.

Please rate this case:   
0 Comments

No Comments

Add Comments: