Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to calculate the Network Usage in iFogSim?

Description

The network usage is characterized by the utilization of system resources in terms of data sent and received from the network interfaces. “NetworkUsageMonitor.java” file implement for calaculating the total network usage in fog computing.

networkUsage += latency * tupleNwSize;

Source Code

public class NetworkUsageMonitor {

private static double networkUsage = 0.0;

public static void sendingTuple(double latency, double tupleNwSize){

networkUsage += latency*tupleNwSize;

}

public static double getNetworkUsage(){

return networkUsage;

}

}


Output

Calculate the Network Usage in fog