To have the infrastructure as mentioned in the Architecture, we need to have the following softwares installed:
https://www.emmanuelgautier.com/blog/install-and-configure-dns-server-with-bind9
Scaphandre is a tool that makes it possible to measure the power being used by a single process on a computer/server.
https://hubblo-org.github.io/scaphandre-documentation/tutorials/getting_started.html https://www.wonderingchimp.com/demoing-scaphandre/
EcoFloc calculates the energy consumption for each hardware component based on the load generated by running processes, identified by their PID.
Why Nethogs?
cat /sys/class/power_supply/BAT0/current_now /sys/class/power_supply/BAT0/voltage_now | xargs | awk '{print $1*$2/1e12 " W"}'