Designing virus-resistant, high-performance networks