Learning about the Power of Subnets: Improving Network Security and Efficiency