Secure segmentation prevents flat networks from failing when attacked