★ ★ IP based Bandwidth rate limiting does not take effect

2023-06-27 18:48:36 Published
  • 0 Followed
  • 0Collected ,621Browsed

Network Topology

Not involving

Problem Description

Below configuration is not working:

#

 qos carl 1 source-ip-address range 203.xxx.xxx.5 to 203.xxx.xxx.6 per-address shared-bandwidth

#

interface GigabitEthernet0/1.20

 ip address  203.xxx.xxx.5 255.255.255.252

 qos car inbound carl 1 cir 1280 cbs 640000 ebs 0 green pass red discard yellow pass

 qos car outbound carl 1 cir 1280 cbs 640000 ebs 0 green pass red discard yellow pass

 vlan-type dot1q vid 20

#



Process Analysis

According to the display qos car interface print, only the speed limit in the inbound direction takes effect, but the speed limit in the outbound direction does not take effect:

 

Interface: GigabitEthernet0/1.20

Direction: inbound

  Rule: If-match carl 1

   CIR 1280 (kbps), CBS 640000 (Bytes), EBS 0 (Bytes)

   Green action  : pass

   Yellow action : pass

   Red action    : discard

   Green packets : 3566703 (Packets), 328211932 (Bytes)

   Yellow packets: 0 (Packets), 0 (Bytes)

   Red packets   : 6091 (Packets), 8197828 (Bytes)

Direction: outbound

  Rule: If-match carl 1

   CIR 1280 (kbps), CBS 640000 (Bytes), EBS 0 (Bytes)

   Green action  : pass

   Yellow action : pass

   Red action    : discard

   Green packets : 0 (Packets), 0 (Bytes)

   Yellow packets: 0 (Packets), 0 (Bytes)

   Red packets   : 0 (Packets), 0 (Bytes)

 

Solution

Then we checked the configuration and found that the speed limit in the inbound direction and the outbound direction are effective for the source address segment. The reason is that the direction of the source-destination address is reversed. You need to pay attention to the direction of incoming and outgoing packets to configure the source-destination IP address object group.

Modify the configuration according to the script below to solve it.

 

#

qos carl 1 source-ip-address range  203.xxx.xxx.5 to  203.xxx.xxx.6 per-address shared-bandwidth

#

qos carl 2 destination-ip-address range 203.xxx.xxx.5 to 203.xxx.xxx.6 per-address shared-bandwidth

#

interface GigabitEthernet0/1.20

ip address 203.xxx.xx.5 255.255.255.252

qos car inbound carl 1 cir 1280 cbs 640000 ebs 0 green pass red discard yellow pass

qos car outbound carl 2 cir 1280 cbs 640000 ebs 0 green pass red discard yellow pass

vlan-type dot1q vid 20

#


Please rate this case:   
0 Comments

No Comments

Add Comments: