Resilient Protocol Code