Routing Information Protocol (RIP) is used to manage router information in a self-contained network, such as a corporate LAN or a private WAN. With RIP, a gateway host sends its routing table to the closest router each 30 seconds. This router, then sends the contents of its routing tables to neighboring routers.
RIP is best for small networks. This is because the transmission of the full routing table each 30 seconds can put a large traffic load on the network, and because RIP tables are limited to 15 hops. OSPF is a better alternative for larger networks.
For IPv4 routing, there are two versions of RIP, RIP v1 and RIP v2. RIP v1 uses a UDP broadcast over port 520 to send updates to routing tables. RIP v2 uses multicast to send routing table updates. For information about RIP for IPv4 routing, see:
For IPv6 routing, use RIPng (next generation). RIPng uses UDP port 521 to send updates to routing tables. For more information about RIPng for IPv6 routing, see: