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.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.              NET User Reference Manual (NOS Version)
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                         Phil Karn, KA9Q
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. 1.  The NET.EXE Program
  40.  
  41.  
  42.  
  43. The MS-DOS executable file net.exe  provides  Internet  (TCP/IP),
  44.  
  45. NET/ROM  and AX.25 facilities.  Because it has an internal multi-
  46.  
  47. tasking operating system, net.exe can  act  simultaneously  as  a
  48.  
  49. client, a server and a packet switch for all three sets of proto-
  50.  
  51. cols. That is, while a local user accesses remote  services,  the
  52.  
  53. system can also provide those same services to remote users while
  54.  
  55. also switching IP, NET/ROM and AX.25 packets and  frames  between
  56.  
  57. other client and server nodes.
  58.  
  59.  
  60.  
  61. The keyboard and display is used by the local operator to control
  62.  
  63. both host and gateway level functions, for which a number of com-
  64.  
  65. mands are provided.
  66.  
  67.  
  68.  
  69. 1.1.  Installation
  70.  
  71.  
  72.  
  73. Net.exe uses the following directory structure:
  74.  
  75.  
  76.  
  77.         /net
  78.  
  79.         /net/spool
  80.  
  81.         /net/spool/help
  82.  
  83.         /net/spool/mail
  84.  
  85.         /net/spool/mqueue
  86.  
  87.         /net/spool/rqueue
  88.  
  89.         /net/spool/news
  90.  
  91.  
  92.  
  93.  
  94.  
  95. The "/net" directory is not strictly necessary, and  defaults  to
  96.  
  97. the  root of the current drive.  Any name may be chosen using the
  98.  
  99. -d   command-line   option   (described   below).   The    alias,
  100.  
  101. autoexec.net, dialer, domain.txt and ftpusers configuration files
  102.  
  103. are located here.
  104.  
  105.  
  106.  
  107. The "/spool" directory and its sub-directories are  used  by  the
  108.  
  109. bbs,  SMTP  and  NNTP  services. The areas, forward.bbs, history,
  110.  
  111. mail.log, rewrite and signatur configuration  files  are  located
  112.  
  113. here.
  114.  
  115.  
  116.  
  117. The alias, forward.bbs and rewrite files  are  described  in  the
  118.  
  119. document "maildoc", which should be found at the same location as
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. updated by Bill Simpson April 15, 1991 March 3, 1991
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.                            - 2 -
  140.  
  141.  
  142.  
  143.  
  144.  
  145. this file.
  146.  
  147.  
  148.  
  149. 1.2.  net [-b] [-s <sockets>] [-d <directory>] [<startup file>]
  150.  
  151.  
  152.  
  153. 1.2.1.  -b
  154.  
  155.  
  156.  
  157. The -b option specifies the use of BIOS for console  output;  the
  158.  
  159. default  is  to  write  directly to the video display buffer. Use
  160.  
  161. this option if you are running under a windowing package and have
  162.  
  163. trouble with output "bleeding through" on top of other windows.
  164.  
  165.  
  166.  
  167. 1.2.2.  -s
  168.  
  169.  
  170.  
  171. The -s option specifies the size of the socket array to be  allo-
  172.  
  173. cated  within  net.exe. This limits the number of network connec-
  174.  
  175. tions that may exist simultaneously. The default is 40.
  176.  
  177.  
  178.  
  179. 1.2.3.  -d
  180.  
  181.  
  182.  
  183. The -d option allows the user to specify a directory for the con-
  184.  
  185. figuration  and spool files; it defaults to the root directory of
  186.  
  187. the system.
  188.  
  189.  
  190.  
  191. 1.2.4.  Startup file
  192.  
  193.  
  194.  
  195. After all command-line options, the name of a startup file may be
  196.  
  197. specified.  If  no startup file is specified, net.exe attempts to
  198.  
  199. open a file named autoexec.net in the configuration directory  of
  200.  
  201. the current drive. If the file exists, it is read and executed as
  202.  
  203. though its contents were typed on the console as  commands.  (See
  204.  
  205. the  Commands chapter.) This feature is useful for attaching com-
  206.  
  207. munication interfaces, configuring network addresses, and  start-
  208.  
  209. ing the various services.
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259. updated by Bill Simpson April 15, 1991 March 3, 1991
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.                            - 3 -
  272.  
  273.  
  274.  
  275.  
  276.  
  277. 2.  Console modes
  278.  
  279.  
  280.  
  281. The console may be in one of two modes: command mode and converse
  282.  
  283. mode.  In  command  mode, the prompt net> is displayed and any of
  284.  
  285. the commands described in the Commands chapter may be entered. In
  286.  
  287. converse  mode,  keyboard  input  is  processed  according to the
  288.  
  289. current session.
  290.  
  291.  
  292.  
  293. Sessions come in many types, including Telnet, FTP, AX25, NETROM,
  294.  
  295. Ping,  More,  Hopcheck and Tip. In a Telnet, AX25, NETROM, or Tip
  296.  
  297. session, keyboard input is sent to the remote system and any out-
  298.  
  299. put from the remote system is displayed on the console.  In a FTP
  300.  
  301. session, keyboard input is first examined to see if it is a known
  302.  
  303. local  command;  if  so  it  is  executed locally.  If not, it is
  304.  
  305. "passed through" to the remote FTP server. (See the  FTP  Subcom-
  306.  
  307. mands chapter). In a Ping session the user may test the path to a
  308.  
  309. remote site, and in a More session, the user may examine a  local
  310.  
  311. file. A Hopcheck session is used to trace the path taken by pack-
  312.  
  313. ets to reach a specified destination.
  314.  
  315.  
  316.  
  317. The keyboard also has cooked and raw  states.  In  cooked  state,
  318.  
  319. input  is line-at-a-time; the user may use the line editing char-
  320.  
  321. acters ^U, ^R and backspace to erase the line, redisplay the line
  322.  
  323. and  erase  the  last  character,  respectively.   Hitting either
  324.  
  325. return or line feed passes the complete line up to  the  applica-
  326.  
  327. tion.  In  raw state, each character is immediately passed to the
  328.  
  329. application as it is typed.
  330.  
  331.  
  332.  
  333. The keyboard is always in cooked state in  command  mode.  It  is
  334.  
  335. also  cooked in converse mode on an AX25, FTP or NET/ROM session.
  336.  
  337. In a Telnet session it depends on  whether  the  remote  end  has
  338.  
  339. issued  (and  the  local  end  has accepted) the Telnet WILL ECHO
  340.  
  341. option (see the echo command).
  342.  
  343.  
  344.  
  345. On the IBM-PC, the user may escape back to command mode  by  hit-
  346.  
  347. ting  the  F10  key.  On  other  systems, the user must enter the
  348.  
  349. escape character, which is by default control-]  (hex  1d,  ASCII
  350.  
  351. GS).  (Note that this is distinct from the ASCII character of the
  352.  
  353. same name). The escape character can be changed (see  the  escape
  354.  
  355. command).
  356.  
  357.  
  358.  
  359. In the IBM PC version, each session (including the command  "ses-
  360.  
  361. sion")  has  its  own  screen. When a new session is created, the
  362.  
  363. command display is saved in memory and  the  screen  is  cleared.
  364.  
  365. When  the  command  escape  key (usually F10) is hit, the current
  366.  
  367. session screen is saved and the command screen is restored.  When
  368.  
  369. a  session  is  resumed,  its  screen  is  restored exactly as it
  370.  
  371. appeared when it was last current.
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391. updated by Bill Simpson April 15, 1991 March 3, 1991
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.                            - 4 -
  404.  
  405.  
  406.  
  407.  
  408.  
  409. 3.  Commands
  410.  
  411.  
  412.  
  413. This chapter describes the commands recognized in  command  mode,
  414.  
  415. or within a startup file such as autoexec.net. These are given in
  416.  
  417. the following notation:
  418.  
  419.  
  420.  
  421.         command
  422.  
  423.         command literalparameter
  424.  
  425.         command subcommand <parameter>
  426.  
  427.         command [<optionalparameter>]
  428.  
  429.         command a | b
  430.  
  431.  
  432.  
  433.  
  434.  
  435. Many commands  take  subcommands  or  parameters,  which  may  be
  436.  
  437. optional  or  required.  In  general, if a required subcommand or
  438.  
  439. parameter is omitted, an error message will summarize the  avail-
  440.  
  441. able  subcommands or required parameters.  (Giving a '?' in place
  442.  
  443. of the subcommand will also generate the message.  This is useful
  444.  
  445. when  the  command  word  alone is a valid command.) If a command
  446.  
  447. takes an optional value parameter, issuing  the  command  without
  448.  
  449. the  parameter  generally displays the current value of the vari-
  450.  
  451. able. (Exceptions to this rule are noted in the  individual  com-
  452.  
  453. mand descriptions.)
  454.  
  455.  
  456.  
  457. Two or more parameters separated  by  vertical  bar(s)  denote  a
  458.  
  459. choice  between  the  specified  values.  Optional parameters are
  460.  
  461. shown enclosed in [brackets], and a parameter enclosed in  <angle
  462.  
  463. brackets> should be replaced with an actual value or string.  For
  464.  
  465. example, the notation <hostid> denotes an actual host or gateway,
  466.  
  467. which  may  be  specified  in  one  of  two ways: as a numeric IP
  468.  
  469. address in dotted decimal notation (eg. 44.0.0.1), or as  a  sym-
  470.  
  471. bolic name listed in the file domain.txt.
  472.  
  473.  
  474.  
  475. All commands and many subcommands may be  abbreviated.  You  only
  476.  
  477. need  type enough of a command's name to distinguish it from oth-
  478.  
  479. ers that begin with the same series of letters. Parameters,  how-
  480.  
  481. ever, must be typed in full.
  482.  
  483.  
  484.  
  485. Certain FTP subcommands (eg. put, get, dir, etc)  are  recognized
  486.  
  487. only  in converse mode with the appropriate FTP session; they are
  488.  
  489. not  recognized  in  command  mode.  (See  the  FTP   Subcommands
  490.  
  491. chapter.)
  492.  
  493.  
  494.  
  495. 3.1.  <CR>
  496.  
  497.  
  498.  
  499. Entering a carriage return (empty line)  while  in  command  mode
  500.  
  501. puts  you  in converse mode with the current session. If there is
  502.  
  503. no current session, net.exe remains in command mode.
  504.  
  505.  
  506.  
  507. 3.2.  !
  508.  
  509.  
  510.  
  511. An alias for the shell command.
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. updated by Bill Simpson April 15, 1991 March 3, 1991
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.                            - 5 -
  536.  
  537.  
  538.  
  539.  
  540.  
  541. 3.3.  #
  542.  
  543.  
  544.  
  545. Commands starting with the hash mark (#)  are  ignored.  This  is
  546.  
  547. mainly useful for comments in the autoexec.net file.
  548.  
  549.  
  550.  
  551. 3.4.  abort [<session #>]
  552.  
  553.  
  554.  
  555. Abort a FTP get, put or dir  operation  in  progress.  If  issued
  556.  
  557. without  an  argument, the current session is aborted. (This com-
  558.  
  559. mand works only on FTP sessions.) When receiving  a  file,  abort
  560.  
  561. simply  resets the data connection; the next incoming data packet
  562.  
  563. will generate a TCP RST (reset)  response  to  clear  the  remote
  564.  
  565. server.   When  sending  a  file, abort sends a premature end-of-
  566.  
  567. file. Note that in both cases abort will leave a partial copy  of
  568.  
  569. the  file on the destination machine, which must be removed manu-
  570.  
  571. ally if it is unwanted.
  572.  
  573.  
  574.  
  575. 3.5.  arp
  576.  
  577.  
  578.  
  579. Display the  Address  Resolution  Protocol  table  that  maps  IP
  580.  
  581. addresses to their subnet (link) addresses on subnetworks capable
  582.  
  583. of broadcasting. For each IP address entry the subnet  type  (eg.
  584.  
  585. Ethernet, AX.25), subnet address and time to expiration is shown.
  586.  
  587. If the link address  is  currently  unknown,  the  number  of  IP
  588.  
  589. datagrams awaiting resolution is also shown.
  590.  
  591.  
  592.  
  593. 3.5.1.  arp add <hostid> ethernet |  ax25  <ethernet  address>  |
  594.  
  595. <ax25address>
  596.  
  597.  
  598.  
  599. Add a permanent entry to the table. It will not time out as  will
  600.  
  601. an  automatically-created entry, but must be removed with the arp
  602.  
  603. drop command.
  604.  
  605.  
  606.  
  607. 3.5.2.  arp publish <hostid> ethernet | ax25 <ethernet address> |
  608.  
  609. <ax25address>
  610.  
  611.  
  612.  
  613. This command is similar to the arp add command, but  system  will
  614.  
  615. also respond to any ARP request it sees on the network that seeks
  616.  
  617. the specified address.  (Use this feature with great care.)
  618.  
  619.  
  620.  
  621. 3.5.3.  arp drop <hostid> ax25 | ethernet
  622.  
  623.  
  624.  
  625. Remove the specified entry from the ARP table.
  626.  
  627.  
  628.  
  629. 3.5.4.  arp flush
  630.  
  631.  
  632.  
  633. Drop all automatically-created entries in  the  ARP  table;  per-
  634.  
  635. manent entries are not affected.
  636.  
  637.  
  638.  
  639. 3.6.  asystat
  640.  
  641.  
  642.  
  643. Display statistics on attached asynchronous communications inter-
  644.  
  645. faces  (8250  or  16550A), if any. The display for each port con-
  646.  
  647. sists of three lines. The first line gives the port label and the
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655. updated by Bill Simpson April 15, 1991 March 3, 1991
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.                            - 6 -
  668.  
  669.  
  670.  
  671.  
  672.  
  673. configuration  flags; these indicate whether the port is a 16550A
  674.  
  675. chip, the trigger character if any, whether CTS flow  control  is
  676.  
  677. enabled,  whether  RLSD (carrier detect) line control is enabled,
  678.  
  679. and the speed in bits per second. (Receiving the trigger  charac-
  680.  
  681. ter causes the driver to signal upper layer software that data is
  682.  
  683. ready; it is automatically set to the appropriate frame end char-
  684.  
  685. acter for SLIP, PPP and NRS lines.)
  686.  
  687.  
  688.  
  689. The second line of the status display shows receiver  (RX)  event
  690.  
  691. counts:  the total number of receive interrupts, received charac-
  692.  
  693. ters, receiver overruns (lost characters) and the  receiver  high
  694.  
  695. water  mark. The high water mark is the maximum number of charac-
  696.  
  697. ters ever read from the device during a single interrupt. This is
  698.  
  699. useful  for  monitoring  system  interrupt  latency margins as it
  700.  
  701. shows how close the port hardware has come to overflowing due  to
  702.  
  703. the  inability  of  the CPU to respond to a receiver interrupt in
  704.  
  705. time. 8250 chips have no FIFO, so the high water mark  cannot  go
  706.  
  707. higher  than  2  before overruns occur. The 16550A chip, however,
  708.  
  709. has a 16-byte receive FIFO which the software programs to  inter-
  710.  
  711. rupt  the  CPU  when the FIFO is one-quarter full. The high water
  712.  
  713. mark should typically be 4 or 5 when a  16550A  is  used;  higher
  714.  
  715. values  indicate  that  the  CPU  has  at least once been slow to
  716.  
  717. respond to a receiver interrupt.
  718.  
  719.  
  720.  
  721. When the 16550A is  used,  a  count  of  FIFO  timeouts  is  also
  722.  
  723. displayed  on  the  RX status line. These are generated automati-
  724.  
  725. cally by the 16550A when three character  intervals  go  by  with
  726.  
  727. more  than  0  but  less than 4 characters in the FIFO. Since the
  728.  
  729. characters that make up a SLIP or NRS frame are normally sent  at
  730.  
  731. full  line speed, this count will usually be a lower bound on the
  732.  
  733. number of frames received on the port, as only the last  fragment
  734.  
  735. of a frame generally results in a timeout (and then only when the
  736.  
  737. frame is not a multiple of 4 bytes long.)
  738.  
  739.  
  740.  
  741. Finally, the software fifo  overruns  and  high  water  mark  are
  742.  
  743. displayed.  These indicate whether the <bufsize> parameter on the
  744.  
  745. attach command needs to be  adjusted  (see  the  Attach  Commands
  746.  
  747. chapter).
  748.  
  749.  
  750.  
  751. The third line shows transmit (TX) statistics, including a  total
  752.  
  753. count  of transmit interrupts, transmitted characters, the length
  754.  
  755. of the transmit queue in bytes, the number of status  interrupts,
  756.  
  757. and  the number of THRE timeouts. The status interrupt count will
  758.  
  759. be zero unless CTS flow control or RLSD  line  control  has  been
  760.  
  761. enabled.  The  THRE  timeout  is  a stopgap measure to catch lost
  762.  
  763. transmit interrupts, which seem to happen when there is a lot  of
  764.  
  765. activity (ideally, this will be zero).
  766.  
  767.  
  768.  
  769. 3.7.  attach <hw type> ...
  770.  
  771.  
  772.  
  773. Configure and attach a hardware interface to the system. Detailed
  774.  
  775. instructions  for each driver are in the Attach Commands chapter.
  776.  
  777. An easy way to obtain a summary of the parameters required for  a
  778.  
  779. given  device  is  to  issue a partial attach command (eg. attach
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787. updated by Bill Simpson April 15, 1991 March 3, 1991
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.                            - 7 -
  800.  
  801.  
  802.  
  803.  
  804.  
  805. packet). This produces a usage message giving the  complete  com-
  806.  
  807. mand format.
  808.  
  809.  
  810.  
  811. 3.8.  ax25 ...
  812.  
  813.  
  814.  
  815. These commands are used for AX25 interfaces.
  816.  
  817.  
  818.  
  819. 3.8.1.  ax25 blimit [<count>]
  820.  
  821.  
  822.  
  823. Display or set the AX25 retransmission  backoff  limit.  Normally
  824.  
  825. each successive AX25 retransmission is delayed by twice the value
  826.  
  827. of the previous interval; this is called binary exponential back-
  828.  
  829. off.  When  the  backoff reaches the blimit setting it is held at
  830.  
  831. that value, which defaults to 30. To prevent the  possibility  of
  832.  
  833. "congestive  collapse"  on a loaded channel, blimit should be set
  834.  
  835. at least as high as the number of stations sharing  the  channel.
  836.  
  837. Note  that this is applicable only on actual AX25 connections; UI
  838.  
  839. frames will never be retransmitted by the AX25 layer.
  840.  
  841.  
  842.  
  843. 3.8.2.  ax25 digipeat [on | off]
  844.  
  845.  
  846.  
  847. Display or set the digipeater enable flag.
  848.  
  849.  
  850.  
  851. 3.8.3.  ax25 flush
  852.  
  853.  
  854.  
  855. Clear the AX.25 "heard" list (see ax25 heard).
  856.  
  857.  
  858.  
  859. 3.8.4.  ax25 heard
  860.  
  861.  
  862.  
  863. Display the AX.25 "heard" list. For each interface that  is  con-
  864.  
  865. figured  to use AX.25, a list of all callsigns heard through that
  866.  
  867. interface is shown, along with a count of the number  of  packets
  868.  
  869. heard  from  each station and the interval, in hr:min:sec format,
  870.  
  871. since each station was  last  heard.  The  local  station  always
  872.  
  873. appears  first in the listing; the packet count actually reflects
  874.  
  875. the number of packets transmitted. This entry is  always  present
  876.  
  877. even if no packets have been sent.
  878.  
  879.  
  880.  
  881. 3.8.5.  ax25 irtt [<milliseconds>]
  882.  
  883.  
  884.  
  885. Display or set the initial value of smoothed round trip  time  to
  886.  
  887. be  used  when  a new AX25 connection is created. The value is in
  888.  
  889. milliseconds. The actual round trip time will be learned by meas-
  890.  
  891. urement once the connection has been established.
  892.  
  893.  
  894.  
  895. 3.8.6.  ax25 kick <axcb>
  896.  
  897.  
  898.  
  899. Force a retransmission on the specified AX.25 control block.
  900.  
  901.  
  902.  
  903. 3.8.7.  ax25 maxframe [<count>]
  904.  
  905.  
  906.  
  907. Establish the maximum number of frames that will  be  allowed  to
  908.  
  909. remain  unacknowledged at one time on new AX.25 connections. This
  910.  
  911. number cannot be greater than 7.
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919. updated by Bill Simpson April 15, 1991 March 3, 1991
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.                            - 8 -
  932.  
  933.  
  934.  
  935.  
  936.  
  937. 3.8.8.  ax25 mycall [<call>]
  938.  
  939.  
  940.  
  941. Display or set the local AX.25 address.  The standard  format  is
  942.  
  943. used  (eg. KA9Q-0 or WB6RQN-5). This command must be given before
  944.  
  945. any attach commands using AX.25 mode are given.
  946.  
  947.  
  948.  
  949. 3.8.9.  ax25 paclen [<size>]
  950.  
  951.  
  952.  
  953. Limit the size of I-fields  on  new  AX.25  connections.   If  IP
  954.  
  955. datagrams  or  fragments  larger  than this are transmitted, they
  956.  
  957. will be transparently fragmented at the AX.25 level,  sent  as  a
  958.  
  959. series  of  I  frames,  and  reassembled  back into a complete IP
  960.  
  961. datagram or fragment at the other end of the link.  To  have  any
  962.  
  963. effect  on  IP  datagrams,  this parameter should be less than or
  964.  
  965. equal to the MTU of the associated interface.
  966.  
  967.  
  968.  
  969. 3.8.10.  ax25 pthresh [<size>]
  970.  
  971.  
  972.  
  973. Display or set the poll threshold to be used for new  AX.25  Ver-
  974.  
  975. sion  2  connections.  The poll threshold controls retransmission
  976.  
  977. behavior as follows. If the oldest unacknowledged I-frame size is
  978.  
  979. less  than  the poll threshold, it will be sent with the poll (P)
  980.  
  981. bit set if a timeout occurs. If the oldest unacked  I-frame  size
  982.  
  983. is  equal  to  or  greater  than  the threshold, then a RR or RNR
  984.  
  985. frame, as appropriate, with the poll bit set will be  sent  if  a
  986.  
  987. timeout occurs.
  988.  
  989.  
  990.  
  991. The idea behind the poll threshold is that the extra time  needed
  992.  
  993. to  send  a  "small"  I-frame instead of a supervisory frame when
  994.  
  995. polling after a timeout is small, and since there's a good chance
  996.  
  997. the  I-frame  will  have to be sent anyway (i.e., if it were lost
  998.  
  999. previously) then you might as well send it as the  poll.  But  if
  1000.  
  1001. the I-frame is large, send a supervisory (RR/RNR) poll instead to
  1002.  
  1003. determine first if retransmitting the  oldest  unacknowledged  I-
  1004.  
  1005. frame  is necessary; the timeout might have been caused by a lost
  1006.  
  1007. acknowledgement.  This is obviously  a  tradeoff,  so  experiment
  1008.  
  1009. with  the  poll  threshold setting. The default is 128 bytes, one
  1010.  
  1011. half the default value of paclen.
  1012.  
  1013.  
  1014.  
  1015. 3.8.11.  ax25 reset <axcb>
  1016.  
  1017.  
  1018.  
  1019. Delete the  AX.25  connection  control  block  at  the  specified
  1020.  
  1021. address.
  1022.  
  1023.  
  1024.  
  1025. 3.8.12.  ax25 retry [<count>]
  1026.  
  1027.  
  1028.  
  1029. Limit  the  number  of  successive  unsuccessful   retransmission
  1030.  
  1031. attempts  on  new  AX.25  connections. If this limit is exceeded,
  1032.  
  1033. link re-establishment is attempted. If this  fails  retry  times,
  1034.  
  1035. then the connection is abandoned and all queued data is deleted.
  1036.  
  1037.  
  1038.  
  1039. 3.8.13.  ax25 route
  1040.  
  1041.  
  1042.  
  1043. Display the AX.25 routing table that specifies the digipeaters to
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051. updated by Bill Simpson April 15, 1991 March 3, 1991
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.                            - 9 -
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069. be used in reaching a given station.
  1070.  
  1071.  
  1072.  
  1073. 3.8.13.1.  ax25 route add <target> [digis ... ]
  1074.  
  1075.  
  1076.  
  1077. Add an entry to the AX.25 routing table.  An automatic ax25 route
  1078.  
  1079. add  is  executed if digipeaters are specified in an AX25 connect
  1080.  
  1081. command, or if a connection is received from a remote station via
  1082.  
  1083. digipeaters.  Such automatic routing table entries won't override
  1084.  
  1085. locally created entries, however.
  1086.  
  1087.  
  1088.  
  1089. 3.8.13.2.  ax25 route drop <target>
  1090.  
  1091.  
  1092.  
  1093. Drop an entry from the AX.25 routing table.
  1094.  
  1095.  
  1096.  
  1097. 3.8.14.  ax25 status [<axcb>]
  1098.  
  1099.  
  1100.  
  1101. Without an argument, display a one-line  summary  of  each  AX.25
  1102.  
  1103. control  block.  If  the address of a particular control block is
  1104.  
  1105. specified, the contents of that control block are dumped in  more
  1106.  
  1107. detail.  Note  that  the  send  queue units are frames, while the
  1108.  
  1109. receive queue units are bytes.
  1110.  
  1111.  
  1112.  
  1113. 3.8.15.  ax25 t3 [<milliseconds>]
  1114.  
  1115.  
  1116.  
  1117. Display or set the AX.25 idle "keep alive"  timer.  Value  is  in
  1118.  
  1119. milliseconds.
  1120.  
  1121.  
  1122.  
  1123. 3.8.16.  ax25 version [1 | 2]
  1124.  
  1125.  
  1126.  
  1127. Display or set the version of the AX.25 protocol  to  attempt  to
  1128.  
  1129. use  on  new connections. The default is 1 (the version that does
  1130.  
  1131. not use the poll/final bits).
  1132.  
  1133.  
  1134.  
  1135. 3.8.17.  ax25 window [<size>]
  1136.  
  1137.  
  1138.  
  1139. Set the number of bytes that can be pending on an  AX.25  receive
  1140.  
  1141. queue  beyond  which I frames will be answered with RNR (Receiver
  1142.  
  1143. Not Ready) responses.  This presently applies only  to  suspended
  1144.  
  1145. interactive  AX.25  sessions,  since incoming I-frames containing
  1146.  
  1147. network (IP, NET/ROM) packets are  always  processed  immediately
  1148.  
  1149. and  are  not placed on the receive queue. However, when an AX.25
  1150.  
  1151. connection carries both interactive and network  packet  traffic,
  1152.  
  1153. an  RNR  generated because of backlogged interactive traffic will
  1154.  
  1155. also stop network packet traffic from being sent.
  1156.  
  1157.  
  1158.  
  1159. 3.9.  cd [<dirname>]
  1160.  
  1161.  
  1162.  
  1163. Change the current working directory, and display  the  new  set-
  1164.  
  1165. ting.  Without an argument, cd simply displays the current direc-
  1166.  
  1167. tory without change. The pwd command is an alias for cd.
  1168.  
  1169.  
  1170.  
  1171. 3.10.  close [<session>]
  1172.  
  1173.  
  1174.  
  1175. Close the specified  session;  without  an  argument,  close  the
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183. updated by Bill Simpson April 15, 1991 March 3, 1991
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.                            - 10 -
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201. current  session.  On  an AX.25 session, this command initiates a
  1202.  
  1203. disconnect.  On a FTP or Telnet session, this command sends a FIN
  1204.  
  1205. (i.e.,  initiates a close) on the session's TCP connection.  This
  1206.  
  1207. is an alternative to asking the remote server to initiate a close
  1208.  
  1209. (QUIT  to  FTP,  or the logout command appropriate for the remote
  1210.  
  1211. system in the case of Telnet).  When either FTP  or  Telnet  sees
  1212.  
  1213. the  incoming  half  of  a TCP connection close, it automatically
  1214.  
  1215. responds by closing the outgoing half of the  connection.   Close
  1216.  
  1217. is  more  graceful  than  the  reset  command, in that it is less
  1218.  
  1219. likely to leave the remote TCP in a "half-open" state.
  1220.  
  1221.  
  1222.  
  1223. 3.11.  connect <iface> <callsign> [<digipeater> ... ]
  1224.  
  1225.  
  1226.  
  1227. Initiate a "vanilla" AX.25 session to  the  specified  call  sign
  1228.  
  1229. using the specified interface. Data sent on this session goes out
  1230.  
  1231. in conventional AX.25 packets with no upper layer protocol.   The
  1232.  
  1233. de-facto  presentation  standard  format  is  used,  in that each
  1234.  
  1235. packet holds one line of text, terminated by a  carriage  return.
  1236.  
  1237. A  single  AX.25 connection may be used for terminal-to-terminal,
  1238.  
  1239. IP and NET/ROM traffic. The three types of data are automatically
  1240.  
  1241. separated by their AX.25 Level 3 Protocol IDs.
  1242.  
  1243.  
  1244.  
  1245. Up to 7 optional digipeaters may be given; note that the word via
  1246.  
  1247. is  NOT  needed. If digipeaters are specified, they are automati-
  1248.  
  1249. cally added to the AX25 routing table as though  the  ax25  route
  1250.  
  1251. add command had been given before issuing the connect command.
  1252.  
  1253.  
  1254.  
  1255. 3.12.  delete <filename>
  1256.  
  1257.  
  1258.  
  1259. Delete a filename in the current working directory.
  1260.  
  1261.  
  1262.  
  1263. 3.13.  detach <iface>
  1264.  
  1265.  
  1266.  
  1267. Detach a previously attached interface from the  system.  All  IP
  1268.  
  1269. routing  table  entries  referring to this interface are deleted,
  1270.  
  1271. and forwarding references by any other interface to  this  inter-
  1272.  
  1273. face are removed.
  1274.  
  1275.  
  1276.  
  1277. 3.14.  dialer <iface> <seconds> <hostid> <pings> <dialer-file>
  1278.  
  1279.  
  1280.  
  1281. Setup an autodialer  session  for  the  interface.  Whenever  the
  1282.  
  1283. interface  is  idle for the interval in <seconds>, the autodialer
  1284.  
  1285. will ping the <hostid>. If  there  is  no  answer  after  <pings>
  1286.  
  1287. attempts,  the  autodialer will execute the special commands con-
  1288.  
  1289. tained in the <dialer-file>.
  1290.  
  1291.  
  1292.  
  1293. If the interval in <seconds> is zero, a previous  dialer  command
  1294.  
  1295. process  will  be  removed. If the number of <pings> is zero, the
  1296.  
  1297. <dialer-file> will be executed without pinging the <hostid>.
  1298.  
  1299.  
  1300.  
  1301. The file may have any valid name, and must be located in the con-
  1302.  
  1303. figuration  directory  (see the Installion section). The commands
  1304.  
  1305. in the file are described in the Dialer Subcommands chapter.
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315. updated by Bill Simpson April 15, 1991 March 3, 1991
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.                            - 11 -
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333. 3.15.  dir [<dirname>]
  1334.  
  1335.  
  1336.  
  1337. List the contents of the specified directory on the  console.  If
  1338.  
  1339. no  argument is given, the current directory is listed. Note that
  1340.  
  1341. this command works by first listing the  directory  into  a  tem-
  1342.  
  1343. porary  file,  and  then  creating  a more session to display it.
  1344.  
  1345. After this completes, the temporary file is deleted.
  1346.  
  1347.  
  1348.  
  1349. 3.16.  disconnect [<session #>]
  1350.  
  1351.  
  1352.  
  1353. An alias for the close command (for the benefit of AX.25 users).
  1354.  
  1355.  
  1356.  
  1357. 3.17.  domain ...
  1358.  
  1359.  
  1360.  
  1361. These commands are used for access to the Domain Name Service.
  1362.  
  1363.  
  1364.  
  1365. 3.17.1.  domain addserver <hostid>
  1366.  
  1367.  
  1368.  
  1369. Add one or more  domain  name  server(s)  to  the  list  of  name
  1370.  
  1371. servers.
  1372.  
  1373.  
  1374.  
  1375. 3.17.2.  domain dropserver <hostid>
  1376.  
  1377.  
  1378.  
  1379. Remove one or more domain name server(s) from the  list  of  name
  1380.  
  1381. servers.
  1382.  
  1383.  
  1384.  
  1385. 3.17.3.  domain listservers
  1386.  
  1387.  
  1388.  
  1389. List the currently configured domain  name  servers,  along  with
  1390.  
  1391. statistics  on  how  many queries and replies have been exchanged
  1392.  
  1393. with each one, response times, etc.
  1394.  
  1395.  
  1396.  
  1397. 3.17.4.  domain query <hostid>
  1398.  
  1399.  
  1400.  
  1401. Send a query to a domain server asking for all  resource  records
  1402.  
  1403. associated with this <hostid>, and list the records.
  1404.  
  1405.  
  1406.  
  1407. 3.17.5.  domain retry [<count>]
  1408.  
  1409.  
  1410.  
  1411. Display or set the number of attempts to reach each server on the
  1412.  
  1413. list  during one call to the resolver. If this count is exceeded,
  1414.  
  1415. a failure indication is returned. If set  to  0,  the  list  will
  1416.  
  1417. cycle  forever;  this may be useful for unattended operation. The
  1418.  
  1419. default is 3.
  1420.  
  1421.  
  1422.  
  1423. 3.17.6.  domain suffix [<domain suffix>]
  1424.  
  1425.  
  1426.  
  1427. Display or specify the default domain name suffix to be  appended
  1428.  
  1429. to  a  host name when it contains no periods. For example, if the
  1430.  
  1431. suffix is set to ampr.org and the user enters  telnet  ka9q,  the
  1432.  
  1433. domain  resolver  will attempt to find ka9q.ampr.org. If the host
  1434.  
  1435. name being sought contains one  or  more  periods,  however,  the
  1436.  
  1437. default  suffix  is  NOT applied (eg. telnet foo.bar would NOT be
  1438.  
  1439. turned into foo.bar.ampr.org).
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447. updated by Bill Simpson April 15, 1991 March 3, 1991
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.                            - 12 -
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465. 3.17.7.  domain trace [on | off]
  1466.  
  1467.  
  1468.  
  1469. Display or set the flag controlling the tracing of domain  server
  1470.  
  1471. requests  and  responses.  Trace  messages will be seen only if a
  1472.  
  1473. domain name being sought is not found in the  local  cache  file,
  1474.  
  1475. domain.txt.
  1476.  
  1477.  
  1478.  
  1479. 3.17.8.  domain cache ...
  1480.  
  1481.  
  1482.  
  1483. These commands are used for the use of the resource  record  file
  1484.  
  1485. domain.txt, and the local memory cache.
  1486.  
  1487.  
  1488.  
  1489. 3.17.8.1.  domain cache clean [on | off]
  1490.  
  1491.  
  1492.  
  1493. Display or set the  flag  controlling  the  removal  of  resource
  1494.  
  1495. records  from  the domain.txt file whose time-to-live has reached
  1496.  
  1497. zero.
  1498.  
  1499.  
  1500.  
  1501. When  clean  is  off  (the  default),  expired  records  will  be
  1502.  
  1503. retained;  if  no replacement can be obtained from another domain
  1504.  
  1505. name server, these records will continue to be used.
  1506.  
  1507.  
  1508.  
  1509. When clean is on, expired records will be removed from  the  file
  1510.  
  1511. whenever any new record is added to the file.
  1512.  
  1513.  
  1514.  
  1515. 3.17.8.2.  domain cache list
  1516.  
  1517.  
  1518.  
  1519. List the current contents of the local memory cache.
  1520.  
  1521.  
  1522.  
  1523. 3.17.8.3.  domain cache size [<count>]
  1524.  
  1525.  
  1526.  
  1527. Display or set the nominal  maximum  size  of  the  local  memory
  1528.  
  1529. cache. The default is 20.
  1530.  
  1531.  
  1532.  
  1533. (Note: The cache may be temporarily larger when waiting  for  new
  1534.  
  1535. records to be written to the domain.txt file.)
  1536.  
  1537.  
  1538.  
  1539. 3.17.8.4.  domain cache wait [<seconds>]
  1540.  
  1541.  
  1542.  
  1543. Display or set the interval in seconds  to  wait  for  additional
  1544.  
  1545. activity before updating the domain.txt file.  The default is 300
  1546.  
  1547. seconds (5 minutes).
  1548.  
  1549.  
  1550.  
  1551. 3.18.  echo [accept | refuse]
  1552.  
  1553.  
  1554.  
  1555. Display or set the flag controlling client Telnet's response to a
  1556.  
  1557. remote WILL ECHO offer.
  1558.  
  1559.  
  1560.  
  1561. The Telnet presentation protocol specifies that in the absence of
  1562.  
  1563. a  negotiated  agreement to the contrary, neither end echoes data
  1564.  
  1565. received from the other. In this mode, a  Telnet  client  session
  1566.  
  1567. echoes  keyboard input locally and nothing is actually sent until
  1568.  
  1569. a carriage return is typed. Local line editing is also performed:
  1570.  
  1571. backspace  deletes  the  last  character  typed,  while control-U
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579. updated by Bill Simpson April 15, 1991 March 3, 1991
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.                            - 13 -
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597. deletes the entire line.
  1598.  
  1599.  
  1600.  
  1601. When communicating from keyboard to keyboard the  standard  local
  1602.  
  1603. echo  mode  is  used,  so  the  setting  of this parameter has no
  1604.  
  1605. effect. However, many timesharing systems (eg. UNIX) prefer to do
  1606.  
  1607. their own echoing of typed input. (This makes screen editors work
  1608.  
  1609. right, among other things). Such systems send a Telnet WILL  ECHO
  1610.  
  1611. offer  immediately  upon  receiving an incoming Telnet connection
  1612.  
  1613. request. If echo accept is in effect,  a  client  Telnet  session
  1614.  
  1615. will automatically return a DO ECHO response. In this mode, local
  1616.  
  1617. echoing and editing is turned off and each  key  stroke  is  sent
  1618.  
  1619. immediately  (subject  to  the  Nagle tinygram algorithm in TCP).
  1620.  
  1621. While this mode is just fine across an Ethernet,  it  is  clearly
  1622.  
  1623. inefficient and painful across slow paths like packet radio chan-
  1624.  
  1625. nels. Specifying echo refuse causes an incoming WILL  ECHO  offer
  1626.  
  1627. to  be  answered  with  a  DONT  ECHO;  the client Telnet session
  1628.  
  1629. remains in the local echo mode.  Sessions already in  the  remote
  1630.  
  1631. echo  mode are unaffected. (Note: Berkeley Unix has a bug in that
  1632.  
  1633. it will still echo input even after the client  has  refused  the
  1634.  
  1635. WILL ECHO offer. To get around this problem, enter the stty -echo
  1636.  
  1637. command to the shell once you have logged in.)
  1638.  
  1639.  
  1640.  
  1641. 3.19.  eol [unix | standard]
  1642.  
  1643.  
  1644.  
  1645. Display or set Telnet's end-of-line behavior when in remote  echo
  1646.  
  1647. mode.  In  standard  mode,  each key is sent as-is. In unix mode,
  1648.  
  1649. carriage returns are translated to line feeds.  This  command  is
  1650.  
  1651. not  necessary  with  all UNIX systems; use it only when you find
  1652.  
  1653. that a particular system responds to line feeds but not  carriage
  1654.  
  1655. returns.   Only SunOS release 3.2 seems to exhibit this behavior;
  1656.  
  1657. later releases are fixed.
  1658.  
  1659.  
  1660.  
  1661. 3.20.  escape [<char>]
  1662.  
  1663.  
  1664.  
  1665. Display or set the current command-mode escape character in  hex.
  1666.  
  1667. (This  command  is  not  provided  on  the IBM-PC; on the PC, the
  1668.  
  1669. escape char is always F10.)
  1670.  
  1671.  
  1672.  
  1673. 3.21.  etherstat
  1674.  
  1675.  
  1676.  
  1677. Display 3-Com Ethernet controller statistics (if configured).
  1678.  
  1679.  
  1680.  
  1681. 3.22.  exit
  1682.  
  1683.  
  1684.  
  1685. Exit the net.exe program and return to MS-DOS.
  1686.  
  1687.  
  1688.  
  1689. 3.23.  finger <user@hostid> [<user@hostid> ...]
  1690.  
  1691.  
  1692.  
  1693. Issue a network finger request for user user at host hostid. This
  1694.  
  1695. creates  a  client  session  which  may  be interrupted, resumed,
  1696.  
  1697. reset, etc, just like a Telnet client session.
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711. updated by Bill Simpson April 15, 1991 March 3, 1991
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.                            - 14 -
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729. 3.24.  ftp <hostid>
  1730.  
  1731.  
  1732.  
  1733. Open an FTP control channel to  the  specified  remote  host  and
  1734.  
  1735. enter  converse  mode  on  the  new  session.  Responses from the
  1736.  
  1737. remote server are displayed directly on the screen. See  the  FTP
  1738.  
  1739. Subcommands chapter for descriptions of the commands available in
  1740.  
  1741. a FTP session.
  1742.  
  1743.  
  1744.  
  1745. 3.25.  help
  1746.  
  1747.  
  1748.  
  1749. Display a brief summary of top-level commands.
  1750.  
  1751.  
  1752.  
  1753. 3.26.  hop ...
  1754.  
  1755.  
  1756.  
  1757. These commands are used to test the connectivity of the network.
  1758.  
  1759.  
  1760.  
  1761. 3.26.1.  hop check <hostid>
  1762.  
  1763.  
  1764.  
  1765. Initiate a hopcheck session to the specified host.  This  uses  a
  1766.  
  1767. series  of  UDP  "probe" packets with increasing IP TTL fields to
  1768.  
  1769. determine the sequence of gateways in the path to  the  specified
  1770.  
  1771. destination. This function is patterned after the UNIX traceroute
  1772.  
  1773. facility.
  1774.  
  1775.  
  1776.  
  1777. ICMP message tracing should be turned off before this command  is
  1778.  
  1779. executed (see the icmp trace command).
  1780.  
  1781.  
  1782.  
  1783. 3.26.2.  hop maxttl [<hops>]
  1784.  
  1785.  
  1786.  
  1787. Display or set the maximum TTL value to be used in hop check ses-
  1788.  
  1789. sions. This effectively bounds the radius of the search.
  1790.  
  1791.  
  1792.  
  1793. 3.26.3.  hop maxwait [<seconds>]
  1794.  
  1795.  
  1796.  
  1797. Display or set the maximum interval that a hopcheck session  will
  1798.  
  1799. wait  for  responses at each stage of the trace. The default is 5
  1800.  
  1801. seconds.
  1802.  
  1803.  
  1804.  
  1805. 3.26.4.  hop queries [<count>]
  1806.  
  1807.  
  1808.  
  1809. Display or set the number of UDP probes that will be sent at each
  1810.  
  1811. stage of the trace. The default is 3.
  1812.  
  1813.  
  1814.  
  1815. 3.26.5.  hop trace [on | off]
  1816.  
  1817.  
  1818.  
  1819. Display or set the flag that controls the display  of  additional
  1820.  
  1821. information during a hop check session.
  1822.  
  1823.  
  1824.  
  1825. 3.27.  hostname [<name>]
  1826.  
  1827.  
  1828.  
  1829. Display or set the local host's name. By convention  this  should
  1830.  
  1831. be  the  same  as  the host's primary domain name. This string is
  1832.  
  1833. used only  in  the  greeting  messages  of  the  various  network
  1834.  
  1835. servers; note that it does NOT set the system's IP address.
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843. updated by Bill Simpson April 15, 1991 March 3, 1991
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.                            - 15 -
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861. If <name> is the same as an  <iface>  (see  the  Attach  commands
  1862.  
  1863. chapter),  this  command  will search for a CNAME domain resource
  1864.  
  1865. record which corresponds to the IP address of the <iface>.
  1866.  
  1867.  
  1868.  
  1869. 3.28.  hs
  1870.  
  1871.  
  1872.  
  1873. Display statistics about the HS high speed HDLC driver  (if  con-
  1874.  
  1875. figured and active).
  1876.  
  1877.  
  1878.  
  1879. 3.29.  icmp ...
  1880.  
  1881.  
  1882.  
  1883. These commands are used for the Internet Control Message Protocol
  1884.  
  1885. service.
  1886.  
  1887.  
  1888.  
  1889. 3.29.1.  icmp echo [on | off]
  1890.  
  1891.  
  1892.  
  1893. Display or set the flag controlling the asynchronous  display  of
  1894.  
  1895. ICMP  Echo Reply packets. This flag must be on for one-shot pings
  1896.  
  1897. to work (see the ping command.)
  1898.  
  1899.  
  1900.  
  1901. 3.29.2.  icmp status
  1902.  
  1903.  
  1904.  
  1905. Display statistics about the Internet  Control  Message  Protocol
  1906.  
  1907. (ICMP),  including  the number of ICMP messages of each type sent
  1908.  
  1909. or received.
  1910.  
  1911.  
  1912.  
  1913. 3.29.3.  icmp trace [on | off]
  1914.  
  1915.  
  1916.  
  1917. Display or set the flag controlling the  display  of  ICMP  error
  1918.  
  1919. messages.  These informational messages are generated by Internet
  1920.  
  1921. routers in response to routing, protocol or congestion  problems.
  1922.  
  1923. This  option  should  be  turned  off  before using the hop check
  1924.  
  1925. facility because it relies on ICMP Time  Exceeded  messages,  and
  1926.  
  1927. the  asynchronous  display of these messages will be mingled with
  1928.  
  1929. hop check command output.
  1930.  
  1931.  
  1932.  
  1933. 3.30.  ifconfig
  1934.  
  1935.  
  1936.  
  1937. Display a list of interfaces, with a short status for each.
  1938.  
  1939.  
  1940.  
  1941. 3.30.1.  ifconfig <iface>
  1942.  
  1943.  
  1944.  
  1945. Display an extended status of the interface.
  1946.  
  1947.  
  1948.  
  1949. 3.30.2.  ifconfig <iface> broadcast <address>
  1950.  
  1951.  
  1952.  
  1953. Set the broadcast address for the interface. The <address>  takes
  1954.  
  1955. the  form  of  an  IP  address  with  1's in the host part of the
  1956.  
  1957. address. This is related to the netmask sub-command. See also the
  1958.  
  1959. arp command.
  1960.  
  1961.  
  1962.  
  1963. 3.30.3.  ifconfig <iface> encapsulation <name>
  1964.  
  1965.  
  1966.  
  1967. Not fully implemented.
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975. updated by Bill Simpson April 15, 1991 March 3, 1991
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.                            - 16 -
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993. 3.30.4.  ifconfig <iface> forward <forward-iface>
  1994.  
  1995.  
  1996.  
  1997. Set a forwarding interface for multiple  channel  interfaces.  To
  1998.  
  1999. remove the forward, set <forward-iface> to <iface>.
  2000.  
  2001.  
  2002.  
  2003. 3.30.5.  ifconfig <iface> ipaddress <hostid>
  2004.  
  2005.  
  2006.  
  2007. Set the IP address for this interface. It  is  standard  Internet
  2008.  
  2009. practice  that each interface has its own address. For hosts with
  2010.  
  2011. only one interface, the interface address is usually the same  as
  2012.  
  2013. the host address. See also the hostname and ip address commands.
  2014.  
  2015.  
  2016.  
  2017. 3.30.6.  ifconfig <iface> linkaddress <hardware-dependant>
  2018.  
  2019.  
  2020.  
  2021. Set the hardware dependant address for this interface.
  2022.  
  2023.  
  2024.  
  2025. 3.30.7.  ifconfig <iface> mtu <mtu>
  2026.  
  2027.  
  2028.  
  2029. Set the MTU for this interface. See the Setting ... MTU, MSS  and
  2030.  
  2031. Window chapter for more information.
  2032.  
  2033.  
  2034.  
  2035. 3.30.8.  ifconfig <iface> netmask <address>
  2036.  
  2037.  
  2038.  
  2039. Set the sub-net mask for this interface. The <address> takes  the
  2040.  
  2041. form of an IP address with 1's in the network and subnet parts of
  2042.  
  2043. the address, and 0's in the host part of  the  address.  This  is
  2044.  
  2045. related to the broadcast sub-command. See also the route command.
  2046.  
  2047.  
  2048.  
  2049. 3.30.9.  ifconfig <iface> rxbuf <?>
  2050.  
  2051.  
  2052.  
  2053. Not yet implemented.
  2054.  
  2055.  
  2056.  
  2057. 3.31.  ip ...
  2058.  
  2059.  
  2060.  
  2061. These commands are used for the Internet Protocol service.
  2062.  
  2063.  
  2064.  
  2065. 3.31.1.  ip address [<hostid>]
  2066.  
  2067.  
  2068.  
  2069. Display or set the default local IP address. This command must be
  2070.  
  2071. given before an attach command if it is to be used as the default
  2072.  
  2073. IP address for the interface.
  2074.  
  2075.  
  2076.  
  2077. 3.31.2.  ip rtimer [<seconds>]
  2078.  
  2079.  
  2080.  
  2081. Display or set the IP  reassembly  timeout.  The  default  is  30
  2082.  
  2083. seconds.
  2084.  
  2085.  
  2086.  
  2087. 3.31.3.  ip status
  2088.  
  2089.  
  2090.  
  2091. Display Internet Protocol (IP) statistics, such as  total  packet
  2092.  
  2093. counts and error counters of various types.
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107. updated by Bill Simpson April 15, 1991 March 3, 1991
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.                            - 17 -
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125. 3.31.4.  ip ttl [<hops>]
  2126.  
  2127.  
  2128.  
  2129. Display or set the time-to-live value placed in each outgoing  IP
  2130.  
  2131. datagram. This limits the number of switch hops the datagram will
  2132.  
  2133. be allowed to take. The idea is to  bound  the  lifetime  of  the
  2134.  
  2135. packet  should  it  become  caught in a routing loop, so make the
  2136.  
  2137. value slightly larger than the number of hops across the  network
  2138.  
  2139. you  expect to transit packets. The default is set at compilation
  2140.  
  2141. time to the official recommended value for the Internet.
  2142.  
  2143.  
  2144.  
  2145. 3.32.  isat [on | off]
  2146.  
  2147.  
  2148.  
  2149. Display or set the AT flag. Currently, there is no sure-fire  way
  2150.  
  2151. to  determine  the  type of clock-chip being used.  If an AT type
  2152.  
  2153. clock is in use, this command will allow measurement of  time  in
  2154.  
  2155. milliseconds,  rather than clock ticks (55 milliseconds per clock
  2156.  
  2157. tick).
  2158.  
  2159.  
  2160.  
  2161. 3.32.1.  kick [<session>]
  2162.  
  2163.  
  2164.  
  2165. Kick all sockets associated with a session;  if  no  argument  is
  2166.  
  2167. given,  kick  the  current session. Performs the same function as
  2168.  
  2169. the ax25 kick and tcp kick commands, but is easier to type.
  2170.  
  2171.  
  2172.  
  2173. 3.33.  log [stop | <filename>]
  2174.  
  2175.  
  2176.  
  2177. Display or set the filename for logging server sessions. If  stop
  2178.  
  2179. is  given  as  the  argument,  logging is terminated (the servers
  2180.  
  2181. themselves are unaffected). If a file name is given as  an  argu-
  2182.  
  2183. ment, server session log entries will be appended to it.
  2184.  
  2185.  
  2186.  
  2187. 3.34.  mbox
  2188.  
  2189.  
  2190.  
  2191. Display the status of the mailbox server system (if configured).
  2192.  
  2193.  
  2194.  
  2195. 3.35.  memory ...
  2196.  
  2197.  
  2198.  
  2199. These commands are used for memory allocation.
  2200.  
  2201.  
  2202.  
  2203. 3.35.1.  memory free
  2204.  
  2205.  
  2206.  
  2207. Display the storage allocator free list. Each entry consists of a
  2208.  
  2209. starting address, in hex, and a size, in decimal bytes.
  2210.  
  2211.  
  2212.  
  2213. 3.35.2.  memory sizes
  2214.  
  2215.  
  2216.  
  2217. Display a histogram of storage allocator request sizes. Each his-
  2218.  
  2219. togram bin is a binary order of magnitude (i.e., a factor of 2).
  2220.  
  2221.  
  2222.  
  2223. 3.35.3.  memory status
  2224.  
  2225.  
  2226.  
  2227. Display a summary of storage allocator statistics. The first line
  2228.  
  2229. shows the base address of the heap, its total size, the amount of
  2230.  
  2231. heap memory available in bytes and as a percentage of  the  total
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239. updated by Bill Simpson April 15, 1991 March 3, 1991
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.                            - 18 -
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257. heap  size,  and the amount of memory left over (i.e., not placed
  2258.  
  2259. on the heap at startup) and therefore available for shell subcom-
  2260.  
  2261. mands.
  2262.  
  2263.  
  2264.  
  2265. The second line shows the total number of calls to  allocate  and
  2266.  
  2267. free  blocks of memory, the difference of these two values (i.e.,
  2268.  
  2269. the number of allocated blocks outstanding), the number of  allo-
  2270.  
  2271. cation  requests  that were denied due to lack of memory, and the
  2272.  
  2273. number of calls to free() that attempted to free garbage (eg.  by
  2274.  
  2275. freeing the same block twice or freeing a garbled pointer).
  2276.  
  2277.  
  2278.  
  2279. The third line shows the number of calls to malloc and free  that
  2280.  
  2281. occurred  with  interrupts off. In normal situations these values
  2282.  
  2283. should be zero. The fourth line shows statistics for the  special
  2284.  
  2285. pool of fixed-size buffers used to satisfy requests for memory at
  2286.  
  2287. interrupt time. The variables shown are  the  number  of  buffers
  2288.  
  2289. currently  in  the  pool,  their size, and the number of requests
  2290.  
  2291. that failed due to exhaustion of the pool.
  2292.  
  2293.  
  2294.  
  2295. 3.36.  mkdir <dirname>
  2296.  
  2297.  
  2298.  
  2299. Create a sub-directory in the current working directory.
  2300.  
  2301.  
  2302.  
  2303. 3.37.  mode <iface> [vc | datagram]
  2304.  
  2305.  
  2306.  
  2307. Control the default transmission  mode  on  the  specified  AX.25
  2308.  
  2309. interface. In datagram mode, IP packets are encapsulated in AX.25
  2310.  
  2311. UI frames and transmitted without any other  link  level  mechan-
  2312.  
  2313. isms, such as connections or acknowledgements.
  2314.  
  2315.  
  2316.  
  2317. In vc (virtual circuit) mode,  IP  packets  are  encapsulated  in
  2318.  
  2319. AX.25  I  frames and are acknowledged at the link level according
  2320.  
  2321. to the AX.25 protocol.  Link  level  connections  are  opened  if
  2322.  
  2323. necessary.
  2324.  
  2325.  
  2326.  
  2327. In both modes, ARP is used to map IP  to  AX.25  addresses.   The
  2328.  
  2329. defaults can be overridden with the type-of-service (TOS) bits in
  2330.  
  2331. the IP header. Turning on the "reliability" bit causes  I  frames
  2332.  
  2333. to  be used, while turning on the "low delay" bit uses UI frames.
  2334.  
  2335. (The effect of turning on both bits is undefined and  subject  to
  2336.  
  2337. change).
  2338.  
  2339.  
  2340.  
  2341. In both modes, IP-level fragmentation is done if the datagram  is
  2342.  
  2343. larger  than  the  interface  MTU.  In virtual circuit mode, how-
  2344.  
  2345. ever, the resulting datagram (or fragments) is further fragmented
  2346.  
  2347. at  the  AX.25  layer  if  it (or they) are still larger than the
  2348.  
  2349. AX.25 paclen parameter. In  AX.25  fragmentation,  datagrams  are
  2350.  
  2351. broken into several I frames and reassembled at the receiving end
  2352.  
  2353. before being passed to IP. This is preferable to IP fragmentation
  2354.  
  2355. whenever  possible  because  of decreased overhead (the IP header
  2356.  
  2357. isn't repeated in each fragment) and increased robustness (a lost
  2358.  
  2359. fragment is immediately retransmitted by the link layer).
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371. updated by Bill Simpson April 15, 1991 March 3, 1991
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.                            - 19 -
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389. 3.38.  more <file> [<file> ...]
  2390.  
  2391.  
  2392.  
  2393. Display the specified file(s) a screen at a time. To  proceed  to
  2394.  
  2395. the  next screen, press the space bar; to cancel the display, hit
  2396.  
  2397. the 'q' key. The more command creates  a  session  that  you  can
  2398.  
  2399. suspend and resume just like any other session.
  2400.  
  2401.  
  2402.  
  2403. 3.39.  param <iface> [<param> ...]
  2404.  
  2405.  
  2406.  
  2407. Invoke a device-specific control routine.  On a KISS  TNC  inter-
  2408.  
  2409. face,  this  sends  control  packets  to the TNC.  Data bytes are
  2410.  
  2411. treated as decimal.  For example, param ax0 1 255  will  set  the
  2412.  
  2413. keyup timer (type field = 1) on the KISS TNC configured as ax0 to
  2414.  
  2415. 2.55 seconds (255 x .01 sec).  On a  SLIP  interface,  the  param
  2416.  
  2417. command  allows  the  baud rate to be read (without arguments) or
  2418.  
  2419. set.  The implementation of this command for the  various  inter-
  2420.  
  2421. face drivers is incomplete and subject to change.
  2422.  
  2423.  
  2424.  
  2425. 3.40.  ping <hostid> [<length> [<seconds> [<incflag>]]]
  2426.  
  2427.  
  2428.  
  2429. Ping (send ICMP Echo Request packets to) the specified  host.  By
  2430.  
  2431. default  the data field contains only a small timestamp to aid in
  2432.  
  2433. determining round trip time; if the optional length  argument  is
  2434.  
  2435. given,  the  appropriate  number of data bytes (consisting of hex
  2436.  
  2437. 55) are added to the ping packets.
  2438.  
  2439.  
  2440.  
  2441. If interval is specified, pings will be repeated indefinitely  at
  2442.  
  2443. the  specified  number of seconds; otherwise a single, "one shot"
  2444.  
  2445. ping is done. Responses to one-shot pings  appear  asynchronously
  2446.  
  2447. on the command screen, while repeated pings create a session that
  2448.  
  2449. may be suspended and resumed. Pinging continues until the session
  2450.  
  2451. is manually reset.
  2452.  
  2453.  
  2454.  
  2455. The incflag option causes a repeated ping to increment the target
  2456.  
  2457. IP  address  for  each  ping;  it  is an experimental feature for
  2458.  
  2459. searching blocks of IP addresses for active hosts.
  2460.  
  2461.  
  2462.  
  2463. 3.41.  ppp ...
  2464.  
  2465.  
  2466.  
  2467. These commands are used for Point to Point Protocol interfaces.
  2468.  
  2469.  
  2470.  
  2471. This implementation of PPP is designed to be as complete as  pos-
  2472.  
  2473. sible.  Because  of  this,  the  number  of options can be rather
  2474.  
  2475. daunting. However, a typical PPP configuration might include  the
  2476.  
  2477. following commands:
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503. updated by Bill Simpson April 15, 1991 March 3, 1991
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.                            - 20 -
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.         attach asy 0x3f8 4 ppp pp0 4096 1500 9600
  2524.  
  2525.         dial pp0 30 <hostid> 3 dialer.pp0
  2526.  
  2527.         #
  2528.  
  2529.         ppp pp0 lcp local accm 0
  2530.  
  2531.         ppp pp0 lcp local compress address on
  2532.  
  2533.         ppp pp0 lcp local compress protocol on
  2534.  
  2535.         ppp pp0 lcp local magic on
  2536.  
  2537.         ppp pp0 lcp open active
  2538.  
  2539.         #
  2540.  
  2541.         ppp pp0 ipcp local compress tcp 16 1
  2542.  
  2543.         ppp pp0 ipcp open active
  2544.  
  2545.         #
  2546.  
  2547.         route add default pp0
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553. 3.41.1.  ppp <iface>
  2554.  
  2555.  
  2556.  
  2557. Display the status of the PPP interface.
  2558.  
  2559.  
  2560.  
  2561. 3.41.2.  ppp <iface> lcp ...
  2562.  
  2563.  
  2564.  
  2565. These commands are used for the LCP [Link Control Protocol]  con-
  2566.  
  2567. figuration.
  2568.  
  2569.  
  2570.  
  2571. 3.41.2.1.  ppp <iface> lcp close
  2572.  
  2573.  
  2574.  
  2575. Shutdown the PPP interface.
  2576.  
  2577.  
  2578.  
  2579. 3.41.2.2.  ppp <iface> lcp local ...
  2580.  
  2581.  
  2582.  
  2583. These commands control the configuration of the local side of the
  2584.  
  2585. link.  If  an option is specified, the parameters will be used as
  2586.  
  2587. the initial values in configuration requests. If  not  specified,
  2588.  
  2589. that option will not be requested.
  2590.  
  2591.  
  2592.  
  2593. For each of these options, the allow parameter  will  permit  the
  2594.  
  2595. remote  to  include  that  option  in its response, even when the
  2596.  
  2597. option is not included in the request. By  default,  all  options
  2598.  
  2599. are allowed.
  2600.  
  2601.  
  2602.  
  2603. 3.41.2.2.1.  ppp <iface> lcp local accm [ <bitmap> | allow [on  |
  2604.  
  2605. off] ]
  2606.  
  2607.  
  2608.  
  2609. Display or set the Async Control Character Map.  The  default  is
  2610.  
  2611. 0xffffffff.
  2612.  
  2613.  
  2614.  
  2615. 3.41.2.2.2.  ppp <iface> lcp local authenticate [ pap  |  none  |
  2616.  
  2617. allow [on | off] ]
  2618.  
  2619.  
  2620.  
  2621. Display or set the authentication protocol. The default is none.
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635. updated by Bill Simpson April 15, 1991 March 3, 1991
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.                            - 21 -
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653. 3.41.2.2.3.  ppp <iface> lcp local cfor hardware interrupt events will turn off this  flag;  this  is
  2654.  
  2655. done to avoid critical sections and missed interrupts. The W flag
  2656.  
  2657. indicates that the process is waiting for  an  event;  the  event
  2658.  
  2659. column will be non-blank. Note that although there may be several
  2660.  
  2661. runnable processes at any time (shown in the ps listing as  those
  2662.  
  2663. without  the W flag and with blank event fields) only one process
  2664.  
  2665. is actually running at any one instant  (The  Refrigerator  Light
  2666.  
  2667. Effect  says  that  the ps command is always the one running when
  2668.  
  2669. this display is generated.)
  2670.  
  2671.  
  2672.  
  2673. 3.43.  pwd [<dirname>]
  2674.  
  2675.  
  2676.  
  2677. An alias for the cd command.
  2678.  
  2679.  
  2680.  
  2681. 3.44.  record [off | <filename>]
  2682.  
  2683.  
  2684.  
  2685. Append to filename all data  received  on  the  current  session.
  2686.  
  2687. Data  sent  on  the current session is also written into the file
  2688.  
  2689. except for Telnet sessions in  remote  echo  mode.   The  command
  2690.  
  2691. record off stops recording and closes the file.
  2692.  
  2693.  
  2694.  
  2695. 3.45.  remote [-p <port>] [-k  <key>]  [-a  <kickaddr>]  <hostid>
  2696.  
  2697. exit | reset | kick
  2698.  
  2699.  
  2700.  
  2701. Send a UDP packet to the specified host commanding it to exit the
  2702.  
  2703. net.exe  program,  reset the processor, or force a retransmission
  2704.  
  2705. on TCP connections.  For this command to be accepted, the  remote
  2706.  
  2707. system  must  be  running  the  remote server and the port number
  2708.  
  2709. specified in the remote command must match the port number  given
  2710.  
  2711. when  the  server  was  started on the remote system. If the port
  2712.  
  2713. numbers do not match, or if the remote server is not  running  on
  2714.  
  2715. the  target  system,  the command packet is ignored.  Even if the
  2716.  
  2717. command is accepted there is no acknowledgement.
  2718.  
  2719.  
  2720.  
  2721. The kick command forces a retransmission timeout on all TCP  con-
  2722.  
  2723. nections  that  the  remote node may have with the local node. If
  2724.  
  2725. the -a option is used, connections  to  the  specified  host  are
  2726.  
  2727. kicked instead. No key is required for the kick subcommand.
  2728.  
  2729.  
  2730.  
  2731. The exit and reset subcommands are mainly useful  for  restarting
  2732.  
  2733. the  net.exe program on a remote unattended system after the con-
  2734.  
  2735. figuration file has  been  updated.   The  remote  system  should
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743. updated by Bill Simpson April 15, 1991 March 3, 1991
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.                            - 25 -
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761. invoke the net.exe program automatically upon booting, preferably
  2762.  
  2763. in an infinite loop.  For example, under  MS-DOS  the  boot  disk
  2764.  
  2765. should contain the following in autoexec.net:
  2766.  
  2767.  
  2768.  
  2769.         :loop
  2770.  
  2771.         net
  2772.  
  2773.         goto :loop
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781. 3.46.  remote -s <key>
  2782.  
  2783.  
  2784.  
  2785. The exit and reset subcommands of remote require a password.  The
  2786.  
  2787. password  is  set on a given system with the -s option, and it is
  2788.  
  2789. specified in a command to a remote system with the -k option.  If
  2790.  
  2791. no  password  is  set with the -s option, then the exit and reset
  2792.  
  2793. subcommands are disabled.
  2794.  
  2795.  
  2796.  
  2797. Note that remote is an experimental feature in NOS; it is not yet
  2798.  
  2799. supported by any other TCP/IP implementation.
  2800.  
  2801.  
  2802.  
  2803. 3.47.  rename <oldfilename> <newfilename>
  2804.  
  2805.  
  2806.  
  2807. Rename oldfilename to newfilename.
  2808.  
  2809.  
  2810.  
  2811. 3.48.  reset [<session>]
  2812.  
  2813.  
  2814.  
  2815. Reset the specified session; if no argument is given,  reset  the
  2816.  
  2817. current  session.  This command should be used with caution since
  2818.  
  2819. it does not reliably inform the remote end that the connection no
  2820.  
  2821. longer  exists.   (In TCP a reset (RST) message will be automati-
  2822.  
  2823. cally generated should the remote TCP send anything after a local
  2824.  
  2825. reset  has been done.  In AX.25 the DM message performs a similar
  2826.  
  2827. role.  Both are used to get rid of a lingering half-open  connec-
  2828.  
  2829. tion after a remote system has crashed.)
  2830.  
  2831.  
  2832.  
  2833. 3.49.  rip ...
  2834.  
  2835.  
  2836.  
  2837. These commands are used for the RIP service.
  2838.  
  2839.  
  2840.  
  2841. 3.49.1.  rip accept <gateway>
  2842.  
  2843.  
  2844.  
  2845. Remove the specified gateway from the RIP filter table,  allowing
  2846.  
  2847. future broadcasts from that gateway to be accepted.
  2848.  
  2849.  
  2850.  
  2851. 3.49.2.  rip add <hostid> <seconds> [<flags>]
  2852.  
  2853.  
  2854.  
  2855. Add an entry to the RIP broadcast table.  The  IP  routing  table
  2856.  
  2857. will be sent to hostid every interval seconds. If flags is speci-
  2858.  
  2859. fied as 1, then "split horizon" processing will be performed  for
  2860.  
  2861. this  destination. That is, any IP routing table entries pointing
  2862.  
  2863. to the interface that will be used to send this  update  will  be
  2864.  
  2865. removed  from  the  update.   If  split horizon processing is not
  2866.  
  2867. specified, then all routing table  entries  except  those  marked
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875. updated by Bill Simpson April 15, 1991 March 3, 1991
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.                            - 26 -
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893. "private" will be sent in each update. (Private entries are never
  2894.  
  2895. sent in RIP packets).
  2896.  
  2897.  
  2898.  
  2899. Triggered updates are always done. That is,  any  change  in  the
  2900.  
  2901. routing  table  that causes a previously reachable destination to
  2902.  
  2903. become unreachable will trigger an  update  that  advertises  the
  2904.  
  2905. destination with metric 15, defined to mean "infinity".
  2906.  
  2907.  
  2908.  
  2909. Note that for RIP packets to be  sent  properly  to  a  broadcast
  2910.  
  2911. address,  there  must  exist  correct  IP  routing  and ARP table
  2912.  
  2913. entries that will first steer the broadcast to the correct inter-
  2914.  
  2915. face  and  then place the correct link-level broadcast address in
  2916.  
  2917. the link-level destination field.  If  a  standard  IP  broadcast
  2918.  
  2919. address  convention  is  used  (eg. 128.96.0.0 or 128.96.255.255)
  2920.  
  2921. then chances are you already have the necessary IP routing  table
  2922.  
  2923. entry,  but  unusual  subnet  or  cluster-addressed  networks may
  2924.  
  2925. require special attention. However, an arp add  command  will  be
  2926.  
  2927. required  to translate this address to the appropriate link level
  2928.  
  2929. broadcast address.  For example,
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935. arp add 128.96.0.0 ethernet ff:ff:ff:ff:ff:ff
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941. for an Ethernet network, and
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947. arp add 44.255.255.255 ax25 qst-0
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953. for an AX25 packet radio channel.
  2954.  
  2955.  
  2956.  
  2957. 3.49.3.  rip drop <dest>
  2958.  
  2959.  
  2960.  
  2961. Remove an entry from the RIP broadcast table.
  2962.  
  2963.  
  2964.  
  2965. 3.49.4.  rip merge [on | off]
  2966.  
  2967.  
  2968.  
  2969. This flag controls  an  experimental  feature  for  consolidating
  2970.  
  2971. redundant  entries  in  the IP routing table. When rip merging is
  2972.  
  2973. enabled, the table is scanned after processing each  RIP  update.
  2974.  
  2975. An entry is considered redundant if the target(s) it covers would
  2976.  
  2977. be routed identically by a less "specific" entry already  in  the
  2978.  
  2979. table.  That is, the target address(es) specified by the entry in
  2980.  
  2981. question must  also  match  the  target  addresses  of  the  less
  2982.  
  2983. specific  entry  and the two entries must have the same interface
  2984.  
  2985. and gateway fields. For example, if the routing table contains
  2986.  
  2987.  
  2988.  
  2989.  
  2990.  
  2991. Dest            Len Interface    Gateway          Metric  P Timer  Use
  2992.  
  2993. 1.2.3.4         32  ethernet0    128.96.1.2       1       0 0      0
  2994.  
  2995. 1.2.3           24  ethernet0    128.96.1.2       1       0 0      0
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007. updated by Bill Simpson April 15, 1991 March 3, 1991
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.                            - 27 -
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025. then the first entry would be deleted as redundant since  packets
  3026.  
  3027. sent  to  1.2.3.4  will  still  be routed correctly by the second
  3028.  
  3029. entry. Note that the relative metrics of the entries are ignored.
  3030.  
  3031.  
  3032.  
  3033. 3.49.5.  rip refuse <gateway>
  3034.  
  3035.  
  3036.  
  3037. Refuse to accept RIP updates from the specified gateway by adding
  3038.  
  3039. the gateway to the RIP filter table. It may be later removed with
  3040.  
  3041. the rip accept command.
  3042.  
  3043.  
  3044.  
  3045. 3.49.6.  rip request <gateway>
  3046.  
  3047.  
  3048.  
  3049. Send a RIP Request packet to the specified gateway, causing it to
  3050.  
  3051. reply with a RIP Response packet containing its routing table.
  3052.  
  3053.  
  3054.  
  3055. 3.49.7.  rip status
  3056.  
  3057.  
  3058.  
  3059. Display RIP status, including a count of the  number  of  packets
  3060.  
  3061. sent  and  received,  the  number  of requests and responses, the
  3062.  
  3063. number of unknown RIP packet types, and the number of refused RIP
  3064.  
  3065. updates  from  hosts in the filter table. A list of the addresses
  3066.  
  3067. and intervals to which periodic RIP updates  are  being  sent  is
  3068.  
  3069. also shown, along with the contents of the filter table.
  3070.  
  3071.  
  3072.  
  3073. 3.49.8.  rip trace [0 | 1 | 2]
  3074.  
  3075.  
  3076.  
  3077. This variable controls the tracing of incoming and  outgoing  RIP
  3078.  
  3079. packets.  Setting  it to 0 disables all RIP tracing. A value of 1
  3080.  
  3081. causes changes in the routing table to be displayed, while  pack-
  3082.  
  3083. ets  that  cause no changes cause no output. Setting the variable
  3084.  
  3085. to 2 produces maximum output, including tracing  of  RIP  packets
  3086.  
  3087. that cause no change in the routing table.
  3088.  
  3089.  
  3090.  
  3091. 3.50.  rmdir <dirname>
  3092.  
  3093.  
  3094.  
  3095. Remove a sub-directory from the current working directory.
  3096.  
  3097.  
  3098.  
  3099. 3.51.  route
  3100.  
  3101.  
  3102.  
  3103. With no arguments, route displays the IP routing table.
  3104.  
  3105.  
  3106.  
  3107. 3.51.1.   route  add  <desthostid>[/bits]  |   default   <iface>
  3108.  
  3109. [<gatewayhostid> [<metric>]]
  3110.  
  3111.  
  3112.  
  3113. This command adds an entry to the routing table. It  requires  at
  3114.  
  3115. least  two  more  arguments, the hostid of the target destination
  3116.  
  3117. and the name of the interface to  which  its  packets  should  be
  3118.  
  3119. sent.   If  the  destination  is  not local, the gateway's hostid
  3120.  
  3121. should also be specified. (If the interface is  a  point-to-point
  3122.  
  3123. link,  then  gatewayhostid  may be omitted even if the target is
  3124.  
  3125. non-local because this  field  is  only  used  to  determine  the
  3126.  
  3127. gateway's  link  level  address,  if  any.  If the destination is
  3128.  
  3129. directly reachable, gatewayhostid is also unnecessary since  the
  3130.  
  3131. destination  address  is  used  to  determine  the interface link
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.  
  3139. updated by Bill Simpson April 15, 1991 March 3, 1991
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.                            - 28 -
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157. address).
  3158.  
  3159.  
  3160.  
  3161. The optional /bits suffix to the destination  host  id  specifies
  3162.  
  3163. how  many leading bits in the host id are to be considered signi-
  3164.  
  3165. ficant in the routing comparisons.  If  not  specified,  32  bits
  3166.  
  3167. (i.e., full significance) is assumed.  With this option, a single
  3168.  
  3169. routing table entry may refer to many hosts all sharing a  common
  3170.  
  3171. bit  string prefix in their IP addresses. For example, ARPA Class
  3172.  
  3173. A, B and C networks would use suffixes of /8, /16 and /24 respec-
  3174.  
  3175. tively; the command
  3176.  
  3177.  
  3178.  
  3179. route add 44/8 sl0 44.64.0.2
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185. causes any IP addresses beginning with "44" in the first  8  bits
  3186.  
  3187. to  be  routed  to  44.64.0.2;  the remaining 24 bits are "don't-
  3188.  
  3189. cares".
  3190.  
  3191.  
  3192.  
  3193. When an IP address to be routed matches more than  one  entry  in
  3194.  
  3195. the  routing  table, the entry with largest bits parameter (i.e.,
  3196.  
  3197. the "best" match) is used. This allows individual hosts or blocks
  3198.  
  3199. of  hosts  to  be  exceptions to a more general rule for a larger
  3200.  
  3201. block of hosts.
  3202.  
  3203.  
  3204.  
  3205. The special destination default is used  to  route  datagrams  to
  3206.  
  3207. addresses  not matched by any other entries in the routing table;
  3208.  
  3209. it is equivalent to specifying a /bits suffix of /0 to any desti-
  3210.  
  3211. nation hostid.  Care must be taken with default entries since two
  3212.  
  3213. nodes with default entries pointing  at  each  other  will  route
  3214.  
  3215. packets to unknown addresses back and forth in a loop until their
  3216.  
  3217. time-to-live (TTL) fields expire.  (Routing  loops  for  specific
  3218.  
  3219. addresses  can  also be created, but this is less likely to occur
  3220.  
  3221. accidentally).
  3222.  
  3223.  
  3224.  
  3225. Here are some examples of the route command:
  3226.  
  3227.  
  3228.  
  3229. # Route datagrams to IP address 44.0.0.3 to SLIP line #0.
  3230.  
  3231. # No gateway is needed because SLIP is point-to point.
  3232.  
  3233. route add 44.0.0.3 sl0
  3234.  
  3235.  
  3236.  
  3237. # Route all default traffic to the gateway on the local Ethernet
  3238.  
  3239. # with IP address 44.0.0.1
  3240.  
  3241. route add default ec0 44.0.0.1
  3242.  
  3243.  
  3244.  
  3245. # The local Ethernet has an ARPA Class-C address assignment;
  3246.  
  3247. # route all IP addresses beginning with 192.4.8 to it
  3248.  
  3249. route add 192.4.8/24 ec0
  3250.  
  3251.  
  3252.  
  3253. # The station with IP address 44.0.0.10 is on the local AX.25 channel
  3254.  
  3255. route add 44.0.0.10 ax0
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271. updated by Bill Simpson April 15, 1991 March 3, 1991
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.                            - 29 -
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289. 3.51.2.  route addprivate <dest hostid>[/bits] | default  <iface>
  3290.  
  3291. [<gateway hostid> [<metric>]]
  3292.  
  3293.  
  3294.  
  3295. This command is identical to route add except that it also  marks
  3296.  
  3297. the  new  entry as private; it will never be included in outgoing
  3298.  
  3299. RIP updates.
  3300.  
  3301.  
  3302.  
  3303. 3.51.3.  route drop <dest hostid>
  3304.  
  3305.  
  3306.  
  3307. route drop deletes an entry from the table. If a  packet  arrives
  3308.  
  3309. for the deleted address and a default route is in effect, it will
  3310.  
  3311. be used.
  3312.  
  3313.  
  3314.  
  3315. 3.52.  session [<session #>]
  3316.  
  3317.  
  3318.  
  3319. Without arguments, displays the list of current sessions, includ-
  3320.  
  3321. ing  session  number, remote TCP or AX.25 address and the address
  3322.  
  3323. of the TCP or AX.25 control block.  An asterisk (*) is shown next
  3324.  
  3325. to  the current session; entering a blank line at this point puts
  3326.  
  3327. you in converse mode  with  that  session.   Entering  a  session
  3328.  
  3329. number as an argument to the session command will put you in con-
  3330.  
  3331. verse mode with that session.  If the Telnet server  is  enabled,
  3332.  
  3333. the  user is notified of an incoming request and a session number
  3334.  
  3335. is automatically assigned.  The user may then select the  session
  3336.  
  3337. normally  to  converse with the remote user as though the session
  3338.  
  3339. had been locally initiated.
  3340.  
  3341.  
  3342.  
  3343. 3.53.  shell
  3344.  
  3345.  
  3346.  
  3347. Suspends net.exe and executes a  sub-shell  ("command  processor"
  3348.  
  3349. under  MS-DOS).  When the sub-shell exits, net.exe resumes (under
  3350.  
  3351. MS-DOS,  enter  the  exit  command).  Background  activity   (FTP
  3352.  
  3353. servers, etc) is also suspended while the subshell executes. Note
  3354.  
  3355. that this will fail unless there is sufficient unused memory  for
  3356.  
  3357. the sub-shell and whatever command the user tries to run.
  3358.  
  3359.  
  3360.  
  3361. 3.54.  smtp ...
  3362.  
  3363.  
  3364.  
  3365. These commands are used for the Simple Message Transport Protocol
  3366.  
  3367. service (that is, mail).
  3368.  
  3369.  
  3370.  
  3371. 3.54.1.  smtp gateway [<hostid>]
  3372.  
  3373.  
  3374.  
  3375. Displays or sets the host to be used as a "smart" mail relay. Any
  3376.  
  3377. mail sent to a host not in the host table will instead be sent to
  3378.  
  3379. the gateway for forwarding.
  3380.  
  3381.  
  3382.  
  3383. 3.54.2.  smtp kick
  3384.  
  3385.  
  3386.  
  3387. Run through the outgoing mail queue and attempt  to  deliver  any
  3388.  
  3389. pending  mail.  This  command  allows the user to "kick" the mail
  3390.  
  3391. system manually. Normally, this command is  periodically  invoked
  3392.  
  3393. by a timer whenever net.exe is running.
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403. updated by Bill Simpson April 15, 1991 March 3, 1991
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.                            - 30 -
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421. 3.54.3.  smtp maxclients [<count>]
  3422.  
  3423.  
  3424.  
  3425. Displays or sets the maximum number of simultaneous outgoing SMTP
  3426.  
  3427. sessions  that  will  be allowed. The default is 10; reduce it if
  3428.  
  3429. network congestion is a problem.
  3430.  
  3431.  
  3432.  
  3433. 3.54.4.  smtp timer [<seconds>]
  3434.  
  3435.  
  3436.  
  3437. Displays or sets the interval between scans of the outbound  mail
  3438.  
  3439. queue. For example, smtp timer 600 will cause the system to check
  3440.  
  3441. for outgoing mail every 10 minutes and attempt  to  deliver  any-
  3442.  
  3443. thing  it  finds, subject of course to the smtp maxclients limit.
  3444.  
  3445. Setting a value of zero disables queue scanning altogether,  note
  3446.  
  3447. that  this  is  the default!  This value is recommended for stand
  3448.  
  3449. alone IP gateways that never handle mail, since it saves wear and
  3450.  
  3451. tear on the floppy disk drive.
  3452.  
  3453.  
  3454.  
  3455. 3.54.5.  smtp trace [<value>]
  3456.  
  3457.  
  3458.  
  3459. Displays or sets the trace flag in the SMTP client, allowing  you
  3460.  
  3461. to  watch  SMTP's  conversations  as it delivers mail.  Zero (the
  3462.  
  3463. default) disables tracing.
  3464.  
  3465.  
  3466.  
  3467. 3.55.  socket [<socket #>]
  3468.  
  3469.  
  3470.  
  3471. Without an argument, displays all active  sockets,  giving  their
  3472.  
  3473. index  and  type,  the address of the associated protocol control
  3474.  
  3475. block and the and owner process ID and name. If the index  to  an
  3476.  
  3477. active socket is supplied, the status display for the appropriate
  3478.  
  3479. protocol is called. For example, if the socket refers  to  a  TCP
  3480.  
  3481. connection, the display will be that given by the tcp status com-
  3482.  
  3483. mand with the protocol control block address.
  3484.  
  3485.  
  3486.  
  3487. 3.56.  start ax25 | discard | echo | ftp | netrom | remote | smtp
  3488.  
  3489. | telnet | ttylink
  3490.  
  3491.  
  3492.  
  3493. Start the specified Internet server, allowing  remote  connection
  3494.  
  3495. requests.
  3496.  
  3497.  
  3498.  
  3499. 3.57.  stop ax25 | discard | echo | ftp | netrom | remote |  smtp
  3500.  
  3501. | telnet | ttylink
  3502.  
  3503.  
  3504.  
  3505. Stop the specified Internet server, rejecting any further  remote
  3506.  
  3507. connect  requests.  Existing  connections are allowed to complete
  3508.  
  3509. normally.
  3510.  
  3511.  
  3512.  
  3513. 3.58.  tcp ...
  3514.  
  3515.  
  3516.  
  3517. These commands are used for  the  Transmission  Control  Protocol
  3518.  
  3519. service.
  3520.  
  3521.  
  3522.  
  3523. 3.58.1.  tcp irtt [<milliseconds>]
  3524.  
  3525.  
  3526.  
  3527. Display  or  set  the  initial  round  trip  time  estimate,   in
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535. updated by Bill Simpson April 15, 1991 March 3, 1991
  3536.  
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.                            - 31 -
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553. milliseconds,  to  be used for new TCP connections until they can
  3554.  
  3555. measure and adapt to the actual value.  The default is 5000  mil-
  3556.  
  3557. liseconds  (5  seconds). Increasing this when operating over slow
  3558.  
  3559. channels will avoid the flurry of retransmissions that would oth-
  3560.  
  3561. erwise occur as the smoothed estimate settles down at the correct
  3562.  
  3563. value. Note that this command should be given before servers  are
  3564.  
  3565. started in order for it to have effect on incoming connections.
  3566.  
  3567.  
  3568.  
  3569. TCP also keeps a cache of measured  round  trip  times  and  mean
  3570.  
  3571. deviations (MDEV) for current and recent destinations. Whenever a
  3572.  
  3573. new TCP connection is opened, the  system  first  looks  in  this
  3574.  
  3575. cache.  If  the  destination  is  found, the cached IRTT and MDEV
  3576.  
  3577. values are used. If not, the default IRTT value  mentioned  above
  3578.  
  3579. is used, along with a MDEV of 0. This feature is fully automatic,
  3580.  
  3581. and it can improve performance greatly when a series  of  connec-
  3582.  
  3583. tions  are opened and closed to a given destination (eg. a series
  3584.  
  3585. of FTP file transfers or directory listings).
  3586.  
  3587.  
  3588.  
  3589. 3.58.2.  tcp kick <tcbaddr>
  3590.  
  3591.  
  3592.  
  3593. If there is unacknowledged data on the send queue of  the  speci-
  3594.  
  3595. fied TCB, this command forces an immediate retransmission.
  3596.  
  3597.  
  3598.  
  3599. 3.58.3.  tcp mss [<size>]
  3600.  
  3601.  
  3602.  
  3603. Display or set the TCP Maximum Segment Size in bytes that will be
  3604.  
  3605. sent  on  all  outgoing TCP connect request (SYN segments).  This
  3606.  
  3607. tells the remote end the size of the largest segment (packet)  it
  3608.  
  3609. may  send. Changing MSS affects only future connections; existing
  3610.  
  3611. connections are unaffected.
  3612.  
  3613.  
  3614.  
  3615. 3.58.4.  tcp reset <tcbaddr>
  3616.  
  3617.  
  3618.  
  3619. Deletes the TCP control block at the specified address.
  3620.  
  3621.  
  3622.  
  3623. 3.58.5.  tcp rtt <tcbaddr> <milliseconds>
  3624.  
  3625.  
  3626.  
  3627. Replaces the automatically computed round trip time in the speci-
  3628.  
  3629. fied TCB with the rtt in milliseconds.  This command is useful to
  3630.  
  3631. speed up recovery from a series of lost packets since it provides
  3632.  
  3633. a  manual  bypass around the normal backoff retransmission timing
  3634.  
  3635. mechanisms.
  3636.  
  3637.  
  3638.  
  3639. 3.58.6.  tcp status [<tcbaddr>]
  3640.  
  3641.  
  3642.  
  3643. Without arguments, displays several TCP-level statistics, plus  a
  3644.  
  3645. summary  of  all existing TCP connections, including TCB address,
  3646.  
  3647. send and receive queue sizes, local and remote sockets, and  con-
  3648.  
  3649. nection  state. If tcbaddr is specified, a more detailed dump of
  3650.  
  3651. the specified  TCB  is  generated,  including  send  and  receive
  3652.  
  3653. sequence numbers and timer information.
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667. updated by Bill Simpson April 15, 1991 March 3, 1991
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.                            - 32 -
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685. 3.58.7.  tcp window [<size>]
  3686.  
  3687.  
  3688.  
  3689. Displays or sets the default receive window size in bytes  to  be
  3690.  
  3691. used  by  TCP when creating new connections. Existing connections
  3692.  
  3693. are unaffected.
  3694.  
  3695.  
  3696.  
  3697. 3.59.  telnet <hostid>
  3698.  
  3699.  
  3700.  
  3701. Creates a Telnet session to the specified host  and  enters  con-
  3702.  
  3703. verse mode.
  3704.  
  3705.  
  3706.  
  3707. 3.60.  tip <iface>
  3708.  
  3709.  
  3710.  
  3711. Creates a tip session that connects to the specified interface in
  3712.  
  3713. "dumb  terminal"  mode.  The  interface  must  have  already been
  3714.  
  3715. attached  with  the  attach  command.  Any  packet  traffic   (IP
  3716.  
  3717. datagrams, etc) routed to the interface while this session exists
  3718.  
  3719. will be discarded. To close a tip session, use the reset command.
  3720.  
  3721. It will then revert to normal slip, nrs or kiss mode operation.
  3722.  
  3723.  
  3724.  
  3725. This feature is primarily useful for manually  establishing  SLIP
  3726.  
  3727. connections.  At  present,  only  the built-in "com" ports can be
  3728.  
  3729. used with this command.
  3730.  
  3731.  
  3732.  
  3733. 3.61.  trace [<iface> [off | <btio> [<tracefile>]]]
  3734.  
  3735.  
  3736.  
  3737. Controls packet tracing by the interface drivers.  Specific  bits
  3738.  
  3739. enable tracing of the various interfaces and the amount of infor-
  3740.  
  3741. mation produced. Tracing is controlled on a per-interface  basis;
  3742.  
  3743. without  arguments,  trace gives a list of all defined interfaces
  3744.  
  3745. and their tracing status. Output  can  be  limited  to  a  single
  3746.  
  3747. interface  by  specifying it, and the control flags can be change
  3748.  
  3749. by specifying them as well. The flags are given as a  hexadecimal
  3750.  
  3751. number which is interpreted as follows:
  3752.  
  3753.  
  3754.  
  3755.     O - Enable tracing of output packets if 1, disable if 0
  3756.  
  3757.     I - Enable tracing of input packets if 1, disable if 0
  3758.  
  3759.     T - Controls type of tracing:
  3760.  
  3761.         0 - Protocol headers are decoded, but data is not displayed
  3762.  
  3763.         1 - Protocol headers are decoded, and data (but not the
  3764.  
  3765.             headers themselves) are displayed as ASCII characters,
  3766.  
  3767.             64 characters/line. Unprintable characters are displayed
  3768.  
  3769.             as periods.
  3770.  
  3771.         2 - Protocol headers are decoded, and the entire packet
  3772.  
  3773.             (headers AND data) is also displayed in hexadecimal
  3774.  
  3775.             and ASCII, 16 characters per line.
  3776.  
  3777.     B - Broadcast filter flag. If set, only packets specifically addressed
  3778.  
  3779.         to this node will be traced; broadcast packets will not be displayed.
  3780.  
  3781.  
  3782.  
  3783. If tracefile is not specified, tracing will be to the console.
  3784.  
  3785.  
  3786.  
  3787. 3.62.  udp status
  3788.  
  3789.  
  3790.  
  3791. Displays the status of all UDP receive queues.
  3792.  
  3793.  
  3794.  
  3795.  
  3796.  
  3797.  
  3798.  
  3799. updated by Bill Simpson April 15, 1991 March 3, 1991
  3800.  
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810.  
  3811.                            - 33 -
  3812.  
  3813.  
  3814.  
  3815.  
  3816.  
  3817. 3.63.  upload [<filename>]
  3818.  
  3819.  
  3820.  
  3821. Opens filename and sends it on the current session as  though  it
  3822.  
  3823. were typed on the terminal.
  3824.  
  3825.  
  3826.  
  3827. 3.64.  watch
  3828.  
  3829.  
  3830.  
  3831. Displays the current software stopwatch values, with min and  max
  3832.  
  3833. readings  for  each. This facility allows a programmer to measure
  3834.  
  3835. the execution time of critical sections of code with  microsecond
  3836.  
  3837. resolution. This command is supported only on the IBM PC, and the
  3838.  
  3839. meaning of each stopwatch value depends on where the  calls  have
  3840.  
  3841. been inserted for test purposes; the distribution copy of net.exe
  3842.  
  3843. usually has no stopwatch calls.
  3844.  
  3845.  
  3846.  
  3847. 3.65.  ?
  3848.  
  3849.  
  3850.  
  3851. Same as the help command.
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929.  
  3930.  
  3931. updated by Bill Simpson April 15, 1991 March 3, 1991
  3932.  
  3933.  
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.  
  3943.                            - 34 -
  3944.  
  3945.  
  3946.  
  3947.  
  3948.  
  3949. 4.  Attach Commands
  3950.  
  3951.  
  3952.  
  3953. This chapter details the attach commands for the various hardware
  3954.  
  3955. interface  drivers.  Not  all  of these drivers may be configured
  3956.  
  3957. into every net.exe binary; a list of the available types  may  be
  3958.  
  3959. obtained by entering the command attach ?.
  3960.  
  3961.  
  3962.  
  3963. Some parameters are accepted by several drivers. They are:
  3964.  
  3965.  
  3966.  
  3967. 4.0.1.  <bufsize>
  3968.  
  3969.  
  3970.  
  3971. For asynchronous devices (eg. COM ports operating in SLIP or  NRS
  3972.  
  3973. mode)  this  parameter  specifies the size of the receiver's ring
  3974.  
  3975. buffer. It should be large enough to hold incoming data  at  full
  3976.  
  3977. line  speed  for  the longest time that the system may be busy in
  3978.  
  3979. MS-DOS or the BIOS doing a slow I/O operation (eg.  to  a  floppy
  3980.  
  3981. disk). A kilobyte is usually more than sufficient.
  3982.  
  3983.  
  3984.  
  3985. For synchronous devices (eg. the scc, hs, pc100,  hapn  and  drsi
  3986.  
  3987. interfaces  operating in HDLC mode), the bufsize parameter speci-
  3988.  
  3989. fies the largest packet that may be received  on  the  interface.
  3990.  
  3991. This should be set by mutual agreement among stations sharing the
  3992.  
  3993. channel. For standard AX.25 with a maximum I-frame data  size  of
  3994.  
  3995. 256  bytes, a value of 325 should provide an adequate safety mar-
  3996.  
  3997. gin. On higher speed channels (eg. 56kb/s) larger values (eg.  2K
  3998.  
  3999. bytes)  will provide much better performance and allow full-sized
  4000.  
  4001. Ethernet packets to be carried without fragmentation.
  4002.  
  4003.  
  4004.  
  4005. 4.0.2.  <ioaddr>
  4006.  
  4007.  
  4008.  
  4009. The base address of the interface's control registers, in hex.
  4010.  
  4011.  
  4012.  
  4013. 4.0.3.  <vector>
  4014.  
  4015.  
  4016.  
  4017. The interface's hardware interrupt (IRQ) vector, in hex.
  4018.  
  4019.  
  4020.  
  4021. 4.0.4.  <iface>
  4022.  
  4023.  
  4024.  
  4025. The name (an arbitrary character string) to be assigned  to  this
  4026.  
  4027. interface.  It  is used to refer to the interface in ifconfig and
  4028.  
  4029. route commands and in trace output.
  4030.  
  4031.  
  4032.  
  4033. 4.0.5.  <mtu>
  4034.  
  4035.  
  4036.  
  4037. The Maximum Transmission Unit size, in bytes.   Datagrams  larger
  4038.  
  4039. than  this  limit will be fragmented at the IP layer into smaller
  4040.  
  4041. pieces. For AX.25 UI frames, this limits the size of the informa-
  4042.  
  4043. tion  field. For AX.25 I frames, however, the ax25 paclen parame-
  4044.  
  4045. ter is also relevant.  If  the  datagram  or  fragment  is  still
  4046.  
  4047. larger  than paclen, it is also fragmented at the AX.25 level (as
  4048.  
  4049. opposed to the IP level)  before  transmission.   (See  the  ax25
  4050.  
  4051. paclen command for further information).
  4052.  
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.  
  4061.  
  4062.  
  4063. updated by Bill Simpson April 15, 1991 March 3, 1991
  4064.  
  4065.  
  4066.  
  4067.  
  4068.  
  4069.  
  4070.  
  4071.  
  4072.  
  4073.  
  4074.  
  4075.                            - 35 -
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081. 4.0.6.  <speed>
  4082.  
  4083.  
  4084.  
  4085. The speed in bits per second (eg. 2400).
  4086.  
  4087.  
  4088.  
  4089. 4.1.  attach 3c500 <ioaddr> <vector> arpa  <iface>  <qlen>  <mtu>
  4090.  
  4091. [<ipaddr>]
  4092.  
  4093.  
  4094.  
  4095. Attach a 3Com 3C501 Ethernet  interface.   qlen  is  the  maximum
  4096.  
  4097. allowable transmit queue length.  If the ipaddr parameter is not
  4098.  
  4099. given, the value associated with a prior ip address command  will
  4100.  
  4101. be used.
  4102.  
  4103.  
  4104.  
  4105. The use of this driver is not recommended; use the packet  driver
  4106.  
  4107. interface with the loadable 3C501 packet driver instead.
  4108.  
  4109.  
  4110.  
  4111. 4.2.  attach asy <ioaddr> <vector>  ax25  |  nrs  |  ppp  |  slip
  4112.  
  4113. <iface> <bufsize> <mtu> <speed> [<crv>]
  4114.  
  4115.  
  4116.  
  4117. Attach a standard PC "com port" (asynchronous serial port), using
  4118.  
  4119. the  National  8250 or 16550A chip. Standard values on the IBM PC
  4120.  
  4121. and clones for ioaddr and vector are 0x3f8 and 4  for  COM1,  and
  4122.  
  4123. 0x2f8  and 3 for COM2. If the port uses a 16550A chip, it will be
  4124.  
  4125. detected automatically and the FIFOs enabled.
  4126.  
  4127.  
  4128.  
  4129. 4.2.1.  ax25
  4130.  
  4131.  
  4132.  
  4133. Similar to slip, except that an AX.25 header and a KISS TNC  con-
  4134.  
  4135. trol  header  are  added to the front of the datagram before SLIP
  4136.  
  4137. encoding.  Either UI (connectionless) or I  (connection-oriented)
  4138.  
  4139. AX.25 frames can be used; see the mode command for details.
  4140.  
  4141.  
  4142.  
  4143. 4.2.2.  nrs
  4144.  
  4145.  
  4146.  
  4147. Use the NET/ROM asynchronous framing technique for  communication
  4148.  
  4149. with a local NET/ROM TNC.
  4150.  
  4151.  
  4152.  
  4153. 4.2.3.  ppp
  4154.  
  4155.  
  4156.  
  4157. Point-to-Point-Protocol. Encapsulates datagrams in  an  HDLC-like
  4158.  
  4159. frame. This is a new Internet standard for point-to-point commun-
  4160.  
  4161. ication, compatible with CCITT standards.
  4162.  
  4163.  
  4164.  
  4165. 4.2.4.  slip
  4166.  
  4167.  
  4168.  
  4169. Serial Line Internet Protocol. Encapsulates IP datagrams directly
  4170.  
  4171. in  SLIP  frames  without a link header. This is for operation on
  4172.  
  4173. point-to-point lines and is compatible with 4.2BSD UNIX SLIP.
  4174.  
  4175.  
  4176.  
  4177. 4.2.5.  <crv>
  4178.  
  4179.  
  4180.  
  4181. The optional flags are a string of characters  "crv":  c  enables
  4182.  
  4183. RTS/CTS  detection, r enables RLSD (Carrier Detect) physical line
  4184.  
  4185. sensing, v enables Van Jacobson TCP/IP Header Compression, and is
  4186.  
  4187. valid only for SLIP.
  4188.  
  4189.  
  4190.  
  4191.  
  4192.  
  4193.  
  4194.  
  4195. updated by Bill Simpson April 15, 1991 March 3, 1991
  4196.  
  4197.  
  4198.  
  4199.  
  4200.  
  4201.  
  4202.  
  4203.  
  4204.  
  4205.  
  4206.  
  4207.                            - 36 -
  4208.  
  4209.  
  4210.  
  4211.  
  4212.  
  4213. 4.3.  attach drsi <ioaddr> <vector> ax25 <iface> <bufsize>  <mtu>
  4214.  
  4215. <chaspeed> <chbspeed>
  4216.  
  4217.  
  4218.  
  4219. N6TTO driver for the Digital Radio Systems PCPA 8530 card.  Since
  4220.  
  4221. there are two channels on the board, two interfaces are attached.
  4222.  
  4223. They will be named iface with 'a' and 'b'  appended.  bufsize  is
  4224.  
  4225. the  receiver  buffer  size  in bytes; it must be larger than the
  4226.  
  4227. largest frame to be received. chaspeed and chbspeed  are  the
  4228.  
  4229. speeds, in bits/sec, for the A and B channels, respectively.
  4230.  
  4231.  
  4232.  
  4233. 4.4.  attach eagle <ioaddr> <vector> ax25 <iface> <bufsize> <mtu>
  4234.  
  4235. <speed>
  4236.  
  4237.  
  4238.  
  4239. WA3CVG/NG6Q driver for the Eagle Computer card (Zilog 8530).
  4240.  
  4241.  
  4242.  
  4243. 4.5.  attach hapn <ioaddr> <vector> ax25 <iface> <bufsize>  <mtu>
  4244.  
  4245. csma | full
  4246.  
  4247.  
  4248.  
  4249. KE3Z driver for  the  Hamilton  Amateur  Packet  Network  adapter
  4250.  
  4251. (Intel  8273).  The  csma  | full parameter specifies whether the
  4252.  
  4253. port should operate in carrier sense multiple access (CSMA)  mode
  4254.  
  4255. or in full duplex.
  4256.  
  4257.  
  4258.  
  4259. 4.6.  attach hs <ioaddr> <vector> ax25  <iface>  <bufsize>  <mtu>
  4260.  
  4261. <keyupdelay> <p>
  4262.  
  4263.  
  4264.  
  4265. Attach a DRSI PCPA or Eagle Computer interface card using a  spe-
  4266.  
  4267. cial  "high  speed" 8530 driver. This driver uses busy-wait loops
  4268.  
  4269. to send and receive each byte instead of  interrupts,  making  it
  4270.  
  4271. usable  with  high speed modems (such as the WA4DSY 56kb/s modem)
  4272.  
  4273. on slow systems. This does have the side effect of "freezing" the
  4274.  
  4275. system whenever the modem transmitter or receiver is active. This
  4276.  
  4277. driver can operate only in CSMA mode, and it is recommended  that
  4278.  
  4279. no  other  interfaces  requiring  small  interrupt  latencies  be
  4280.  
  4281. attached to the same machine.
  4282.  
  4283.  
  4284.  
  4285. The keyupdelay parameter specifies the transmitter  keyup  delay
  4286.  
  4287. in  byte  time  intervals.  The p value specifies the transmitter
  4288.  
  4289. persistence value in the range 1-255; the corresponding slot time
  4290.  
  4291. is fixed at one hardware clock tick, about 55 ms on the PC.
  4292.  
  4293.  
  4294.  
  4295. As with the other 8530 drivers, this driver actually attaches two
  4296.  
  4297. interfaces, one for each 8530 channel.
  4298.  
  4299.  
  4300.  
  4301. 4.7.  attach packet <intvec> <iface> <txqlen> <mtu>
  4302.  
  4303.  
  4304.  
  4305. Driver for use with separate software  "packet  drivers"  meeting
  4306.  
  4307. the  FTP Software, Inc, Software Packet Driver specification. The
  4308.  
  4309. driver must have already been installed before the attach command
  4310.  
  4311. is given. Packet drivers in the Ethernet, ARCNET, SLIP, SLFP, and
  4312.  
  4313. KISS/AX25 classes are supported.
  4314.  
  4315.  
  4316.  
  4317. intvec is the software interrupt vector used for communication to
  4318.  
  4319. the  packet  driver,  and txqlen is the maximum number of packets
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.  
  4326.  
  4327. updated by Bill Simpson April 15, 1991 March 3, 1991
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.                            - 37 -
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345. that will be allowed on the transmit queue.
  4346.  
  4347.  
  4348.  
  4349. 4.8.  attach  pc100  <ioaddr>  <vector>  ax25  <iface>  <bufsize>
  4350.  
  4351. <speed>
  4352.  
  4353.  
  4354.  
  4355. Driver for the PACCOMM  PC-100  (Zilog  8530)  card.  Only  AX.25
  4356.  
  4357. operation is supported.
  4358.  
  4359.  
  4360.  
  4361. 4.9.  attach scc <devices> init <addr>  <spacing>  <Aoff>  <Boff>
  4362.  
  4363. <Dataoff> <intack> <vec> [p|r]<clock> [<hdwe>] [<param>]
  4364.  
  4365.  
  4366.  
  4367. PE1CHL driver to initialize a generic SCC (8530) interface  board
  4368.  
  4369. prior to actually attaching it. The parameters are as follows:
  4370.  
  4371.  
  4372.  
  4373. 4.9.1.  <devices>
  4374.  
  4375.  
  4376.  
  4377. The number of SCC chips to support.
  4378.  
  4379.  
  4380.  
  4381. 4.9.2.  <addr>
  4382.  
  4383.  
  4384.  
  4385. The base address of the first SCC chip (hex).
  4386.  
  4387.  
  4388.  
  4389. 4.9.3.  <spacing>
  4390.  
  4391.  
  4392.  
  4393. The spacing between the SCC chip base addresses.
  4394.  
  4395.  
  4396.  
  4397. 4.9.4.  <Aoff>
  4398.  
  4399.  
  4400.  
  4401. The offset from a chip's base address to its  channel  A  control
  4402.  
  4403. register.
  4404.  
  4405.  
  4406.  
  4407. 4.9.5.  <Boff>
  4408.  
  4409.  
  4410.  
  4411. The offset from a chip's base address to its  channel  B  control
  4412.  
  4413. register.
  4414.  
  4415.  
  4416.  
  4417. 4.9.6.  <Dataoff>
  4418.  
  4419.  
  4420.  
  4421. The offset from each  channel's  control  register  to  its  data
  4422.  
  4423. register.
  4424.  
  4425.  
  4426.  
  4427. 4.9.7.  <intack>
  4428.  
  4429.  
  4430.  
  4431. The address of the INTACK/Read Vector port. If none, specify 0 to
  4432.  
  4433. read from RR3A/RR2B.
  4434.  
  4435.  
  4436.  
  4437. 4.9.8.  <vec>
  4438.  
  4439.  
  4440.  
  4441. The CPU interrupt vector for all connected SCCs.
  4442.  
  4443.  
  4444.  
  4445. 4.9.9.  <clock>
  4446.  
  4447.  
  4448.  
  4449. The clock frequency (PCLK/RTxC) of all SCCs in hertz. Prefix with
  4450.  
  4451. 'p' for PCLK, 'r' for RTxC clock (for baudrate gen).
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459. updated by Bill Simpson April 15, 1991 March 3, 1991
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.  
  4471.                            - 38 -
  4472.  
  4473.  
  4474.  
  4475.  
  4476.  
  4477. 4.9.10.  <hdwe>
  4478.  
  4479.  
  4480.  
  4481. Optional hardware type. The following values are  currently  sup-
  4482.  
  4483. ported:  1  -  Eagle card, 2 - PACCOMM PC-100, 4 - PRIMUS-PC card
  4484.  
  4485. (DG9BL), 8 - DRSI PCPA card.
  4486.  
  4487.  
  4488.  
  4489. 4.9.11.  <param>
  4490.  
  4491.  
  4492.  
  4493. Optional extra parameter. At present, this is used only with  the
  4494.  
  4495. PC-100  and PRIMUS-PC cards to set the modem mode. The value 0x22
  4496.  
  4497. is used with the PC-100 and 0x2 is used with the PRIMUS-PC card.
  4498.  
  4499.  
  4500.  
  4501. The attach scc ... init command must be given before  the  inter-
  4502.  
  4503. faces are actually attached with the following command.
  4504.  
  4505.  
  4506.  
  4507. 4.10.  attach scc <chan> slip | kiss | nrs | ax25  <iface>  <mtu>
  4508.  
  4509. <speed> <bufsize> [<call>]
  4510.  
  4511.  
  4512.  
  4513. Attach an initialized SCC port to the system. The parameters  are
  4514.  
  4515. as follows:
  4516.  
  4517.  
  4518.  
  4519. 4.10.1.  <chan>
  4520.  
  4521.  
  4522.  
  4523. The SCC channel number to attach, 0 or 1 for the first  chip's  A
  4524.  
  4525. or B port, 2 or 3 for the second chip's A or B port, etc.
  4526.  
  4527.  
  4528.  
  4529. 4.10.2.  slip | kiss | nrs | ax25
  4530.  
  4531.  
  4532.  
  4533. The operating mode of the  interface.  slip,  kiss  and  nrs  all
  4534.  
  4535. operate   the   port  hardware  in  asynchronous  mode;  slip  is
  4536.  
  4537. Internet-standard serial line IP mode, kiss generates SLIP frames
  4538.  
  4539. containing  KISS  TNC  commands  and  AX.25  packets and nrs uses
  4540.  
  4541. NET/ROM local serial link framing conventions  to  carry  NET/ROM
  4542.  
  4543. packets.  Selecting ax25 mode puts the interface into synchronous
  4544.  
  4545. HDLC mode that is suitable for direct connection to a half duplex
  4546.  
  4547. radio modem.
  4548.  
  4549.  
  4550.  
  4551. 4.10.3.  <speed>
  4552.  
  4553.  
  4554.  
  4555. The interface speed in bits per second (eg.  1200).  Prefix  with
  4556.  
  4557. 'd'  when  an  external  divider  is available to generate the TX
  4558.  
  4559. clock. When the clock source is PCLK, this can be a  /32  divider
  4560.  
  4561. between  TRxC  and  RTxC.  When the clock is at RTxC, the TX rate
  4562.  
  4563. must be supplied at TRxC. This is needed  only  for  full  duplex
  4564.  
  4565. synchronous  operation.  When  this  arg  is  given as 'ext', the
  4566.  
  4567. transmit and receive clocks are external, and the  internal  baud
  4568.  
  4569. rate generator (BRG) and digital phase locked loop (DPLL) are not
  4570.  
  4571. used.
  4572.  
  4573.  
  4574.  
  4575. 4.11.  Attach Examples
  4576.  
  4577.  
  4578.  
  4579. Here are some examples of the attach command:
  4580.  
  4581.  
  4582.  
  4583.  
  4584.  
  4585.  
  4586.  
  4587.  
  4588.  
  4589.  
  4590.  
  4591. updated by Bill Simpson April 15, 1991 March 3, 1991
  4592.  
  4593.  
  4594.  
  4595.  
  4596.  
  4597.  
  4598.  
  4599.  
  4600.  
  4601.  
  4602.  
  4603.                            - 39 -
  4604.  
  4605.  
  4606.  
  4607.  
  4608.  
  4609.  
  4610.  
  4611. # Attach a 3Com Ethernet controller using the standard 3Com address and
  4612.  
  4613. # vector (i.e., as it comes out of the box) to use ARPA-standard encapsulation.
  4614.  
  4615. # The receive queue is limited to 5 packets, and outgoing packets larger
  4616.  
  4617. # than 1500 bytes will be fragmented
  4618.  
  4619. attach 3c500 0x300 3 arpa ec0 5 1500
  4620.  
  4621.  
  4622.  
  4623. # Attach the PC asynch card normally known as "com1" (the first controller)
  4624.  
  4625. # to operate in point-to-point slip mode at 9600 baud, calling it "sl0".
  4626.  
  4627. # A 1024 byte receiver ring buffer is allocated. Outgoing packets larger
  4628.  
  4629. # than 256 bytes are fragmented.
  4630.  
  4631. attach asy 0x3f8 4 slip sl0 1024 256 9600
  4632.  
  4633.  
  4634.  
  4635. # Attach the secondary PC asynch card ("com2") to operate in AX.25 mode
  4636.  
  4637. # with an MTU of 576 bytes at 9600 baud with a KISS TNC, calling it "ax0".
  4638.  
  4639. # By default, IP datagrams are sent in UI frames
  4640.  
  4641. attach asy 0x2f8 3 ax25 ax0 1024 576 9600
  4642.  
  4643.  
  4644.  
  4645. # Attach the packet driver loaded at interrupt 0x7e
  4646.  
  4647. # The packet driver is for an Ethernet interface
  4648.  
  4649. attach packet 0x7e ethernet 8 1500
  4650.  
  4651.  
  4652.  
  4653.  
  4654.  
  4655.  
  4656.  
  4657.  
  4658.  
  4659.  
  4660.  
  4661.  
  4662.  
  4663.  
  4664.  
  4665.  
  4666.  
  4667.  
  4668.  
  4669.  
  4670.  
  4671.  
  4672.  
  4673.  
  4674.  
  4675.  
  4676.  
  4677.  
  4678.  
  4679.  
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685.  
  4686.  
  4687.  
  4688.  
  4689.  
  4690.  
  4691.  
  4692.  
  4693.  
  4694.  
  4695.  
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.  
  4703.  
  4704.  
  4705.  
  4706.  
  4707.  
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713.  
  4714.  
  4715.  
  4716.  
  4717.  
  4718.  
  4719.  
  4720.  
  4721.  
  4722.  
  4723. updated by Bill Simpson April 15, 1991 March 3, 1991
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.                            - 40 -
  4736.  
  4737.  
  4738.  
  4739.  
  4740.  
  4741. 5.  FTP Subcommands
  4742.  
  4743.  
  4744.  
  4745. During converse mode with an FTP server, everything typed on  the
  4746.  
  4747. console  is  first  examined to see if it is a locally-known com-
  4748.  
  4749. mand. If not, the line is passed intact to the remote  server  on
  4750.  
  4751. the control channel. If it is one of the following commands, how-
  4752.  
  4753. ever, it is executed locally. (Note that this generally  involves
  4754.  
  4755. other  commands  being  sent  to the remote server on the control
  4756.  
  4757. channel.)
  4758.  
  4759.  
  4760.  
  4761. 5.1.  dir [<file> | <directory> [<local file>]]
  4762.  
  4763.  
  4764.  
  4765. Without arguments, dir requests that a full directory listing  of
  4766.  
  4767. the  remote  server's  current directory be sent to the terminal.
  4768.  
  4769. If one argument is given, this is passed along in the  LIST  com-
  4770.  
  4771. mand;  this  can be a specific file or subdirectory that is mean-
  4772.  
  4773. ingful to the remote file system. If two arguments are given, the
  4774.  
  4775. second  is taken as the local file into which the directory list-
  4776.  
  4777. ing should be put (instead of being sent  to  the  console).  The
  4778.  
  4779. PORT command is used before the LIST command is sent.
  4780.  
  4781.  
  4782.  
  4783. 5.2.  get <remote file> [<local file>]
  4784.  
  4785.  
  4786.  
  4787. Asks the remote server to send the file specified  in  the  first
  4788.  
  4789. argument.  The second argument, if given, will be the name of the
  4790.  
  4791. file on the local machine; otherwise it will have the  same  name
  4792.  
  4793. as  on the remote machine. The PORT and RETR commands are sent on
  4794.  
  4795. the control channel.
  4796.  
  4797.  
  4798.  
  4799. 5.3.  hash
  4800.  
  4801.  
  4802.  
  4803. A synonym for the verbose 3 command.
  4804.  
  4805.  
  4806.  
  4807. 5.4.  ls [<file> | <directory> [<local file>]]
  4808.  
  4809.  
  4810.  
  4811. ls is identical to the dir command except that the "NLST" command
  4812.  
  4813. is sent to the server instead of the "LIST" command. This results
  4814.  
  4815. in an abbreviated directory listing, i.e., one showing  only  the
  4816.  
  4817. file names themselves without any other information.
  4818.  
  4819.  
  4820.  
  4821. 5.5.  mget <file> [<file> ...]
  4822.  
  4823.  
  4824.  
  4825. Fetch a collection of files  from  the  server.  File  names  may
  4826.  
  4827. include  wild  card  characters;  they  will  be  interpreted and
  4828.  
  4829. expanded into a list of files by the remote system using the NLST
  4830.  
  4831. command.  The  files  will have the same name on the local system
  4832.  
  4833. that they had on the server.
  4834.  
  4835.  
  4836.  
  4837. 5.6.  mkdir <remote directory>
  4838.  
  4839.  
  4840.  
  4841. Creates a directory on the remote machine.
  4842.  
  4843.  
  4844.  
  4845.  
  4846.  
  4847.  
  4848.  
  4849.  
  4850.  
  4851.  
  4852.  
  4853.  
  4854.  
  4855. updated by Bill Simpson April 15, 1991 March 3, 1991
  4856.  
  4857.  
  4858.  
  4859.  
  4860.  
  4861.  
  4862.  
  4863.  
  4864.  
  4865.  
  4866.  
  4867.                            - 41 -
  4868.  
  4869.  
  4870.  
  4871.  
  4872.  
  4873. 5.7.  mput <file> [<file> ...]
  4874.  
  4875.  
  4876.  
  4877. Send a collection of files to the server. File names may  include
  4878.  
  4879. wild  card  characters; they will be expanded locally into a list
  4880.  
  4881. of files to be sent. The files will have the  same  name  on  the
  4882.  
  4883. server as on the local system.
  4884.  
  4885.  
  4886.  
  4887. 5.8.  put <local file> [<remote file>]
  4888.  
  4889.  
  4890.  
  4891. Asks the remote server to accept data, creating the file named in
  4892.  
  4893. the  first  argument.  The second argument, if given, will be the
  4894.  
  4895. name of the file on the remote machine; otherwise  it  will  have
  4896.  
  4897. the  same  name  as on the local machine.  The PORT and STOR com-
  4898.  
  4899. mands are sent on the control channel.
  4900.  
  4901.  
  4902.  
  4903. 5.9.  rmdir <remote directory>
  4904.  
  4905.  
  4906.  
  4907. Deletes a directory on the remote machine.
  4908.  
  4909.  
  4910.  
  4911. 5.10.  type [a | i | l <bytesize>]
  4912.  
  4913.  
  4914.  
  4915. Tells both the local client and remote server the  type  of  file
  4916.  
  4917. that is to be transferred.  The default is 'a', which means ASCII
  4918.  
  4919. (i.e., a text file).  Type 'i' means  image,  i.e.,  binary.   In
  4920.  
  4921. ASCII  mode,  files  are  sent as varying length lines of text in
  4922.  
  4923. ASCII separated by cr/lf sequences; in IMAGE mode, files are sent
  4924.  
  4925. exactly  as they appear in the file system.  ASCII mode should be
  4926.  
  4927. used whenever transferring text between dissimilar  systems  (eg.
  4928.  
  4929. UNIX  and  MS-DOS)  because of their different end-of-line and/or
  4930.  
  4931. end-of-file conventions.   When  exchanging  text  files  between
  4932.  
  4933. machines  of  the same type, either mode will work but IMAGE mode
  4934.  
  4935. is usually faster.  Naturally, when exchanging raw  binary  files
  4936.  
  4937. (executables,  compressed archives, etc) IMAGE mode must be used.
  4938.  
  4939. Type 'l' (logical byte size) is used when exchanging binary files
  4940.  
  4941. with  remote servers having oddball word sizes (eg. DECSYSTEM-10s
  4942.  
  4943. and 20s). Locally it works exactly like  IMAGE,  except  that  it
  4944.  
  4945. notifies  the  remote system how large the byte size is. bytesize
  4946.  
  4947. is typically 8. The type command sets the local transfer mode and
  4948.  
  4949. generates the TYPE command on the control channel.
  4950.  
  4951.  
  4952.  
  4953. 5.11.  verbose [0 | 1 | 2 | 3]
  4954.  
  4955.  
  4956.  
  4957. Set or display the level of message  output  in  file  transfers.
  4958.  
  4959. Verbose 0 gives the least output, and verbose 3 the most, as fol-
  4960.  
  4961. lows:
  4962.  
  4963.  
  4964.  
  4965. 0 - Display error messages only.
  4966.  
  4967. 1 - Display error messages plus a one-line summary after each transfer
  4968.  
  4969.     giving the name of the file, its size, and the transfer time and rate.
  4970.  
  4971. 2 - Display error and summary messages plus the progress messages generated
  4972.  
  4973.     by the remote FTP server. (This setting is the default.)
  4974.  
  4975. 3 - Display all messages. In addition, a "hash mark" (#) is displayed for
  4976.  
  4977.     every 1,000 bytes sent or received.
  4978.  
  4979.  
  4980.  
  4981.  
  4982.  
  4983.  
  4984.  
  4985.  
  4986.  
  4987. updated by Bill Simpson April 15, 1991 March 3, 1991
  4988.  
  4989.  
  4990.  
  4991.  
  4992.  
  4993.  
  4994.  
  4995.  
  4996.  
  4997.  
  4998.  
  4999.                            - 42 -
  5000.  
  5001.  
  5002.  
  5003.  
  5004.  
  5005. If a command is sent to the  remote  server  because  it  is  not
  5006.  
  5007. recognized  locally, the response is always displayed, regardless
  5008.  
  5009. of the setting of verbose. This is necessary  for  commands  like
  5010.  
  5011. pwd (display working directory), which would otherwise produce no
  5012.  
  5013. message at all if verbose were set to 0 or 1.
  5014.  
  5015.  
  5016.  
  5017.  
  5018.  
  5019.  
  5020.  
  5021.  
  5022.  
  5023.  
  5024.  
  5025.  
  5026.  
  5027.  
  5028.  
  5029.  
  5030.  
  5031.  
  5032.  
  5033.  
  5034.  
  5035.  
  5036.  
  5037.  
  5038.  
  5039.  
  5040.  
  5041.  
  5042.  
  5043.  
  5044.  
  5045.  
  5046.  
  5047.  
  5048.  
  5049.  
  5050.  
  5051.  
  5052.  
  5053.  
  5054.  
  5055.  
  5056.  
  5057.  
  5058.  
  5059.  
  5060.  
  5061.  
  5062.  
  5063.  
  5064.  
  5065.  
  5066.  
  5067.  
  5068.  
  5069.  
  5070.  
  5071.  
  5072.  
  5073.  
  5074.  
  5075.  
  5076.  
  5077.  
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087.  
  5088.  
  5089.  
  5090.  
  5091.  
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119. updated by Bill Simpson April 15, 1991 March 3, 1991
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125.  
  5126.  
  5127.  
  5128.  
  5129.  
  5130.  
  5131.                            - 43 -
  5132.  
  5133.  
  5134.  
  5135.  
  5136.  
  5137. 6.  Dialer Subcommands
  5138.  
  5139.  
  5140.  
  5141. Each dialer command may (should) have a  different  dialer  file.
  5142.  
  5143. The  file resides in the configuration directory, as specified in
  5144.  
  5145. the Installation section (see chapter 1). A typical  dialer  file
  5146.  
  5147. might be:
  5148.  
  5149.  
  5150.  
  5151.         # Set the speed, and toggle DTR to ensure modem is in command mode.
  5152.  
  5153.         control down
  5154.  
  5155.         wait 3000
  5156.  
  5157.         speed 2400
  5158.  
  5159.         control up
  5160.  
  5161.         wait 3000
  5162.  
  5163.         # Dial, and wait for connection
  5164.  
  5165.         send "atdt555-1212"
  5166.  
  5167.         wait 45000 "CONNECT " speed
  5168.  
  5169.         wait 2000
  5170.  
  5171.         # PAD specific initialization
  5172.  
  5173.         send ""
  5174.  
  5175.         wait 15000 "Terminal ="
  5176.  
  5177.         send "ppp"
  5178.  
  5179.         wait 10000 "
  5180.  
  5181.  
  5182.  
  5183.  
  5184.  
  5185. 6.0.1.  control down | up
  5186.  
  5187.  
  5188.  
  5189. Control asy interface. The down option drops DTR and RTS. The  up
  5190.  
  5191. option asserts DTR and RTS.
  5192.  
  5193.  
  5194.  
  5195. 6.0.2.  send "string"
  5196.  
  5197.  
  5198.  
  5199. This dialer command will write the specified string to the inter-
  5200.  
  5201. face. The string quote marks are required, and the string may not
  5202.  
  5203. contain embedded control  characters.  However,  the  standard  C
  5204.  
  5205. string escape sequences are recognized (\0 should not be used).
  5206.  
  5207.  
  5208.  
  5209. 6.0.3.  speed [ 9600 | 4800 | 2400 | 1200 | 300 ]
  5210.  
  5211.  
  5212.  
  5213. This dialer command will set the speed of the interface to one of
  5214.  
  5215. the  available speeds. If the speed is missing, the speed will be
  5216.  
  5217. displayed in the dialer session window.
  5218.  
  5219.  
  5220.  
  5221. 6.0.4.  wait <milliseconds> [ "test string" ] [ speed ]
  5222.  
  5223.  
  5224.  
  5225. If only the time is specified, the dialer pauses for the  desired
  5226.  
  5227. number of milliseconds.
  5228.  
  5229.  
  5230.  
  5231. Otherwise, the dialer reads until the test string is detected  on
  5232.  
  5233. the  interface.  If the string is not detected within the desired
  5234.  
  5235. time, the autodialer will  reset.  The  string  quote  marks  are
  5236.  
  5237. required, and the string may not contain embedded control charac-
  5238.  
  5239. ters. However, the standard C string escape sequences are  recog-
  5240.  
  5241. nized (\0 should not be used).
  5242.  
  5243.  
  5244.  
  5245.  
  5246.  
  5247.  
  5248.  
  5249.  
  5250.  
  5251. updated by Bill Simpson April 15, 1991 March 3, 1991
  5252.  
  5253.  
  5254.  
  5255.  
  5256.  
  5257.  
  5258.  
  5259.  
  5260.  
  5261.  
  5262.  
  5263.                            - 44 -
  5264.  
  5265.  
  5266.  
  5267.  
  5268.  
  5269. Finally, if the speed parameter is  specified,  the  dialer  will
  5270.  
  5271. continue  to  read  characters until a non-digit is detected. The
  5272.  
  5273. string read is converted to an  integer,  and  used  to  set  the
  5274.  
  5275. interface speed. If the trailing non-digit is not detected within
  5276.  
  5277. the desired time, or the integer value is not a valid speed,  the
  5278.  
  5279. autodialer will reset.
  5280.  
  5281.  
  5282.  
  5283.  
  5284.  
  5285.  
  5286.  
  5287.  
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301.  
  5302.  
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.  
  5314.  
  5315.  
  5316.  
  5317.  
  5318.  
  5319.  
  5320.  
  5321.  
  5322.  
  5323.  
  5324.  
  5325.  
  5326.  
  5327.  
  5328.  
  5329.  
  5330.  
  5331.  
  5332.  
  5333.  
  5334.  
  5335.  
  5336.  
  5337.  
  5338.  
  5339.  
  5340.  
  5341.  
  5342.  
  5343.  
  5344.  
  5345.  
  5346.  
  5347.  
  5348.  
  5349.  
  5350.  
  5351.  
  5352.  
  5353.  
  5354.  
  5355.  
  5356.  
  5357.  
  5358.  
  5359.  
  5360.  
  5361.  
  5362.  
  5363.  
  5364.  
  5365.  
  5366.  
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375.  
  5376.  
  5377.  
  5378.  
  5379.  
  5380.  
  5381.  
  5382.  
  5383. updated by Bill Simpson April 15, 1991 March 3, 1991
  5384.  
  5385.  
  5386.  
  5387.  
  5388.  
  5389.  
  5390.  
  5391.  
  5392.  
  5393.  
  5394.  
  5395.                            - 45 -
  5396.  
  5397.  
  5398.  
  5399.  
  5400.  
  5401. 7.  The /ftpusers File
  5402.  
  5403.  
  5404.  
  5405. Since MS-DOS is a single-user operating system (some might say it
  5406.  
  5407. is  a glorified bootstrap loader), it provides no access control;
  5408.  
  5409. all files can be read, written or deleted by the local user.   It
  5410.  
  5411. is  usually  undesirable  to give such open access to a system to
  5412.  
  5413. remote network users.  Net.exe therefore provides its own  access
  5414.  
  5415. control mechanisms.
  5416.  
  5417.  
  5418.  
  5419. The file /ftpusers controls remote FTP and  mailbox  access.  The
  5420.  
  5421. FTP  default  is  no access; if this file does not exist, the FTP
  5422.  
  5423. server will be unusable.  A remote user must first  "log  in"  to
  5424.  
  5425. the  system  with the USER and PASS commands, giving a valid name
  5426.  
  5427. and password listed in /ftpusers, before he or she  can  transfer
  5428.  
  5429. files.
  5430.  
  5431.  
  5432.  
  5433. Each entry in /ftpusers consists of a single line of the form
  5434.  
  5435.  
  5436.  
  5437. username password /path permissions
  5438.  
  5439.  
  5440.  
  5441.  
  5442.  
  5443. There must be exactly four fields, and there must be exactly  one
  5444.  
  5445. space  between  each field.  Comments may be added after the last
  5446.  
  5447. field. Comment lines begin with '#' in column one.
  5448.  
  5449.  
  5450.  
  5451. username is the user's login name.
  5452.  
  5453.  
  5454.  
  5455. password is the required password.  Note that this  is  in  plain
  5456.  
  5457. text;  therefore  it is not a good idea to give general read per-
  5458.  
  5459. mission to the root directory.   A  password  of  '*'  (a  single
  5460.  
  5461. asterisk) means that any password is acceptable.
  5462.  
  5463.  
  5464.  
  5465. /path is the allowable prefix on accessible  files.   Before  any
  5466.  
  5467. file  or directory operation, the current directory and the user-
  5468.  
  5469. specified file name are joined to form an absolute path  name  in
  5470.  
  5471. "canonical"  form  (i.e.,  a full path name starting at the root,
  5472.  
  5473. with "./" and "../" references, as well as redundant /'s,  recog-
  5474.  
  5475. nized and removed). The result MUST begin with the allowable path
  5476.  
  5477. prefix; if not, the operation is denied.  This field must  always
  5478.  
  5479. begin with a "/", i.e., at the root directory.
  5480.  
  5481.  
  5482.  
  5483. permissions is a decimal number  granting  permission  for  read,
  5484.  
  5485. create  and write operations.  If the low order bit (0x1) is set,
  5486.  
  5487. the user is allowed to read a file subject to the path name  pre-
  5488.  
  5489. fix  restriction.   If  the  next  bit  (0x2) is set, the user is
  5490.  
  5491. allowed to create a new file if it does not overwrite an existing
  5492.  
  5493. file.   If  the  third  bit  (0x4) is set, the user is allowed to
  5494.  
  5495. write a file even if it overwrites an existing file, and in addi-
  5496.  
  5497. tion he may delete files.  Again, all operations are allowed sub-
  5498.  
  5499. ject to the path name prefix  restrictions.  Permissions  may  be
  5500.  
  5501. combined  by  adding  bits,  for example, 0x3 (= 0x2 + 0x1) means
  5502.  
  5503. that the user is  given  read  and  create  permission,  but  not
  5504.  
  5505. overwrite/delete permission.
  5506.  
  5507.  
  5508.  
  5509.  
  5510.  
  5511.  
  5512.  
  5513.  
  5514.  
  5515. updated by Bill Simpson April 15, 1991 March 3, 1991
  5516.  
  5517.  
  5518.  
  5519.  
  5520.  
  5521.  
  5522.  
  5523.  
  5524.  
  5525.  
  5526.  
  5527.                            - 46 -
  5528.  
  5529.  
  5530.  
  5531.  
  5532.  
  5533. For example, suppose /ftpusers on machine  pc.ka9q.ampr.org  con-
  5534.  
  5535. tains the line
  5536.  
  5537.  
  5538.  
  5539. friendly test /testdir 7
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545. A session using this account would look like this:
  5546.  
  5547.  
  5548.  
  5549. net> ftp pc.ka9q.ampr.org
  5550.  
  5551. Resolving pc.ka9q.ampr.org... Trying 128.96.160.1...
  5552.  
  5553. FTP session 1 connected to pc.ka9q.ampr.org
  5554.  
  5555. 220 pc.ka9q.ampr.org FTP version 900418 ready at Mon May 7 16:27:18 1990
  5556.  
  5557. Enter user name: friendly
  5558.  
  5559. 331 Enter PASS command
  5560.  
  5561. Password: test [not echoed]
  5562.  
  5563. 230 Logged in
  5564.  
  5565. ftp>
  5566.  
  5567.  
  5568.  
  5569.  
  5570.  
  5571. The user now has read, write, overwrite and delete privileges for
  5572.  
  5573. any file under /testdir; he may not access any other files.
  5574.  
  5575.  
  5576.  
  5577. Here are some more sample entries in /ftpusers:
  5578.  
  5579.  
  5580.  
  5581. karn foobar / 7         # User "karn" with password "foobar" may read,
  5582.  
  5583.                         # write, overwrite and delete any file on the
  5584.  
  5585.                         # system.
  5586.  
  5587.  
  5588.  
  5589. guest bletch /g/bogus 3 # User "guest" with password "bletch" may read
  5590.  
  5591.                         # any file under /g/bogus and its subdirectories,
  5592.  
  5593.                         # and may create a new file as long as it does
  5594.  
  5595.                         # not overwrite an existing file. He may NOT
  5596.  
  5597.                         # delete any files.
  5598.  
  5599.  
  5600.  
  5601. anonymous * /public 1   # User "anonymous" (any password) may read files
  5602.  
  5603.                         # under /public and its subdirectories; he may
  5604.  
  5605.                         # not create, overwrite or delete any files.
  5606.  
  5607.  
  5608.  
  5609.  
  5610.  
  5611. This last entry is the standard convention for keeping a  reposi-
  5612.  
  5613. tory  of public files; in particular, the username "anonymous" is
  5614.  
  5615. an established ARPA convention.
  5616.  
  5617.  
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624.  
  5625.  
  5626.  
  5627.  
  5628.  
  5629.  
  5630.  
  5631.  
  5632.  
  5633.  
  5634.  
  5635.  
  5636.  
  5637.  
  5638.  
  5639.  
  5640.  
  5641.  
  5642.  
  5643.  
  5644.  
  5645.  
  5646.  
  5647. updated by Bill Simpson April 15, 1991 March 3, 1991
  5648.  
  5649.  
  5650.  
  5651.  
  5652.  
  5653.  
  5654.  
  5655.  
  5656.  
  5657.  
  5658.  
  5659.                            - 47 -
  5660.  
  5661.  
  5662.  
  5663.  
  5664.  
  5665. 8.  The domain.txt File
  5666.  
  5667.  
  5668.  
  5669. Net.exe translates domain names (eg.  "pc.ka9q.ampr.org")  to  IP
  5670.  
  5671. addresses  (eg.  128.96.160.3)  through  the  use  of an Internet
  5672.  
  5673. Domain Name resolver and a local "cache" file, domain.txt.  When-
  5674.  
  5675. ever  the  user  specifies  a  domain  name,  the  local cache is
  5676.  
  5677. searched for the desired entry. If it is present, it is used;  if
  5678.  
  5679. not,  and  if domain name server(s) have been configured, a query
  5680.  
  5681. is sent over the network to the current  server.  If  the  server
  5682.  
  5683. responds,  the  answer is added to the domain.txt file for future
  5684.  
  5685. use. If the server does not respond, any  additional  servers  on
  5686.  
  5687. the  list  are tried in a round-robin fashion until one responds,
  5688.  
  5689. or the retry limit is reached (see the domain retry command).  If
  5690.  
  5691. domain.txt  does  not  contain the desired entry and there are no
  5692.  
  5693. configured domain name  servers,  then  the  request  immediately
  5694.  
  5695. fails.
  5696.  
  5697.  
  5698.  
  5699. If a domain name server is available, and if  all  references  to
  5700.  
  5701. host-ids  in  your  /autoexec.net  file are in IP address format,
  5702.  
  5703. then it is possible to start with a completely  empty  domain.txt
  5704.  
  5705. file  and have net.exe build it for you. However, you may wish to
  5706.  
  5707. add your own entries to domain.txt, either because you prefer  to
  5708.  
  5709. use symbolic domain names in your /autoexec.net file or you don't
  5710.  
  5711. have access to a domain server and you need to create entries for
  5712.  
  5713. all of the hosts you may wish to access.
  5714.  
  5715.  
  5716.  
  5717. Each entry takes one line, and the fields are  separated  by  any
  5718.  
  5719. combination of tabs or spaces. For example:
  5720.  
  5721.  
  5722.  
  5723. pc.ka9q.ampr.org.       IN      A       128.96.160.3
  5724.  
  5725.  
  5726.  
  5727. IN is the class of the record. It means Internet, and it will  be
  5728.  
  5729. found  in  all entries. A is the type of the record, and it means
  5730.  
  5731. that this is an  address  record.  Domain  name  pc.ka9q.ampr.org
  5732.  
  5733. therefore has Internet address 128.96.160.3.
  5734.  
  5735.  
  5736.  
  5737. Another possible entry is the CNAME (Canonical Name) record.  For
  5738.  
  5739. example:
  5740.  
  5741.  
  5742.  
  5743. ka9q.ampr.org.          IN      CNAME   pc.ka9q.ampr.org.
  5744.  
  5745.  
  5746.  
  5747. This says that domain name "ka9q.ampr.org" is actually  an  alias
  5748.  
  5749. for   the   system  with  (primary,  or  canonical)  domain  name
  5750.  
  5751. "pc.ka9q.ampr.org." When a domain name having a CNAME  record  is
  5752.  
  5753. given  to net.exe, the system automatically follows the reference
  5754.  
  5755. to the canonical name and returns the IP address associated  with
  5756.  
  5757. that entry.
  5758.  
  5759.  
  5760.  
  5761. Entries added automatically by net.exe will  have  an  additional
  5762.  
  5763. field  between  the  domain  name  and the class (IN) field.  For
  5764.  
  5765. example:
  5766.  
  5767.  
  5768.  
  5769. pc.ka9q.ampr.org.       3600    IN      A       128.96.160.3
  5770.  
  5771.  
  5772.  
  5773.  
  5774.  
  5775.  
  5776.  
  5777.  
  5778.  
  5779. updated by Bill Simpson April 15, 1991 March 3, 1991
  5780.  
  5781.  
  5782.  
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.  
  5789.  
  5790.  
  5791.                            - 48 -
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797. This is the time-to-live value, in seconds, associated  with  the
  5798.  
  5799. record  received from the server. Clients (such as net.exe) cach-
  5800.  
  5801. ing these records are supposed to delete them after the  time-to-
  5802.  
  5803. live  interval has expired, allowing for the possibility that the
  5804.  
  5805. information in the record may become out of date.
  5806.  
  5807.  
  5808.  
  5809. This implementation of net.exe will decrement the  TTL  to  zero,
  5810.  
  5811. but will not delete the record unless the "clean" flag is on (see
  5812.  
  5813. the domain cache clean command). When  a  remote  server  is  not
  5814.  
  5815. available, the old entry will be used.
  5816.  
  5817.  
  5818.  
  5819. When the TTL value is missing (as in  the  examples  above),  the
  5820.  
  5821. record  will  never  expire,  and  must be managed by hand. Since
  5822.  
  5823. domain.txt is a plain text file, it may be easily edited  by  the
  5824.  
  5825. user to add, change or delete records.
  5826.  
  5827.  
  5828.  
  5829. Additional types of records, include NS  (name  server)  and  SOA
  5830.  
  5831. (start  of authority) may appear in domain.txt from remote server
  5832.  
  5833. responses. These are  not  currently  used  by  net.exe  but  are
  5834.  
  5835. retained  for  future development (such as the incorporation of a
  5836.  
  5837. domain name server into net.exe itself).
  5838.  
  5839.  
  5840.  
  5841.  
  5842.  
  5843.  
  5844.  
  5845.  
  5846.  
  5847.  
  5848.  
  5849.  
  5850.  
  5851.  
  5852.  
  5853.  
  5854.  
  5855.  
  5856.  
  5857.  
  5858.  
  5859.  
  5860.  
  5861.  
  5862.  
  5863.  
  5864.  
  5865.  
  5866.  
  5867.  
  5868.  
  5869.  
  5870.  
  5871.  
  5872.  
  5873.  
  5874.  
  5875.  
  5876.  
  5877.  
  5878.  
  5879.  
  5880.  
  5881.  
  5882.  
  5883.  
  5884.  
  5885.  
  5886.  
  5887.  
  5888.  
  5889.  
  5890.  
  5891.  
  5892.  
  5893.  
  5894.  
  5895.  
  5896.  
  5897.  
  5898.  
  5899.  
  5900.  
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908.  
  5909.  
  5910.  
  5911. updated by Bill Simpson April 15, 1991 March 3, 1991
  5912.  
  5913.  
  5914.  
  5915.  
  5916.  
  5917.  
  5918.  
  5919.  
  5920.  
  5921.  
  5922.  
  5923.                            - 49 -
  5924.  
  5925.  
  5926.  
  5927.  
  5928.  
  5929. 9.  Setting Bufsize, Paclen, Maxframe, MTU, MSS and Window
  5930.  
  5931.  
  5932.  
  5933. Many net.exe users are confused by these parameters  and  do  not
  5934.  
  5935. know  how  to  set  them properly. This chapter will first review
  5936.  
  5937. these parameters and then discuss how to choose values for  them.
  5938.  
  5939. Special  emphasis  is given to avoiding interoperability problems
  5940.  
  5941. that may appear when communicating with  non-net.exe  implementa-
  5942.  
  5943. tions of AX.25.
  5944.  
  5945.  
  5946.  
  5947. 9.1.  Hardware Parameters
  5948.  
  5949.  
  5950.  
  5951.  
  5952.  
  5953. 9.1.1.  Bufsize
  5954.  
  5955.  
  5956.  
  5957. This parameter is required by most  of  net.exe's  built-in  HDLC
  5958.  
  5959. drivers  (eg. those for the DRSI PCPA and the Paccomm PC-100). It
  5960.  
  5961. specifies the size  of  the  buffer  to  be  allocated  for  each
  5962.  
  5963. receiver  port.  HDLC  frames  larger  than  this value cannot be
  5964.  
  5965. received.
  5966.  
  5967.  
  5968.  
  5969. There is no default bufsize; it must be specified in  the  attach
  5970.  
  5971. command for the interface.
  5972.  
  5973.  
  5974.  
  5975. 9.2.  AX25 Parameters
  5976.  
  5977.  
  5978.  
  5979. 9.2.1.  Paclen
  5980.  
  5981.  
  5982.  
  5983. Paclen limits the size of the data field  in  an  AX.25  I-frame.
  5984.  
  5985. This  value  does  not include the AX.25 protocol header (source,
  5986.  
  5987. destination and digipeater addresses).
  5988.  
  5989.  
  5990.  
  5991. Since unconnected-mode (datagram)  AX.25  uses  UI  frames,  this
  5992.  
  5993. parameter has no effect in unconnected mode.
  5994.  
  5995.  
  5996.  
  5997. The default value of paclen is 256 bytes.
  5998.  
  5999.  
  6000.  
  6001. 9.2.2.  Maxframe
  6002.  
  6003.  
  6004.  
  6005. This parameter controls the number of I-frames that  net.exe  may
  6006.  
  6007. send  on  an AX.25 connection before it must stop and wait for an
  6008.  
  6009. acknowledgement. Since the AX.25/LAPB sequence number field is  3
  6010.  
  6011. bits wide, this number cannot be larger than 7.
  6012.  
  6013.  
  6014.  
  6015. Since unconnected-mode (datagram) AX.25 uses UI  frames  that  do
  6016.  
  6017. not  have  sequence  numbers,  this  parameter  does not apply to
  6018.  
  6019. unconnected mode.
  6020.  
  6021.  
  6022.  
  6023. The default value of maxframe in net.exe is 1 frame.
  6024.  
  6025.  
  6026.  
  6027. 9.3.  IP and TCP Parameters
  6028.  
  6029.  
  6030.  
  6031. 9.3.1.  MTU
  6032.  
  6033.  
  6034.  
  6035. The MTU (Maximum Transmission Unit)  is  an  interface  parameter
  6036.  
  6037.  
  6038.  
  6039.  
  6040.  
  6041.  
  6042.  
  6043. updated by Bill Simpson April 15, 1991 March 3, 1991
  6044.  
  6045.  
  6046.  
  6047.  
  6048.  
  6049.  
  6050.  
  6051.  
  6052.  
  6053.  
  6054.  
  6055.                            - 50 -
  6056.  
  6057.  
  6058.  
  6059.  
  6060.  
  6061. that  limits the size of the largest IP datagram that it may han-
  6062.  
  6063. dle.  IP datagrams routed to an interface that  are  larger  than
  6064.  
  6065. its  MTU are each split into two or more fragments. Each fragment
  6066.  
  6067. has its own IP header and is handled by the network as if it were
  6068.  
  6069. a distinct IP datagram, but when it arrives at the destination it
  6070.  
  6071. is held by the IP layer until all of the other fragments  belong-
  6072.  
  6073. ing to the original datagram have arrived. Then they are reassem-
  6074.  
  6075. bled back into the complete, original IP  datagram.  The  minimum
  6076.  
  6077. acceptable  interface MTU is 28 bytes: 20 bytes for the IP (frag-
  6078.  
  6079. ment) header, plus 8 bytes of data.
  6080.  
  6081.  
  6082.  
  6083. There is no default MTU in net.exe; it must be explicitly  speci-
  6084.  
  6085. fied for each interface as part of the attach command.
  6086.  
  6087.  
  6088.  
  6089. 9.3.2.  MSS
  6090.  
  6091.  
  6092.  
  6093. MSS (Maximum Segment Size) is a TCP-level parameter  that  limits
  6094.  
  6095. the  amount of data that the remote TCP will send in a single TCP
  6096.  
  6097. packet. MSS values are exchanged in the SYN (connection  request)
  6098.  
  6099. packets that open a TCP connection. In the net.exe implementation
  6100.  
  6101. of TCP, the MSS actually used by TCP is further reduced in  order
  6102.  
  6103. to  avoid  fragmentation  at the local IP interface. That is, the
  6104.  
  6105. local TCP asks IP for the MTU of the interface that will be  used
  6106.  
  6107. to reach the destination. It then subtracts 40 from the MTU value
  6108.  
  6109. to allow for the overhead of the  TCP  and  IP  headers.  If  the
  6110.  
  6111. result  is  less than the MSS received from the remote TCP, it is
  6112.  
  6113. used instead.
  6114.  
  6115.  
  6116.  
  6117. The default value of MSS is 512 bytes.
  6118.  
  6119.  
  6120.  
  6121. 9.3.3.  Window
  6122.  
  6123.  
  6124.  
  6125. This is a TCP-level parameter that controls  how  much  data  the
  6126.  
  6127. local  TCP  will allow the remote TCP to send before it must stop
  6128.  
  6129. and wait for an acknowledgement. The actual window value used  by
  6130.  
  6131. TCP  when  deciding  how much more data to send is referred to as
  6132.  
  6133. the effective window. This is the smaller of two values: the win-
  6134.  
  6135. dow advertised by the remote TCP minus the unacknowledged data in
  6136.  
  6137. flight, and the  congestion  window,  an  automatically  computed
  6138.  
  6139. time-varying estimate of how much data the network can handle.
  6140.  
  6141.  
  6142.  
  6143. The default value of Window is 2048 bytes.
  6144.  
  6145.  
  6146.  
  6147. 9.4.  Discussion
  6148.  
  6149.  
  6150.  
  6151.  
  6152.  
  6153. 9.4.1.  IP Fragmentation vs AX.25 Segmentation
  6154.  
  6155.  
  6156.  
  6157. IP-level fragmentation often makes it  possible  to  interconnect
  6158.  
  6159. two  dissimilar  networks, but it is best avoided whenever possi-
  6160.  
  6161. ble. One reason is that when a single IP fragment  is  lost,  all
  6162.  
  6163. other  fragments  belonging  to the same datagram are effectively
  6164.  
  6165. also lost and the entire datagram must be  retransmitted  by  the
  6166.  
  6167. source.  Even  without  loss, fragments require the allocation of
  6168.  
  6169.  
  6170.  
  6171.  
  6172.  
  6173.  
  6174.  
  6175. updated by Bill Simpson April 15, 1991 March 3, 1991
  6176.  
  6177.  
  6178.  
  6179.  
  6180.  
  6181.  
  6182.  
  6183.  
  6184.  
  6185.  
  6186.  
  6187.                            - 51 -
  6188.  
  6189.  
  6190.  
  6191.  
  6192.  
  6193. temporary buffer memory at the destination, and it is never  easy
  6194.  
  6195. to decide how long to wait for missing fragments before giving up
  6196.  
  6197. and discarding those that  have  already  arrived.  A  reassembly
  6198.  
  6199. timer  controls  this  process.  In net.exe it is (re)initialized
  6200.  
  6201. with the ip rtimer parameter (default 30 seconds)  whenever  pro-
  6202.  
  6203. gress is made in reassembling a datagram (i.e., a new fragment is
  6204.  
  6205. received). It is not necessary that all of the fragments  belong-
  6206.  
  6207. ing  to  a datagram arrive within a single timeout interval, only
  6208.  
  6209. that the interval between fragments be less than the timeout.
  6210.  
  6211.  
  6212.  
  6213. Most subnetworks that carry IP have MTUs of 576 bytes or more, so
  6214.  
  6215. interconnecting  them  with subnetworks having smaller values can
  6216.  
  6217. result in considerable fragmentation. For this reason, IP  imple-
  6218.  
  6219. mentors  working  with  links  or  subnets having unusually small
  6220.  
  6221. packet size limits are encouraged to use  transparent  fragmenta-
  6222.  
  6223. tion,  that  is, to devise schemes to break up large IP datagrams
  6224.  
  6225. into a sequence of link or subnet  frames  that  are  immediately
  6226.  
  6227. reassembled  on the other end of the link or subnet into the ori-
  6228.  
  6229. ginal, whole IP datagram without the use of  IP-level  fragmenta-
  6230.  
  6231. tion.  Such  a  scheme  is provided in AX.25 Version 2.1.  It can
  6232.  
  6233. break a large IP or NET/ROM datagram into  a  series  of  paclen-
  6234.  
  6235. sized  AX.25 segments (not to be confused with TCP segments), one
  6236.  
  6237. per AX.25 I-frame, for transmission and reassemble  them  into  a
  6238.  
  6239. single datagram at the other end of the link before handing it up
  6240.  
  6241. to the IP or NET/ROM  module.   Unfortunately,  the  segmentation
  6242.  
  6243. procedure  is a new feature in AX.25 and is not yet widely imple-
  6244.  
  6245. mented; in fact, net.exe is so far the only known implementation.
  6246.  
  6247. This  creates  some interoperability problems between net.exe and
  6248.  
  6249. non-net.exe nodes, in particular, standard  NET/ROM  nodes  being
  6250.  
  6251. used  to carry IP datagrams. This problem is discussed further in
  6252.  
  6253. the section on setting the MTU.
  6254.  
  6255.  
  6256.  
  6257. 9.4.2.  Setting paclen and bufsize
  6258.  
  6259.  
  6260.  
  6261. The more data you put into an AX.25  I  frame,  the  smaller  the
  6262.  
  6263. AX.25  headers  are in relation to the total frame size. In other
  6264.  
  6265. words, by increasing paclen, you lower the AX.25  protocol  over-
  6266.  
  6267. head. Also, large data packets reduce the overhead of keying up a
  6268.  
  6269. transmitter, and this can be  an  important  factor  with  higher
  6270.  
  6271. speed modems. On the other hand, large frames make bigger targets
  6272.  
  6273. for noise and interference. Each link has  an  optimum  value  of
  6274.  
  6275. paclen that is best discovered by experiment.
  6276.  
  6277.  
  6278.  
  6279. Another thing to remember when setting paclen is that  the  AX.25
  6280.  
  6281. version  2.0  specification  limits  it  to  256  bytes. Although
  6282.  
  6283. net.exe can handle much larger values, some other AX.25 implemen-
  6284.  
  6285. tations (including digipeaters) cannot and this may cause intero-
  6286.  
  6287. perability problems. Even net.exe may have trouble  with  certain
  6288.  
  6289. KISS  TNCs  because  of fixed-size buffers. The original KISS TNC
  6290.  
  6291. code for the TNC-2 by K3MC can handle frames limited in size only
  6292.  
  6293. by the RAM in the TNC, but some other KISS TNCs cannot.
  6294.  
  6295.  
  6296.  
  6297. Net.exe's built-in HDLC drivers (SCC, PC-100, DRSI, etc) allocate
  6298.  
  6299. receive  buffers according to the maximum expected frame size, so
  6300.  
  6301.  
  6302.  
  6303.  
  6304.  
  6305.  
  6306.  
  6307. updated by Bill Simpson April 15, 1991 March 3, 1991
  6308.  
  6309.  
  6310.  
  6311.  
  6312.  
  6313.  
  6314.  
  6315.  
  6316.  
  6317.  
  6318.  
  6319.                            - 52 -
  6320.  
  6321.  
  6322.  
  6323.  
  6324.  
  6325. it is important that these devices be configured with the correct
  6326.  
  6327. bufsize. To do this, you must know the size of the largest possi-
  6328.  
  6329. ble frame that can be received.  The  paclen  parameter  controls
  6330.  
  6331. only  the  size of the data field in an I-frame and not the total
  6332.  
  6333. size of the frame as it appears on the air. The AX.25 spec allows
  6334.  
  6335. up  to  8 digipeaters, so the largest possible frame is (paclen +
  6336.  
  6337. 72) bytes. So you should make bufsize at least this large.
  6338.  
  6339.  
  6340.  
  6341. Another important consideration is that the more recent  versions
  6342.  
  6343. of  NOS  improve interrupt response by maintaining a special pool
  6344.  
  6345. of buffers for use by the receive routines.   These  buffers  are
  6346.  
  6347. currently  fixed  in  size  to 2048 bytes and this can be changed
  6348.  
  6349. only by editing config.h and recompiling NOS.  This  limits  buf-
  6350.  
  6351. size;  in  fact,  attempting  to set a larger value may cause the
  6352.  
  6353. driver not to work at all. This situation can be detected by run-
  6354.  
  6355. ning  the  memory status command and looking for a non-zero count
  6356.  
  6357. of Ibuffail events, although these events can  also  occur  occa-
  6358.  
  6359. sionally during normal operation.
  6360.  
  6361.  
  6362.  
  6363. One of the drawbacks of AX.25 that there is no way for  one  sta-
  6364.  
  6365. tion  to tell another how large a packet it is willing to accept.
  6366.  
  6367. This requires the stations sharing a channel to agree  beforehand
  6368.  
  6369. on a maximum packet size. TCP is different, as we shall see.
  6370.  
  6371.  
  6372.  
  6373. 9.4.3.  Setting Maxframe
  6374.  
  6375.  
  6376.  
  6377. For best performance on a  half-duplex  radio  channel,  maxframe
  6378.  
  6379. should always be set to 1. The reasons are explained in the paper
  6380.  
  6381. Link Level Protocols Revisited by  Brian  Lloyd  and  Phil  Karn,
  6382.  
  6383. which  appeared  in the proceedings of the ARRL 5th Computer Net-
  6384.  
  6385. working Conference in 1986.
  6386.  
  6387.  
  6388.  
  6389. 9.4.4.  Setting MTU
  6390.  
  6391.  
  6392.  
  6393. TCP/IP header overhead considerations similar  to  those  of  the
  6394.  
  6395. AX.25 layer when setting paclen apply when choosing an MTU.  How-
  6396.  
  6397. ever, certain subnetwork types supported by  net.exe  have  well-
  6398.  
  6399. established MTUs, and these should always be used unless you know
  6400.  
  6401. what you're doing: 1500 bytes for Ethernet,  and  508  bytes  for
  6402.  
  6403. ARCNET. The MTU for PPP is automatically negotiated, and defaults
  6404.  
  6405. to 1500. Other subnet types, including SLIP and AX.25, are not as
  6406.  
  6407. well standardized.
  6408.  
  6409.  
  6410.  
  6411. SLIP has no official MTU, but the most common implementation (for
  6412.  
  6413. BSD  UNIX)  uses  an  MTU of 1006 bytes.  Although net.exe has no
  6414.  
  6415. hard wired limit on the size of a received SLIP  frame,  this  is
  6416.  
  6417. not  true for other systems. Interoperability problems may there-
  6418.  
  6419. fore result if larger MTUs are used in net.exe.
  6420.  
  6421.  
  6422.  
  6423. Choosing an MTU for an AX.25 interface is more complex. When  the
  6424.  
  6425. interface operates in datagram (UI-frame) mode, the paclen param-
  6426.  
  6427. eter does not apply. The MTU effectively becomes  the  paclen  of
  6428.  
  6429. the  link.   However, as mentioned earlier, large packets sent on
  6430.  
  6431. AX.25 connections are automatically segmented  into  I-frames  no
  6432.  
  6433.  
  6434.  
  6435.  
  6436.  
  6437.  
  6438.  
  6439. updated by Bill Simpson April 15, 1991 March 3, 1991
  6440.  
  6441.  
  6442.  
  6443.  
  6444.  
  6445.  
  6446.  
  6447.  
  6448.  
  6449.  
  6450.  
  6451.                            - 53 -
  6452.  
  6453.  
  6454.  
  6455.  
  6456.  
  6457. larger  than  paclen bytes. Unfortunately, as also mentioned ear-
  6458.  
  6459. lier, net.exe is so far the only known implementation of the  new
  6460.  
  6461. AX.25  segmentation procedure. This is fine as long as all of the
  6462.  
  6463. NET/ROM nodes along a path are running  net.exe,  but  since  the
  6464.  
  6465. main  reason net.exe supports NET/ROM is to allow use of existing
  6466.  
  6467. NET/ROM networks, this is unlikely.
  6468.  
  6469.  
  6470.  
  6471. So it is usually important to avoid AX.25 segmentation when  run-
  6472.  
  6473. ning  IP  over  NET/ROM.  The way to do this is to make sure that
  6474.  
  6475. packets larger than paclen are never handed to AX.25.  A  NET/ROM
  6476.  
  6477. transport  header  is  5  bytes long and a NET/ROM network header
  6478.  
  6479. takes 15 bytes, so 20 bytes must be added to the size  of  an  IP
  6480.  
  6481. datagram  when figuring the size of the AX.25 I-frame data field.
  6482.  
  6483. If paclen is 256, this leaves 236 bytes for the IP datagram. This
  6484.  
  6485. is  the default MTU of the netrom pseudo-interface, so as long as
  6486.  
  6487. paclen is at least 256 bytes, AX.25  segmentation  can't  happen.
  6488.  
  6489. But  if  smaller  values  of paclen are used, the netrom MTU must
  6490.  
  6491. also be reduced with the ifconfig command.
  6492.  
  6493.  
  6494.  
  6495. On the other hand, if you're running IP directly on top of AX.25,
  6496.  
  6497. chances  are  all  of  the  nodes are running net.exe and support
  6498.  
  6499. AX.25 segmentation. In this case there is no reason not to use  a
  6500.  
  6501. larger MTU and let AX.25 segmentation do its thing. If you choose
  6502.  
  6503. an MTU on the order of 1000-1500 bytes,  you  can  largely  avoid
  6504.  
  6505. IP-level fragmentation and reduce TCP/IP-level header overhead on
  6506.  
  6507. file transfers to a very low level. And you  are  still  free  to
  6508.  
  6509. pick whatever paclen value is appropriate for the link.
  6510.  
  6511.  
  6512.  
  6513. 9.4.5.  Setting MSS
  6514.  
  6515.  
  6516.  
  6517. The setting of this TCP-level parameter is somewhat less critical
  6518.  
  6519. than  the IP and AX.25 level parameters already discussed, mainly
  6520.  
  6521. because it is automatically lowered according to the MTU  of  the
  6522.  
  6523. local  interface  when a connection is created. Although this is,
  6524.  
  6525. strictly speaking, a protocol layering violation (TCP is not sup-
  6526.  
  6527. posed to have any knowledge of the workings of lower layers) this
  6528.  
  6529. technique does work well in practice. However, it can be  fooled;
  6530.  
  6531. for  example, if a routing change occurs after the connection has
  6532.  
  6533. been opened and the new local interface has a  smaller  MTU  than
  6534.  
  6535. the previous one, IP fragmentation may occur in the local system.
  6536.  
  6537.  
  6538.  
  6539. The only drawback to setting a large MSS is that it  might  cause
  6540.  
  6541. avoidable  fragmentation  at  some other point within the network
  6542.  
  6543. path if it includes a "bottleneck" subnet  with  an  MTU  smaller
  6544.  
  6545. than  that  of  the  local  interface.  (Unfortunately,  there is
  6546.  
  6547. presently no way to know when this is the case. There is  ongoing
  6548.  
  6549. work  within  the  Internet  Engineering  Task  Force  on  a "MTU
  6550.  
  6551. Discovery" procedure to determine the largest datagram  that  may
  6552.  
  6553. be  sent  over  a given path without fragmentation, but it is not
  6554.  
  6555. yet complete.) Also, since the MSS you specify  is  sent  to  the
  6556.  
  6557. remote  system,  and  not all other TCPs do the MSS-lowering pro-
  6558.  
  6559. cedure yet, this might cause the remote  system  to  generate  IP
  6560.  
  6561. fragments unnecessarily.
  6562.  
  6563.  
  6564.  
  6565.  
  6566.  
  6567.  
  6568.  
  6569.  
  6570.  
  6571. updated by Bill Simpson April 15, 1991 March 3, 1991
  6572.  
  6573.  
  6574.  
  6575.  
  6576.  
  6577.  
  6578.  
  6579.  
  6580.  
  6581.  
  6582.  
  6583.                            - 54 -
  6584.  
  6585.  
  6586.  
  6587.  
  6588.  
  6589. On the other hand, a too-small MSS can result in  a  considerable
  6590.  
  6591. performance  loss,  especially  when operating over fast LANs and
  6592.  
  6593. networks that can handle larger packets. So the  best  value  for
  6594.  
  6595. MSS is probably 40 less than the largest MTU on your system, with
  6596.  
  6597. the 40-byte margin allowing for the TCP and IP headers. For exam-
  6598.  
  6599. ple,  if  you  have  a SLIP interface with a 1006 byte MTU and an
  6600.  
  6601. Ethernet interface with a 1500 byte MTU, set MSS to  1460  bytes.
  6602.  
  6603. This allows you to receive maximum-sized Ethernet packets, assum-
  6604.  
  6605. ing the path to your system does not have any bottleneck  subnets
  6606.  
  6607. with smaller MTUs.
  6608.  
  6609.  
  6610.  
  6611. 9.4.6.  Setting Window
  6612.  
  6613.  
  6614.  
  6615. A sliding window protocol like TCP cannot transfer more than  one
  6616.  
  6617. window's  worth  of  data  per  round trip time interval. So this
  6618.  
  6619. TCP-level parameter controls the ability of  the  remote  TCP  to
  6620.  
  6621. keep a long "pipe" full. That is, when operating over a path with
  6622.  
  6623. many hops, offering a large TCP window will help keep  all  those
  6624.  
  6625. hops busy when you're receiving data. On the other hand, offering
  6626.  
  6627. too large a window can congest the network if  it  cannot  buffer
  6628.  
  6629. all  that  data. Fortunately, new algorithms for dynamic control-
  6630.  
  6631. ling the effective TCP flow control window  have  been  developed
  6632.  
  6633. over  the  past  few  years  and are now widely deployed. Net.exe
  6634.  
  6635. includes them, and you can watch them  in  action  with  the  tcp
  6636.  
  6637. status  <tcb>  or  socket  <sockno>  commands.  Look at the cwind
  6638.  
  6639. (congestion window) value.
  6640.  
  6641.  
  6642.  
  6643. In most cases it is safe to set the TCP window to a small integer
  6644.  
  6645. multiple  of  the  MSS  (eg.  4 times), or larger if necessary to
  6646.  
  6647. fully utilize a high bandwidth*delay product path. One  thing  to
  6648.  
  6649. keep  in  mind, however, is that advertising a certain TCP window
  6650.  
  6651. value declares that the system has that much buffer space  avail-
  6652.  
  6653. able  for  incoming  data.  Net.exe does not actually preallocate
  6654.  
  6655. this space; it keeps it in a common pool and may well  "overbook"
  6656.  
  6657. it,  exploiting  the  fact that many TCP connections are idle for
  6658.  
  6659. long periods and gambling that most applications will read incom-
  6660.  
  6661. ing data from an active connection as soon as it arrives, thereby
  6662.  
  6663. quickly freeing the buffer memory. However, it is possible to run
  6664.  
  6665. net.exe  out  of  memory if excessive TCP window sizes are adver-
  6666.  
  6667. tised and either the applications go to sleep  indefinitely  (eg.
  6668.  
  6669. suspended  Telnet  sessions)  or  a  lot  of out-of-sequence data
  6670.  
  6671. arrives. It is wise to keep an eye on  the  amount  of  available
  6672.  
  6673. memory  and  to decrease the TCP window size (or limit the number
  6674.  
  6675. of simultaneous connections) if it gets too low.
  6676.  
  6677.  
  6678.  
  6679. Depending on the channel access method and link  level  protocol,
  6680.  
  6681. the  use  of  a  window setting that exceeds the MSS may cause an
  6682.  
  6683. increase in channel collisions. In particular, collisions between
  6684.  
  6685. data  packets  and  returning acknowledgements during a bulk file
  6686.  
  6687. transfer may become common. Although this is, strictly  speaking,
  6688.  
  6689. not TCP's fault, it is possible to work around the problem at the
  6690.  
  6691. TCP level by decreasing the window so that the protocol  operates
  6692.  
  6693. in  stop-and-wait  mode.  This is done by making the window value
  6694.  
  6695. equal to the MSS.
  6696.  
  6697.  
  6698.  
  6699.  
  6700.  
  6701.  
  6702.  
  6703. updated by Bill Simpson April 15, 1991 March 3, 1991
  6704.  
  6705.  
  6706.  
  6707.  
  6708.  
  6709.  
  6710.  
  6711.  
  6712.  
  6713.  
  6714.  
  6715.                            - 55 -
  6716.  
  6717.  
  6718.  
  6719.  
  6720.  
  6721. 9.5.  Summary
  6722.  
  6723.  
  6724.  
  6725. In most cases, the default values provided by net.exe for each of
  6726.  
  6727. these  parameters will work correctly and give reasonable perfor-
  6728.  
  6729. mance. Only in special circumstances such  as  operation  over  a
  6730.  
  6731. very  poor  link or experimentation with high speed modems should
  6732.  
  6733. it be necessary to change them.
  6734.  
  6735.  
  6736.  
  6737.  
  6738.  
  6739.  
  6740.  
  6741.  
  6742.  
  6743.  
  6744.  
  6745.  
  6746.  
  6747.  
  6748.  
  6749.  
  6750.  
  6751.  
  6752.  
  6753.  
  6754.  
  6755.  
  6756.  
  6757.  
  6758.  
  6759.  
  6760.  
  6761.  
  6762.  
  6763.  
  6764.  
  6765.  
  6766.  
  6767.  
  6768.  
  6769.  
  6770.  
  6771.  
  6772.  
  6773.  
  6774.  
  6775.  
  6776.  
  6777.  
  6778.  
  6779.  
  6780.  
  6781.  
  6782.  
  6783.  
  6784.  
  6785.  
  6786.  
  6787.  
  6788.  
  6789.  
  6790.  
  6791.  
  6792.  
  6793.  
  6794.  
  6795.  
  6796.  
  6797.  
  6798.  
  6799.  
  6800.  
  6801.  
  6802.  
  6803.  
  6804.  
  6805.  
  6806.  
  6807.  
  6808.  
  6809.  
  6810.  
  6811.  
  6812.  
  6813.  
  6814.  
  6815.  
  6816.  
  6817.  
  6818.  
  6819.  
  6820.  
  6821.  
  6822.  
  6823.  
  6824.  
  6825.  
  6826.  
  6827.  
  6828.  
  6829.  
  6830.  
  6831.  
  6832.  
  6833.  
  6834.  
  6835. updated by Bill Simpson April 15, 1991 March 3, 1991
  6836.  
  6837.  
  6838.  
  6839.  
  6840.  
  6841.