routing information protocol (rip) is a widely used protocol in networking that is used to…