Table of Contents

Method CalculateUtilization

Namespace
Skyline.DataMiner.Utils.Interfaces
Assembly
Skyline.DataMiner.Utils.Interfaces.dll

CalculateUtilization(double, double, double, DuplexStatus)

Calculates an interface utilization.

public static double CalculateUtilization(double inputRate, double outputRate, double interfaceSpeed, DuplexStatus duplexStatus)

Parameters

inputRate double

The input rate of the interface.
The unit should be consistent between inputRate, outputRate and interfaceSpeed.

outputRate double

The output rate of the interface.
The unit should be consistent between inputRate, outputRate and interfaceSpeed.

interfaceSpeed double

The speed of the interface (the max rate supported).
The unit should be consistent between inputRate, outputRate and interfaceSpeed.

duplexStatus DuplexStatus

The current mode of operation of the MAC entity.

Returns

double

The interface utilization in percent.