network routing daemon
routed [-d] [-g] [-q] [-s] [-t] [logfile]
The routed daemon is invoked at boot time to manage the network routing tables. The daemon uses a variant of the Xerox NS Routing Information Protocol in maintaining up-to-date routing table entries. While it uses a generalized protocol that can be applied to multiple address types, routed is currently used only for Internet routing within a cluster of networks.
In most cases, routed listens on the UDP socket for the route service (see the services file) for routing information packets. If the host is an internetwork router, routed periodically supplies copies of its routing tables to any directly connected hosts and networks.
With the information that it receives, routed updates the routing tables if one of the following conditions is satisfied:
When an update is applied, routed records the change in its internal tables and updates the routing table.
In addition to processing incoming packets, routed also periodically checks the routing table entries. If an entry hasn't been updated for 3 minutes, the entry's metric is set to infinity and marked for deletion. Deletions are delayed an additional 60 seconds to ensure that the invalidation of this entry is propagated throughout the local internet.
In addition to the facilities described above, routed supports the notion of ``distant'' passive and active gateways.
When started, routed reads the file /etc/gateways to find gateways. Gateways specified in this manner should be marked passive if they aren't expected to exchange routing information, while gateways marked active should be willing to exchange routing information (i.e. they should have a routed process running on the machine).
Routes through passive gateways are installed in the routing tables once upon startup. Such routes aren't included in any routing information transmitted. Active gateways are treated equally to network interfaces. Routing information is distributed to the gateway and if no routing information is received for a period of the time, the associated route is deleted. Gateways marked external are also passive, but aren't placed in the routing table nor are they included in routing updates.
The function of external entries is to inform routed that another routing process will install such a route, and that alternate routes to that destination shouldn't be installed. Such entries are required only when both routers may learn of routes to the same destination.
The /etc/gateways file comprises a series of lines, each in the following format:
<net | host> name1 gateway name2 metric value <passive | active | external>
where:
Although gated isn't shipped with the TCP/IP implementation, you'll find a free (unsupported) version in the TCP/IP area on QUICS. |
The routing tables may not correspond to those of routed when redirects change or add routes. The routed daemon should note any redirects received by reading the ICMP packets received via a raw socket.
UDP and ICMP protocols
Internet Transport Protocols, XSIS 028112,
Xerox System Integration Standard.