Network layer security: Design for a cross layer architecture