A Security Framework for Routing Protocols