1*61474Sbostic.\" Copyright (c) 1986, 1991, 1993 2*61474Sbostic.\" The Regents of the University of California. All rights reserved. 329009Smckusick.\" 443775Strent.\" %sccs.include.redist.man% 529009Smckusick.\" 6*61474Sbostic.\" @(#)XNSrouted.8 8.1 (Berkeley) 06/05/93 735549Sbostic.\" 847462Scael.Dd 947462Scael.Dt XNSROUTED 8 1047462Scael.Os BSD 4.3 1147462Scael.Sh NAME 1247462Scael.Nm XNSrouted 1347462Scael.Nd NS Routing Information Protocol daemon 1447462Scael.Sh SYNOPSIS 1547462Scael.Nm XNSrouted 1647462Scael.Op Fl q 1747462Scael.Op Fl s 1847462Scael.Op Fl t 1947462Scael.Op Ar logfile 2047462Scael.Sh DESCRIPTION 2147462Scael.Nm XNSrouted 2229009Smckusickis invoked at boot time to manage the Xerox NS routing tables. 2329009SmckusickThe NS routing daemon uses the Xerox NS Routing 2429009SmckusickInformation Protocol in maintaining up to date kernel routing 2529009Smckusicktable entries. 2647462Scael.Pp 2747462ScaelAvailable options: 2847462Scael.Bl -tag -width logfile 2947462Scael.It Fl q 3047462ScaelDo not supply routing information (opposite of 3147462Scael.Fl s 3247462Scaeloption below). 3347462Scael.It Fl s 3447462ScaelForces 3547462Scael.Nm XNSrouted 3647462Scaelto supply routing information whether it is acting as an internetwork 3747462Scaelrouter or not. 3847462Scael.It Fl t 3947462ScaelAll packets sent or received are 4047462Scaelprinted on the standard output. In addition, 4147462Scael.Nm XNSrouted 4247462Scaelwill not divorce itself from the controlling terminal 4347462Scaelso that interrupts from the keyboard will kill the process. 4447462Scael.It Ar logfile 4547462ScaelName of file in which 4647462Scael.Nm XNSrouted Ns 's 4747462Scaelactions should be logged. This log contains information 4847462Scaelabout any changes to the routing tables and a history of 4947462Scaelrecent messages sent and received which are related to 5047462Scaelthe changed route. 5147462Scael.El 5247462Scael.Pp 5329009SmckusickIn normal operation 5447462Scael.Nm XNSrouted 5529009Smckusicklistens 5629009Smckusickfor routing information packets. If the host is connected to 5729009Smckusickmultiple NS networks, it periodically supplies copies 5829009Smckusickof its routing tables to any directly connected hosts 5929009Smckusickand networks. 6047462Scael.Pp 6129009SmckusickWhen 6247462Scael.Nm XNSrouted 6347462Scaelis started, it uses the 6447462Scael.Dv SIOCGIFCONF 6547462Scael.Xr ioctl 2 6629009Smckusickto find those 6729009Smckusickdirectly connected interfaces configured into the 6847462Scaelsystem and marked 6947462Scael.Dq up 7047462Scael(the software loopback interface 7129009Smckusickis ignored). If multiple interfaces 7229009Smckusickare present, it is assumed the host will forward packets 7329009Smckusickbetween networks. 7447462Scael.Nm XNSrouted 7529009Smckusickthen transmits a 7647462Scael.Em request 7729009Smckusickpacket on each interface (using a broadcast packet if 7829009Smckusickthe interface supports it) and enters a loop, listening 7929009Smckusickfor 8047462Scael.Em request 8129009Smckusickand 8247462Scael.Em response 8329009Smckusickpackets from other hosts. 8447462Scael.Pp 8529009SmckusickWhen a 8647462Scael.Em request 8729009Smckusickpacket is received, 8847462Scael.Nm XNSrouted 8929009Smckusickformulates a reply based on the information maintained in its 9029009Smckusickinternal tables. The 9147462Scael.Em response 9229009Smckusickpacket generated contains a list of known routes, each marked 9347462Scaelwith a 9447462Scael.Dq hop count 9547462Scaelmetric (a count of 16, or greater, is 9647462Scaelconsidered 9747462Scael.Dq infinite ) . 9847462ScaelThe metric associated with each 9929009Smckusickroute returned provides a metric 10047462Scael.Em relative to the sender . 10147462Scael.Pp 10247462Scael.Em Response 10329009Smckusickpackets received by 10447462Scael.Nm XNSrouted 10529009Smckusickare used to update the routing tables if one of the following 10629009Smckusickconditions is satisfied: 10747462Scael.Bl -bullet 10847462Scael.It 10929009SmckusickNo routing table entry exists for the destination network 11029009Smckusickor host, and the metric indicates the destination is ``reachable'' 11129009Smckusick(i.e. the hop count is not infinite). 11247462Scael.It 11329009SmckusickThe source host of the packet is the same as the router in the 11429009Smckusickexisting routing table entry. That is, updated information is 11529009Smckusickbeing received from the very internetwork router through which 11629009Smckusickpackets for the destination are being routed. 11747462Scael.It 11829009SmckusickThe existing entry in the routing table has not been updated for 11929009Smckusicksome time (defined to be 90 seconds) and the route is at least 12029009Smckusickas cost effective as the current route. 12147462Scael.It 12229009SmckusickThe new route describes a shorter route to the destination than 12329009Smckusickthe one currently stored in the routing tables; the metric of 12429009Smckusickthe new route is compared against the one stored in the table 12529009Smckusickto decide this. 12647462Scael.El 12747462Scael.Pp 12829009SmckusickWhen an update is applied, 12947462Scael.Nm XNSrouted 13029009Smckusickrecords the change in its internal tables and generates a 13147462Scael.Em response 13229009Smckusickpacket to all directly connected hosts and networks. 13347462Scael.Xr Routed 8 13429009Smckusickwaits a short period 13529009Smckusickof time (no more than 30 seconds) before modifying the kernel's 13629009Smckusickrouting tables to allow possible unstable situations to settle. 13747462Scael.Pp 13829009SmckusickIn addition to processing incoming packets, 13947462Scael.Nm XNSrouted 14029009Smckusickalso periodically checks the routing table entries. 14129009SmckusickIf an entry has not been updated for 3 minutes, the entry's metric 14229009Smckusickis set to infinity and marked for deletion. Deletions are delayed 14329009Smckusickan additional 60 seconds to insure the invalidation is propagated 14429009Smckusickto other routers. 14547462Scael.Pp 14629009SmckusickHosts acting as internetwork routers gratuitously supply their 14729009Smckusickrouting tables every 30 seconds to all directly connected hosts 14829009Smckusickand networks. 14947462Scael.Sh SEE ALSO 15047462Scael.Xr idp 4 15147462Scael.Rs 15247462Scael.%T "Internet Transport Protocols" 15347462Scael.%R "XSIS 028112" 15447462Scael.%Q "Xerox System Integration Standard" 15547462Scael.Re 15647462Scael.Sh HISTORY 15729009SmckusickThe 15847462Scael.Nm 15947462Scaelcommand appeared in 16047462Scael.Bx 4.3 . 161