Software defined networking applied to the heterogeneous infrastructure of Smart Grid