RIP MESSAGES

RIP runs over UDP, so its messages are encapsulated into UDP segments and it runs on a well-known port (number 520). Two versions of RIP are available: RIP-1 and RIP-2. Figure 5-4 shows the message formats for both versions.

Figure 5-4. Routing Information Protocol (RIP) Packets

The command field can contain the values of 1 to 6, but 1 and 2 are the only formal (documented) values. A command code = 1 identifies a request message, and a value = 2 identifies a reply. The version field is 1 or 2 for the two versions.

The messages differ slightly. Both versions contain an address family, which is coded as a 2 for IP addresses. Next ...

Get IP Routing Protocols now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.