Self-programming networks : measuring and controlling networks from the edge