BSD 4_3_Tahoe release
[unix-history] / usr / src / man / man8 / XNSrouted.8
CommitLineData
bbd6082e
KM
1.\" Copyright (c) 1986 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)XNSrouted.8c 6.1 (Berkeley) 6/4/86
bbd6082e 6.\"
95f51977 7.TH XNSROUTED 8C "June 4, 1986"
bbd6082e
KM
8.UC 6
9.SH NAME
10XNSrouted \- NS Routing Information Protocol daemon
11.SH SYNOPSIS
12.B /etc/XNSrouted
13[
14.B \-s
15] [
16.B \-q
17] [
18.B \-t
19] [
20.I logfile
21]
22.SH DESCRIPTION
23.I XNSrouted
24is invoked at boot time to manage the Xerox NS routing tables.
25The NS routing daemon uses the Xerox NS Routing
26Information Protocol in maintaining up to date kernel routing
27table entries.
28.PP
29In normal operation
30.I XNSrouted
31listens
32for routing information packets. If the host is connected to
33multiple NS networks, it periodically supplies copies
34of its routing tables to any directly connected hosts
35and networks.
36.PP
37When
38.I XNSrouted
39is started, it uses the SIOCGIFCONF
40.I ioctl
41to find those
42directly connected interfaces configured into the
43system and marked ``up'' (the software loopback interface
44is ignored). If multiple interfaces
45are present, it is assumed the host will forward packets
46between networks.
47.I XNSrouted
48then transmits a
49.I request
50packet on each interface (using a broadcast packet if
51the interface supports it) and enters a loop, listening
52for
53.I request
54and
55.I response
56packets from other hosts.
57.PP
58When a
59.I request
60packet is received,
61.I XNSrouted
62formulates a reply based on the information maintained in its
63internal tables. The
64.I response
65packet generated contains a list of known routes, each marked
66with a ``hop count'' metric (a count of 16, or greater, is
67considered ``infinite''). The metric associated with each
68route returned provides a metric
69.IR "relative to the sender" .
70.PP
71.I Response
72packets received by
73.I XNSrouted
74are used to update the routing tables if one of the following
75conditions is satisfied:
76.TP
77(1)
78No routing table entry exists for the destination network
79or host, and the metric indicates the destination is ``reachable''
80(i.e. the hop count is not infinite).
81.TP
82(2)
83The source host of the packet is the same as the router in the
84existing routing table entry. That is, updated information is
85being received from the very internetwork router through which
86packets for the destination are being routed.
87.TP
88(3)
89The existing entry in the routing table has not been updated for
90some time (defined to be 90 seconds) and the route is at least
91as cost effective as the current route.
92.TP
93(4)
94The new route describes a shorter route to the destination than
95the one currently stored in the routing tables; the metric of
96the new route is compared against the one stored in the table
97to decide this.
98.PP
99When an update is applied,
100.I XNSrouted
101records the change in its internal tables and generates a
102.I response
103packet to all directly connected hosts and networks.
104.I Routed
105waits a short period
106of time (no more than 30 seconds) before modifying the kernel's
107routing tables to allow possible unstable situations to settle.
108.PP
109In addition to processing incoming packets,
110.I XNSrouted
111also periodically checks the routing table entries.
112If an entry has not been updated for 3 minutes, the entry's metric
113is set to infinity and marked for deletion. Deletions are delayed
114an additional 60 seconds to insure the invalidation is propagated
115to other routers.
116.PP
117Hosts acting as internetwork routers gratuitously supply their
118routing tables every 30 seconds to all directly connected hosts
119and networks.
120.PP
121Supplying the
122.B \-s
123option forces
124.I XNSrouted
125to supply routing information whether it is acting as an internetwork
126router or not.
127The
128.B \-q
129option is the opposite of the
130.B \-s
131option. If the
132.B \-t
133option is specified, all packets sent or received are
134printed on the standard output. In addition,
135.I XNSrouted
136will not divorce itself from the controlling terminal
137so that interrupts from the keyboard will kill the process.
138Any other argument supplied is interpreted as the name
139of file in which
140.IR XNSrouted 's
141actions should be logged. This log contains information
142about any changes to the routing tables and a history of
143recent messages sent and received which are related to
144the changed route.
145.SH "SEE ALSO"
146``Internet Transport Protocols'', XSIS 028112, Xerox System Integration
147Standard.
148.br
149idp(4P)