Showing posts with label QOS. Show all posts
Showing posts with label QOS. Show all posts

Saturday, 7 December 2024

Huawei Port based Rate limit configuration..!--L3 Port

 Huawei Port based Rate limit configuration on routing port .




interface XGigabitEthernet0/0/21
 undo portswitch
 ipv6 enable
 ip address 10.050.5 255.255.255.252
 qos lr outbound cir 600000 cbs 620000
 qos lr inbound cir 600000 cbs 620000
#
return


Thursday, 23 May 2024

Cisco Bandwidth Rate link on Catalyst series(3550,3750,3560,2960)

 There is a 2 way to configure the QOS bandwidth SHaping on port in CIsco L2/L3 switches.


1-SRR(Only Download traffic can be controlled )
2-Service Policy.(Only one direction you can control).


if you want to be both then you can configure the both SRR and Service policy on same port .


SRR


srr-queue bandwidth limit %


You have to set the bandwidth as a percentage of the link speed. The options are 10-99 percent. This means that if you want a limit less than 10Mb you must set the port’s physical speed to 10 and the duplex to full. You will then have to statically configure the client to 10/full. This, however, only limits the egress traffic.


int 0 /12
srr-queue bandwidth limit 10


Service Policy

We use this to match and limit our ingress traffic.

First, you must enable mls qos on your switch, otherwise your matching won’t work.



Make Sure you have enabled the mls qos command .


mls qos


1-Next we define our class map. We have it set to match ip traffic with DSCP set to 0.

class-map match-all rate-limit
  description Bandwidth Control
 match ip dscp default


2-We then create policy maps that have our desired speeds:

policy-map 8meg

 class rate-limit

  police 8192000 192000 exceed-action drop


3-Last we apply this to the interface:

int fa0/1

service-policy input 8meg



Saturday, 18 May 2024

Bandwidth Shaping on L2 port--#Cisco 2960

  To configure the bandwidth shaping on L2  Interface you can go to interface configuration Mode on the switch port, and apply the srr-queue bandwidth limit command. Here's an example:

Switch(config)# interface FastEthernet 0/1
Switch(config-if)# srr-queue bandwidth limit 90


The 90 sets the outbound bandwidth limit on the port to 90 percent of the port speed. Since this is a 100-Mb port, this should limit the outbound traffic from the port to 10 Mb.



Thursday, 18 April 2024

CIsco VLan Based Qos Prioritization..!

 Vlan-based QoS can be used to apply QoS  (and hence prioritize) traffic on interfaces belonging to a particular  vlan. The interface on which you intend to apply QoS should be  configured with 'mls qos vlan-based' and the actual QoS service policy should be configured under the vlan interface.


Step-1=(Classification of traffic on which QoS needs to be applied)


Distribution1(config)#ip access-list extended voice-traffic
Distribution1(config-std-nacl)#permit ip 192.168.100.0 0.0.0.255 any (suppose this is your vlan 10 subnet)
Distribution1(config-ext-nacl)#exit

Distribution1(config)#class-map Class-A
Distribution1(config-cmap)#match access-group name voice-traffic
Distribution1(config-cmap)#exit


Step-2= (Marking the classified traffic)


Distribution1(config)#policy-map sample-policy1
Distribution1(config-pmap)#class Class-A
Distribution1(config-pmap-c)#set dscp af21  (you can include all the QoS config here)
Distribution1(config-pmap-c)#exit
Distribution1(config-pmap)#exit

Step-3= (Apply QoS to the interface)

(config) interface gigabitethernet 1/2 
(config-if)#switchport access vlan 10 
(config-if)#mls qos vlan-based <<---- You apply vlan-based QoS on the physical interface
(config-if)#exit 

(config-if)#interface vlan 10 
(config-if)#service-policy input sample-policy1 (This Service policy will now be applied to gi1/2)


For all the interfaces on which you intend to apply QoS, mls qos vlan-based needs to be configured and the  service policy just needs to be configured under the interface vlan.


Instead of using vlan based qos, you can also apply the service policy directly under the physical interfaces.

IP Based Bandwidth Shaping configuration ..CIsco--3750,49483

 Here i will show you , how you can configure the bandwidth shaping on vlan .Lets see the process of configuration step by step.


Step-1 = Create the VLAN & Configure the IP address on VLAN.


vlan 100 = 10.10.10.0/24
vlan 200 = 10.10.20.0/24
vlan 300 = 10.10.30.0/24
vlan 400 = 10.10.40.0/24

Step-2=Configure the Access List and match the IP Address.



ip access-list 101 permit ip 10.10.10.0 0.0.0.255 any
ip access-list 101 permit ip 10.10.20.0 0.0.0.255 any
ip access-list 102 permit ip 10.10.30.0 0.0.0.255 any
ip access-list 102 permit ip 10.10.40.0 0.0.0.255 any

Step-3=Configure the class map and match the Access List.


class-map match-any VLAN-100-200
match ip access-group 101

class-map match-any  VLAN-300-400
match ip access-group 102


Step-4 Configure the Policy MAP.



Policy-map VLAN-100&200
Class VLAN-100-200
Police 10000000 10000000 conform transmit exceed drop

Policy-map VLAN-300&400
Class VLAN-300-400
Police 20000000 20000000 conform transmit exceed drop


Step-5 = Configure the Trunk port.

int gig2/0/1

description trunk
switchport mode trunk
Switchport trunk allowed vlan 100-400


Step-5 = Apply The Policy MAP on VLAN.


vlan range 100-200
Service-policy input VLAN-100&200
Service-policy output VLAN-100&200


vlan range 300-400
Service-policy input VLAN-300&400
Service-policy output VLAN-300&400




Wednesday, 17 April 2024

Cisco 4948E-10G Bandwidth Limit on Vlan ..!

 In 4948, it's not recommended to configure the Bandwidth shaping on SVI, Instead, you can configure the bandwidth shaping on per VLAN..which is the access port.

Step-1 = Create the VLAN.


Cisco-4948E-L3# configure terminal
Cisco-4948E-L3(config)# vlan 100

Step-2=Configure the class map and match the vlan.

Cisco-4948E-L3# configure terminal
Cisco-4948E-L3(config)# class-map vlan100-BW
Cisco-4948E-L3(config-cmap)# match vlan 100
Cisco-4948E-L3(config-cmap)# exit

Step-3= Configure the Policy MAP.


Cisco-4948E-L3(config)# policy-map vlan100-policy
Cisco-4948E-L3(config-pmap)# class vlan100-BW
Cisco-4948E-L3(config-pmap-c)# police 10000000 conform-action transmit exceed-action drop
Cisco-4948E-L3(config-pmap-c-police)# end

Step-4 = Apply the policy map on the interface.

Cisco-4948E-L3# configure terminal
Cisco-4948E-L3(config)# interface gigabitEthernet0/0/2
Cisco-4948E-L3(config-if)# switchport access vlan 100
Cisco-4948E-L3(config-if)# service-policy input vlan100-policy

Cisco 3850,3750,4948E Layer 3 Egress WAN QoS for prioritization ..Enterprise QOS Designing..!

 Let's Look at some simple examples of enterprise QOS designing  (of the Catalyst 3550,3750,4948E series ) 


There is a 3-step process, We will first configure the class map, then the policy map, apply the policy map to an interface.


See the example Layer 3 Egress/WAN QoS policy configuration below:

1.  Configure class-map first (class-map matches the tags)


        class-map match-any VOICE-RTP              
              match dscp ef
        class-map match-any VIDEO-INTERACTIVE
              match dscp af41
              match dscp cs4
        class-map match-any CALL-SIGNALING
              match ip dscp cs3
              match ip dscp af31        
         class-map match-any SCAVENGER
              match ip dscp cs1

2.  Then Policy-map allocates percentage of bandwidth & reservations based on class
policy-map WAN-PRIMARY
        class VOICE-RTP
              priority level 1 percent 10

        class VIDEO-INTERACTIVE
              priority level 2 percent 20

        class CALL-SIGNALING
              bandwidth percent 5

        class SCAVENGER
              bandwidth percent 10

        class class-default
              shape average 9500000000***

Then Service-policy applies policy-map to interface

interface Gi1/0/1
     service-policy output WAN-PRIMARY


Note:
***shape average should be lowered by bandwidth minus 5 percent, in bits
for 1Gb it would be 950Mb 
the five percent was rule of thumb for 100Mb 
so took 1Gbps knocked it down to 950Mb 
for gig it's 950 million = 950,000,000 bits, 
and 95Mb shape average for 100Mb circuit


Bits Per Second Cheatsheet:


  • 1 Kbps = 1,000 bps    (one thousand bits per second)
  • 100 Kbps = 100,000 bps    (100 thousand)
  • 1 Mbps = 1,000,000 bps    (1 million)
  • 100 Mbps = 100,000,000 bps    (100 million)
  • 1 Gbps = 1,000,000,000 bps      (1 billion)
  • 10 Gbps = 10,000,000,000 bps    (10 billion)

Huawei Bandwidth Limit on Sub interface..QOS

 In this post, i will show you how you can configure the Bandwidth limit on the subinterface of the Huawei switch.


interface GigabitEthernet0/1/11.1234
vlan-type dot1q 1234
description 700-MBPS-ABC Customer
set flow-stat interval 30
ip address 10.10.10.9 255.255.255.252
statistic enable
qos car cir 716800 cbs 89600000 green pass red discard inbound
qos car cir 716800 cbs 89600000 green pass red discard outbound