Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • 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