home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / KA9QBGN.ZIP / USERMAN.TXT < prev   
Encoding:
Text File  |  1991-04-28  |  111.7 KB  |  3,421 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.              NET User Reference Manual (NOS Version)
  11.  
  12.  
  13.                         Phil Karn, KA9Q
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. 1.  The NET.EXE Program
  21.  
  22. The MS-DOS executable file net.exe  provides  Internet  (TCP/IP),
  23. NET/ROM  and AX.25 facilities.  Because it has an internal multi-
  24. tasking operating system, net.exe can  act  simultaneously  as  a
  25. client, a server and a packet switch for all three sets of proto-
  26. cols. That is, while a local user accesses remote  services,  the
  27. system can also provide those same services to remote users while
  28. also switching IP, NET/ROM and AX.25 packets and  frames  between
  29. other client and server nodes.
  30.  
  31. The keyboard and display is used by the local operator to control
  32. both host and gateway level functions, for which a number of com-
  33. mands are provided.
  34.  
  35. 1.1.  Installation
  36.  
  37. Net.exe uses the following directory structure:
  38.  
  39.         /net
  40.         /net/spool
  41.         /net/spool/help
  42.         /net/spool/mail
  43.         /net/spool/mqueue
  44.         /net/spool/rqueue
  45.         /net/spool/news
  46.  
  47.  
  48. The "/net" directory is not strictly necessary, and  defaults  to
  49. the  root of the current drive.  Any name may be chosen using the
  50. -d   command-line   option   (described   below).   The    alias,
  51. autoexec.net, dialer, domain.txt and ftpusers configuration files
  52. are located here.
  53.  
  54. The "/spool" directory and its sub-directories are  used  by  the
  55. bbs,  SMTP  and  NNTP  services. The areas, forward.bbs, history,
  56. mail.log, rewrite and signatur configuration  files  are  located
  57. here.
  58.  
  59. The alias, forward.bbs and rewrite files  are  described  in  the
  60. document "maildoc", which should be found at the same location as
  61.  
  62.  
  63.  
  64. updated by Bill Simpson April 15, 1991 March 3, 1991
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                            - 2 -
  71.  
  72.  
  73. this file.
  74.  
  75. 1.2.  net [-b] [-s <sockets>] [-d <directory>] [<startup file>]
  76.  
  77. 1.2.1.  -b
  78.  
  79. The -b option specifies the use of BIOS for console  output;  the
  80. default  is  to  write  directly to the video display buffer. Use
  81. this option if you are running under a windowing package and have
  82. trouble with output "bleeding through" on top of other windows.
  83.  
  84. 1.2.2.  -s
  85.  
  86. The -s option specifies the size of the socket array to be  allo-
  87. cated  within  net.exe. This limits the number of network connec-
  88. tions that may exist simultaneously. The default is 40.
  89.  
  90. 1.2.3.  -d
  91.  
  92. The -d option allows the user to specify a directory for the con-
  93. figuration  and spool files; it defaults to the root directory of
  94. the system.
  95.  
  96. 1.2.4.  Startup file
  97.  
  98. After all command-line options, the name of a startup file may be
  99. specified.  If  no startup file is specified, net.exe attempts to
  100. open a file named autoexec.net in the configuration directory  of
  101. the current drive. If the file exists, it is read and executed as
  102. though its contents were typed on the console as  commands.  (See
  103. the  Commands chapter.) This feature is useful for attaching com-
  104. munication interfaces, configuring network addresses, and  start-
  105. ing the various services.
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. updated by Bill Simpson April 15, 1991 March 3, 1991
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                            - 3 -
  137.  
  138.  
  139. 2.  Console modes
  140.  
  141. The console may be in one of two modes: command mode and converse
  142. mode.  In  command  mode, the prompt net> is displayed and any of
  143. the commands described in the Commands chapter may be entered. In
  144. converse  mode,  keyboard  input  is  processed  according to the
  145. current session.
  146.  
  147. Sessions come in many types, including Telnet, FTP, AX25, NETROM,
  148. Ping,  More,  Hopcheck and Tip. In a Telnet, AX25, NETROM, or Tip
  149. session, keyboard input is sent to the remote system and any out-
  150. put from the remote system is displayed on the console.  In a FTP
  151. session, keyboard input is first examined to see if it is a known
  152. local  command;  if  so  it  is  executed locally.  If not, it is
  153. "passed through" to the remote FTP server. (See the  FTP  Subcom-
  154. mands chapter). In a Ping session the user may test the path to a
  155. remote site, and in a More session, the user may examine a  local
  156. file. A Hopcheck session is used to trace the path taken by pack-
  157. ets to reach a specified destination.
  158.  
  159. The keyboard also has cooked and raw  states.  In  cooked  state,
  160. input  is line-at-a-time; the user may use the line editing char-
  161. acters ^U, ^R and backspace to erase the line, redisplay the line
  162. and  erase  the  last  character,  respectively.   Hitting either
  163. return or line feed passes the complete line up to  the  applica-
  164. tion.  In  raw state, each character is immediately passed to the
  165. application as it is typed.
  166.  
  167. The keyboard is always in cooked state in  command  mode.  It  is
  168. also  cooked in converse mode on an AX25, FTP or NET/ROM session.
  169. In a Telnet session it depends on  whether  the  remote  end  has
  170. issued  (and  the  local  end  has accepted) the Telnet WILL ECHO
  171. option (see the echo command).
  172.  
  173. On the IBM-PC, the user may escape back to command mode  by  hit-
  174. ting  the  F10  key.  On  other  systems, the user must enter the
  175. escape character, which is by default control-]  (hex  1d,  ASCII
  176. GS).  (Note that this is distinct from the ASCII character of the
  177. same name). The escape character can be changed (see  the  escape
  178. command).
  179.  
  180. In the IBM PC version, each session (including the command  "ses-
  181. sion")  has  its  own  screen. When a new session is created, the
  182. command display is saved in memory and  the  screen  is  cleared.
  183. When  the  command  escape  key (usually F10) is hit, the current
  184. session screen is saved and the command screen is restored.  When
  185. a  session  is  resumed,  its  screen  is  restored exactly as it
  186. appeared when it was last current.
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. updated by Bill Simpson April 15, 1991 March 3, 1991
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                            - 4 -
  203.  
  204.  
  205. 3.  Commands
  206.  
  207. This chapter describes the commands recognized in  command  mode,
  208. or within a startup file such as autoexec.net. These are given in
  209. the following notation:
  210.  
  211.         command
  212.         command literalparameter
  213.         command subcommand <parameter>
  214.         command [<optionalparameter>]
  215.         command a | b
  216.  
  217.  
  218. Many commands  take  subcommands  or  parameters,  which  may  be
  219. optional  or  required.  In  general, if a required subcommand or
  220. parameter is omitted, an error message will summarize the  avail-
  221. able  subcommands or required parameters.  (Giving a '?' in place
  222. of the subcommand will also generate the message.  This is useful
  223. when  the  command  word  alone is a valid command.) If a command
  224. takes an optional value parameter, issuing  the  command  without
  225. the  parameter  generally displays the current value of the vari-
  226. able. (Exceptions to this rule are noted in the  individual  com-
  227. mand descriptions.)
  228.  
  229. Two or more parameters separated  by  vertical  bar(s)  denote  a
  230. choice  between  the  specified  values.  Optional parameters are
  231. shown enclosed in [brackets], and a parameter enclosed in  <angle
  232. brackets> should be replaced with an actual value or string.  For
  233. example, the notation <hostid> denotes an actual host or gateway,
  234. which  may  be  specified  in  one  of  two ways: as a numeric IP
  235. address in dotted decimal notation (eg. 44.0.0.1), or as  a  sym-
  236. bolic name listed in the file domain.txt.
  237.  
  238. All commands and many subcommands may be  abbreviated.  You  only
  239. need  type enough of a command's name to distinguish it from oth-
  240. ers that begin with the same series of letters. Parameters,  how-
  241. ever, must be typed in full.
  242.  
  243. Certain FTP subcommands (eg. put, get, dir, etc)  are  recognized
  244. only  in converse mode with the appropriate FTP session; they are
  245. not  recognized  in  command  mode.  (See  the  FTP   Subcommands
  246. chapter.)
  247.  
  248. 3.1.  <CR>
  249.  
  250. Entering a carriage return (empty line)  while  in  command  mode
  251. puts  you  in converse mode with the current session. If there is
  252. no current session, net.exe remains in command mode.
  253.  
  254. 3.2.  !
  255.  
  256. An alias for the shell command.
  257.  
  258.  
  259.  
  260.  
  261.  
  262. updated by Bill Simpson April 15, 1991 March 3, 1991
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                            - 5 -
  269.  
  270.  
  271. 3.3.  #
  272.  
  273. Commands starting with the hash mark (#)  are  ignored.  This  is
  274. mainly useful for comments in the autoexec.net file.
  275.  
  276. 3.4.  abort [<session #>]
  277.  
  278. Abort a FTP get, put or dir  operation  in  progress.  If  issued
  279. without  an  argument, the current session is aborted. (This com-
  280. mand works only on FTP sessions.) When receiving  a  file,  abort
  281. simply  resets the data connection; the next incoming data packet
  282. will generate a TCP RST (reset)  response  to  clear  the  remote
  283. server.   When  sending  a  file, abort sends a premature end-of-
  284. file. Note that in both cases abort will leave a partial copy  of
  285. the  file on the destination machine, which must be removed manu-
  286. ally if it is unwanted.
  287.  
  288. 3.5.  arp
  289.  
  290. Display the  Address  Resolution  Protocol  table  that  maps  IP
  291. addresses to their subnet (link) addresses on subnetworks capable
  292. of broadcasting. For each IP address entry the subnet  type  (eg.
  293. Ethernet, AX.25), subnet address and time to expiration is shown.
  294. If the link address  is  currently  unknown,  the  number  of  IP
  295. datagrams awaiting resolution is also shown.
  296.  
  297. 3.5.1.  arp add <hostid> ethernet |  ax25  <ethernet  address>  |
  298. <ax25address>
  299.  
  300. Add a permanent entry to the table. It will not time out as  will
  301. an  automatically-created entry, but must be removed with the arp
  302. drop command.
  303.  
  304. 3.5.2.  arp publish <hostid> ethernet | ax25 <ethernet address> |
  305. <ax25address>
  306.  
  307. This command is similar to the arp add command, but  system  will
  308. also respond to any ARP request it sees on the network that seeks
  309. the specified address.  (Use this feature with great care.)
  310.  
  311. 3.5.3.  arp drop <hostid> ax25 | ethernet
  312.  
  313. Remove the specified entry from the ARP table.
  314.  
  315. 3.5.4.  arp flush
  316.  
  317. Drop all automatically-created entries in  the  ARP  table;  per-
  318. manent entries are not affected.
  319.  
  320. 3.6.  asystat
  321.  
  322. Display statistics on attached asynchronous communications inter-
  323. faces  (8250  or  16550A), if any. The display for each port con-
  324. sists of three lines. The first line gives the port label and the
  325.  
  326.  
  327.  
  328. updated by Bill Simpson April 15, 1991 March 3, 1991
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                            - 6 -
  335.  
  336.  
  337. configuration  flags; these indicate whether the port is a 16550A
  338. chip, the trigger character if any, whether CTS flow  control  is
  339. enabled,  whether  RLSD (carrier detect) line control is enabled,
  340. and the speed in bits per second. (Receiving the trigger  charac-
  341. ter causes the driver to signal upper layer software that data is
  342. ready; it is automatically set to the appropriate frame end char-
  343. acter for SLIP, PPP and NRS lines.)
  344.  
  345. The second line of the status display shows receiver  (RX)  event
  346. counts:  the total number of receive interrupts, received charac-
  347. ters, receiver overruns (lost characters) and the  receiver  high
  348. water  mark. The high water mark is the maximum number of charac-
  349. ters ever read from the device during a single interrupt. This is
  350. useful  for  monitoring  system  interrupt  latency margins as it
  351. shows how close the port hardware has come to overflowing due  to
  352. the  inability  of  the CPU to respond to a receiver interrupt in
  353. time. 8250 chips have no FIFO, so the high water mark  cannot  go
  354. higher  than  2  before overruns occur. The 16550A chip, however,
  355. has a 16-byte receive FIFO which the software programs to  inter-
  356. rupt  the  CPU  when the FIFO is one-quarter full. The high water
  357. mark should typically be 4 or 5 when a  16550A  is  used;  higher
  358. values  indicate  that  the  CPU  has  at least once been slow to
  359. respond to a receiver interrupt.
  360.  
  361. When the 16550A is  used,  a  count  of  FIFO  timeouts  is  also
  362. displayed  on  the  RX status line. These are generated automati-
  363. cally by the 16550A when three character  intervals  go  by  with
  364. more  than  0  but  less than 4 characters in the FIFO. Since the
  365. characters that make up a SLIP or NRS frame are normally sent  at
  366. full  line speed, this count will usually be a lower bound on the
  367. number of frames received on the port, as only the last  fragment
  368. of a frame generally results in a timeout (and then only when the
  369. frame is not a multiple of 4 bytes long.)
  370.  
  371. Finally, the software fifo  overruns  and  high  water  mark  are
  372. displayed.  These indicate whether the <bufsize> parameter on the
  373. attach command needs to be  adjusted  (see  the  Attach  Commands
  374. chapter).
  375.  
  376. The third line shows transmit (TX) statistics, including a  total
  377. count  of transmit interrupts, transmitted characters, the length
  378. of the transmit queue in bytes, the number of status  interrupts,
  379. and  the number of THRE timeouts. The status interrupt count will
  380. be zero unless CTS flow control or RLSD  line  control  has  been
  381. enabled.  The  THRE  timeout  is  a stopgap measure to catch lost
  382. transmit interrupts, which seem to happen when there is a lot  of
  383. activity (ideally, this will be zero).
  384.  
  385. 3.7.  attach <hw type> ...
  386.  
  387. Configure and attach a hardware interface to the system. Detailed
  388. instructions  for each driver are in the Attach Commands chapter.
  389. An easy way to obtain a summary of the parameters required for  a
  390. given  device  is  to  issue a partial attach command (eg. attach
  391.  
  392.  
  393.  
  394. updated by Bill Simpson April 15, 1991 March 3, 1991
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                            - 7 -
  401.  
  402.  
  403. packet). This produces a usage message giving the  complete  com-
  404. mand format.
  405.  
  406. 3.8.  ax25 ...
  407.  
  408. These commands are used for AX25 interfaces.
  409.  
  410. 3.8.1.  ax25 blimit [<count>]
  411.  
  412. Display or set the AX25 retransmission  backoff  limit.  Normally
  413. each successive AX25 retransmission is delayed by twice the value
  414. of the previous interval; this is called binary exponential back-
  415. off.  When  the  backoff reaches the blimit setting it is held at
  416. that value, which defaults to 30. To prevent the  possibility  of
  417. "congestive  collapse"  on a loaded channel, blimit should be set
  418. at least as high as the number of stations sharing  the  channel.
  419. Note  that this is applicable only on actual AX25 connections; UI
  420. frames will never be retransmitted by the AX25 layer.
  421.  
  422. 3.8.2.  ax25 digipeat [on | off]
  423.  
  424. Display or set the digipeater enable flag.
  425.  
  426. 3.8.3.  ax25 flush
  427.  
  428. Clear the AX.25 "heard" list (see ax25 heard).
  429.  
  430. 3.8.4.  ax25 heard
  431.  
  432. Display the AX.25 "heard" list. For each interface that  is  con-
  433. figured  to use AX.25, a list of all callsigns heard through that
  434. interface is shown, along with a count of the number  of  packets
  435. heard  from  each station and the interval, in hr:min:sec format,
  436. since each station was  last  heard.  The  local  station  always
  437. appears  first in the listing; the packet count actually reflects
  438. the number of packets transmitted. This entry is  always  present
  439. even if no packets have been sent.
  440.  
  441. 3.8.5.  ax25 irtt [<milliseconds>]
  442.  
  443. Display or set the initial value of smoothed round trip  time  to
  444. be  used  when  a new AX25 connection is created. The value is in
  445. milliseconds. The actual round trip time will be learned by meas-
  446. urement once the connection has been established.
  447.  
  448. 3.8.6.  ax25 kick <axcb>
  449.  
  450. Force a retransmission on the specified AX.25 control block.
  451.  
  452. 3.8.7.  ax25 maxframe [<count>]
  453.  
  454. Establish the maximum number of frames that will  be  allowed  to
  455. remain  unacknowledged at one time on new AX.25 connections. This
  456. number cannot be greater than 7.
  457.  
  458.  
  459.  
  460. updated by Bill Simpson April 15, 1991 March 3, 1991
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                            - 8 -
  467.  
  468.  
  469. 3.8.8.  ax25 mycall [<call>]
  470.  
  471. Display or set the local AX.25 address.  The standard  format  is
  472. used  (eg. KA9Q-0 or WB6RQN-5). This command must be given before
  473. any attach commands using AX.25 mode are given.
  474.  
  475. 3.8.9.  ax25 paclen [<size>]
  476.  
  477. Limit the size of I-fields  on  new  AX.25  connections.   If  IP
  478. datagrams  or  fragments  larger  than this are transmitted, they
  479. will be transparently fragmented at the AX.25 level,  sent  as  a
  480. series  of  I  frames,  and  reassembled  back into a complete IP
  481. datagram or fragment at the other end of the link.  To  have  any
  482. effect  on  IP  datagrams,  this parameter should be less than or
  483. equal to the MTU of the associated interface.
  484.  
  485. 3.8.10.  ax25 pthresh [<size>]
  486.  
  487. Display or set the poll threshold to be used for new  AX.25  Ver-
  488. sion  2  connections.  The poll threshold controls retransmission
  489. behavior as follows. If the oldest unacknowledged I-frame size is
  490. less  than  the poll threshold, it will be sent with the poll (P)
  491. bit set if a timeout occurs. If the oldest unacked  I-frame  size
  492. is  equal  to  or  greater  than  the threshold, then a RR or RNR
  493. frame, as appropriate, with the poll bit set will be  sent  if  a
  494. timeout occurs.
  495.  
  496. The idea behind the poll threshold is that the extra time  needed
  497. to  send  a  "small"  I-frame instead of a supervisory frame when
  498. polling after a timeout is small, and since there's a good chance
  499. the  I-frame  will  have to be sent anyway (i.e., if it were lost
  500. previously) then you might as well send it as the  poll.  But  if
  501. the I-frame is large, send a supervisory (RR/RNR) poll instead to
  502. determine first if retransmitting the  oldest  unacknowledged  I-
  503. frame  is necessary; the timeout might have been caused by a lost
  504. acknowledgement.  This is obviously  a  tradeoff,  so  experiment
  505. with  the  poll  threshold setting. The default is 128 bytes, one
  506. half the default value of paclen.
  507.  
  508. 3.8.11.  ax25 reset <axcb>
  509.  
  510. Delete the  AX.25  connection  control  block  at  the  specified
  511. address.
  512.  
  513. 3.8.12.  ax25 retry [<count>]
  514.  
  515. Limit  the  number  of  successive  unsuccessful   retransmission
  516. attempts  on  new  AX.25  connections. If this limit is exceeded,
  517. link re-establishment is attempted. If this  fails  retry  times,
  518. then the connection is abandoned and all queued data is deleted.
  519.  
  520. 3.8.13.  ax25 route
  521.  
  522. Display the AX.25 routing table that specifies the digipeaters to
  523.  
  524.  
  525.  
  526. updated by Bill Simpson April 15, 1991 March 3, 1991
  527.  
  528.  
  529.  
  530.  
  531.  
  532.                            - 9 -
  533.  
  534.  
  535. be used in reaching a given station.
  536.  
  537. 3.8.13.1.  ax25 route add <target> [digis ... ]
  538.  
  539. Add an entry to the AX.25 routing table.  An automatic ax25 route
  540. add  is  executed if digipeaters are specified in an AX25 connect
  541. command, or if a connection is received from a remote station via
  542. digipeaters.  Such automatic routing table entries won't override
  543. locally created entries, however.
  544.  
  545. 3.8.13.2.  ax25 route drop <target>
  546.  
  547. Drop an entry from the AX.25 routing table.
  548.  
  549. 3.8.14.  ax25 status [<axcb>]
  550.  
  551. Without an argument, display a one-line  summary  of  each  AX.25
  552. control  block.  If  the address of a particular control block is
  553. specified, the contents of that control block are dumped in  more
  554. detail.  Note  that  the  send  queue units are frames, while the
  555. receive queue units are bytes.
  556.  
  557. 3.8.15.  ax25 t3 [<milliseconds>]
  558.  
  559. Display or set the AX.25 idle "keep alive"  timer.  Value  is  in
  560. milliseconds.
  561.  
  562. 3.8.16.  ax25 version [1 | 2]
  563.  
  564. Display or set the version of the AX.25 protocol  to  attempt  to
  565. use  on  new connections. The default is 1 (the version that does
  566. not use the poll/final bits).
  567.  
  568. 3.8.17.  ax25 window [<size>]
  569.  
  570. Set the number of bytes that can be pending on an  AX.25  receive
  571. queue  beyond  which I frames will be answered with RNR (Receiver
  572. Not Ready) responses.  This presently applies only  to  suspended
  573. interactive  AX.25  sessions,  since incoming I-frames containing
  574. network (IP, NET/ROM) packets are  always  processed  immediately
  575. and  are  not placed on the receive queue. However, when an AX.25
  576. connection carries both interactive and network  packet  traffic,
  577. an  RNR  generated because of backlogged interactive traffic will
  578. also stop network packet traffic from being sent.
  579.  
  580. 3.9.  cd [<dirname>]
  581.  
  582. Change the current working directory, and display  the  new  set-
  583. ting.  Without an argument, cd simply displays the current direc-
  584. tory without change. The pwd command is an alias for cd.
  585.  
  586. 3.10.  close [<session>]
  587.  
  588. Close the specified  session;  without  an  argument,  close  the
  589.  
  590.  
  591.  
  592. updated by Bill Simpson April 15, 1991 March 3, 1991
  593.  
  594.  
  595.  
  596.  
  597.  
  598.                            - 10 -
  599.  
  600.  
  601. current  session.  On  an AX.25 session, this command initiates a
  602. disconnect.  On a FTP or Telnet session, this command sends a FIN
  603. (i.e.,  initiates a close) on the session's TCP connection.  This
  604. is an alternative to asking the remote server to initiate a close
  605. (QUIT  to  FTP,  or the logout command appropriate for the remote
  606. system in the case of Telnet).  When either FTP  or  Telnet  sees
  607. the  incoming  half  of  a TCP connection close, it automatically
  608. responds by closing the outgoing half of the  connection.   Close
  609. is  more  graceful  than  the  reset  command, in that it is less
  610. likely to leave the remote TCP in a "half-open" state.
  611.  
  612. 3.11.  connect <iface> <callsign> [<digipeater> ... ]
  613.  
  614. Initiate a "vanilla" AX.25 session to  the  specified  call  sign
  615. using the specified interface. Data sent on this session goes out
  616. in conventional AX.25 packets with no upper layer protocol.   The
  617. de-facto  presentation  standard  format  is  used,  in that each
  618. packet holds one line of text, terminated by a  carriage  return.
  619. A  single  AX.25 connection may be used for terminal-to-terminal,
  620. IP and NET/ROM traffic. The three types of data are automatically
  621. separated by their AX.25 Level 3 Protocol IDs.
  622.  
  623. Up to 7 optional digipeaters may be given; note that the word via
  624. is  NOT  needed. If digipeaters are specified, they are automati-
  625. cally added to the AX25 routing table as though  the  ax25  route
  626. add command had been given before issuing the connect command.
  627.  
  628. 3.12.  delete <filename>
  629.  
  630. Delete a filename in the current working directory.
  631.  
  632. 3.13.  detach <iface>
  633.  
  634. Detach a previously attached interface from the  system.  All  IP
  635. routing  table  entries  referring to this interface are deleted,
  636. and forwarding references by any other interface to  this  inter-
  637. face are removed.
  638.  
  639. 3.14.  dialer <iface> <seconds> <hostid> <pings> <dialer-file>
  640.  
  641. Setup an autodialer  session  for  the  interface.  Whenever  the
  642. interface  is  idle for the interval in <seconds>, the autodialer
  643. will ping the <hostid>. If  there  is  no  answer  after  <pings>
  644. attempts,  the  autodialer will execute the special commands con-
  645. tained in the <dialer-file>.
  646.  
  647. If the interval in <seconds> is zero, a previous  dialer  command
  648. process  will  be  removed. If the number of <pings> is zero, the
  649. <dialer-file> will be executed without pinging the <hostid>.
  650.  
  651. The file may have any valid name, and must be located in the con-
  652. figuration  directory  (see the Installion section). The commands
  653. in the file are described in the Dialer Subcommands chapter.
  654.  
  655.  
  656.  
  657.  
  658. updated by Bill Simpson April 15, 1991 March 3, 1991
  659.  
  660.  
  661.  
  662.  
  663.  
  664.                            - 11 -
  665.  
  666.  
  667. 3.15.  dir [<dirname>]
  668.  
  669. List the contents of the specified directory on the  console.  If
  670. no  argument is given, the current directory is listed. Note that
  671. this command works by first listing the  directory  into  a  tem-
  672. porary  file,  and  then  creating  a more session to display it.
  673. After this completes, the temporary file is deleted.
  674.  
  675. 3.16.  disconnect [<session #>]
  676.  
  677. An alias for the close command (for the benefit of AX.25 users).
  678.  
  679. 3.17.  domain ...
  680.  
  681. These commands are used for access to the Domain Name Service.
  682.  
  683. 3.17.1.  domain addserver <hostid>
  684.  
  685. Add one or more  domain  name  server(s)  to  the  list  of  name
  686. servers.
  687.  
  688. 3.17.2.  domain dropserver <hostid>
  689.  
  690. Remove one or more domain name server(s) from the  list  of  name
  691. servers.
  692.  
  693. 3.17.3.  domain listservers
  694.  
  695. List the currently configured domain  name  servers,  along  with
  696. statistics  on  how  many queries and replies have been exchanged
  697. with each one, response times, etc.
  698.  
  699. 3.17.4.  domain query <hostid>
  700.  
  701. Send a query to a domain server asking for all  resource  records
  702. associated with this <hostid>, and list the records.
  703.  
  704. 3.17.5.  domain retry [<count>]
  705.  
  706. Display or set the number of attempts to reach each server on the
  707. list  during one call to the resolver. If this count is exceeded,
  708. a failure indication is returned. If set  to  0,  the  list  will
  709. cycle  forever;  this may be useful for unattended operation. The
  710. default is 3.
  711.  
  712. 3.17.6.  domain suffix [<domain suffix>]
  713.  
  714. Display or specify the default domain name suffix to be  appended
  715. to  a  host name when it contains no periods. For example, if the
  716. suffix is set to ampr.org and the user enters  telnet  ka9q,  the
  717. domain  resolver  will attempt to find ka9q.ampr.org. If the host
  718. name being sought contains one  or  more  periods,  however,  the
  719. default  suffix  is  NOT applied (eg. telnet foo.bar would NOT be
  720. turned into foo.bar.ampr.org).
  721.  
  722.  
  723.  
  724. updated by Bill Simpson April 15, 1991 March 3, 1991
  725.  
  726.  
  727.  
  728.  
  729.  
  730.                            - 12 -
  731.  
  732.  
  733. 3.17.7.  domain trace [on | off]
  734.  
  735. Display or set the flag controlling the tracing of domain  server
  736. requests  and  responses.  Trace  messages will be seen only if a
  737. domain name being sought is not found in the  local  cache  file,
  738. domain.txt.
  739.  
  740. 3.17.8.  domain cache ...
  741.  
  742. These commands are used for the use of the resource  record  file
  743. domain.txt, and the local memory cache.
  744.  
  745. 3.17.8.1.  domain cache clean [on | off]
  746.  
  747. Display or set the  flag  controlling  the  removal  of  resource
  748. records  from  the domain.txt file whose time-to-live has reached
  749. zero.
  750.  
  751. When  clean  is  off  (the  default),  expired  records  will  be
  752. retained;  if  no replacement can be obtained from another domain
  753. name server, these records will continue to be used.
  754.  
  755. When clean is on, expired records will be removed from  the  file
  756. whenever any new record is added to the file.
  757.  
  758. 3.17.8.2.  domain cache list
  759.  
  760. List the current contents of the local memory cache.
  761.  
  762. 3.17.8.3.  domain cache size [<count>]
  763.  
  764. Display or set the nominal  maximum  size  of  the  local  memory
  765. cache. The default is 20.
  766.  
  767. (Note: The cache may be temporarily larger when waiting  for  new
  768. records to be written to the domain.txt file.)
  769.  
  770. 3.17.8.4.  domain cache wait [<seconds>]
  771.  
  772. Display or set the interval in seconds  to  wait  for  additional
  773. activity before updating the domain.txt file.  The default is 300
  774. seconds (5 minutes).
  775.  
  776. 3.18.  echo [accept | refuse]
  777.  
  778. Display or set the flag controlling client Telnet's response to a
  779. remote WILL ECHO offer.
  780.  
  781. The Telnet presentation protocol specifies that in the absence of
  782. a  negotiated  agreement to the contrary, neither end echoes data
  783. received from the other. In this mode, a  Telnet  client  session
  784. echoes  keyboard input locally and nothing is actually sent until
  785. a carriage return is typed. Local line editing is also performed:
  786. backspace  deletes  the  last  character  typed,  while control-U
  787.  
  788.  
  789.  
  790. updated by Bill Simpson April 15, 1991 March 3, 1991
  791.  
  792.  
  793.  
  794.  
  795.  
  796.                            - 13 -
  797.  
  798.  
  799. deletes the entire line.
  800.  
  801. When communicating from keyboard to keyboard the  standard  local
  802. echo  mode  is  used,  so  the  setting  of this parameter has no
  803. effect. However, many timesharing systems (eg. UNIX) prefer to do
  804. their own echoing of typed input. (This makes screen editors work
  805. right, among other things). Such systems send a Telnet WILL  ECHO
  806. offer  immediately  upon  receiving an incoming Telnet connection
  807. request. If echo accept is in effect,  a  client  Telnet  session
  808. will automatically return a DO ECHO response. In this mode, local
  809. echoing and editing is turned off and each  key  stroke  is  sent
  810. immediately  (subject  to  the  Nagle tinygram algorithm in TCP).
  811. While this mode is just fine across an Ethernet,  it  is  clearly
  812. inefficient and painful across slow paths like packet radio chan-
  813. nels. Specifying echo refuse causes an incoming WILL  ECHO  offer
  814. to  be  answered  with  a  DONT  ECHO;  the client Telnet session
  815. remains in the local echo mode.  Sessions already in  the  remote
  816. echo  mode are unaffected. (Note: Berkeley Unix has a bug in that
  817. it will still echo input even after the client  has  refused  the
  818. WILL ECHO offer. To get around this problem, enter the stty -echo
  819. command to the shell once you have logged in.)
  820.  
  821. 3.19.  eol [unix | standard]
  822.  
  823. Display or set Telnet's end-of-line behavior when in remote  echo
  824. mode.  In  standard  mode,  each key is sent as-is. In unix mode,
  825. carriage returns are translated to line feeds.  This  command  is
  826. not  necessary  with  all UNIX systems; use it only when you find
  827. that a particular system responds to line feeds but not  carriage
  828. returns.   Only SunOS release 3.2 seems to exhibit this behavior;
  829. later releases are fixed.
  830.  
  831. 3.20.  escape [<char>]
  832.  
  833. Display or set the current command-mode escape character in  hex.
  834. (This  command  is  not  provided  on  the IBM-PC; on the PC, the
  835. escape char is always F10.)
  836.  
  837. 3.21.  etherstat
  838.  
  839. Display 3-Com Ethernet controller statistics (if configured).
  840.  
  841. 3.22.  exit
  842.  
  843. Exit the net.exe program and return to MS-DOS.
  844.  
  845. 3.23.  finger <user@hostid> [<user@hostid> ...]
  846.  
  847. Issue a network finger request for user user at host hostid. This
  848. creates  a  client  session  which  may  be interrupted, resumed,
  849. reset, etc, just like a Telnet client session.
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856. updated by Bill Simpson April 15, 1991 March 3, 1991
  857.  
  858.  
  859.  
  860.  
  861.  
  862.                            - 14 -
  863.  
  864.  
  865. 3.24.  ftp <hostid>
  866.  
  867. Open an FTP control channel to  the  specified  remote  host  and
  868. enter  converse  mode  on  the  new  session.  Responses from the
  869. remote server are displayed directly on the screen. See  the  FTP
  870. Subcommands chapter for descriptions of the commands available in
  871. a FTP session.
  872.  
  873. 3.25.  help
  874.  
  875. Display a brief summary of top-level commands.
  876.  
  877. 3.26.  hop ...
  878.  
  879. These commands are used to test the connectivity of the network.
  880.  
  881. 3.26.1.  hop check <hostid>
  882.  
  883. Initiate a hopcheck session to the specified host.  This  uses  a
  884. series  of  UDP  "probe" packets with increasing IP TTL fields to
  885. determine the sequence of gateways in the path to  the  specified
  886. destination. This function is patterned after the UNIX traceroute
  887. facility.
  888.  
  889. ICMP message tracing should be turned off before this command  is
  890. executed (see the icmp trace command).
  891.  
  892. 3.26.2.  hop maxttl [<hops>]
  893.  
  894. Display or set the maximum TTL value to be used in hop check ses-
  895. sions. This effectively bounds the radius of the search.
  896.  
  897. 3.26.3.  hop maxwait [<seconds>]
  898.  
  899. Display or set the maximum interval that a hopcheck session  will
  900. wait  for  responses at each stage of the trace. The default is 5
  901. seconds.
  902.  
  903. 3.26.4.  hop queries [<count>]
  904.  
  905. Display or set the number of UDP probes that will be sent at each
  906. stage of the trace. The default is 3.
  907.  
  908. 3.26.5.  hop trace [on | off]
  909.  
  910. Display or set the flag that controls the display  of  additional
  911. information during a hop check session.
  912.  
  913. 3.27.  hostname [<name>]
  914.  
  915. Display or set the local host's name. By convention  this  should
  916. be  the  same  as  the host's primary domain name. This string is
  917. used only  in  the  greeting  messages  of  the  various  network
  918. servers; note that it does NOT set the system's IP address.
  919.  
  920.  
  921.  
  922. updated by Bill Simpson April 15, 1991 March 3, 1991
  923.  
  924.  
  925.  
  926.  
  927.  
  928.                            - 15 -
  929.  
  930.  
  931. If <name> is the same as an  <iface>  (see  the  Attach  commands
  932. chapter),  this  command  will search for a CNAME domain resource
  933. record which corresponds to the IP address of the <iface>.
  934.  
  935. 3.28.  hs
  936.  
  937. Display statistics about the HS high speed HDLC driver  (if  con-
  938. figured and active).
  939.  
  940. 3.29.  icmp ...
  941.  
  942. These commands are used for the Internet Control Message Protocol
  943. service.
  944.  
  945. 3.29.1.  icmp echo [on | off]
  946.  
  947. Display or set the flag controlling the asynchronous  display  of
  948. ICMP  Echo Reply packets. This flag must be on for one-shot pings
  949. to work (see the ping command.)
  950.  
  951. 3.29.2.  icmp status
  952.  
  953. Display statistics about the Internet  Control  Message  Protocol
  954. (ICMP),  including  the number of ICMP messages of each type sent
  955. or received.
  956.  
  957. 3.29.3.  icmp trace [on | off]
  958.  
  959. Display or set the flag controlling the  display  of  ICMP  error
  960. messages.  These informational messages are generated by Internet
  961. routers in response to routing, protocol or congestion  problems.
  962. This  option  should  be  turned  off  before using the hop check
  963. facility because it relies on ICMP Time  Exceeded  messages,  and
  964. the  asynchronous  display of these messages will be mingled with
  965. hop check command output.
  966.  
  967. 3.30.  ifconfig
  968.  
  969. Display a list of interfaces, with a short status for each.
  970.  
  971. 3.30.1.  ifconfig <iface>
  972.  
  973. Display an extended status of the interface.
  974.  
  975. 3.30.2.  ifconfig <iface> broadcast <address>
  976.  
  977. Set the broadcast address for the interface. The <address>  takes
  978. the  form  of  an  IP  address  with  1's in the host part of the
  979. address. This is related to the netmask sub-command. See also the
  980. arp command.
  981.  
  982. 3.30.3.  ifconfig <iface> encapsulation <name>
  983.  
  984. Not fully implemented.
  985.  
  986.  
  987.  
  988. updated by Bill Simpson April 15, 1991 March 3, 1991
  989.  
  990.  
  991.  
  992.  
  993.  
  994.                            - 16 -
  995.  
  996.  
  997. 3.30.4.  ifconfig <iface> forward <forward-iface>
  998.  
  999. Set a forwarding interface for multiple  channel  interfaces.  To
  1000. remove the forward, set <forward-iface> to <iface>.
  1001.  
  1002. 3.30.5.  ifconfig <iface> ipaddress <hostid>
  1003.  
  1004. Set the IP address for this interface. It  is  standard  Internet
  1005. practice  that each interface has its own address. For hosts with
  1006. only one interface, the interface address is usually the same  as
  1007. the host address. See also the hostname and ip address commands.
  1008.  
  1009. 3.30.6.  ifconfig <iface> linkaddress <hardware-dependant>
  1010.  
  1011. Set the hardware dependant address for this interface.
  1012.  
  1013. 3.30.7.  ifconfig <iface> mtu <mtu>
  1014.  
  1015. Set the MTU for this interface. See the Setting ... MTU, MSS  and
  1016. Window chapter for more information.
  1017.  
  1018. 3.30.8.  ifconfig <iface> netmask <address>
  1019.  
  1020. Set the sub-net mask for this interface. The <address> takes  the
  1021. form of an IP address with 1's in the network and subnet parts of
  1022. the address, and 0's in the host part of  the  address.  This  is
  1023. related to the broadcast sub-command. See also the route command.
  1024.  
  1025. 3.30.9.  ifconfig <iface> rxbuf <?>
  1026.  
  1027. Not yet implemented.
  1028.  
  1029. 3.31.  ip ...
  1030.  
  1031. These commands are used for the Internet Protocol service.
  1032.  
  1033. 3.31.1.  ip address [<hostid>]
  1034.  
  1035. Display or set the default local IP address. This command must be
  1036. given before an attach command if it is to be used as the default
  1037. IP address for the interface.
  1038.  
  1039. 3.31.2.  ip rtimer [<seconds>]
  1040.  
  1041. Display or set the IP  reassembly  timeout.  The  default  is  30
  1042. seconds.
  1043.  
  1044. 3.31.3.  ip status
  1045.  
  1046. Display Internet Protocol (IP) statistics, such as  total  packet
  1047. counts and error counters of various types.
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054. updated by Bill Simpson April 15, 1991 March 3, 1991
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.                            - 17 -
  1061.  
  1062.  
  1063. 3.31.4.  ip ttl [<hops>]
  1064.  
  1065. Display or set the time-to-live value placed in each outgoing  IP
  1066. datagram. This limits the number of switch hops the datagram will
  1067. be allowed to take. The idea is to  bound  the  lifetime  of  the
  1068. packet  should  it  become  caught in a routing loop, so make the
  1069. value slightly larger than the number of hops across the  network
  1070. you  expect to transit packets. The default is set at compilation
  1071. time to the official recommended value for the Internet.
  1072.  
  1073. 3.32.  isat [on | off]
  1074.  
  1075. Display or set the AT flag. Currently, there is no sure-fire  way
  1076. to  determine  the  type of clock-chip being used.  If an AT type
  1077. clock is in use, this command will allow measurement of  time  in
  1078. milliseconds,  rather than clock ticks (55 milliseconds per clock
  1079. tick).
  1080.  
  1081. 3.32.1.  kick [<session>]
  1082.  
  1083. Kick all sockets associated with a session;  if  no  argument  is
  1084. given,  kick  the  current session. Performs the same function as
  1085. the ax25 kick and tcp kick commands, but is easier to type.
  1086.  
  1087. 3.33.  log [stop | <filename>]
  1088.  
  1089. Display or set the filename for logging server sessions. If  stop
  1090. is  given  as  the  argument,  logging is terminated (the servers
  1091. themselves are unaffected). If a file name is given as  an  argu-
  1092. ment, server session log entries will be appended to it.
  1093.  
  1094. 3.34.  mbox
  1095.  
  1096. Display the status of the mailbox server system (if configured).
  1097.  
  1098. 3.35.  memory ...
  1099.  
  1100. These commands are used for memory allocation.
  1101.  
  1102. 3.35.1.  memory free
  1103.  
  1104. Display the storage allocator free list. Each entry consists of a
  1105. starting address, in hex, and a size, in decimal bytes.
  1106.  
  1107. 3.35.2.  memory sizes
  1108.  
  1109. Display a histogram of storage allocator request sizes. Each his-
  1110. togram bin is a binary order of magnitude (i.e., a factor of 2).
  1111.  
  1112. 3.35.3.  memory status
  1113.  
  1114. Display a summary of storage allocator statistics. The first line
  1115. shows the base address of the heap, its total size, the amount of
  1116. heap memory available in bytes and as a percentage of  the  total
  1117.  
  1118.  
  1119.  
  1120. updated by Bill Simpson April 15, 1991 March 3, 1991
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.                            - 18 -
  1127.  
  1128.  
  1129. heap  size,  and the amount of memory left over (i.e., not placed
  1130. on the heap at startup) and therefore available for shell subcom-
  1131. mands.
  1132.  
  1133. The second line shows the total number of calls to  allocate  and
  1134. free  blocks of memory, the difference of these two values (i.e.,
  1135. the number of allocated blocks outstanding), the number of  allo-
  1136. cation  requests  that were denied due to lack of memory, and the
  1137. number of calls to free() that attempted to free garbage (eg.  by
  1138. freeing the same block twice or freeing a garbled pointer).
  1139.  
  1140. The third line shows the number of calls to malloc and free  that
  1141. occurred  with  interrupts off. In normal situations these values
  1142. should be zero. The fourth line shows statistics for the  special
  1143. pool of fixed-size buffers used to satisfy requests for memory at
  1144. interrupt time. The variables shown are  the  number  of  buffers
  1145. currently  in  the  pool,  their size, and the number of requests
  1146. that failed due to exhaustion of the pool.
  1147.  
  1148. 3.36.  mkdir <dirname>
  1149.  
  1150. Create a sub-directory in the current working directory.
  1151.  
  1152. 3.37.  mode <iface> [vc | datagram]
  1153.  
  1154. Control the default transmission  mode  on  the  specified  AX.25
  1155. interface. In datagram mode, IP packets are encapsulated in AX.25
  1156. UI frames and transmitted without any other  link  level  mechan-
  1157. isms, such as connections or acknowledgements.
  1158.  
  1159. In vc (virtual circuit) mode,  IP  packets  are  encapsulated  in
  1160. AX.25  I  frames and are acknowledged at the link level according
  1161. to the AX.25 protocol.  Link  level  connections  are  opened  if
  1162. necessary.
  1163.  
  1164. In both modes, ARP is used to map IP  to  AX.25  addresses.   The
  1165. defaults can be overridden with the type-of-service (TOS) bits in
  1166. the IP header. Turning on the "reliability" bit causes  I  frames
  1167. to  be used, while turning on the "low delay" bit uses UI frames.
  1168. (The effect of turning on both bits is undefined and  subject  to
  1169. change).
  1170.  
  1171. In both modes, IP-level fragmentation is done if the datagram  is
  1172. larger  than  the  interface  MTU.  In virtual circuit mode, how-
  1173. ever, the resulting datagram (or fragments) is further fragmented
  1174. at  the  AX.25  layer  if  it (or they) are still larger than the
  1175. AX.25 paclen parameter. In  AX.25  fragmentation,  datagrams  are
  1176. broken into several I frames and reassembled at the receiving end
  1177. before being passed to IP. This is preferable to IP fragmentation
  1178. whenever  possible  because  of decreased overhead (the IP header
  1179. isn't repeated in each fragment) and increased robustness (a lost
  1180. fragment is immediately retransmitted by the link layer).
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186. updated by Bill Simpson April 15, 1991 March 3, 1991
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.                            - 19 -
  1193.  
  1194.  
  1195. 3.38.  more <file> [<file> ...]
  1196.  
  1197. Display the specified file(s) a screen at a time. To  proceed  to
  1198. the  next screen, press the space bar; to cancel the display, hit
  1199. the 'q' key. The more command creates  a  session  that  you  can
  1200. suspend and resume just like any other session.
  1201.  
  1202. 3.39.  param <iface> [<param> ...]
  1203.  
  1204. Invoke a device-specific control routine.  On a KISS  TNC  inter-
  1205. face,  this  sends  control  packets  to the TNC.  Data bytes are
  1206. treated as decimal.  For example, param ax0 1 255  will  set  the
  1207. keyup timer (type field = 1) on the KISS TNC configured as ax0 to
  1208. 2.55 seconds (255 x .01 sec).  On a  SLIP  interface,  the  param
  1209. command  allows  the  baud rate to be read (without arguments) or
  1210. set.  The implementation of this command for the  various  inter-
  1211. face drivers is incomplete and subject to change.
  1212.  
  1213. 3.40.  ping <hostid> [<length> [<seconds> [<incflag>]]]
  1214.  
  1215. Ping (send ICMP Echo Request packets to) the specified  host.  By
  1216. default  the data field contains only a small timestamp to aid in
  1217. determining round trip time; if the optional length  argument  is
  1218. given,  the  appropriate  number of data bytes (consisting of hex
  1219. 55) are added to the ping packets.
  1220.  
  1221. If interval is specified, pings will be repeated indefinitely  at
  1222. the  specified  number of seconds; otherwise a single, "one shot"
  1223. ping is done. Responses to one-shot pings  appear  asynchronously
  1224. on the command screen, while repeated pings create a session that
  1225. may be suspended and resumed. Pinging continues until the session
  1226. is manually reset.
  1227.  
  1228. The incflag option causes a repeated ping to increment the target
  1229. IP  address  for  each  ping;  it  is an experimental feature for
  1230. searching blocks of IP addresses for active hosts.
  1231.  
  1232. 3.41.  ppp ...
  1233.  
  1234. These commands are used for Point to Point Protocol interfaces.
  1235.  
  1236. This implementation of PPP is designed to be as complete as  pos-
  1237. sible.  Because  of  this,  the  number  of options can be rather
  1238. daunting. However, a typical PPP configuration might include  the
  1239. following commands:
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252. updated by Bill Simpson April 15, 1991 March 3, 1991
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.                            - 20 -
  1259.  
  1260.  
  1261.  
  1262.         attach asy 0x3f8 4 ppp pp0 4096 1500 9600
  1263.         dial pp0 30 <hostid> 3 dialer.pp0
  1264.         #
  1265.         ppp pp0 lcp local accm 0
  1266.         ppp pp0 lcp local compress address on
  1267.         ppp pp0 lcp local compress protocol on
  1268.         ppp pp0 lcp local magic on
  1269.         ppp pp0 lcp open active
  1270.         #
  1271.         ppp pp0 ipcp local compress tcp 16 1
  1272.         ppp pp0 ipcp open active
  1273.         #
  1274.         route add default pp0
  1275.  
  1276.  
  1277. 3.41.1.  ppp <iface>
  1278.  
  1279. Display the status of the PPP interface.
  1280.  
  1281. 3.41.2.  ppp <iface> lcp ...
  1282.  
  1283. These commands are used for the LCP [Link Control Protocol]  con-
  1284. figuration.
  1285.  
  1286. 3.41.2.1.  ppp <iface> lcp close
  1287.  
  1288. Shutdown the PPP interface.
  1289.  
  1290. 3.41.2.2.  ppp <iface> lcp local ...
  1291.  
  1292. These commands control the configuration of the local side of the
  1293. link.  If  an option is specified, the parameters will be used as
  1294. the initial values in configuration requests. If  not  specified,
  1295. that option will not be requested.
  1296.  
  1297. For each of these options, the allow parameter  will  permit  the
  1298. remote  to  include  that  option  in its response, even when the
  1299. option is not included in the request. By  default,  all  options
  1300. are allowed.
  1301.  
  1302. 3.41.2.2.1.  ppp <iface> lcp local accm [ <bitmap> | allow [on  |
  1303. off] ]
  1304.  
  1305. Display or set the Async Control Character Map.  The  default  is
  1306. 0xffffffff.
  1307.  
  1308. 3.41.2.2.2.  ppp <iface> lcp local authenticate [ pap  |  none  |
  1309. allow [on | off] ]
  1310.  
  1311. Display or set the authentication protocol. The default is none.
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318. updated by Bill Simpson April 15, 1991 March 3, 1991
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.                            - 21 -
  1325.  
  1326.  
  1327. 3.41.2.2.3.  ppp <iface> lcp local cfor hardware interrupt events will turn off this  flag;  this  is
  1328. done to avoid critical sections and missed interrupts. The W flag
  1329. indicates that the process is waiting for  an  event;  the  event
  1330. column will be non-blank. Note that although there may be several
  1331. runnable processes at any time (shown in the ps listing as  those
  1332. without  the W flag and with blank event fields) only one process
  1333. is actually running at any one instant  (The  Refrigerator  Light
  1334. Effect  says  that  the ps command is always the one running when
  1335. this display is generated.)
  1336.  
  1337. 3.43.  pwd [<dirname>]
  1338.  
  1339. An alias for the cd command.
  1340.  
  1341. 3.44.  record [off | <filename>]
  1342.  
  1343. Append to filename all data  received  on  the  current  session.
  1344. Data  sent  on  the current session is also written into the file
  1345. except for Telnet sessions in  remote  echo  mode.   The  command
  1346. record off stops recording and closes the file.
  1347.  
  1348. 3.45.  remote [-p <port>] [-k  <key>]  [-a  <kickaddr>]  <hostid>
  1349. exit | reset | kick
  1350.  
  1351. Send a UDP packet to the specified host commanding it to exit the
  1352. net.exe  program,  reset the processor, or force a retransmission
  1353. on TCP connections.  For this command to be accepted, the  remote
  1354. system  must  be  running  the  remote server and the port number
  1355. specified in the remote command must match the port number  given
  1356. when  the  server  was  started on the remote system. If the port
  1357. numbers do not match, or if the remote server is not  running  on
  1358. the  target  system,  the command packet is ignored.  Even if the
  1359. command is accepted there is no acknowledgement.
  1360.  
  1361. The kick command forces a retransmission timeout on all TCP  con-
  1362. nections  that  the  remote node may have with the local node. If
  1363. the -a option is used, connections  to  the  specified  host  are
  1364. kicked instead. No key is required for the kick subcommand.
  1365.  
  1366. The exit and reset subcommands are mainly useful  for  restarting
  1367. the  net.exe program on a remote unattended system after the con-
  1368. figuration file has  been  updated.   The  remote  system  should
  1369.  
  1370.  
  1371.  
  1372. updated by Bill Simpson April 15, 1991 March 3, 1991
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.                            - 25 -
  1379.  
  1380.  
  1381. invoke the net.exe program automatically upon booting, preferably
  1382. in an infinite loop.  For example, under  MS-DOS  the  boot  disk
  1383. should contain the following in autoexec.net:
  1384.  
  1385.         :loop
  1386.         net
  1387.         goto :loop
  1388.  
  1389.  
  1390.  
  1391. 3.46.  remote -s <key>
  1392.  
  1393. The exit and reset subcommands of remote require a password.  The
  1394. password  is  set on a given system with the -s option, and it is
  1395. specified in a command to a remote system with the -k option.  If
  1396. no  password  is  set with the -s option, then the exit and reset
  1397. subcommands are disabled.
  1398.  
  1399. Note that remote is an experimental feature in NOS; it is not yet
  1400. supported by any other TCP/IP implementation.
  1401.  
  1402. 3.47.  rename <oldfilename> <newfilename>
  1403.  
  1404. Rename oldfilename to newfilename.
  1405.  
  1406. 3.48.  reset [<session>]
  1407.  
  1408. Reset the specified session; if no argument is given,  reset  the
  1409. current  session.  This command should be used with caution since
  1410. it does not reliably inform the remote end that the connection no
  1411. longer  exists.   (In TCP a reset (RST) message will be automati-
  1412. cally generated should the remote TCP send anything after a local
  1413. reset  has been done.  In AX.25 the DM message performs a similar
  1414. role.  Both are used to get rid of a lingering half-open  connec-
  1415. tion after a remote system has crashed.)
  1416.  
  1417. 3.49.  rip ...
  1418.  
  1419. These commands are used for the RIP service.
  1420.  
  1421. 3.49.1.  rip accept <gateway>
  1422.  
  1423. Remove the specified gateway from the RIP filter table,  allowing
  1424. future broadcasts from that gateway to be accepted.
  1425.  
  1426. 3.49.2.  rip add <hostid> <seconds> [<flags>]
  1427.  
  1428. Add an entry to the RIP broadcast table.  The  IP  routing  table
  1429. will be sent to hostid every interval seconds. If flags is speci-
  1430. fied as 1, then "split horizon" processing will be performed  for
  1431. this  destination. That is, any IP routing table entries pointing
  1432. to the interface that will be used to send this  update  will  be
  1433. removed  from  the  update.   If  split horizon processing is not
  1434. specified, then all routing table  entries  except  those  marked
  1435.  
  1436.  
  1437.  
  1438. updated by Bill Simpson April 15, 1991 March 3, 1991
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.                            - 26 -
  1445.  
  1446.  
  1447. "private" will be sent in each update. (Private entries are never
  1448. sent in RIP packets).
  1449.  
  1450. Triggered updates are always done. That is,  any  change  in  the
  1451. routing  table  that causes a previously reachable destination to
  1452. become unreachable will trigger an  update  that  advertises  the
  1453. destination with metric 15, defined to mean "infinity".
  1454.  
  1455. Note that for RIP packets to be  sent  properly  to  a  broadcast
  1456. address,  there  must  exist  correct  IP  routing  and ARP table
  1457. entries that will first steer the broadcast to the correct inter-
  1458. face  and  then place the correct link-level broadcast address in
  1459. the link-level destination field.  If  a  standard  IP  broadcast
  1460. address  convention  is  used  (eg. 128.96.0.0 or 128.96.255.255)
  1461. then chances are you already have the necessary IP routing  table
  1462. entry,  but  unusual  subnet  or  cluster-addressed  networks may
  1463. require special attention. However, an arp add  command  will  be
  1464. required  to translate this address to the appropriate link level
  1465. broadcast address.  For example,
  1466.  
  1467.  
  1468. arp add 128.96.0.0 ethernet ff:ff:ff:ff:ff:ff
  1469.  
  1470.  
  1471. for an Ethernet network, and
  1472.  
  1473.  
  1474. arp add 44.255.255.255 ax25 qst-0
  1475.  
  1476.  
  1477. for an AX25 packet radio channel.
  1478.  
  1479. 3.49.3.  rip drop <dest>
  1480.  
  1481. Remove an entry from the RIP broadcast table.
  1482.  
  1483. 3.49.4.  rip merge [on | off]
  1484.  
  1485. This flag controls  an  experimental  feature  for  consolidating
  1486. redundant  entries  in  the IP routing table. When rip merging is
  1487. enabled, the table is scanned after processing each  RIP  update.
  1488. An entry is considered redundant if the target(s) it covers would
  1489. be routed identically by a less "specific" entry already  in  the
  1490. table.  That is, the target address(es) specified by the entry in
  1491. question must  also  match  the  target  addresses  of  the  less
  1492. specific  entry  and the two entries must have the same interface
  1493. and gateway fields. For example, if the routing table contains
  1494.  
  1495.  
  1496. Dest            Len Interface    Gateway          Metric  P Timer  Use
  1497. 1.2.3.4         32  ethernet0    128.96.1.2       1       0 0      0
  1498. 1.2.3           24  ethernet0    128.96.1.2       1       0 0      0
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504. updated by Bill Simpson April 15, 1991 March 3, 1991
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.                            - 27 -
  1511.  
  1512.  
  1513. then the first entry would be deleted as redundant since  packets
  1514. sent  to  1.2.3.4  will  still  be routed correctly by the second
  1515. entry. Note that the relative metrics of the entries are ignored.
  1516.  
  1517. 3.49.5.  rip refuse <gateway>
  1518.  
  1519. Refuse to accept RIP updates from the specified gateway by adding
  1520. the gateway to the RIP filter table. It may be later removed with
  1521. the rip accept command.
  1522.  
  1523. 3.49.6.  rip request <gateway>
  1524.  
  1525. Send a RIP Request packet to the specified gateway, causing it to
  1526. reply with a RIP Response packet containing its routing table.
  1527.  
  1528. 3.49.7.  rip status
  1529.  
  1530. Display RIP status, including a count of the  number  of  packets
  1531. sent  and  received,  the  number  of requests and responses, the
  1532. number of unknown RIP packet types, and the number of refused RIP
  1533. updates  from  hosts in the filter table. A list of the addresses
  1534. and intervals to which periodic RIP updates  are  being  sent  is
  1535. also shown, along with the contents of the filter table.
  1536.  
  1537. 3.49.8.  rip trace [0 | 1 | 2]
  1538.  
  1539. This variable controls the tracing of incoming and  outgoing  RIP
  1540. packets.  Setting  it to 0 disables all RIP tracing. A value of 1
  1541. causes changes in the routing table to be displayed, while  pack-
  1542. ets  that  cause no changes cause no output. Setting the variable
  1543. to 2 produces maximum output, including tracing  of  RIP  packets
  1544. that cause no change in the routing table.
  1545.  
  1546. 3.50.  rmdir <dirname>
  1547.  
  1548. Remove a sub-directory from the current working directory.
  1549.  
  1550. 3.51.  route
  1551.  
  1552. With no arguments, route displays the IP routing table.
  1553.  
  1554. 3.51.1.   route  add  <desthostid>[/bits]  |   default   <iface>
  1555. [<gatewayhostid> [<metric>]]
  1556.  
  1557. This command adds an entry to the routing table. It  requires  at
  1558. least  two  more  arguments, the hostid of the target destination
  1559. and the name of the interface to  which  its  packets  should  be
  1560. sent.   If  the  destination  is  not local, the gateway's hostid
  1561. should also be specified. (If the interface is  a  point-to-point
  1562. link,  then  gatewayhostid  may be omitted even if the target is
  1563. non-local because this  field  is  only  used  to  determine  the
  1564. gateway's  link  level  address,  if  any.  If the destination is
  1565. directly reachable, gatewayhostid is also unnecessary since  the
  1566. destination  address  is  used  to  determine  the interface link
  1567.  
  1568.  
  1569.  
  1570. updated by Bill Simpson April 15, 1991 March 3, 1991
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.                            - 28 -
  1577.  
  1578.  
  1579. address).
  1580.  
  1581. The optional /bits suffix to the destination  host  id  specifies
  1582. how  many leading bits in the host id are to be considered signi-
  1583. ficant in the routing comparisons.  If  not  specified,  32  bits
  1584. (i.e., full significance) is assumed.  With this option, a single
  1585. routing table entry may refer to many hosts all sharing a  common
  1586. bit  string prefix in their IP addresses. For example, ARPA Class
  1587. A, B and C networks would use suffixes of /8, /16 and /24 respec-
  1588. tively; the command
  1589.  
  1590. route add 44/8 sl0 44.64.0.2
  1591.  
  1592.  
  1593. causes any IP addresses beginning with "44" in the first  8  bits
  1594. to  be  routed  to  44.64.0.2;  the remaining 24 bits are "don't-
  1595. cares".
  1596.  
  1597. When an IP address to be routed matches more than  one  entry  in
  1598. the  routing  table, the entry with largest bits parameter (i.e.,
  1599. the "best" match) is used. This allows individual hosts or blocks
  1600. of  hosts  to  be  exceptions to a more general rule for a larger
  1601. block of hosts.
  1602.  
  1603. The special destination default is used  to  route  datagrams  to
  1604. addresses  not matched by any other entries in the routing table;
  1605. it is equivalent to specifying a /bits suffix of /0 to any desti-
  1606. nation hostid.  Care must be taken with default entries since two
  1607. nodes with default entries pointing  at  each  other  will  route
  1608. packets to unknown addresses back and forth in a loop until their
  1609. time-to-live (TTL) fields expire.  (Routing  loops  for  specific
  1610. addresses  can  also be created, but this is less likely to occur
  1611. accidentally).
  1612.  
  1613. Here are some examples of the route command:
  1614.  
  1615. # Route datagrams to IP address 44.0.0.3 to SLIP line #0.
  1616. # No gateway is needed because SLIP is point-to point.
  1617. route add 44.0.0.3 sl0
  1618.  
  1619. # Route all default traffic to the gateway on the local Ethernet
  1620. # with IP address 44.0.0.1
  1621. route add default ec0 44.0.0.1
  1622.  
  1623. # The local Ethernet has an ARPA Class-C address assignment;
  1624. # route all IP addresses beginning with 192.4.8 to it
  1625. route add 192.4.8/24 ec0
  1626.  
  1627. # The station with IP address 44.0.0.10 is on the local AX.25 channel
  1628. route add 44.0.0.10 ax0
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636. updated by Bill Simpson April 15, 1991 March 3, 1991
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.                            - 29 -
  1643.  
  1644.  
  1645. 3.51.2.  route addprivate <dest hostid>[/bits] | default  <iface>
  1646. [<gateway hostid> [<metric>]]
  1647.  
  1648. This command is identical to route add except that it also  marks
  1649. the  new  entry as private; it will never be included in outgoing
  1650. RIP updates.
  1651.  
  1652. 3.51.3.  route drop <dest hostid>
  1653.  
  1654. route drop deletes an entry from the table. If a  packet  arrives
  1655. for the deleted address and a default route is in effect, it will
  1656. be used.
  1657.  
  1658. 3.52.  session [<session #>]
  1659.  
  1660. Without arguments, displays the list of current sessions, includ-
  1661. ing  session  number, remote TCP or AX.25 address and the address
  1662. of the TCP or AX.25 control block.  An asterisk (*) is shown next
  1663. to  the current session; entering a blank line at this point puts
  1664. you in converse mode  with  that  session.   Entering  a  session
  1665. number as an argument to the session command will put you in con-
  1666. verse mode with that session.  If the Telnet server  is  enabled,
  1667. the  user is notified of an incoming request and a session number
  1668. is automatically assigned.  The user may then select the  session
  1669. normally  to  converse with the remote user as though the session
  1670. had been locally initiated.
  1671.  
  1672. 3.53.  shell
  1673.  
  1674. Suspends net.exe and executes a  sub-shell  ("command  processor"
  1675. under  MS-DOS).  When the sub-shell exits, net.exe resumes (under
  1676. MS-DOS,  enter  the  exit  command).  Background  activity   (FTP
  1677. servers, etc) is also suspended while the subshell executes. Note
  1678. that this will fail unless there is sufficient unused memory  for
  1679. the sub-shell and whatever command the user tries to run.
  1680.  
  1681. 3.54.  smtp ...
  1682.  
  1683. These commands are used for the Simple Message Transport Protocol
  1684. service (that is, mail).
  1685.  
  1686. 3.54.1.  smtp gateway [<hostid>]
  1687.  
  1688. Displays or sets the host to be used as a "smart" mail relay. Any
  1689. mail sent to a host not in the host table will instead be sent to
  1690. the gateway for forwarding.
  1691.  
  1692. 3.54.2.  smtp kick
  1693.  
  1694. Run through the outgoing mail queue and attempt  to  deliver  any
  1695. pending  mail.  This  command  allows the user to "kick" the mail
  1696. system manually. Normally, this command is  periodically  invoked
  1697. by a timer whenever net.exe is running.
  1698.  
  1699.  
  1700.  
  1701.  
  1702. updated by Bill Simpson April 15, 1991 March 3, 1991
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.                            - 30 -
  1709.  
  1710.  
  1711. 3.54.3.  smtp maxclients [<count>]
  1712.  
  1713. Displays or sets the maximum number of simultaneous outgoing SMTP
  1714. sessions  that  will  be allowed. The default is 10; reduce it if
  1715. network congestion is a problem.
  1716.  
  1717. 3.54.4.  smtp timer [<seconds>]
  1718.  
  1719. Displays or sets the interval between scans of the outbound  mail
  1720. queue. For example, smtp timer 600 will cause the system to check
  1721. for outgoing mail every 10 minutes and attempt  to  deliver  any-
  1722. thing  it  finds, subject of course to the smtp maxclients limit.
  1723. Setting a value of zero disables queue scanning altogether,  note
  1724. that  this  is  the default!  This value is recommended for stand
  1725. alone IP gateways that never handle mail, since it saves wear and
  1726. tear on the floppy disk drive.
  1727.  
  1728. 3.54.5.  smtp trace [<value>]
  1729.  
  1730. Displays or sets the trace flag in the SMTP client, allowing  you
  1731. to  watch  SMTP's  conversations  as it delivers mail.  Zero (the
  1732. default) disables tracing.
  1733.  
  1734. 3.55.  socket [<socket #>]
  1735.  
  1736. Without an argument, displays all active  sockets,  giving  their
  1737. index  and  type,  the address of the associated protocol control
  1738. block and the and owner process ID and name. If the index  to  an
  1739. active socket is supplied, the status display for the appropriate
  1740. protocol is called. For example, if the socket refers  to  a  TCP
  1741. connection, the display will be that given by the tcp status com-
  1742. mand with the protocol control block address.
  1743.  
  1744. 3.56.  start ax25 | discard | echo | ftp | netrom | remote | smtp
  1745. | telnet | ttylink
  1746.  
  1747. Start the specified Internet server, allowing  remote  connection
  1748. requests.
  1749.  
  1750. 3.57.  stop ax25 | discard | echo | ftp | netrom | remote |  smtp
  1751. | telnet | ttylink
  1752.  
  1753. Stop the specified Internet server, rejecting any further  remote
  1754. connect  requests.  Existing  connections are allowed to complete
  1755. normally.
  1756.  
  1757. 3.58.  tcp ...
  1758.  
  1759. These commands are used for  the  Transmission  Control  Protocol
  1760. service.
  1761.  
  1762. 3.58.1.  tcp irtt [<milliseconds>]
  1763.  
  1764. Display  or  set  the  initial  round  trip  time  estimate,   in
  1765.  
  1766.  
  1767.  
  1768. updated by Bill Simpson April 15, 1991 March 3, 1991
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.                            - 31 -
  1775.  
  1776.  
  1777. milliseconds,  to  be used for new TCP connections until they can
  1778. measure and adapt to the actual value.  The default is 5000  mil-
  1779. liseconds  (5  seconds). Increasing this when operating over slow
  1780. channels will avoid the flurry of retransmissions that would oth-
  1781. erwise occur as the smoothed estimate settles down at the correct
  1782. value. Note that this command should be given before servers  are
  1783. started in order for it to have effect on incoming connections.
  1784.  
  1785. TCP also keeps a cache of measured  round  trip  times  and  mean
  1786. deviations (MDEV) for current and recent destinations. Whenever a
  1787. new TCP connection is opened, the  system  first  looks  in  this
  1788. cache.  If  the  destination  is  found, the cached IRTT and MDEV
  1789. values are used. If not, the default IRTT value  mentioned  above
  1790. is used, along with a MDEV of 0. This feature is fully automatic,
  1791. and it can improve performance greatly when a series  of  connec-
  1792. tions  are opened and closed to a given destination (eg. a series
  1793. of FTP file transfers or directory listings).
  1794.  
  1795. 3.58.2.  tcp kick <tcbaddr>
  1796.  
  1797. If there is unacknowledged data on the send queue of  the  speci-
  1798. fied TCB, this command forces an immediate retransmission.
  1799.  
  1800. 3.58.3.  tcp mss [<size>]
  1801.  
  1802. Display or set the TCP Maximum Segment Size in bytes that will be
  1803. sent  on  all  outgoing TCP connect request (SYN segments).  This
  1804. tells the remote end the size of the largest segment (packet)  it
  1805. may  send. Changing MSS affects only future connections; existing
  1806. connections are unaffected.
  1807.  
  1808. 3.58.4.  tcp reset <tcbaddr>
  1809.  
  1810. Deletes the TCP control block at the specified address.
  1811.  
  1812. 3.58.5.  tcp rtt <tcbaddr> <milliseconds>
  1813.  
  1814. Replaces the automatically computed round trip time in the speci-
  1815. fied TCB with the rtt in milliseconds.  This command is useful to
  1816. speed up recovery from a series of lost packets since it provides
  1817. a  manual  bypass around the normal backoff retransmission timing
  1818. mechanisms.
  1819.  
  1820. 3.58.6.  tcp status [<tcbaddr>]
  1821.  
  1822. Without arguments, displays several TCP-level statistics, plus  a
  1823. summary  of  all existing TCP connections, including TCB address,
  1824. send and receive queue sizes, local and remote sockets, and  con-
  1825. nection  state. If tcbaddr is specified, a more detailed dump of
  1826. the specified  TCB  is  generated,  including  send  and  receive
  1827. sequence numbers and timer information.
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834. updated by Bill Simpson April 15, 1991 March 3, 1991
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.                            - 32 -
  1841.  
  1842.  
  1843. 3.58.7.  tcp window [<size>]
  1844.  
  1845. Displays or sets the default receive window size in bytes  to  be
  1846. used  by  TCP when creating new connections. Existing connections
  1847. are unaffected.
  1848.  
  1849. 3.59.  telnet <hostid>
  1850.  
  1851. Creates a Telnet session to the specified host  and  enters  con-
  1852. verse mode.
  1853.  
  1854. 3.60.  tip <iface>
  1855.  
  1856. Creates a tip session that connects to the specified interface in
  1857. "dumb  terminal"  mode.  The  interface  must  have  already been
  1858. attached  with  the  attach  command.  Any  packet  traffic   (IP
  1859. datagrams, etc) routed to the interface while this session exists
  1860. will be discarded. To close a tip session, use the reset command.
  1861. It will then revert to normal slip, nrs or kiss mode operation.
  1862.  
  1863. This feature is primarily useful for manually  establishing  SLIP
  1864. connections.  At  present,  only  the built-in "com" ports can be
  1865. used with this command.
  1866.  
  1867. 3.61.  trace [<iface> [off | <btio> [<tracefile>]]]
  1868.  
  1869. Controls packet tracing by the interface drivers.  Specific  bits
  1870. enable tracing of the various interfaces and the amount of infor-
  1871. mation produced. Tracing is controlled on a per-interface  basis;
  1872. without  arguments,  trace gives a list of all defined interfaces
  1873. and their tracing status. Output  can  be  limited  to  a  single
  1874. interface  by  specifying it, and the control flags can be change
  1875. by specifying them as well. The flags are given as a  hexadecimal
  1876. number which is interpreted as follows:
  1877.  
  1878.     O - Enable tracing of output packets if 1, disable if 0
  1879.     I - Enable tracing of input packets if 1, disable if 0
  1880.     T - Controls type of tracing:
  1881.         0 - Protocol headers are decoded, but data is not displayed
  1882.         1 - Protocol headers are decoded, and data (but not the
  1883.             headers themselves) are displayed as ASCII characters,
  1884.             64 characters/line. Unprintable characters are displayed
  1885.             as periods.
  1886.         2 - Protocol headers are decoded, and the entire packet
  1887.             (headers AND data) is also displayed in hexadecimal
  1888.             and ASCII, 16 characters per line.
  1889.     B - Broadcast filter flag. If set, only packets specifically addressed
  1890.         to this node will be traced; broadcast packets will not be displayed.
  1891.  
  1892. If tracefile is not specified, tracing will be to the console.
  1893.  
  1894. 3.62.  udp status
  1895.  
  1896. Displays the status of all UDP receive queues.
  1897.  
  1898.  
  1899.  
  1900. updated by Bill Simpson April 15, 1991 March 3, 1991
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.                            - 33 -
  1907.  
  1908.  
  1909. 3.63.  upload [<filename>]
  1910.  
  1911. Opens filename and sends it on the current session as  though  it
  1912. were typed on the terminal.
  1913.  
  1914. 3.64.  watch
  1915.  
  1916. Displays the current software stopwatch values, with min and  max
  1917. readings  for  each. This facility allows a programmer to measure
  1918. the execution time of critical sections of code with  microsecond
  1919. resolution. This command is supported only on the IBM PC, and the
  1920. meaning of each stopwatch value depends on where the  calls  have
  1921. been inserted for test purposes; the distribution copy of net.exe
  1922. usually has no stopwatch calls.
  1923.  
  1924. 3.65.  ?
  1925.  
  1926. Same as the help command.
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966. updated by Bill Simpson April 15, 1991 March 3, 1991
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.                            - 34 -
  1973.  
  1974.  
  1975. 4.  Attach Commands
  1976.  
  1977. This chapter details the attach commands for the various hardware
  1978. interface  drivers.  Not  all  of these drivers may be configured
  1979. into every net.exe binary; a list of the available types  may  be
  1980. obtained by entering the command attach ?.
  1981.  
  1982. Some parameters are accepted by several drivers. They are:
  1983.  
  1984. 4.0.1.  <bufsize>
  1985.  
  1986. For asynchronous devices (eg. COM ports operating in SLIP or  NRS
  1987. mode)  this  parameter  specifies the size of the receiver's ring
  1988. buffer. It should be large enough to hold incoming data  at  full
  1989. line  speed  for  the longest time that the system may be busy in
  1990. MS-DOS or the BIOS doing a slow I/O operation (eg.  to  a  floppy
  1991. disk). A kilobyte is usually more than sufficient.
  1992.  
  1993. For synchronous devices (eg. the scc, hs, pc100,  hapn  and  drsi
  1994. interfaces  operating in HDLC mode), the bufsize parameter speci-
  1995. fies the largest packet that may be received  on  the  interface.
  1996. This should be set by mutual agreement among stations sharing the
  1997. channel. For standard AX.25 with a maximum I-frame data  size  of
  1998. 256  bytes, a value of 325 should provide an adequate safety mar-
  1999. gin. On higher speed channels (eg. 56kb/s) larger values (eg.  2K
  2000. bytes)  will provide much better performance and allow full-sized
  2001. Ethernet packets to be carried without fragmentation.
  2002.  
  2003. 4.0.2.  <ioaddr>
  2004.  
  2005. The base address of the interface's control registers, in hex.
  2006.  
  2007. 4.0.3.  <vector>
  2008.  
  2009. The interface's hardware interrupt (IRQ) vector, in hex.
  2010.  
  2011. 4.0.4.  <iface>
  2012.  
  2013. The name (an arbitrary character string) to be assigned  to  this
  2014. interface.  It  is used to refer to the interface in ifconfig and
  2015. route commands and in trace output.
  2016.  
  2017. 4.0.5.  <mtu>
  2018.  
  2019. The Maximum Transmission Unit size, in bytes.   Datagrams  larger
  2020. than  this  limit will be fragmented at the IP layer into smaller
  2021. pieces. For AX.25 UI frames, this limits the size of the informa-
  2022. tion  field. For AX.25 I frames, however, the ax25 paclen parame-
  2023. ter is also relevant.  If  the  datagram  or  fragment  is  still
  2024. larger  than paclen, it is also fragmented at the AX.25 level (as
  2025. opposed to the IP level)  before  transmission.   (See  the  ax25
  2026. paclen command for further information).
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032. updated by Bill Simpson April 15, 1991 March 3, 1991
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.                            - 35 -
  2039.  
  2040.  
  2041. 4.0.6.  <speed>
  2042.  
  2043. The speed in bits per second (eg. 2400).
  2044.  
  2045. 4.1.  attach 3c500 <ioaddr> <vector> arpa  <iface>  <qlen>  <mtu>
  2046. [<ipaddr>]
  2047.  
  2048. Attach a 3Com 3C501 Ethernet  interface.   qlen  is  the  maximum
  2049. allowable transmit queue length.  If the ipaddr parameter is not
  2050. given, the value associated with a prior ip address command  will
  2051. be used.
  2052.  
  2053. The use of this driver is not recommended; use the packet  driver
  2054. interface with the loadable 3C501 packet driver instead.
  2055.  
  2056. 4.2.  attach asy <ioaddr> <vector>  ax25  |  nrs  |  ppp  |  slip
  2057. <iface> <bufsize> <mtu> <speed> [<crv>]
  2058.  
  2059. Attach a standard PC "com port" (asynchronous serial port), using
  2060. the  National  8250 or 16550A chip. Standard values on the IBM PC
  2061. and clones for ioaddr and vector are 0x3f8 and 4  for  COM1,  and
  2062. 0x2f8  and 3 for COM2. If the port uses a 16550A chip, it will be
  2063. detected automatically and the FIFOs enabled.
  2064.  
  2065. 4.2.1.  ax25
  2066.  
  2067. Similar to slip, except that an AX.25 header and a KISS TNC  con-
  2068. trol  header  are  added to the front of the datagram before SLIP
  2069. encoding.  Either UI (connectionless) or I  (connection-oriented)
  2070. AX.25 frames can be used; see the mode command for details.
  2071.  
  2072. 4.2.2.  nrs
  2073.  
  2074. Use the NET/ROM asynchronous framing technique for  communication
  2075. with a local NET/ROM TNC.
  2076.  
  2077. 4.2.3.  ppp
  2078.  
  2079. Point-to-Point-Protocol. Encapsulates datagrams in  an  HDLC-like
  2080. frame. This is a new Internet standard for point-to-point commun-
  2081. ication, compatible with CCITT standards.
  2082.  
  2083. 4.2.4.  slip
  2084.  
  2085. Serial Line Internet Protocol. Encapsulates IP datagrams directly
  2086. in  SLIP  frames  without a link header. This is for operation on
  2087. point-to-point lines and is compatible with 4.2BSD UNIX SLIP.
  2088.  
  2089. 4.2.5.  <crv>
  2090.  
  2091. The optional flags are a string of characters  "crv":  c  enables
  2092. RTS/CTS  detection, r enables RLSD (Carrier Detect) physical line
  2093. sensing, v enables Van Jacobson TCP/IP Header Compression, and is
  2094. valid only for SLIP.
  2095.  
  2096.  
  2097.  
  2098. updated by Bill Simpson April 15, 1991 March 3, 1991
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.                            - 36 -
  2105.  
  2106.  
  2107. 4.3.  attach drsi <ioaddr> <vector> ax25 <iface> <bufsize>  <mtu>
  2108. <chaspeed> <chbspeed>
  2109.  
  2110. N6TTO driver for the Digital Radio Systems PCPA 8530 card.  Since
  2111. there are two channels on the board, two interfaces are attached.
  2112. They will be named iface with 'a' and 'b'  appended.  bufsize  is
  2113. the  receiver  buffer  size  in bytes; it must be larger than the
  2114. largest frame to be received. chaspeed and chbspeed  are  the
  2115. speeds, in bits/sec, for the A and B channels, respectively.
  2116.  
  2117. 4.4.  attach eagle <ioaddr> <vector> ax25 <iface> <bufsize> <mtu>
  2118. <speed>
  2119.  
  2120. WA3CVG/NG6Q driver for the Eagle Computer card (Zilog 8530).
  2121.  
  2122. 4.5.  attach hapn <ioaddr> <vector> ax25 <iface> <bufsize>  <mtu>
  2123. csma | full
  2124.  
  2125. KE3Z driver for  the  Hamilton  Amateur  Packet  Network  adapter
  2126. (Intel  8273).  The  csma  | full parameter specifies whether the
  2127. port should operate in carrier sense multiple access (CSMA)  mode
  2128. or in full duplex.
  2129.  
  2130. 4.6.  attach hs <ioaddr> <vector> ax25  <iface>  <bufsize>  <mtu>
  2131. <keyupdelay> <p>
  2132.  
  2133. Attach a DRSI PCPA or Eagle Computer interface card using a  spe-
  2134. cial  "high  speed" 8530 driver. This driver uses busy-wait loops
  2135. to send and receive each byte instead of  interrupts,  making  it
  2136. usable  with  high speed modems (such as the WA4DSY 56kb/s modem)
  2137. on slow systems. This does have the side effect of "freezing" the
  2138. system whenever the modem transmitter or receiver is active. This
  2139. driver can operate only in CSMA mode, and it is recommended  that
  2140. no  other  interfaces  requiring  small  interrupt  latencies  be
  2141. attached to the same machine.
  2142.  
  2143. The keyupdelay parameter specifies the transmitter  keyup  delay
  2144. in  byte  time  intervals.  The p value specifies the transmitter
  2145. persistence value in the range 1-255; the corresponding slot time
  2146. is fixed at one hardware clock tick, about 55 ms on the PC.
  2147.  
  2148. As with the other 8530 drivers, this driver actually attaches two
  2149. interfaces, one for each 8530 channel.
  2150.  
  2151. 4.7.  attach packet <intvec> <iface> <txqlen> <mtu>
  2152.  
  2153. Driver for use with separate software  "packet  drivers"  meeting
  2154. the  FTP Software, Inc, Software Packet Driver specification. The
  2155. driver must have already been installed before the attach command
  2156. is given. Packet drivers in the Ethernet, ARCNET, SLIP, SLFP, and
  2157. KISS/AX25 classes are supported.
  2158.  
  2159. intvec is the software interrupt vector used for communication to
  2160. the  packet  driver,  and txqlen is the maximum number of packets
  2161.  
  2162.  
  2163.  
  2164. updated by Bill Simpson April 15, 1991 March 3, 1991
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.                            - 37 -
  2171.  
  2172.  
  2173. that will be allowed on the transmit queue.
  2174.  
  2175. 4.8.  attach  pc100  <ioaddr>  <vector>  ax25  <iface>  <bufsize>
  2176. <speed>
  2177.  
  2178. Driver for the PACCOMM  PC-100  (Zilog  8530)  card.  Only  AX.25
  2179. operation is supported.
  2180.  
  2181. 4.9.  attach scc <devices> init <addr>  <spacing>  <Aoff>  <Boff>
  2182. <Dataoff> <intack> <vec> [p|r]<clock> [<hdwe>] [<param>]
  2183.  
  2184. PE1CHL driver to initialize a generic SCC (8530) interface  board
  2185. prior to actually attaching it. The parameters are as follows:
  2186.  
  2187. 4.9.1.  <devices>
  2188.  
  2189. The number of SCC chips to support.
  2190.  
  2191. 4.9.2.  <addr>
  2192.  
  2193. The base address of the first SCC chip (hex).
  2194.  
  2195. 4.9.3.  <spacing>
  2196.  
  2197. The spacing between the SCC chip base addresses.
  2198.  
  2199. 4.9.4.  <Aoff>
  2200.  
  2201. The offset from a chip's base address to its  channel  A  control
  2202. register.
  2203.  
  2204. 4.9.5.  <Boff>
  2205.  
  2206. The offset from a chip's base address to its  channel  B  control
  2207. register.
  2208.  
  2209. 4.9.6.  <Dataoff>
  2210.  
  2211. The offset from each  channel's  control  register  to  its  data
  2212. register.
  2213.  
  2214. 4.9.7.  <intack>
  2215.  
  2216. The address of the INTACK/Read Vector port. If none, specify 0 to
  2217. read from RR3A/RR2B.
  2218.  
  2219. 4.9.8.  <vec>
  2220.  
  2221. The CPU interrupt vector for all connected SCCs.
  2222.  
  2223. 4.9.9.  <clock>
  2224.  
  2225. The clock frequency (PCLK/RTxC) of all SCCs in hertz. Prefix with
  2226. 'p' for PCLK, 'r' for RTxC clock (for baudrate gen).
  2227.  
  2228.  
  2229.  
  2230. updated by Bill Simpson April 15, 1991 March 3, 1991
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.                            - 38 -
  2237.  
  2238.  
  2239. 4.9.10.  <hdwe>
  2240.  
  2241. Optional hardware type. The following values are  currently  sup-
  2242. ported:  1  -  Eagle card, 2 - PACCOMM PC-100, 4 - PRIMUS-PC card
  2243. (DG9BL), 8 - DRSI PCPA card.
  2244.  
  2245. 4.9.11.  <param>
  2246.  
  2247. Optional extra parameter. At present, this is used only with  the
  2248. PC-100  and PRIMUS-PC cards to set the modem mode. The value 0x22
  2249. is used with the PC-100 and 0x2 is used with the PRIMUS-PC card.
  2250.  
  2251. The attach scc ... init command must be given before  the  inter-
  2252. faces are actually attached with the following command.
  2253.  
  2254. 4.10.  attach scc <chan> slip | kiss | nrs | ax25  <iface>  <mtu>
  2255. <speed> <bufsize> [<call>]
  2256.  
  2257. Attach an initialized SCC port to the system. The parameters  are
  2258. as follows:
  2259.  
  2260. 4.10.1.  <chan>
  2261.  
  2262. The SCC channel number to attach, 0 or 1 for the first  chip's  A
  2263. or B port, 2 or 3 for the second chip's A or B port, etc.
  2264.  
  2265. 4.10.2.  slip | kiss | nrs | ax25
  2266.  
  2267. The operating mode of the  interface.  slip,  kiss  and  nrs  all
  2268. operate   the   port  hardware  in  asynchronous  mode;  slip  is
  2269. Internet-standard serial line IP mode, kiss generates SLIP frames
  2270. containing  KISS  TNC  commands  and  AX.25  packets and nrs uses
  2271. NET/ROM local serial link framing conventions  to  carry  NET/ROM
  2272. packets.  Selecting ax25 mode puts the interface into synchronous
  2273. HDLC mode that is suitable for direct connection to a half duplex
  2274. radio modem.
  2275.  
  2276. 4.10.3.  <speed>
  2277.  
  2278. The interface speed in bits per second (eg.  1200).  Prefix  with
  2279. 'd'  when  an  external  divider  is available to generate the TX
  2280. clock. When the clock source is PCLK, this can be a  /32  divider
  2281. between  TRxC  and  RTxC.  When the clock is at RTxC, the TX rate
  2282. must be supplied at TRxC. This is needed  only  for  full  duplex
  2283. synchronous  operation.  When  this  arg  is  given as 'ext', the
  2284. transmit and receive clocks are external, and the  internal  baud
  2285. rate generator (BRG) and digital phase locked loop (DPLL) are not
  2286. used.
  2287.  
  2288. 4.11.  Attach Examples
  2289.  
  2290. Here are some examples of the attach command:
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296. updated by Bill Simpson April 15, 1991 March 3, 1991
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.                            - 39 -
  2303.  
  2304.  
  2305.  
  2306. # Attach a 3Com Ethernet controller using the standard 3Com address and
  2307. # vector (i.e., as it comes out of the box) to use ARPA-standard encapsulation.
  2308. # The receive queue is limited to 5 packets, and outgoing packets larger
  2309. # than 1500 bytes will be fragmented
  2310. attach 3c500 0x300 3 arpa ec0 5 1500
  2311.  
  2312. # Attach the PC asynch card normally known as "com1" (the first controller)
  2313. # to operate in point-to-point slip mode at 9600 baud, calling it "sl0".
  2314. # A 1024 byte receiver ring buffer is allocated. Outgoing packets larger
  2315. # than 256 bytes are fragmented.
  2316. attach asy 0x3f8 4 slip sl0 1024 256 9600
  2317.  
  2318. # Attach the secondary PC asynch card ("com2") to operate in AX.25 mode
  2319. # with an MTU of 576 bytes at 9600 baud with a KISS TNC, calling it "ax0".
  2320. # By default, IP datagrams are sent in UI frames
  2321. attach asy 0x2f8 3 ax25 ax0 1024 576 9600
  2322.  
  2323. # Attach the packet driver loaded at interrupt 0x7e
  2324. # The packet driver is for an Ethernet interface
  2325. attach packet 0x7e ethernet 8 1500
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362. updated by Bill Simpson April 15, 1991 March 3, 1991
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.                            - 40 -
  2369.  
  2370.  
  2371. 5.  FTP Subcommands
  2372.  
  2373. During converse mode with an FTP server, everything typed on  the
  2374. console  is  first  examined to see if it is a locally-known com-
  2375. mand. If not, the line is passed intact to the remote  server  on
  2376. the control channel. If it is one of the following commands, how-
  2377. ever, it is executed locally. (Note that this generally  involves
  2378. other  commands  being  sent  to the remote server on the control
  2379. channel.)
  2380.  
  2381. 5.1.  dir [<file> | <directory> [<local file>]]
  2382.  
  2383. Without arguments, dir requests that a full directory listing  of
  2384. the  remote  server's  current directory be sent to the terminal.
  2385. If one argument is given, this is passed along in the  LIST  com-
  2386. mand;  this  can be a specific file or subdirectory that is mean-
  2387. ingful to the remote file system. If two arguments are given, the
  2388. second  is taken as the local file into which the directory list-
  2389. ing should be put (instead of being sent  to  the  console).  The
  2390. PORT command is used before the LIST command is sent.
  2391.  
  2392. 5.2.  get <remote file> [<local file>]
  2393.  
  2394. Asks the remote server to send the file specified  in  the  first
  2395. argument.  The second argument, if given, will be the name of the
  2396. file on the local machine; otherwise it will have the  same  name
  2397. as  on the remote machine. The PORT and RETR commands are sent on
  2398. the control channel.
  2399.  
  2400. 5.3.  hash
  2401.  
  2402. A synonym for the verbose 3 command.
  2403.  
  2404. 5.4.  ls [<file> | <directory> [<local file>]]
  2405.  
  2406. ls is identical to the dir command except that the "NLST" command
  2407. is sent to the server instead of the "LIST" command. This results
  2408. in an abbreviated directory listing, i.e., one showing  only  the
  2409. file names themselves without any other information.
  2410.  
  2411. 5.5.  mget <file> [<file> ...]
  2412.  
  2413. Fetch a collection of files  from  the  server.  File  names  may
  2414. include  wild  card  characters;  they  will  be  interpreted and
  2415. expanded into a list of files by the remote system using the NLST
  2416. command.  The  files  will have the same name on the local system
  2417. that they had on the server.
  2418.  
  2419. 5.6.  mkdir <remote directory>
  2420.  
  2421. Creates a directory on the remote machine.
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428. updated by Bill Simpson April 15, 1991 March 3, 1991
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.                            - 41 -
  2435.  
  2436.  
  2437. 5.7.  mput <file> [<file> ...]
  2438.  
  2439. Send a collection of files to the server. File names may  include
  2440. wild  card  characters; they will be expanded locally into a list
  2441. of files to be sent. The files will have the  same  name  on  the
  2442. server as on the local system.
  2443.  
  2444. 5.8.  put <local file> [<remote file>]
  2445.  
  2446. Asks the remote server to accept data, creating the file named in
  2447. the  first  argument.  The second argument, if given, will be the
  2448. name of the file on the remote machine; otherwise  it  will  have
  2449. the  same  name  as on the local machine.  The PORT and STOR com-
  2450. mands are sent on the control channel.
  2451.  
  2452. 5.9.  rmdir <remote directory>
  2453.  
  2454. Deletes a directory on the remote machine.
  2455.  
  2456. 5.10.  type [a | i | l <bytesize>]
  2457.  
  2458. Tells both the local client and remote server the  type  of  file
  2459. that is to be transferred.  The default is 'a', which means ASCII
  2460. (i.e., a text file).  Type 'i' means  image,  i.e.,  binary.   In
  2461. ASCII  mode,  files  are  sent as varying length lines of text in
  2462. ASCII separated by cr/lf sequences; in IMAGE mode, files are sent
  2463. exactly  as they appear in the file system.  ASCII mode should be
  2464. used whenever transferring text between dissimilar  systems  (eg.
  2465. UNIX  and  MS-DOS)  because of their different end-of-line and/or
  2466. end-of-file conventions.   When  exchanging  text  files  between
  2467. machines  of  the same type, either mode will work but IMAGE mode
  2468. is usually faster.  Naturally, when exchanging raw  binary  files
  2469. (executables,  compressed archives, etc) IMAGE mode must be used.
  2470. Type 'l' (logical byte size) is used when exchanging binary files
  2471. with  remote servers having oddball word sizes (eg. DECSYSTEM-10s
  2472. and 20s). Locally it works exactly like  IMAGE,  except  that  it
  2473. notifies  the  remote system how large the byte size is. bytesize
  2474. is typically 8. The type command sets the local transfer mode and
  2475. generates the TYPE command on the control channel.
  2476.  
  2477. 5.11.  verbose [0 | 1 | 2 | 3]
  2478.  
  2479. Set or display the level of message  output  in  file  transfers.
  2480. Verbose 0 gives the least output, and verbose 3 the most, as fol-
  2481. lows:
  2482.  
  2483. 0 - Display error messages only.
  2484. 1 - Display error messages plus a one-line summary after each transfer
  2485.     giving the name of the file, its size, and the transfer time and rate.
  2486. 2 - Display error and summary messages plus the progress messages generated
  2487.     by the remote FTP server. (This setting is the default.)
  2488. 3 - Display all messages. In addition, a "hash mark" (#) is displayed for
  2489.     every 1,000 bytes sent or received.
  2490.  
  2491.  
  2492.  
  2493.  
  2494. updated by Bill Simpson April 15, 1991 March 3, 1991
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.                            - 42 -
  2501.  
  2502.  
  2503. If a command is sent to the  remote  server  because  it  is  not
  2504. recognized  locally, the response is always displayed, regardless
  2505. of the setting of verbose. This is necessary  for  commands  like
  2506. pwd (display working directory), which would otherwise produce no
  2507. message at all if verbose were set to 0 or 1.
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560. updated by Bill Simpson April 15, 1991 March 3, 1991
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.                            - 43 -
  2567.  
  2568.  
  2569. 6.  Dialer Subcommands
  2570.  
  2571. Each dialer command may (should) have a  different  dialer  file.
  2572. The  file resides in the configuration directory, as specified in
  2573. the Installation section (see chapter 1). A typical  dialer  file
  2574. might be:
  2575.  
  2576.         # Set the speed, and toggle DTR to ensure modem is in command mode.
  2577.         control down
  2578.         wait 3000
  2579.         speed 2400
  2580.         control up
  2581.         wait 3000
  2582.         # Dial, and wait for connection
  2583.         send "atdt555-1212"
  2584.         wait 45000 "CONNECT " speed
  2585.         wait 2000
  2586.         # PAD specific initialization
  2587.         send ""
  2588.         wait 15000 "Terminal ="
  2589.         send "ppp"
  2590.         wait 10000 "
  2591.  
  2592.  
  2593. 6.0.1.  control down | up
  2594.  
  2595. Control asy interface. The down option drops DTR and RTS. The  up
  2596. option asserts DTR and RTS.
  2597.  
  2598. 6.0.2.  send "string"
  2599.  
  2600. This dialer command will write the specified string to the inter-
  2601. face. The string quote marks are required, and the string may not
  2602. contain embedded control  characters.  However,  the  standard  C
  2603. string escape sequences are recognized (\0 should not be used).
  2604.  
  2605. 6.0.3.  speed [ 9600 | 4800 | 2400 | 1200 | 300 ]
  2606.  
  2607. This dialer command will set the speed of the interface to one of
  2608. the  available speeds. If the speed is missing, the speed will be
  2609. displayed in the dialer session window.
  2610.  
  2611. 6.0.4.  wait <milliseconds> [ "test string" ] [ speed ]
  2612.  
  2613. If only the time is specified, the dialer pauses for the  desired
  2614. number of milliseconds.
  2615.  
  2616. Otherwise, the dialer reads until the test string is detected  on
  2617. the  interface.  If the string is not detected within the desired
  2618. time, the autodialer will  reset.  The  string  quote  marks  are
  2619. required, and the string may not contain embedded control charac-
  2620. ters. However, the standard C string escape sequences are  recog-
  2621. nized (\0 should not be used).
  2622.  
  2623.  
  2624.  
  2625.  
  2626. updated by Bill Simpson April 15, 1991 March 3, 1991
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.                            - 44 -
  2633.  
  2634.  
  2635. Finally, if the speed parameter is  specified,  the  dialer  will
  2636. continue  to  read  characters until a non-digit is detected. The
  2637. string read is converted to an  integer,  and  used  to  set  the
  2638. interface speed. If the trailing non-digit is not detected within
  2639. the desired time, or the integer value is not a valid speed,  the
  2640. autodialer will reset.
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691.  
  2692. updated by Bill Simpson April 15, 1991 March 3, 1991
  2693.  
  2694.  
  2695.  
  2696.  
  2697.  
  2698.                            - 45 -
  2699.  
  2700.  
  2701. 7.  The /ftpusers File
  2702.  
  2703. Since MS-DOS is a single-user operating system (some might say it
  2704. is  a glorified bootstrap loader), it provides no access control;
  2705. all files can be read, written or deleted by the local user.   It
  2706. is  usually  undesirable  to give such open access to a system to
  2707. remote network users.  Net.exe therefore provides its own  access
  2708. control mechanisms.
  2709.  
  2710. The file /ftpusers controls remote FTP and  mailbox  access.  The
  2711. FTP  default  is  no access; if this file does not exist, the FTP
  2712. server will be unusable.  A remote user must first  "log  in"  to
  2713. the  system  with the USER and PASS commands, giving a valid name
  2714. and password listed in /ftpusers, before he or she  can  transfer
  2715. files.
  2716.  
  2717. Each entry in /ftpusers consists of a single line of the form
  2718.  
  2719. username password /path permissions
  2720.  
  2721.  
  2722. There must be exactly four fields, and there must be exactly  one
  2723. space  between  each field.  Comments may be added after the last
  2724. field. Comment lines begin with '#' in column one.
  2725.  
  2726. username is the user's login name.
  2727.  
  2728. password is the required password.  Note that this  is  in  plain
  2729. text;  therefore  it is not a good idea to give general read per-
  2730. mission to the root directory.   A  password  of  '*'  (a  single
  2731. asterisk) means that any password is acceptable.
  2732.  
  2733. /path is the allowable prefix on accessible  files.   Before  any
  2734. file  or directory operation, the current directory and the user-
  2735. specified file name are joined to form an absolute path  name  in
  2736. "canonical"  form  (i.e.,  a full path name starting at the root,
  2737. with "./" and "../" references, as well as redundant /'s,  recog-
  2738. nized and removed). The result MUST begin with the allowable path
  2739. prefix; if not, the operation is denied.  This field must  always
  2740. begin with a "/", i.e., at the root directory.
  2741.  
  2742. permissions is a decimal number  granting  permission  for  read,
  2743. create  and write operations.  If the low order bit (0x1) is set,
  2744. the user is allowed to read a file subject to the path name  pre-
  2745. fix  restriction.   If  the  next  bit  (0x2) is set, the user is
  2746. allowed to create a new file if it does not overwrite an existing
  2747. file.   If  the  third  bit  (0x4) is set, the user is allowed to
  2748. write a file even if it overwrites an existing file, and in addi-
  2749. tion he may delete files.  Again, all operations are allowed sub-
  2750. ject to the path name prefix  restrictions.  Permissions  may  be
  2751. combined  by  adding  bits,  for example, 0x3 (= 0x2 + 0x1) means
  2752. that the user is  given  read  and  create  permission,  but  not
  2753. overwrite/delete permission.
  2754.  
  2755.  
  2756.  
  2757.  
  2758. updated by Bill Simpson April 15, 1991 March 3, 1991
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.                            - 46 -
  2765.  
  2766.  
  2767. For example, suppose /ftpusers on machine  pc.ka9q.ampr.org  con-
  2768. tains the line
  2769.  
  2770. friendly test /testdir 7
  2771.  
  2772.  
  2773. A session using this account would look like this:
  2774.  
  2775. net> ftp pc.ka9q.ampr.org
  2776. Resolving pc.ka9q.ampr.org... Trying 128.96.160.1...
  2777. FTP session 1 connected to pc.ka9q.ampr.org
  2778. 220 pc.ka9q.ampr.org FTP version 900418 ready at Mon May 7 16:27:18 1990
  2779. Enter user name: friendly
  2780. 331 Enter PASS command
  2781. Password: test [not echoed]
  2782. 230 Logged in
  2783. ftp>
  2784.  
  2785.  
  2786. The user now has read, write, overwrite and delete privileges for
  2787. any file under /testdir; he may not access any other files.
  2788.  
  2789. Here are some more sample entries in /ftpusers:
  2790.  
  2791. karn foobar / 7         # User "karn" with password "foobar" may read,
  2792.                         # write, overwrite and delete any file on the
  2793.                         # system.
  2794.  
  2795. guest bletch /g/bogus 3 # User "guest" with password "bletch" may read
  2796.                         # any file under /g/bogus and its subdirectories,
  2797.                         # and may create a new file as long as it does
  2798.                         # not overwrite an existing file. He may NOT
  2799.                         # delete any files.
  2800.  
  2801. anonymous * /public 1   # User "anonymous" (any password) may read files
  2802.                         # under /public and its subdirectories; he may
  2803.                         # not create, overwrite or delete any files.
  2804.  
  2805.  
  2806. This last entry is the standard convention for keeping a  reposi-
  2807. tory  of public files; in particular, the username "anonymous" is
  2808. an established ARPA convention.
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824. updated by Bill Simpson April 15, 1991 March 3, 1991
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.                            - 47 -
  2831.  
  2832.  
  2833. 8.  The domain.txt File
  2834.  
  2835. Net.exe translates domain names (eg.  "pc.ka9q.ampr.org")  to  IP
  2836. addresses  (eg.  128.96.160.3)  through  the  use  of an Internet
  2837. Domain Name resolver and a local "cache" file, domain.txt.  When-
  2838. ever  the  user  specifies  a  domain  name,  the  local cache is
  2839. searched for the desired entry. If it is present, it is used;  if
  2840. not,  and  if domain name server(s) have been configured, a query
  2841. is sent over the network to the current  server.  If  the  server
  2842. responds,  the  answer is added to the domain.txt file for future
  2843. use. If the server does not respond, any  additional  servers  on
  2844. the  list  are tried in a round-robin fashion until one responds,
  2845. or the retry limit is reached (see the domain retry command).  If
  2846. domain.txt  does  not  contain the desired entry and there are no
  2847. configured domain name  servers,  then  the  request  immediately
  2848. fails.
  2849.  
  2850. If a domain name server is available, and if  all  references  to
  2851. host-ids  in  your  /autoexec.net  file are in IP address format,
  2852. then it is possible to start with a completely  empty  domain.txt
  2853. file  and have net.exe build it for you. However, you may wish to
  2854. add your own entries to domain.txt, either because you prefer  to
  2855. use symbolic domain names in your /autoexec.net file or you don't
  2856. have access to a domain server and you need to create entries for
  2857. all of the hosts you may wish to access.
  2858.  
  2859. Each entry takes one line, and the fields are  separated  by  any
  2860. combination of tabs or spaces. For example:
  2861.  
  2862. pc.ka9q.ampr.org.       IN      A       128.96.160.3
  2863.  
  2864. IN is the class of the record. It means Internet, and it will  be
  2865. found  in  all entries. A is the type of the record, and it means
  2866. that this is an  address  record.  Domain  name  pc.ka9q.ampr.org
  2867. therefore has Internet address 128.96.160.3.
  2868.  
  2869. Another possible entry is the CNAME (Canonical Name) record.  For
  2870. example:
  2871.  
  2872. ka9q.ampr.org.          IN      CNAME   pc.ka9q.ampr.org.
  2873.  
  2874. This says that domain name "ka9q.ampr.org" is actually  an  alias
  2875. for   the   system  with  (primary,  or  canonical)  domain  name
  2876. "pc.ka9q.ampr.org." When a domain name having a CNAME  record  is
  2877. given  to net.exe, the system automatically follows the reference
  2878. to the canonical name and returns the IP address associated  with
  2879. that entry.
  2880.  
  2881. Entries added automatically by net.exe will  have  an  additional
  2882. field  between  the  domain  name  and the class (IN) field.  For
  2883. example:
  2884.  
  2885. pc.ka9q.ampr.org.       3600    IN      A       128.96.160.3
  2886.  
  2887.  
  2888.  
  2889.  
  2890. updated by Bill Simpson April 15, 1991 March 3, 1991
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.                            - 48 -
  2897.  
  2898.  
  2899. This is the time-to-live value, in seconds, associated  with  the
  2900. record  received from the server. Clients (such as net.exe) cach-
  2901. ing these records are supposed to delete them after the  time-to-
  2902. live  interval has expired, allowing for the possibility that the
  2903. information in the record may become out of date.
  2904.  
  2905. This implementation of net.exe will decrement the  TTL  to  zero,
  2906. but will not delete the record unless the "clean" flag is on (see
  2907. the domain cache clean command). When  a  remote  server  is  not
  2908. available, the old entry will be used.
  2909.  
  2910. When the TTL value is missing (as in  the  examples  above),  the
  2911. record  will  never  expire,  and  must be managed by hand. Since
  2912. domain.txt is a plain text file, it may be easily edited  by  the
  2913. user to add, change or delete records.
  2914.  
  2915. Additional types of records, include NS  (name  server)  and  SOA
  2916. (start  of authority) may appear in domain.txt from remote server
  2917. responses. These are  not  currently  used  by  net.exe  but  are
  2918. retained  for  future development (such as the incorporation of a
  2919. domain name server into net.exe itself).
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928.  
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956. updated by Bill Simpson April 15, 1991 March 3, 1991
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.                            - 49 -
  2963.  
  2964.  
  2965. 9.  Setting Bufsize, Paclen, Maxframe, MTU, MSS and Window
  2966.  
  2967. Many net.exe users are confused by these parameters  and  do  not
  2968. know  how  to  set  them properly. This chapter will first review
  2969. these parameters and then discuss how to choose values for  them.
  2970. Special  emphasis  is given to avoiding interoperability problems
  2971. that may appear when communicating with  non-net.exe  implementa-
  2972. tions of AX.25.
  2973.  
  2974. 9.1.  Hardware Parameters
  2975.  
  2976.  
  2977. 9.1.1.  Bufsize
  2978.  
  2979. This parameter is required by most  of  net.exe's  built-in  HDLC
  2980. drivers  (eg. those for the DRSI PCPA and the Paccomm PC-100). It
  2981. specifies the size  of  the  buffer  to  be  allocated  for  each
  2982. receiver  port.  HDLC  frames  larger  than  this value cannot be
  2983. received.
  2984.  
  2985. There is no default bufsize; it must be specified in  the  attach
  2986. command for the interface.
  2987.  
  2988. 9.2.  AX25 Parameters
  2989.  
  2990. 9.2.1.  Paclen
  2991.  
  2992. Paclen limits the size of the data field  in  an  AX.25  I-frame.
  2993. This  value  does  not include the AX.25 protocol header (source,
  2994. destination and digipeater addresses).
  2995.  
  2996. Since unconnected-mode (datagram)  AX.25  uses  UI  frames,  this
  2997. parameter has no effect in unconnected mode.
  2998.  
  2999. The default value of paclen is 256 bytes.
  3000.  
  3001. 9.2.2.  Maxframe
  3002.  
  3003. This parameter controls the number of I-frames that  net.exe  may
  3004. send  on  an AX.25 connection before it must stop and wait for an
  3005. acknowledgement. Since the AX.25/LAPB sequence number field is  3
  3006. bits wide, this number cannot be larger than 7.
  3007.  
  3008. Since unconnected-mode (datagram) AX.25 uses UI  frames  that  do
  3009. not  have  sequence  numbers,  this  parameter  does not apply to
  3010. unconnected mode.
  3011.  
  3012. The default value of maxframe in net.exe is 1 frame.
  3013.  
  3014. 9.3.  IP and TCP Parameters
  3015.  
  3016. 9.3.1.  MTU
  3017.  
  3018. The MTU (Maximum Transmission Unit)  is  an  interface  parameter
  3019.  
  3020.  
  3021.  
  3022. updated by Bill Simpson April 15, 1991 March 3, 1991
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.                            - 50 -
  3029.  
  3030.  
  3031. that  limits the size of the largest IP datagram that it may han-
  3032. dle.  IP datagrams routed to an interface that  are  larger  than
  3033. its  MTU are each split into two or more fragments. Each fragment
  3034. has its own IP header and is handled by the network as if it were
  3035. a distinct IP datagram, but when it arrives at the destination it
  3036. is held by the IP layer until all of the other fragments  belong-
  3037. ing to the original datagram have arrived. Then they are reassem-
  3038. bled back into the complete, original IP  datagram.  The  minimum
  3039. acceptable  interface MTU is 28 bytes: 20 bytes for the IP (frag-
  3040. ment) header, plus 8 bytes of data.
  3041.  
  3042. There is no default MTU in net.exe; it must be explicitly  speci-
  3043. fied for each interface as part of the attach command.
  3044.  
  3045. 9.3.2.  MSS
  3046.  
  3047. MSS (Maximum Segment Size) is a TCP-level parameter  that  limits
  3048. the  amount of data that the remote TCP will send in a single TCP
  3049. packet. MSS values are exchanged in the SYN (connection  request)
  3050. packets that open a TCP connection. In the net.exe implementation
  3051. of TCP, the MSS actually used by TCP is further reduced in  order
  3052. to  avoid  fragmentation  at the local IP interface. That is, the
  3053. local TCP asks IP for the MTU of the interface that will be  used
  3054. to reach the destination. It then subtracts 40 from the MTU value
  3055. to allow for the overhead of the  TCP  and  IP  headers.  If  the
  3056. result  is  less than the MSS received from the remote TCP, it is
  3057. used instead.
  3058.  
  3059. The default value of MSS is 512 bytes.
  3060.  
  3061. 9.3.3.  Window
  3062.  
  3063. This is a TCP-level parameter that controls  how  much  data  the
  3064. local  TCP  will allow the remote TCP to send before it must stop
  3065. and wait for an acknowledgement. The actual window value used  by
  3066. TCP  when  deciding  how much more data to send is referred to as
  3067. the effective window. This is the smaller of two values: the win-
  3068. dow advertised by the remote TCP minus the unacknowledged data in
  3069. flight, and the  congestion  window,  an  automatically  computed
  3070. time-varying estimate of how much data the network can handle.
  3071.  
  3072. The default value of Window is 2048 bytes.
  3073.  
  3074. 9.4.  Discussion
  3075.  
  3076.  
  3077. 9.4.1.  IP Fragmentation vs AX.25 Segmentation
  3078.  
  3079. IP-level fragmentation often makes it  possible  to  interconnect
  3080. two  dissimilar  networks, but it is best avoided whenever possi-
  3081. ble. One reason is that when a single IP fragment  is  lost,  all
  3082. other  fragments  belonging  to the same datagram are effectively
  3083. also lost and the entire datagram must be  retransmitted  by  the
  3084. source.  Even  without  loss, fragments require the allocation of
  3085.  
  3086.  
  3087.  
  3088. updated by Bill Simpson April 15, 1991 March 3, 1991
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.                            - 51 -
  3095.  
  3096.  
  3097. temporary buffer memory at the destination, and it is never  easy
  3098. to decide how long to wait for missing fragments before giving up
  3099. and discarding those that  have  already  arrived.  A  reassembly
  3100. timer  controls  this  process.  In net.exe it is (re)initialized
  3101. with the ip rtimer parameter (default 30 seconds)  whenever  pro-
  3102. gress is made in reassembling a datagram (i.e., a new fragment is
  3103. received). It is not necessary that all of the fragments  belong-
  3104. ing  to  a datagram arrive within a single timeout interval, only
  3105. that the interval between fragments be less than the timeout.
  3106.  
  3107. Most subnetworks that carry IP have MTUs of 576 bytes or more, so
  3108. interconnecting  them  with subnetworks having smaller values can
  3109. result in considerable fragmentation. For this reason, IP  imple-
  3110. mentors  working  with  links  or  subnets having unusually small
  3111. packet size limits are encouraged to use  transparent  fragmenta-
  3112. tion,  that  is, to devise schemes to break up large IP datagrams
  3113. into a sequence of link or subnet  frames  that  are  immediately
  3114. reassembled  on the other end of the link or subnet into the ori-
  3115. ginal, whole IP datagram without the use of  IP-level  fragmenta-
  3116. tion.  Such  a  scheme  is provided in AX.25 Version 2.1.  It can
  3117. break a large IP or NET/ROM datagram into  a  series  of  paclen-
  3118. sized  AX.25 segments (not to be confused with TCP segments), one
  3119. per AX.25 I-frame, for transmission and reassemble  them  into  a
  3120. single datagram at the other end of the link before handing it up
  3121. to the IP or NET/ROM  module.   Unfortunately,  the  segmentation
  3122. procedure  is a new feature in AX.25 and is not yet widely imple-
  3123. mented; in fact, net.exe is so far the only known implementation.
  3124. This  creates  some interoperability problems between net.exe and
  3125. non-net.exe nodes, in particular, standard  NET/ROM  nodes  being
  3126. used  to carry IP datagrams. This problem is discussed further in
  3127. the section on setting the MTU.
  3128.  
  3129. 9.4.2.  Setting paclen and bufsize
  3130.  
  3131. The more data you put into an AX.25  I  frame,  the  smaller  the
  3132. AX.25  headers  are in relation to the total frame size. In other
  3133. words, by increasing paclen, you lower the AX.25  protocol  over-
  3134. head. Also, large data packets reduce the overhead of keying up a
  3135. transmitter, and this can be  an  important  factor  with  higher
  3136. speed modems. On the other hand, large frames make bigger targets
  3137. for noise and interference. Each link has  an  optimum  value  of
  3138. paclen that is best discovered by experiment.
  3139.  
  3140. Another thing to remember when setting paclen is that  the  AX.25
  3141. version  2.0  specification  limits  it  to  256  bytes. Although
  3142. net.exe can handle much larger values, some other AX.25 implemen-
  3143. tations (including digipeaters) cannot and this may cause intero-
  3144. perability problems. Even net.exe may have trouble  with  certain
  3145. KISS  TNCs  because  of fixed-size buffers. The original KISS TNC
  3146. code for the TNC-2 by K3MC can handle frames limited in size only
  3147. by the RAM in the TNC, but some other KISS TNCs cannot.
  3148.  
  3149. Net.exe's built-in HDLC drivers (SCC, PC-100, DRSI, etc) allocate
  3150. receive  buffers according to the maximum expected frame size, so
  3151.  
  3152.  
  3153.  
  3154. updated by Bill Simpson April 15, 1991 March 3, 1991
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.                            - 52 -
  3161.  
  3162.  
  3163. it is important that these devices be configured with the correct
  3164. bufsize. To do this, you must know the size of the largest possi-
  3165. ble frame that can be received.  The  paclen  parameter  controls
  3166. only  the  size of the data field in an I-frame and not the total
  3167. size of the frame as it appears on the air. The AX.25 spec allows
  3168. up  to  8 digipeaters, so the largest possible frame is (paclen +
  3169. 72) bytes. So you should make bufsize at least this large.
  3170.  
  3171. Another important consideration is that the more recent  versions
  3172. of  NOS  improve interrupt response by maintaining a special pool
  3173. of buffers for use by the receive routines.   These  buffers  are
  3174. currently  fixed  in  size  to 2048 bytes and this can be changed
  3175. only by editing config.h and recompiling NOS.  This  limits  buf-
  3176. size;  in  fact,  attempting  to set a larger value may cause the
  3177. driver not to work at all. This situation can be detected by run-
  3178. ning  the  memory status command and looking for a non-zero count
  3179. of Ibuffail events, although these events can  also  occur  occa-
  3180. sionally during normal operation.
  3181.  
  3182. One of the drawbacks of AX.25 that there is no way for  one  sta-
  3183. tion  to tell another how large a packet it is willing to accept.
  3184. This requires the stations sharing a channel to agree  beforehand
  3185. on a maximum packet size. TCP is different, as we shall see.
  3186.  
  3187. 9.4.3.  Setting Maxframe
  3188.  
  3189. For best performance on a  half-duplex  radio  channel,  maxframe
  3190. should always be set to 1. The reasons are explained in the paper
  3191. Link Level Protocols Revisited by  Brian  Lloyd  and  Phil  Karn,
  3192. which  appeared  in the proceedings of the ARRL 5th Computer Net-
  3193. working Conference in 1986.
  3194.  
  3195. 9.4.4.  Setting MTU
  3196.  
  3197. TCP/IP header overhead considerations similar  to  those  of  the
  3198. AX.25 layer when setting paclen apply when choosing an MTU.  How-
  3199. ever, certain subnetwork types supported by  net.exe  have  well-
  3200. established MTUs, and these should always be used unless you know
  3201. what you're doing: 1500 bytes for Ethernet,  and  508  bytes  for
  3202. ARCNET. The MTU for PPP is automatically negotiated, and defaults
  3203. to 1500. Other subnet types, including SLIP and AX.25, are not as
  3204. well standardized.
  3205.  
  3206. SLIP has no official MTU, but the most common implementation (for
  3207. BSD  UNIX)  uses  an  MTU of 1006 bytes.  Although net.exe has no
  3208. hard wired limit on the size of a received SLIP  frame,  this  is
  3209. not  true for other systems. Interoperability problems may there-
  3210. fore result if larger MTUs are used in net.exe.
  3211.  
  3212. Choosing an MTU for an AX.25 interface is more complex. When  the
  3213. interface operates in datagram (UI-frame) mode, the paclen param-
  3214. eter does not apply. The MTU effectively becomes  the  paclen  of
  3215. the  link.   However, as mentioned earlier, large packets sent on
  3216. AX.25 connections are automatically segmented  into  I-frames  no
  3217.  
  3218.  
  3219.  
  3220. updated by Bill Simpson April 15, 1991 March 3, 1991
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.                            - 53 -
  3227.  
  3228.  
  3229. larger  than  paclen bytes. Unfortunately, as also mentioned ear-
  3230. lier, net.exe is so far the only known implementation of the  new
  3231. AX.25  segmentation procedure. This is fine as long as all of the
  3232. NET/ROM nodes along a path are running  net.exe,  but  since  the
  3233. main  reason net.exe supports NET/ROM is to allow use of existing
  3234. NET/ROM networks, this is unlikely.
  3235.  
  3236. So it is usually important to avoid AX.25 segmentation when  run-
  3237. ning  IP  over  NET/ROM.  The way to do this is to make sure that
  3238. packets larger than paclen are never handed to AX.25.  A  NET/ROM
  3239. transport  header  is  5  bytes long and a NET/ROM network header
  3240. takes 15 bytes, so 20 bytes must be added to the size  of  an  IP
  3241. datagram  when figuring the size of the AX.25 I-frame data field.
  3242. If paclen is 256, this leaves 236 bytes for the IP datagram. This
  3243. is  the default MTU of the netrom pseudo-interface, so as long as
  3244. paclen is at least 256 bytes, AX.25  segmentation  can't  happen.
  3245. But  if  smaller  values  of paclen are used, the netrom MTU must
  3246. also be reduced with the ifconfig command.
  3247.  
  3248. On the other hand, if you're running IP directly on top of AX.25,
  3249. chances  are  all  of  the  nodes are running net.exe and support
  3250. AX.25 segmentation. In this case there is no reason not to use  a
  3251. larger MTU and let AX.25 segmentation do its thing. If you choose
  3252. an MTU on the order of 1000-1500 bytes,  you  can  largely  avoid
  3253. IP-level fragmentation and reduce TCP/IP-level header overhead on
  3254. file transfers to a very low level. And you  are  still  free  to
  3255. pick whatever paclen value is appropriate for the link.
  3256.  
  3257. 9.4.5.  Setting MSS
  3258.  
  3259. The setting of this TCP-level parameter is somewhat less critical
  3260. than  the IP and AX.25 level parameters already discussed, mainly
  3261. because it is automatically lowered according to the MTU  of  the
  3262. local  interface  when a connection is created. Although this is,
  3263. strictly speaking, a protocol layering violation (TCP is not sup-
  3264. posed to have any knowledge of the workings of lower layers) this
  3265. technique does work well in practice. However, it can be  fooled;
  3266. for  example, if a routing change occurs after the connection has
  3267. been opened and the new local interface has a  smaller  MTU  than
  3268. the previous one, IP fragmentation may occur in the local system.
  3269.  
  3270. The only drawback to setting a large MSS is that it  might  cause
  3271. avoidable  fragmentation  at  some other point within the network
  3272. path if it includes a "bottleneck" subnet  with  an  MTU  smaller
  3273. than  that  of  the  local  interface.  (Unfortunately,  there is
  3274. presently no way to know when this is the case. There is  ongoing
  3275. work  within  the  Internet  Engineering  Task  Force  on  a "MTU
  3276. Discovery" procedure to determine the largest datagram  that  may
  3277. be  sent  over  a given path without fragmentation, but it is not
  3278. yet complete.) Also, since the MSS you specify  is  sent  to  the
  3279. remote  system,  and  not all other TCPs do the MSS-lowering pro-
  3280. cedure yet, this might cause the remote  system  to  generate  IP
  3281. fragments unnecessarily.
  3282.  
  3283.  
  3284.  
  3285.  
  3286. updated by Bill Simpson April 15, 1991 March 3, 1991
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.                            - 54 -
  3293.  
  3294.  
  3295. On the other hand, a too-small MSS can result in  a  considerable
  3296. performance  loss,  especially  when operating over fast LANs and
  3297. networks that can handle larger packets. So the  best  value  for
  3298. MSS is probably 40 less than the largest MTU on your system, with
  3299. the 40-byte margin allowing for the TCP and IP headers. For exam-
  3300. ple,  if  you  have  a SLIP interface with a 1006 byte MTU and an
  3301. Ethernet interface with a 1500 byte MTU, set MSS to  1460  bytes.
  3302. This allows you to receive maximum-sized Ethernet packets, assum-
  3303. ing the path to your system does not have any bottleneck  subnets
  3304. with smaller MTUs.
  3305.  
  3306. 9.4.6.  Setting Window
  3307.  
  3308. A sliding window protocol like TCP cannot transfer more than  one
  3309. window's  worth  of  data  per  round trip time interval. So this
  3310. TCP-level parameter controls the ability of  the  remote  TCP  to
  3311. keep a long "pipe" full. That is, when operating over a path with
  3312. many hops, offering a large TCP window will help keep  all  those
  3313. hops busy when you're receiving data. On the other hand, offering
  3314. too large a window can congest the network if  it  cannot  buffer
  3315. all  that  data. Fortunately, new algorithms for dynamic control-
  3316. ling the effective TCP flow control window  have  been  developed
  3317. over  the  past  few  years  and are now widely deployed. Net.exe
  3318. includes them, and you can watch them  in  action  with  the  tcp
  3319. status  <tcb>  or  socket  <sockno>  commands.  Look at the cwind
  3320. (congestion window) value.
  3321.  
  3322. In most cases it is safe to set the TCP window to a small integer
  3323. multiple  of  the  MSS  (eg.  4 times), or larger if necessary to
  3324. fully utilize a high bandwidth*delay product path. One  thing  to
  3325. keep  in  mind, however, is that advertising a certain TCP window
  3326. value declares that the system has that much buffer space  avail-
  3327. able  for  incoming  data.  Net.exe does not actually preallocate
  3328. this space; it keeps it in a common pool and may well  "overbook"
  3329. it,  exploiting  the  fact that many TCP connections are idle for
  3330. long periods and gambling that most applications will read incom-
  3331. ing data from an active connection as soon as it arrives, thereby
  3332. quickly freeing the buffer memory. However, it is possible to run
  3333. net.exe  out  of  memory if excessive TCP window sizes are adver-
  3334. tised and either the applications go to sleep  indefinitely  (eg.
  3335. suspended  Telnet  sessions)  or  a  lot  of out-of-sequence data
  3336. arrives. It is wise to keep an eye on  the  amount  of  available
  3337. memory  and  to decrease the TCP window size (or limit the number
  3338. of simultaneous connections) if it gets too low.
  3339.  
  3340. Depending on the channel access method and link  level  protocol,
  3341. the  use  of  a  window setting that exceeds the MSS may cause an
  3342. increase in channel collisions. In particular, collisions between
  3343. data  packets  and  returning acknowledgements during a bulk file
  3344. transfer may become common. Although this is, strictly  speaking,
  3345. not TCP's fault, it is possible to work around the problem at the
  3346. TCP level by decreasing the window so that the protocol  operates
  3347. in  stop-and-wait  mode.  This is done by making the window value
  3348. equal to the MSS.
  3349.  
  3350.  
  3351.  
  3352. updated by Bill Simpson April 15, 1991 March 3, 1991
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.                            - 55 -
  3359.  
  3360.  
  3361. 9.5.  Summary
  3362.  
  3363. In most cases, the default values provided by net.exe for each of
  3364. these  parameters will work correctly and give reasonable perfor-
  3365. mance. Only in special circumstances such  as  operation  over  a
  3366. very  poor  link or experimentation with high speed modems should
  3367. it be necessary to change them.
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374.  
  3375.  
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418. updated by Bill Simpson April 15, 1991 March 3, 1991
  3419.  
  3420.  
  3421.