★ *Traffic Accounting Method

2022-09-10 01:17:24 Published
  • 0 Followed
  • 0Collected ,1150Browsed

Network Topology

as:

Configuration Steps

1.configure following in switch or router

#

acl advanced 3000

rule permit icmp source 1.1.1.1  0 destination 2.2.2.2  0

rule permit icmp source 2.2.2.2  0  destination 1.1.1.1  0

#

traffic classifier 1 operator and

if-match acl 3000

#

traffic behavior 1

accounting packet   //some using [accounting]

#

qos policy 1

classifier 1 behavior 1

#

interface GigabitEthernet1/0/1   

qos apply policy 1 inbound

qos apply policy 1 outbound

interface GigabitEthernet1/0/2

qos apply policy 1 inbound

qos apply policy 1 outbound

#

reset counters interface g 1/0/1

reset counters interface g 1/0/2

#

2.Ping from RT1 to RT2(1.1.1.1--->2.2.2.2)

3.Check results in sw or router.

#

display qos policy interface gigabitethernet 1/0/1

-->

Interface: GigabitEthernet1/0/1 

 Direction: Inbound 

 Policy: 1 

 Classifier: 1 

 Operator: AND 

 Rule(s): If-match acl 3000 

 Behavior: 1 

 Accounting enable:10 (Packets) 

display qos policy interface gigabitethernet 1/0/2

-->

Interface: GigabitEthernet1/0/

 Direction: Inbound 

 Policy: 1 

 Classifier: 1 

 Operator: AND 

 Rule(s): If-match acl 3000 

 Behavior: 1 

 Accounting enable:10 (Packets) 

#

Key Configuration

QoS policy needs to be applied to the physical interfaces that the traffic passes through.

It cannot be applied to the aggregated interface. 

We can use member interfaces statistics to calculate the total number of packets.

Please rate this case:   
0 Comments

No Comments

Add Comments: