⬆️ ⬇️

QoS configuration on VMWare and Cisco USC

We have Asterisk on a virtual machine under vmware, which in turn rotates on the Cisco UCS Blade. And the challenge was to prioritize voice traffic inside vmware and inside Cisco UCS.



1. Cisco UCS



Begin setup with Cisco UCS. Cisco UCS only supports QoS at the second level. Accordingly, it is necessary to paint traffic for it with CoS bits.

QoS configuration in UCS Manager is located on the LAN tab, LAN Cloud -> System Class QoS



Here it is necessary to include the markings that we are going to use and, if desired, change their settings. For Gold traffic you need to put CoS 3, and for FC - 4. You can read more here .



By default, UCS does not skip labeling from hosts. In order for UCS to trust labeling, you need to create a QoS Policy in the Polices -> root -> QoS Polises section.

In politics, we ask how to label traffic, and, if desired, we can slaughter a lane. The important parameter for us here is Host Control, if it is set to None, then all traffic from the interface will be marked with the specified CoS, if the value is Full, UCS will trust the marking on the interface, and will only mark unlabelled traffic.

We put Priority: Best Effort (CoS 0) and Host Control: Full in our policy, so we will trust the labeling from the hosts, and for unmarked frames we will leave CoS 0.



Next, you need to apply this QoS Policy to the interfaces (or interface policies) in the direction of the hosts. This operation will require a reboot of the hosts.



This completes the Cisco UCS setup.

')

2. Configure VMWare



Now we will configure vmware. I will consider the case of standard Distributed Virtual Switch and vSphere 6.0.

The first thing you need to do is create a dedicated Port Group for our host with Asterisk.

Next we go to the group port settings (required via the Web Client) in the Traffic filtering and marking section and add a new rule, let's call it RTP. We specify Action: Tag, CoS Value: 5, Traffic direction: Ingress.



Next, add the rule New IP Qualifier. Protocol: UDP, Source port: range 10000-20000 (see the settings of the rtp port of your asterisk), Source address - the address of your asterisk. We make a similar rule for sip traffic by selecting CoS 3 and Source port: 5060.







Everything, our traffic from an asterisk is marked. Now we will give the asterisk a guaranteed band on the uplinks of the virtual switch.

Select our DVS in the web client and go to the Resource Allocation tab and select System Traffic.

First we need to reserve a band for traffic like Virtual Machine Type, we do it at 75% of the width of the physical interface, in this case it is 15000Mbit / s.



Now you can set the band for a particular port group. We move to the Network resource pools and create a new pool, call it Voice, and give it a guaranteed band, for example, at 20Mbit / s



We return to the group port settings and in the General section apply the created Network resource pool to the port group.



Everything, on it setup is complete. Now, voice traffic will take precedence inside the virtual switch and inside Cisco UCS.

Source: https://habr.com/ru/post/261219/



All Articles