You can use Quality of Service (QoS) traffic shaping parameters to limit the bandwidth for all the NSX NAT IPs in a virtual datacenter.
Privileges: Manage NAT bandwidth limit
When you create a virtual datacenter, the new "natbandwidthlimit" attribute is present but you must edit the virtual datacenter to enable it in the platform and in the NSX.
To edit the bandwidth limit and apply it in the NSX:
Select the virtual datacenter
Go to Network → QoS
Click the pencil edit button
To enable the bandwidth limit in a specific direction, select the Enabled checkbox for that direction
Set QoS values for your virtual datacenter. Be sure to allow enough bandwidth to share between all the NAT IPs in the virtual datacenter.
Field | Description |
---|---|
Provider ID | Read only |
Enabled | To enable traffic shaping in a specific direction, select this checkbox |
Average | The average amount of bandwidth, in bits per second, that the virtual datacenter can use |
Peak | The maximum bandwidth in bits per second that the virtual datacenter can use |
Burst size | The amount of data that can be transmitted at the peak bandwidth rate in bytes. A burst bonus accumulates when traffic is below the Average value and this bandwidth can be used for bursts. |
To register changes that were made outside the platform, save existing NAT bandwidth values. In the API, to register changes, send a POST request with the existing values.