Designing optimal energy profiles for network hardware