Software defined neighborhood area network for smart grid applications