home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / docs106.zip / INTRONOS.ZIP / INTRONOS.TXT < prev    next >
Text File  |  1992-04-24  |  60KB  |  1,366 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.         Getting Started with TCP/IP on Packet Radio
  11.  
  12.  
  13.         by John Ackermann, AG9V
  14.         Miami Valley FM Association
  15.         Dayton, Ohio
  16.  
  17.  
  18.  
  19.  
  20.  
  21.         20 April 1992
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.     Copyright 1992 by John R. Ackermann, Jr.
  31.     This document may be freely distributed in unaltered form for non-
  32.     commercial use only, provided this copyright notice is included.
  33.  
  34.                 *** Introduction ***
  35.     
  36.     This document is intended to help hams with some experience in 
  37.     packet radio get started with the TCP/IP software written by KA9Q 
  38.     and others.  It is not intended to take the place of the software's 
  39.     reference manual, but rather to provide a quick-and-dirty 
  40.     introduction to the capabilities of TCP/IP and the mysteries of 
  41.     installing and using the software.
  42.     
  43.     There are several different versions of the KA9Q software floating 
  44.     around.  It was originally written for MS-DOS computers, but has 
  45.     been ported to Macintosh, Amiga, Atari and UNIX systems.  The 
  46.     original program was called "NET" and its last formal version was 
  47.     issued in April, 1989.  If someone talks about "890421.1 NET," 
  48.     that's what they're referring to.
  49.     
  50.     Since 1989, work has concentrated on a rewritten program called 
  51.     "NOS" (for Network Operating System, though confusingly the 
  52.     executable program for PCs is usually still called "NET.EXE").  NOS 
  53.     offers many new features that make using TCP/IP much more 
  54.     effective; you should use it instead of NET.  However, NOS is a 
  55.     growing and changing creature; since there are several different 
  56.     versions, and they are being updated rapidly, I can't tell you 
  57.     precisely where to find the latest, greatest version.  Your best bet 
  58.     is to check with a local user.  If that doesn't work, there are 
  59.     several telephone BBS systems that carry various flavors of NOS:
  60.     
  61.         N8EMR's Ham BBS    (614) 895-2553
  62.         ChowdaNet    (401) 331-0334
  63.         WB3FFV        (301) 335-0858
  64.     
  65.     The version I'm using, and which is reflected in this document, is 
  66.     PA0GRI's adaptation of NOS version 061891, as modified and 
  67.     distributed by N1BEE and available as "GRINOS" from the 
  68.     ChowdaNet BBS.  I try not to dwell on features that are specific to 
  69.     this version, but if something I say doesn't seem to match your 
  70.     software, that's probably why.
  71.     
  72.     A last note before plunging in -- I said it before, and I'll say it 
  73.     again:  this document barely scratches the surface of NOS.  Nearly 
  74.     every command described here has options or parameters that I'm 
  75.     ignoring.  My goal is to give you a feel for what TCP/IP does, and 
  76.     to get you on the air with NOS; to get beyond the novice stage 
  77.     you need to look at the reference manual and experiment with the 
  78.     software.  Appendix A includes a list of organizations and 
  79.     individuals that can provide further information about TCP/IP and 
  80.     amateur radio.
  81.  
  82.             *** TCP/IP and Ham Radio ***
  83.     
  84.     TCP/IP is a set of communication protocols that have become a 
  85.     standard in the computer networking world.  It is designed to link 
  86.     different kinds of computer systems together over dissimilar 
  87.     networks.  TCP/IP software runs on nearly every kind of computer 
  88.     available, from IBM mainframes to PCs, Macs, Amigas, and Ataris.  
  89.     The KA9Q software (from now on, I'll call it "NOS") is special 
  90.     because it includes the features necessary to run TCP/IP over ham 
  91.     packet radio.
  92.     
  93.     The TCP/IP protocol suite allows different kinds of computers to 
  94.     talk to one another across networks.  The services it provides 
  95.     include terminal sessions, file transfer, electronic mail, and data 
  96.     routing services.  Computers running TCP/IP (referred to as 
  97.     "hosts") can run some or all of these applications simultaneously; 
  98.     it's entirely possible to sit at a PC computer running NOS and carry 
  99.     on a keyboard-to-keyboard chat with one station, while another 
  100.     retrieves a file from your hard disk and you send electronic mail to 
  101.     a third.
  102.     
  103.     It's also comforting to know that when you run TCP/IP, you don't 
  104.     give up the ability to carry on normal packet communications.  You 
  105.     can use NOS just like a terminal program to establish connections 
  106.     with your local BBS or to chat with friends who don't run NOS 
  107.     (yet).
  108.     
  109.     If you've looked at the size of the NOS documentation, you're 
  110.     probably asking yourself what the benefit is of mastering this fairly 
  111.     complex stuff.  Well, NOS has several features that improve on 
  112.     regular packet radio.  It has much more sophisticated file transfer 
  113.     and electronic mail capabilities than our present PBBS systems 
  114.     (and it's possible to feed PBBS messages into NOS in a way that 
  115.     makes it much easier to use them).  It supports multiple 
  116.     simultaneous connections.  It has new and better transport 
  117.     methods that improve the reliability and throughput of slow and 
  118.     congested channels.
  119.     
  120.     NOS also has the ability to route transmissions to distant stations 
  121.     without the user needing to know every hop along the way; all 
  122.     you need to do is get your data to a "gateway" station that knows 
  123.     how to move it one hop closer to its destination.  New work being 
  124.     done with NOS promises dynamic routing that automatically 
  125.     adjusts to changes in the network.
  126.     
  127.     And, since it is directly adapted from the de facto standard system 
  128.     of interconnecting computers, NOS offers the possibility of 
  129.     sophisticated services far beyond anything available on regular 
  130.     packet radio.  For example, in some areas ham TCP/IP users can 
  131.     log into multi-user UNIX computer systems and run applications as 
  132.     if they were directly connected to those machines.
  133.  
  134.                 *** What is TCP/IP? *** 
  135.     
  136.     As mentioned above, TCP/IP is actually a set of protocols for the 
  137.     transfer of data across networks of computers.  Two of these 
  138.     protocols underlie most of the others, and they give the set its 
  139.     popular name:
  140.     
  141.     TCP    Transport Control Protocol, a "reliable stream service" 
  142.         (which is a fancy way of saying it makes sure that all the 
  143.         data sent to a remote host actually gets there), and
  144.     
  145.     IP    Internet Protocol, which sets the basic rules for 
  146.         formatting packets of data to go out over a network.  
  147.         TCP rides on top of IP.
  148.     
  149.     Now that you finally know what "TCP/IP" stands for, there are a 
  150.     few concepts that are critical because they address a basic 
  151.     problem in any communications system -- identifying the parties to 
  152.     the conversation.  Simply using our ham callsigns to address 
  153.     TCP/IP packets doesn't work for two reasons.  First, the protocols 
  154.     work across many different networks, and have to have a 
  155.     consistent address scheme.  Second, and as important, ham 
  156.     callsigns don't contain enough information to allow TCP/IP's 
  157.     sophisticated routing mechanisms to work.
  158.     
  159.     
  160.     Names and Addresses
  161.     
  162.     The first important concept is the "IP Address."  Since these 
  163.     protocols are used on lots of different computers, it is necessary to 
  164.     use an addressing system that works with all of them, that 
  165.     provides adequate routing information, and that doesn't take up a 
  166.     lot of space.  The answer is to build addresses out of a four byte 
  167.     sequence of integers, with each byte providing information about 
  168.     the network and subnetwork(s) to which a host belongs.
  169.     
  170.     IP addresses are "hierarchical" because the four bytes have 
  171.     decreasing significance from left to right.  By looking at the 
  172.     leftmost byte(s) we can learn how to route a transmission to the 
  173.     host represented by the rightmost byte(s).  We usually print these 
  174.     addresses using the numeric value of each byte, separated by a 
  175.     period, such as [44.70.12.34].  This is known as "dotted 
  176.     notation."  The square brackets aren't strictly necessary, but they 
  177.     are convenient to set off IP addresses; I'll use them that way in 
  178.     this document.
  179.     
  180.     I won't go into all the semantics of hierarchical addressing here, 
  181.     but as an example the address [44.70.12.34] breaks down as:
  182.     
  183.         44.    The network assigned to amateur radio TCP/IP.
  184.         70.    The subnetwork for Ohio.
  185.         12.    The Dayton/Cincinnati subnetwork.
  186.         34    A specific system address within that area.
  187.  
  188.     IP addresses are assigned by coordinators who derive their 
  189.     authority from a central registry.  The coordinator for the ham 
  190.     radio net is Brian Kantor, WB6CYT.  He has delegated authority to 
  191.     assign addresses to various state and national coordinators.  The 
  192.     folks in Appendix A can help you find your local coordinator.
  193.     
  194.     The second important concept is the "hostname."  Obviously, IP 
  195.     addresses aren't very intuitive.  English-like hostnames make 
  196.     remembering addresses much easier, and TCP/IP programs, 
  197.     including NOS, have means (discussed below) to map between IP 
  198.     addresses and hostnames.  A "host" is any computer running 
  199.     TCP/IP; even when you're using services from another computer, 
  200.     your system is still a host.  When we talk about a "remote host," 
  201.     we're talking about a machine that you're communicating with via 
  202.     TCP/IP.
  203.     
  204.     The convention in ham radio TCP/IP is to use your callsign as your 
  205.     hostname.  To help reduce confusion, we usually print hostnames 
  206.     in lower case, and callsigns in capital letters -- my hostname is 
  207.     "ag9v," and my call is "AG9V" (though NOS isn't case sensitive 
  208.     and won't care if you don't do it this way).
  209.     
  210.     Closely related to the hostname is the "domain name."  A 
  211.     "domain" is a group of machines that are logically (though not 
  212.     necessarily physically) connected together.  Domain names are like 
  213.     IP addresses; periods separate parts of the name, with each part 
  214.     representing a different level in the domain hierarchy.  But the 
  215.     domain name is ordered in reverse -- its highest-level portion is at 
  216.     the right, the opposite of IP addresses.
  217.     
  218.     The ham network's domain is "ampr.org"; "org" (short for 
  219.     "organizations") is the top level domain, and "ampr" (for AMateur 
  220.     Packet Radio) is the second level domain, containing all ham 
  221.     TCP/IP hosts.
  222.     
  223.     When you combine a hostname with a domain name, you get 
  224.     something like "ag9v.ampr.org."  This is called a "Fully Qualified 
  225.     Domain Name" ("FQDN" -- knowing this acronym allows you to 
  226.     sound like a real expert).  If a host has multiple users, we can add 
  227.     the user's login name at the beginning of the address, separated 
  228.     from the FQDN by a "@" character.  This combination is 
  229.     commonly known as an "Internet address" (the "Internet" is the 
  230.     general term for all the TCP/IP hosts that are interconnected) and 
  231.     is the address form used for most electronic mail in the real world.  
  232.     For example, if there is a user "jra" at ag9v, "jra@ag9v.ampr.org" 
  233.     would be that user's full Internet address.
  234.     
  235.     There's one last twist.  Some services (such as Domain Name 
  236.     Service, discussed below) need to know whether an address they 
  237.     are processing is in fact an FQDN.  To do so, they look for a 
  238.     trailing period at the end of the domain name.  Some versions of 
  239.     NOS ignore this issue, but the PA0GRI versions (such as GRINOS) 
  240.     insist that you "anchor" all domain names with a period at the end 
  241.     of the name.  In other words, GRINOS will barf if you issue the 
  242.     command "hostname ag9v.ampr.org" but "hostname 
  243.     ag9v.ampr.org." will make it happy.
  244.  
  245.     This may seem like an overly complicated scheme to simply allow 
  246.     two hams to talk to each other, but we use it because the ham 
  247.     radio TCP/IP network can be tied to the worldwide TCP/IP network 
  248.     in a number of different ways, and using the full set of TCP/IP 
  249.     address conventions makes it possible for traffic to flow between 
  250.     the ham network and the real world.
  251.     
  252.     Leaving aside legal issues about third-party traffic, there's no 
  253.     reason, for example, why electronic mail can't be automatically 
  254.     routed through a "gateway" (a computer that interconnects two or 
  255.     more networks) between a ham TCP/IP user and a non-ham who 
  256.     has access to the Internet.  In fact, this service already exists in 
  257.     some areas.
  258.     
  259.     The good news is that for traffic within the ham network, we only 
  260.     need to worry about hostnames, and NOS's "domain suffix" 
  261.     command will take care of adding the "ampr.org" extension for us; 
  262.     we only need to deal with the full details of addressing if we want 
  263.     to go outside the ham radio network.
  264.     
  265.     
  266.     TCP/IP Services
  267.     
  268.     Now that we have those boring basics out of the way, the 
  269.     protocols that use TCP/IP to provide real, useful services include:
  270.     
  271.     TELNET    The terminal emulation program.  In "real" networks, 
  272.         telnet lets a user at one host remotely access a remote 
  273.         host, just as if he was on a terminal directly connected 
  274.         to that computer.  In NOS, the telnet function usually 
  275.         connects you to a remote host's mailbox, which acts 
  276.         very much like a personal PBBS.  The NOS telnet 
  277.         command does allow you to remotely login to a host that 
  278.         supports that function; in some areas UNIX computers 
  279.         connected to the ham TCP/IP network provide that 
  280.         service.
  281.     
  282.     FTP    File Transfer Protocol.  A means of transferring both 
  283.         ASCII (text) and binary (program, data, or compressed) 
  284.         files between hosts.
  285.     
  286.     SMTP    Simple Mail Transfer Protocol.  A (mostly) invisible way 
  287.         of moving electronic mail from one host to another.  If 
  288.         you create a message on your computer (using the BM 
  289.         program, discussed below), SMTP will automatically 
  290.         attempt to transfer it to the destination computer.
  291.     
  292.     POP    Post Office Protocol.  SMTP is neat, but it's really 
  293.         designed to work with hosts that are available full time.  
  294.         Most ham TCP/IP stations aren't.  POP is designed for 
  295.         them; it allows incoming mail to be stored at a host that 
  296.         acts as a "mail server;" when you come on the air, your 
  297.         system automatically asks the server to send you your 
  298.         mail.
  299.  
  300.     PING    Packet InterNet Groper.  A diagnostic that sends a packet 
  301.         to a specified host; if the host is accessible to you and 
  302.         on the air, it responds with another packet.  PING tells 
  303.         you how long the round trip took.
  304.     
  305.     FINGER    A way of finding out information about the users at a 
  306.         host.  The finger command can simply list all the users at 
  307.         a host, or spit out information (like the "brag tape" of 
  308.         RTTY days) about a specific user.
  309.     
  310.     ARP    Address Resolution Protocol.  IP addresses need to be 
  311.         matched with the correct hardware address (in our case, 
  312.         ham callsign) to allow packets to be sent to their 
  313.         destination -- NOS doesn't know what callsign goes with 
  314.         a given IP address.  ARP does this by sending out a 
  315.         broadcast message when it needs to know the callsign 
  316.         that matches an address.  The remote host (if it's on the 
  317.         air) will answer and provide its hardware address.
  318.     
  319.     DNS    Domain Name Service.  Remembering IP addresses isn't 
  320.         easy.  NOS can use a file called "DOMAIN.TXT" to 
  321.         contain mappings between hostnames and IP addresses, 
  322.         but that means you need to know the hostname and 
  323.         address of any station you want to contact.  
  324.         Alternatively, a remote host may agree to serve as a 
  325.         "domain name server" that NOS can query when it needs 
  326.         to know the address of a host.  Not all areas have a 
  327.         name server available to the ham community, but in 
  328.         those that do, life is a lot easier.
  329.  
  330.                 *** Installing NOS ***
  331.     
  332.     Frankly, there's no completely painless way to get NOS running on 
  333.     your computer.  NOS is somewhat picky about the directories used 
  334.     for its files, and there are a number of custom parameters that you 
  335.     must set to teach the program about your environment and your 
  336.     network.  Those parameters are contained in a configuration file 
  337.     that most versions of NOS call "AUTOEXEC.NET" (PA0GRI 
  338.     versions use "AUTOEXEC.NOS;" our references to 
  339.     "AUTOEXEC.NET" mean whichever name is appropriate).
  340.     
  341.     
  342.     Files and Directories
  343.     
  344.     You should create the following directories on your disk (NOS can 
  345.     work from either a hard disk or a floppy; it's getting big enough, 
  346.     though, that working from a 360K floppy can be tough):
  347.     
  348.     \spool                (holds NOS' working files)
  349.     \spool\help            (help files for the mbox)
  350.     \spool\mail            (mail messages go here)
  351.     \spool\mqueue            (mail workfiles)
  352.     \spool\rqueue            (incoming mail workfiles)
  353.     \finger                (home for finger info files)
  354.     \public                (file uploads/downloads)
  355.     
  356.     These files need to go in the root directory of your default disk (it 
  357.     is possible to configure NOS to look for these files in other than 
  358.     the root directory; see the reference manual for details):
  359.     
  360.     AUTOEXEC.NET            (the NOS configuration file) 
  361.     FTPUSERS            (user ftp/mbox access)
  362.     DOMAIN.TXT            (hostnames)
  363.     BM.RC                (mail program configuration)
  364.     ALIAS                (used by smtp and BM)
  365.     
  366.     NOS uses two executable files.  These can be installed anywhere 
  367.     on your file path:
  368.     
  369.     NET.EXE, NOS.EXE, or GRINOS.EXE    (main executable)
  370.     BM.EXE                (mailer program)
  371.     
  372.     
  373.     Setting up AUTOEXEC.NET
  374.     
  375.     Once the directories are created and the files copied, you need to 
  376.     edit the AUTOEXEC.NET file with a text editor to customize it.  A 
  377.     sample file is included as Appendix B.  Some of the things you'll 
  378.     have to put in the file are:
  379.     
  380.     Your hostname (usually your callsign in lower case):
  381.         hostname ag9v.ampr.org.
  382.     
  383.     Your IP address:
  384.         IP address [44.70.12.34]
  385.  
  386.     Your callsign (optionally including an SSID; local customs vary on 
  387.     this):
  388.         ax25 mycall AG9V
  389.     
  390.     "attach" commands to tell NOS how to talk to your hardware.  
  391.     These can get quite hairy; Appendix C has the details.  For a TNC 
  392.     on COM 1 at 4800 baud serial port speed, use:
  393.         attach asy 0x3f8 4 ax25 ax0 1024 256 4800
  394.     
  395.     The "ax0" in the middle of the command is the "interface" name -- 
  396.     you use it to identify this port to NOS when you set up routing 
  397.     commands and the like.  You can use any (short) name you'd like, 
  398.     but the convention for COM ports is to use ax0, ax1, etc.
  399.     
  400.     At least one routing command.  NOS needs to know where to 
  401.     send packets.  A default route that sends all packets out the ax0 
  402.     interface is:
  403.         route add default ax0
  404.     
  405.     If you have a gateway for packets going outside the local area, 
  406.     include a route like:
  407.         route add [44.70.13.0]/24 ax0 ag9v
  408.     
  409.     This command would route packets addressed to any host with 
  410.     "44.70.13" as the first three bytes of its address out the ax0 
  411.     interface to ag9v, which presumably knows how to get these 
  412.     packets to their destination.  The "/24" means that the first 24 bits 
  413.     (three bytes) of the address are significant; NOS will ignore the 
  414.     last byte when making routing decisions.
  415.     
  416.     If you have a domain name server, add a command near the 
  417.     beginning of your configuration file identifying its IP address:
  418.         domain addserver [44.70.12.34]
  419.     
  420.     If you have a local mail server that knows how to route messages 
  421.     outside the area (see the discussion of electronic mail, below), add 
  422.     a command identifying it:
  423.         smtp gateway [44.70.12.34]
  424.     
  425.     
  426.     Storing Name/Address Matches in DOMAIN.TXT
  427.     
  428.     If you don't have a local domain name server (DNS), you'll need to 
  429.     create "DOMAIN.TXT" in the root directory, with one entry for 
  430.     every hostname you want to communicate with.  Appendix D 
  431.     shows how to set up this file.  If you don't have an entry for a 
  432.     host in the file (or the name server doesn't know about it), you 
  433.     can use the IP address instead of the hostname in NOS 
  434.     commands.
  435.     
  436.     If you're using DNS, NOS will save the hostname/address matches 
  437.     it gets from the server in DOMAIN.TXT, so you'll find that file 
  438.     existing (and growing) even if you didn't create it.
  439.  
  440.     Giving the Finger
  441.     
  442.     If you want users to be able to learn about your station with the 
  443.     finger command, you need to create a text file in the \finger 
  444.     directory called <hostname>.txt (by the way, when we use angle 
  445.     brackets like this, it means this is a value you'll need to insert 
  446.     yourself -- minus the angles -- based on your own configuration).  
  447.     You can use any ASCII text editor to create the file; it should 
  448.     contain basic info about your system.  Don't go overboard... one 
  449.     screen of text is plenty.
  450.     
  451.     You can also create additional files with information about specific 
  452.     aspects of your system.  For example, you might have a list of the 
  453.     files available for downloading on your system in a finger file called 
  454.     "filelist.txt."  A remote host who issues the command "finger 
  455.     filelist@<myhost>" will get that list.
  456.     
  457.     
  458.     Some Boring but Necessary Technical Stuff
  459.     
  460.     Before we move on to the good stuff about how to make NOS do 
  461.     magic, we need to talk about three related commands that you 
  462.     may need to tweak depending on local custom and the quality of 
  463.     the RF paths you're using.  Just as regular AX.25 uses the 
  464.     "paclen" command to limit the size of packets, TCP/IP has 
  465.     parameters defining how much data is moved in one chunk.  In 
  466.     theory, the larger the datagram (TCP/IP's term for a single block of 
  467.     data), the higher the efficiency, because the protocol headers add 
  468.     a fixed amount of overhead; in larger datagrams the overhead is a 
  469.     smaller percentage of the total data sent.
  470.     
  471.     However, some networks (such as NetRom) can't handle large 
  472.     datagrams in one piece.  More importantly, the larger the 
  473.     datagram, the longer it takes to transmit, and on a busy or flaky 
  474.     path, the greater the likelihood that something will corrupt it along 
  475.     the way.  And, it takes longer to resend a large packet than a 
  476.     small one, so the cost of retries is greater.  Because of these 
  477.     factors, a fast network with clear channels and solid paths can get 
  478.     away with sending much larger datagrams than a slow, unreliable 
  479.     one.
  480.     
  481.     NOS provides three parameters that deal with datagram sizes.  The 
  482.     most important one is the "mtu" (the sixth value in the "attach 
  483.     asy" command described above).  It is similar to paclen; it sets the 
  484.     largest packet, including any headers, that can be sent on an 
  485.     interface.  Datagrams larger than the mtu are fragmented into 
  486.     multiple pieces, which seriously reduces efficiency.  Each interface 
  487.     has its own mtu, set as part of its attach command.
  488.     
  489.     For 1200 baud channels that are shared with other packet users, 
  490.     an mtu value of 256 is reasonable; in fact, since that is the largest 
  491.     packet size most non-TCP/IP ham networks (like digipeaters and 
  492.     NetRom) are designed to handle, 256 is the largest mtu you should 
  493.     specify if any of your packets are going to travel via such a node.
  494.  
  495.     Faster networks may use higher values.  For good-quality channels 
  496.     with fast data rates (9600 baud or above), it may be reasonable to 
  497.     use an mtu ranging from 512 to 1500 (which matches the 
  498.     standard mtu used by ethernet systems).
  499.     
  500.     The other two parameters that set datagram size are part of the 
  501.     TCP protocol.  "tcp mss" (maximum segment size) is the largest 
  502.     chunk of data that TCP will send in a single frame.  Because the 
  503.     TCP and IP headers attached to each datagram total 40 bytes, mss 
  504.     should be 40 bytes smaller than mtu; 216 is the correct value for 
  505.     an mtu of 256.
  506.     
  507.     The "tcp window" parameter tells NOS how many datagrams it 
  508.     can have outstanding at once -- if it is twice the value of mss, 
  509.     NOS can receive two datagrams before sending an 
  510.     acknowledgment.  This parameter is analogous to the "maxframe" 
  511.     parameter in AX.25.  A large window improves efficiency because, 
  512.     among other things, multiple acknowledgments can be sent in a 
  513.     single packet.
  514.     
  515.     Although using a large window has major benefits on full duplex 
  516.     networks, on typical ham networks best performance comes from 
  517.     smaller windows ranging from one to three times the mss.  A good 
  518.     starting point is to set the window equal to twice the value of mss 
  519.     (432 for an mss of 216).
  520.     
  521.     In summary, good starting points are:
  522.     
  523.     1200 baud, shared channel:        9600 or faster, clear channel:
  524.         mtu 256                    mtu 1500
  525.         tcp mss 216                tcp mss 1460
  526.         tcp window 432                tcp window 2920
  527.     
  528.     
  529.     Even more than in other parts of this manual, this discussion 
  530.     glosses over lots of subtleties.  Throughput can be drastically 
  531.     affected by tuning these values, and both experimentation and 
  532.     local consensus are necessary to come up with settings that work 
  533.     well without stomping on other users of the channel.
  534.  
  535.                 *** Using NOS ***
  536.     
  537.     To run NOS, first make sure you have your TNC configured for 
  538.     "KISS" mode (see Appendix F for details) and turned on.  Then, 
  539.     type NET, NOS, or GRINOS (as appropriate).  In a few seconds, 
  540.     you should see a "net>" prompt.  Any error messages that appear 
  541.     first probably indicate a problem with one or more commands in 
  542.     your AUTOEXEC.NET file.
  543.     
  544.     When you see the prompt, NOS is in "command mode."  When 
  545.     you are communicating with another host, NOS is in "converse 
  546.     mode."  To return to command mode from converse mode, press 
  547.     the F10 function key (sometimes called the "escape" key, but not 
  548.     to be confused with the "ESC" key on your keyboard).  All 
  549.     commands typed at the NOS prompt need to be followed by the 
  550.     return key.
  551.     
  552.     Typing "?" in command mode will display a list of commands.  
  553.     Typing a command name followed by ? will display the valid 
  554.     subcommands.  You can't really call it a help system, but it's 
  555.     better than nothing.
  556.     
  557.     Some commands can be abbreviated to save typing; the degree of 
  558.     abbreviation allowed depends on the command set of the NOS 
  559.     version you're using.  Experimentation is the best way to see what 
  560.     works and what doesn't.  One minor annoyance in GRINOS is that 
  561.     commands are case sensitive -- "c ax0 n8acv" is fine,  but "C ax0 
  562.     n8acv" isn't.  It's safest to do all your NOS keyboarding in lower 
  563.     case -- apart from case sensitive commands, in the Email world, 
  564.     typing in all upper case is considered shouting!
  565.     
  566.     You can issue several commands from within NOS to deal with 
  567.     files and directories.  "pwd" displays your current working 
  568.     directory, and "cd" allows you to change directories.  "dir" 
  569.     displays files in the current directory.  "mkdir <dirname>" creates 
  570.     a new directory, and "rmdir <dirname>" removes one.  "delete 
  571.     <filename>" erases a file.  
  572.     
  573.     You can also "shell out" to DOS from within NOS by entering 
  574.     either an exclamation mark (!) or the command "shell."  To return 
  575.     to NOS, type "exit" at the DOS prompt.
  576.     
  577.     From command mode, you can start a number of different types of 
  578.     sessions to communicate with remote hosts.  Each session has its 
  579.     own display screen and you can switch between a session and 
  580.     command mode, or between sessions.  The se command displays 
  581.     the active sessions with identifying numbers.  To switch to a 
  582.     session, you can type "se <session number>."  From command 
  583.     mode, you can return to the current (most recently displayed) 
  584.     session by entering a carriage return.
  585.     
  586.     You can capture incoming data from the current session to a disk 
  587.     file by using the "record <filename>" command, and you can 
  588.     read in a data file from disk with the "upload <filename>" 
  589.     command.
  590.  
  591.     To close a session, press F10 to return to command mode and 
  592.     enter "close <session number>."  If there's only one session 
  593.     open, you can just enter "close."  You can also end the session by 
  594.     issuing the appropriate exit or quit command at the remote host's 
  595.     prompt.
  596.     
  597.     The most common NOS session types are probably "telnet," its 
  598.     cousin "ttylink", "ftp," and a regular packet "connect" (technically 
  599.     called an "ax25" session).  Telnet is used to "login" to a remote 
  600.     host, ttylink is a kind of telnet specially designed for keyboard-to-
  601.     keyboard communications, ftp handles file transfers, and ax25 
  602.     sessions allow you to carry on normal packet activity.  We'll talk 
  603.     about ax25 sessions first, since they give you a chance to test 
  604.     your setup without having another TCP/IP station on the air.
  605.     
  606.     
  607.     AX.25 Mode
  608.     
  609.     The "connect" command simply lets you do normal packet radio 
  610.     stuff.  Establishing an ax25 connect through NOS is like using the 
  611.     standard TNC commands with a few small differences.  First, since 
  612.     NOS can support several interfaces, each with its own hardware, 
  613.     you need to tell NOS which one to use.
  614.     
  615.     So, to connect to N8ACV on interface ax0, enter "connect ax0 
  616.     N8ACV."  Once you get a "Connected" message, you'll be able to 
  617.     type to the station at the other end just as you would with normal 
  618.     packet.  In addition to closing the session as described above, you 
  619.     can exit an ax25 session by typing "disconnect" at the command 
  620.     mode prompt.  (Just as with a TNC, these commands can be 
  621.     abbreviated; just how few of the letters are necessary will depend 
  622.     on each implementation of NOS and the commands it supports).
  623.     
  624.     The other minor difference between the NOS connect command 
  625.     and a regular TNC is that the word "via" is not used when 
  626.     specifying digipeaters.  To connect to N8ACV through N8KZA on 
  627.     interface ax0, you would enter "connect ax0 N8ACV N8KZA."
  628.     
  629.     
  630.     Telnet
  631.     
  632.     The "telnet" command logs you in to a remote TCP/IP host; 
  633.     depending on the capabilities of that host, you might find yourself 
  634.     chatting directly with the user at the other end, connecting to the 
  635.     NOS mailbox, "mbox" (which acts very much like a sophisticated 
  636.     personal PBBS), or getting a UNIX "login:" prompt.  To establish a 
  637.     telnet session, enter "telnet <hostname>" at the command 
  638.     prompt.
  639.     
  640.     Some versions of NOS offer a new type of session that improves 
  641.     on telnet for real-time keyboard-to-keyboard chats.  It's called 
  642.     "ttylink," and it works just like telnet (for example, start a session 
  643.     with "ttylink <hostname>") except that it connects you directly 
  644.     to the remote host's chat mode, and uses a split-screen format to 
  645.     make things less confusing as you type to each other.
  646.  
  647.     You'll get a message like "Telnet session 1 failed: Reset/Refused 
  648.     errno 9" if the remote host doesn't support ttylink.  If the operator 
  649.     at the other end isn't available to chat, you'll get a message like 
  650.     "The system is unattended."  You'll still be able to type, but there 
  651.     won't be anyone there to reply.  You can change the status on 
  652.     your machine by setting the "attended" command to either on or 
  653.     off.  You might want to put this command in your AUTOEXEC.NET 
  654.     file to set your default status.  You exit from ttylink just as you 
  655.     would from telnet.
  656.     
  657.     And now a note from Miss Manners:  you should never simply exit 
  658.     from the NOS program when you have an open session.  Doing so 
  659.     can cause great unpleasantness at the remote host.  Unless you're 
  660.     in some sort of software or hardware lockup, or you know that the 
  661.     station on the other end has gone away, always close sessions 
  662.     and wait for confirmation before exiting the program.
  663.     
  664.     You should also be aware that your system may have started 
  665.     sessions in the background, for example to transfer electronic mail, 
  666.     or someone else may have started a session with your system.  
  667.     You may not even know these sessions are running.  Pulling the 
  668.     plug on them would be very impolite.  Before exiting NOS, you 
  669.     should first use the se command to make sure there are no current 
  670.     sessions running, and then the "tcp status" command to see if 
  671.     there are any background connections established.  "tcp status" 
  672.     will show you a long and confusing list of information; the 
  673.     important stuff at the end is the list of sockets (which are services 
  674.     your system can either offer or request on the network).  If 
  675.     anything other than "Listening" appears in the Status column, that 
  676.     means there's at least one remote host communicating with you.
  677.     
  678.     
  679.     File Transfers
  680.     
  681.     You initiate a file transfer (ftp) session by entering "ftp 
  682.     <hostname>" at the command prompt.  Once the session is 
  683.     established, the remote host will prompt you for a user name and a 
  684.     password.  If your hostname and password have been added to 
  685.     the remote host's FTPUSERS file, you'll have the ability to 
  686.     download and perhaps upload files in the directories permitted you.
  687.     
  688.     If you haven't arranged with the remote host for your own 
  689.     account, you can try to login as "anonymous" or "guest;" many 
  690.     systems support these user names and grant limited (usually 
  691.     download-only) privileges to them.  If you login under one of these 
  692.     accounts, you should enter your hostname as the password; that 
  693.     allows the remote host to keep track of who's been using the 
  694.     system.
  695.     
  696.     Once you've logged in, you'll see a new prompt: "ftp>."  This will 
  697.     remind you that you're actually issuing commands to the remote 
  698.     computer.  From the ftp> prompt, you can list the files in a 
  699.     directory, change directories, upload files, or download files.
  700.  
  701.     To list files, enter "dir" at the ftp> prompt.  You will get a listing 
  702.     that shows subdirectories (if any) and files together with their 
  703.     dates and sizes.  To show the current directory name, type "pwd."  
  704.     To change directories, issue the "cd <directory>" command.  
  705.     Note that directories are displayed with a forward slash (/) instead 
  706.     of the usual MS-DOS backslash (\).  That's because the UNIX 
  707.     operating system, which is TCP/IP's natural home, uses forward 
  708.     slashes.  If the remote host is running NOS, you can use either 
  709.     character, but some other systems (particularly those running 
  710.     UNIX) will recognize only the forward slash.
  711.     
  712.     Once you've found a file you want to upload or download, you 
  713.     need to make a decision.  ftp can transfer the file either as an 
  714.     "image" file, byte for byte, or as an "ascii" file, converting the line-
  715.     end character as necessary to compensate for different operating 
  716.     systems (UNIX uses only a linefeed character at the end of lines; 
  717.     MS-DOS uses carriage return/linefeed).  Before beginning a file 
  718.     transfer, enter "type i" for an image file, or "type a" for an ASCII 
  719.     file, at the ftp> prompt.
  720.     
  721.     What are the consequences choosing the wrong transfer type?  
  722.     Well, transferring a binary file as type "a" will almost certainly fail.  
  723.     Transferring an ASCII file as type "i" will work, but you may find 
  724.     that the line-ends are screwed up.  ASCII transfers are also quite a 
  725.     bit slower than image, because each line needs to be processed 
  726.     separately.
  727.     
  728.     To actually start a file transfer, use the command "put <local 
  729.     filename> <remote filename>" to send a file, or "get <remote 
  730.     filename> <local filename>" to receive one.  The file name can 
  731.     include a full path if you desire; remember to use the proper path 
  732.     separator character for the remote host.
  733.     
  734.     If you only specify one filename, ftp will assume that both the 
  735.     local and remote hosts will use the same name.  This can be 
  736.     dangerous if the remote host uses a different operating system 
  737.     than you do, as it may have filenames that are illegal on your 
  738.     system.
  739.     
  740.     If a file transfer goes awry, you can terminate it by going to 
  741.     command mode via F10 and issuing the "abort" command.  To 
  742.     end an ftp session, you can either type "quit" at the ftp> prompt 
  743.     (the preferred way), or you can close the session from the net> 
  744.     prompt.
  745.     
  746.     If you want others to be able to access files on your system, you'll 
  747.     need to set up an FTPUSERS file in your root directory.  Appendix 
  748.     E describes the contents of that file.
  749.     
  750.     Another message from Miss Manners:  transferring files via ftp is 
  751.     reliable, but can be slooooow, particularly at 1200 baud.  Before 
  752.     you start downloading a 250 kilobyte file, consider how busy the 
  753.     channel is, and whether you want to tie things up for (perhaps) 
  754.     several hours by your download.  NOS is polite and won't hog the 
  755.     channel, but don't doubt that a large file transfer will slow things 
  756.     down for everyone else.
  757.  
  758.     Other Protocols
  759.     
  760.     The "ping" protocol mentioned above is very useful to see if a 
  761.     remote host is on the air.  Just enter the command "ping 
  762.     <hostname>" at the NOS prompt.  If the host is available, you 
  763.     will see a response indicating what the round-trip time was to that 
  764.     host.  The time may be many seconds if you're going through 
  765.     gateways, so be patient.
  766.     
  767.     The "finger" protocol lets you see information about a remote 
  768.     host's users and services.  Entering "finger @<hostname>" (note 
  769.     the slightly different syntax -- the "@" symbol must immediately 
  770.     precede the remote hostname) will display a list of the finger files 
  771.     (described above) at that host.  Entering "finger 
  772.     <user@hostname>" will display the text file for that user.
  773.     
  774.  
  775.             *** Electronic Mail ***
  776.     
  777.     We've saved NOS's electronic mail capabilities for last because 
  778.     they are a bit more involved than some other parts of the program.  
  779.     You use two programs to handle mail:  BM (a "user mail agent," in 
  780.     UNIX terms) to write and read messages, and NOS to send and 
  781.     receive them.  First we'll talk about reading and writing messages, 
  782.     and then about using NOS to transport them.
  783.     
  784.     
  785.     Using BM.EXE to Read and Write Messages
  786.     
  787.     BM.EXE is a program that reads and writes mail message in the 
  788.     format TCP/IP systems recognize.  Contrary to popular belief, 
  789.     "BM" stands for "Bdale's Mailer" in honor of its creator, Bdale 
  790.     Garbee.  You can run BM from the DOS prompt just like any other 
  791.     program, from within NOS by shelling to DOS with ! or shell, or (in 
  792.     GRINOS) by typing the mail command from the net> prompt.
  793.     
  794.     Before using BM, you need to create its configuration file, BM.RC, 
  795.     which must live in the root directory of your disk.  An annotated 
  796.     BM.RC file is included as Appendix G.  Only the first three 
  797.     commands in the sample file are absolutely necessary to make BM 
  798.     work.
  799.     
  800.     There's a bit of controversy in some areas over the proper name to 
  801.     enter for "user" in BM.RC.  Some folks recommend using either 
  802.     your first name, or your initials (for example, my address would be 
  803.     "john@ag9v.ampr.org") while other suggest using the callsign 
  804.     instead ("ag9v@ag9v.ampr.org").
  805.     
  806.     While using the callsign may seem more impersonal, it has major 
  807.     advantages when mail is moving between TCP/IP and the packet 
  808.     BBS system, or when using the POP server; we strongly 
  809.     recommend that you use the "callsign@hostname" format unless 
  810.     the locals object even more strongly.  It's important to be 
  811.     consistent within the area, so that everyone knows how to 
  812.     address mail to everyone else.
  813.     
  814.     When you start BM, you'll see a prompt such as "ag9v>" 
  815.     showing the default mailbox (based on the "user" entry in BM.RC).  
  816.     As in NOS, you enter commands at the prompt, following them 
  817.     with a carriage return.  Most BM commands are single letters, 
  818.     optionally followed by a mail addressee or a message number (or 
  819.     numbers).
  820.     
  821.     To send mail, use the command "m <addressee>."  The 
  822.     addressee will normally be a user at a remote host; for example, 
  823.     ag9v might send mail to k8gkh@k8gkh.  The single biggest 
  824.     problem with BM is forgetting to include the hostname -- in other 
  825.     words, sending mail to <user> rather than 
  826.     <user>@<hostname>.   Without the hostname, BM will think 
  827.     the user is on your local system, and the mail will end up being 
  828.     stored in a mailbox under that user's name on your own system.  
  829.     That doesn't work too well.
  830.  
  831.     One way to solve that problem, and do some other interesting 
  832.     things, is to create an ALIAS file in your root directory.  When you 
  833.     send a message, BM will compare the addressee with the alias file, 
  834.     and if it finds a match will replace the alias with a full address from 
  835.     the file.  An alias can point to a list of addresses, so it's possible 
  836.     to define an alias that will send a copy of the message to everyone 
  837.     in your local group.  A sample alias file might look like:
  838.     
  839.     greg    k8gkh@k8gkh.ampr.org
  840.     bill    n8kza@n8kza.ampr.org
  841.     club    k8gkh@k8gkh.ampr.org n8kza@n8kza.ampr.org
  842.         n8acv@n8acv.ampr.org wb8gxb@wb8gxb.ampr.org
  843.     
  844.     The alias for "club" demonstrates two things:  a single alias can 
  845.     expand to several addresses, and you can continue a long address 
  846.     list on subsequent lines by indenting them with spaces or a tab 
  847.     character.
  848.     
  849.     Now, if you send mail to "greg" it will automatically be expanded 
  850.     to the full address, and by sending a message to "club" all four 
  851.     users will get a copy.
  852.     
  853.     By the way, you do not use a trailing dot after an FQDN (as 
  854.     discussed above) in Email addressing; doing so will screw things 
  855.     up.
  856.     
  857.     If you use BM's built-in editor to compose messages, remember 
  858.     that it doesn't wrap lines; you have to hit the carriage return at the 
  859.     end of each line.  Use the "l" command to list outbound mail; you 
  860.     can kill an outbound message with the "k <msg#>" command, 
  861.     using the message number obtained from the "l" command.
  862.     
  863.     Several commands are used to deal with incoming mail.  "h" 
  864.     displays the headers (summary info) about messages in your 
  865.     mailbox.  It is the basic command you should use to check your 
  866.     incoming mail.  Each header displayed includes a message number 
  867.     to use with the other message manipulation commands.  
  868.     Commands given without a message number act on the current 
  869.     message (the one marked with an ">" in the display from the "h" 
  870.     command); if there's only one message, it is always the current 
  871.     one.
  872.     
  873.     BM can support multiple users at a single host; a separate mailbox 
  874.     is created for each user.  Unfortunately, BM has no way of 
  875.     knowing if incoming mail addressed to <someuser>@<yourhost> is
  876.     valid, so it will happily accept such mail and create a new mail-
  877.     box for <someuser>.  You may never know it's there, unless you use
  878.     the "n" command to display the list of mailboxes.  You can also use
  879.     "n" to change to a different mailbox: "n <mbox>."
  880.     
  881.     The commonly used commands (which may be followed by one or 
  882.     more message numbers if appropriate) are:
  883.  
  884.     msg#    message number by itself will display that message and 
  885.         set it as the current message.
  886.     r    reply to a message.
  887.     d    delete a message.
  888.     s    save a message; if a file name follows the message 
  889.         number(s), the message(s) will be saved in that file.  
  890.         Otherwise, they'll be saved in the default mbox file.
  891.     u    undelete a message previously marked for deletion.
  892.     p    print a message on the local printer.
  893.     w    save a message to a file without including headers.
  894.     f    forward a message to another recipient.
  895.     b    bounce a message.  Like forward, but keeps the original 
  896.         sender information intact (i.e., the message will not 
  897.         appear to have been sent by you).
  898.     $    update the mailbox.  This deletes messages marked for 
  899.         deletion and reads in any new mail that may have arrived 
  900.         since you started BM.
  901.     
  902.     There are two commands that exit from BM:  "x" will exit without 
  903.     updating the mailbox.  In other words, the same messages will be 
  904.     there the next time you run the program.  "q" updates the mailbox 
  905.     (like "$") and then exits.
  906.     
  907.     Outbound mail created by BM is stored in the \spool\mqueue 
  908.     directory, where it waits patiently until one of NOS's servers 
  909.     (SMTP or POP) attempts to send it to its destination.
  910.     
  911.     
  912.     Moving Mail With NOS
  913.     
  914.     Now, to the mechanics of getting mail into and out of your 
  915.     system.  All mail that you create is sent to its destination (or at 
  916.     least to the next stop on the way) by the "smtp" server in NOS.  
  917.     The "smtp timer" command (set in AUTOEXEC.NET) tells smtp 
  918.     how often to scan the \spool\mqueue directory for outgoing mail.  
  919.     When it finds some, it attempts to open an smtp session to the 
  920.     remote host in the address and send the mail there.  There's no 
  921.     default for the smtp timer value, so your AUTOEXEC.NET file 
  922.     should include something like "smtp timer 600" (which scans for 
  923.     mail every ten minutes).  You can manually force smtp to scan the 
  924.     queue by issuing the "smtp kick" command from the net> prompt.
  925.     
  926.     If you have a local mail server with connections to the outside 
  927.     world, you can use it to route mail for hosts that aren't in your 
  928.     domain file with the "smtp gateway <hostid>" command.
  929.     
  930.     Incoming mail can arrive at your station when a remote host does 
  931.     this and starts an smtp session with you.  But if you don't keep 
  932.     your station up 24 hours a day, the remote host will be trying, and 
  933.     trying, and trying, to connect with you until you finally show up.  
  934.     A far better approach is to use "POP" -- the Post Office Protocol.  
  935.     If your system runs POP, and someone in the area has agreed to 
  936.     be a POP server, NOS will automatically contact that server when 
  937.     you come on the air; the server will respond by sending the mail 
  938.     waiting in your mailbox.  You can then read it with BM just as if it 
  939.     had arrived via smtp.
  940.  
  941.     To use POP, the server must establish a mailbox and password for 
  942.     you, and you need to add the appropriate commands to your 
  943.     AUTOEXEC.NET file (see the annotated AUTOEXEC.NET file in 
  944.     Appendix B).
  945.     
  946.     Remember that smtp or POP sessions may be running in the 
  947.     background without your knowing about it.  Always check for 
  948.     activity with the "tcp status" command before pulling the plug!
  949.     
  950.     Additionally, smtp creates lock files in \spool\mqueue when it tries 
  951.     to send outgoing mail.  If NOS is killed before the mail transfer has 
  952.     succeeded, these files (with the extension ".LCK") will be left 
  953.     behind and if they are not manually removed, they will prevent 
  954.     smtp from trying again to send those messages.  To prevent this, 
  955.     you should always issue the command "erase \spool\mqueue\*.LCK"
  956.     before starting NOS.  It's a good idea to launch NOS using a batch
  957.     file that removes the locks before executing the program.
  958.  
  959.                 *** Conclusion ***
  960.     
  961.     This has been a whirlwind tour of TCP/IP.  Once you have the 
  962.     software installed, it's not hard to use, and NOS truly opens the 
  963.     door to enjoying packet radio in a whole new way.
  964.     
  965.     To learn the subtleties of NOS, you should do two things:  read 
  966.     the reference manual for the version you're using, and experiment 
  967.     with the program.  Once you know the ins and outs, please share 
  968.     your knowledge with others.  The ham radio TCP/IP community is 
  969.     still small, and we need all the Elmers we can get!
  970.     
  971.     
  972.     John Ackermann   AG9V
  973.     2371 Stewart Road
  974.     Xenia, OH   45385
  975.     
  976.     TCP/IP:        ag9v@ag9v.ampr.org.  [44.70.12.34]
  977.     PBBS:        AG9V@N8ACV.OH.US.NA
  978.     Internet:    jra@lawday.daytonOH.ncr.com
  979.     CompuServe:    72300,1160
  980.     
  981.  
  982.     APPENDIX A
  983.     Resources for NOS and TCP/IP
  984.     
  985.     (Note:  This is a very incomplete list; please feel free to provide 
  986.     additional resources to add for the next edition!)
  987.     
  988.     TAPR
  989.     P.O. Box 22888
  990.     Tucson, AZ   85734
  991.     
  992.     The New England TCP Association
  993.     3628 Acushnet Ave.
  994.     New Bedford, MA   02745
  995.  
  996.     APPENDIX B
  997.     Sample AUTOEXEC.NOS File for GRINOS
  998.     
  999.     # AUTOEXEC.NET
  1000.     # This is a sample autoexec file for GRINOS version N1BEE 0.72.
  1001.     # It doesn't have all the fancy features one might hope for, but
  1002.     # the basics are there, with some hopefully useful comments.
  1003.     # Any line beginning with a "#" character is treated as a comment.  
  1004.     # To uncomment a line, delete the # character
  1005.     
  1006.     # These are a couple of things for NOS to use internally.
  1007.     mem eff on
  1008.     watchdog on
  1009.     nibufs 10
  1010.     
  1011.     # NOS needs to know three things about you:  your hostname, 
  1012.     # your  ham callsign, and your IP address.  By convention, the
  1013.     # hostname # is your callsign in lower case, followed by ".ampr.org".
  1014.     # The  callsign is generally used in upper case to distinguish it.
  1015.     # The IP address comes from a local area coordinator.  Note that 
  1016.     # there are a minimum of three places in this file where you need to
  1017.     # insert your IP address -- here, in the ifconfig command, and at the
  1018.     # end of each attach command.
  1019.     hostname nocall.ampr.org
  1020.     ax25 mycall NOCALL
  1021.     ip address [44.xx.xx.xx]
  1022.     
  1023.     # This should match your IP address
  1024.     ifconfig loopback ipaddress [44.xx.xx.xx]
  1025.     
  1026.     # This makes short forms of the hostname work.
  1027.     domain suffix ampr.org.
  1028.     
  1029.     # NOS needs to know how to convert hostnames to IP addresses.
  1030.     # You can do this manually via the "DOMAIN.TXT" file, or you can 
  1031.     # use a nameserver if one is available.  To enable the
  1032.     # nameserver, uncomment this line and plug in its correct 
  1033.     # address.
  1034.     #domain addserver [44.xx.xx.xx]
  1035.     
  1036.     # Some additional commands for the domain service.  Don't turn 
  1037.     # translate on unless you have a small domain file and/or a fast machine.
  1038.     domain verbose off
  1039.     domain cache size 40
  1040.     domain translate off
  1041.     
  1042.     # To use POP, uncomment these lines.  Fill in "pop mailhost" with 
  1043.     # the IP address of the station serving as your POP server.  Fill in the 
  1044.     # "pop# mailbox" name with your hostname, i.e., your call.  The "pop 
  1045.     # userdata" line needs to have your hostname, followed by a password
  1046.     # (as negotiated with your mail server).  "pop timer" sets
  1047.     # how often, in seconds, to query for mail.
  1048.     #pop mailhost [44.xx.xx.xx]
  1049.     #pop mailbox hostname
  1050.     #pop userdata hostname password
  1051.     #pop timer 1800
  1052.  
  1053.     # Attach commands are complex; these are samples for COM 1
  1054.     # and 2.  See Appendix C for details.  Uncomment the
  1055.     # appropriate line(s) for your hardware.
  1056.     # COM1 -- 256 byte MTU, 4800 baud serial link as ax0
  1057.     attach asy 0x3f8 4 ax25 ax0 2048 256 4800
  1058.     # COM2 -- 256 byte MTU, 4800 baud serial link as ax1
  1059.     #attach asy 0x2f8 3 ax25 ax1 2048 256 4800
  1060.     
  1061.     # This is the basic route, sending everything out ax0 
  1062.     route add default ax0 
  1063.     
  1064.     # These are tcp parameters you shouldn't need to mess with.
  1065.     ip ttl 16
  1066.     ip rtimer 240
  1067.     tcp irtt 3000
  1068.     
  1069.     # On a shared channel, you may want to change timertype to
  1070.     # exponential; that's more courteous, but will slow your 
  1071.     # retries down significantly.  mss and window should ordinarily be 
  1072.     # the same value, equal to the largest mtu set in the attach
  1073.     # command(s) above minus 40.  With the common mtu for 1200 baud
  1074.     # channels of 256, that means both mss and window should be 216.
  1075.     tcp timertype linear
  1076.     tcp bblimit 16
  1077.     tcp mss 216 
  1078.     tcp window 216
  1079.     
  1080.     # These set up AX.25 parameters
  1081.     ax25 digipeat off
  1082.     ax25 maxframe 1
  1083.     ax25 paclen 256
  1084.     ax25 retry 20
  1085.     ax25 window 4096
  1086.     ax25 blimit 15
  1087.     ax25 version 2
  1088.     
  1089.     # as with tcp timertype, you may want to set this to 
  1090.     # exponential on a shared channel.
  1091.     ax25 timertype linear
  1092.     
  1093.     # These are netrom setup commands.  Don't turn them on 
  1094.     # unless you need them, and you know what you're doing.  You
  1095.     # can really screw up the network by putting out netrom 
  1096.     # broadcasts that don't fit with the configuration of the 
  1097.     # "real" netrom nodes that can hear you.
  1098.     #attach netrom
  1099.     #netrom interface ax0 MYALIAS 192
  1100.     #netrom obsotimer 1800
  1101.     #netrom nodetimer 10800
  1102.     #netrom verbose yes
  1103.     #netrom bcnodes ax0
  1104.     #netrom ttl 8
  1105.  
  1106.     # These start the servers.
  1107.     start smtp
  1108.     start ftp
  1109.     start echo
  1110.     start discard
  1111.     start telnet
  1112.     start finger
  1113.     start ax25
  1114.     
  1115.     # Uncomment this line to enable logging.
  1116.     #log \spool\net.log
  1117.     
  1118.     # Default file type for ftp transfers.  Type image is for binary files; 
  1119.     type
  1120.     # ascii is for text; it's safest to set the default to image.
  1121.     ftype image
  1122.     
  1123.     # This makes telnet sessions to Unix systems work
  1124.     # line-by-line, rather than character-by-character.
  1125.     echo refuse
  1126.     
  1127.     # Tell smtp how often to scan for outgoing mail
  1128.     smtp timer 600
  1129.     smtp batch on 
  1130.     
  1131.     # GRINOS can send a string of commands to the TNC on startup.
  1132.     # You could use this to force the TNC into KISS mode.  Note that
  1133.     # you need to specify which interface to use.  This must be done
  1134.     # <after>defining the interface, and <before>any data is sent to
  1135.     # the TNC (for example, by the smtp and pop kick commands below).
  1136.     # These commands will do that for a TNC2:
  1137.     comm ax0 "kiss on"
  1138.     comm ax0 "reset"
  1139.     
  1140.     # kick the smtp and POP servers at startup.  Only uncomment the 
  1141.     # "pop kick" line if you've defined a POP server above.
  1142.     smtp kick
  1143.     #pop kick
  1144.     
  1145.     # GRINOS (but not other versions) can define the function 
  1146.     # keys with macros to make things a bit easier.  Here are a 
  1147.     # couple of examples.  Note that each command must end with 
  1148.     # a "\n" to signify a carriage return.  The numbers 
  1149.     # represent the keys; 59 - 68 for F1- F10 (though F10 can't
  1150.     # be redefined; it's always the escape key), 84 - 93 for 
  1151.     # shiftF1 - shift F10, 94 - 103 for ctrlF1 - ctrlF10, 104 -
  1152.     # 113 for altF1 - altF10.
  1153.     fkey 59 "tcp status\n"
  1154.     fkey 60 "mem status\n"
  1155.     fkey 61 "status\n"
  1156.     
  1157.     # THE END
  1158.  
  1159.     APPENDIX C
  1160.     Designing ATTACH Commands
  1161.     
  1162.     NOS supports a number of versions of the attach command to deal 
  1163.     with different hardware.  We'll discuss three of them here:  asy, 
  1164.     used for serial port connections; pi, used to connect to the Ottawa 
  1165.     PI card; and packet, used to interface to hardware supporting the 
  1166.     FTP, Inc., packet driver protocol.  As usual, this discussion covers 
  1167.     the basics; see the NOS reference manual for details on all the 
  1168.     many options.
  1169.     
  1170.     Hosts normally have a separate IP address for each interface.  If 
  1171.     you are running more than one interface, you can include that 
  1172.     interface's IP address (in [xx.xx.xx.xx] form) at the end of the 
  1173.     attach command.
  1174.     
  1175.     The asy version provides an interface to a standard PC serial port.  
  1176.     The syntax is:
  1177.     
  1178.     attach asy <ioaddr> <vector> <mode> <if> <bufsize> 
  1179.         <mtu> <speed>
  1180.     
  1181.     In English, these parameters are:
  1182.     
  1183.     ioaddr -- the address of the COM port being used.  
  1184.     COM1 is usually 0x3f8 and COM2 is usually 0x2f8.  
  1185.     COM3 and COM4 aren't standardized; using them will 
  1186.     require looking at the documentation for your serial card, 
  1187.     and probably some experimentation.
  1188.     
  1189.     vector -- the IRQ used by the hardware.  COM1 is usually 
  1190.     4, and COM2 is usually 3.  Again, COM3 and COM4 
  1191.     vary.
  1192.     
  1193.     mode -- this specifies the nature of the interface.  ax25 is 
  1194.     for a connection to a KISS TNC, slip for a hardwired 
  1195.     connection to another host, ppp for a dial-up connection, 
  1196.     and nrs is for attaching a NOS station to a NetRom node.
  1197.     
  1198.     if -- the interface name.  The convention is to use ax0, 
  1199.     ax1, etc., for KISS interfaces.
  1200.     
  1201.     bufsize -- the buffer for incoming data, in bytes.  Usually 
  1202.     a value of 1024 is more than sufficient for a 1200 baud 
  1203.     channel.
  1204.     
  1205.     mtu -- the maximum transmission unit size, in bytes.  See 
  1206.     the discussion in the main text on this subject.
  1207.     
  1208.     speed -- the speed of the serial (not radio) link, in baud.  
  1209.     The best setting for this will depend on the speed of your 
  1210.     computer, but generally two to four times the radio 
  1211.     speed is adequate.
  1212.     
  1213.     Some sample attach asy commands are:
  1214.  
  1215.         # COM1, KISS TNC as ax0, MTU 256, 4800 BAUD
  1216.         attach asy 0x3f8 4 ax25 ax0 1024 256 4800
  1217.     
  1218.         # COM2, KISS TNC as ax1, MTU 256, 2400 BAUD
  1219.         attach asy 0x2f8 3 ax25 ax1 1024 256 2400
  1220.     
  1221.         # SLIP link, COM1 as sl0, MTU 256, 9600 BAUD
  1222.         attach asy 0x3f8 4 slip sl0 1024 256 9600
  1223.     
  1224.     The Ottawa PI card is a plug-in board for PCs designed for high-
  1225.     speed performance.  It has two ports, one DMA driven for high 
  1226.     speed and the other interrupt driven.  The attach syntax is:
  1227.     
  1228.     attach pi <ioaddr> <vector> <DMA chn> <mode> <name> 
  1229.         <bufsize> <mtu> <speed a> <speed b>
  1230.     
  1231.     A sample attach command (using the PI's default jumper settings) 
  1232.     is:
  1233.     
  1234.         attach pi 380 7 1 ax25 pi0 1750 1024 0 1200
  1235.     
  1236.     In this example, the interface name for the DMA port is "pi0a" and 
  1237.     the second port is "pi0b".  Because the port a speed is 0, the PI 
  1238.     card expects the modem to provide its own clocking.  The PI 
  1239.     attach syntax is explained in the manual provided with the card.
  1240.     
  1241.     Finally, the packet interface is used to connect to ethernet cards 
  1242.     and other hardware that supports the FTP, Inc. "packet driver" 
  1243.     standard.  There's a packet driver for the PI card.  The syntax is:
  1244.     
  1245.         attach packet <ioaddr> <vector> <if> <bufsize> <mtu>
  1246.     
  1247.     In this case, ioaddr and vector need to match those used for the 
  1248.     packet TSR that supports the hardware.  bufsize is the number of 
  1249.     packets (not bytes) that may be outstanding.  For ethernet, the 
  1250.     standard mtu is 1500.
  1251.  
  1252.     APPENDIX D
  1253.     The DOMAIN.TXT File
  1254.     
  1255.     
  1256.     # The domain.txt file contains mappings between hostnames 
  1257.     # and IP addresses.  The file can be quite complex, but 
  1258.     # basic entries usually resemble this.
  1259.     
  1260.     # Fields are separated by tabs or spaces.
  1261.     
  1262.     # These are normal address records.  The first field is the 
  1263.     # hostname.  The second field is a "time to  live" value 
  1264.     # returned by the name server.  If you manually create an 
  1265.     # entry, you can leave this field  blank.  The third field 
  1266.     # is always "IN" to signify these are internet addresses.  
  1267.     # The fourth field is "A" to signify an address record.  The
  1268.     # last field is the address.
  1269.     
  1270.     k8gkh.ampr.org.9886    IN    A    44.70.12.31
  1271.     ag9v.ampr.org.    3584    IN    A    44.70.12.34
  1272.     
  1273.     # This is a "canonical name" (CNAME) record that maps an 
  1274.     # alias to an official hostname.
  1275.     
  1276.     server.ampr.org.    3599    IN    CNAME    ag9v.ampr.org.
  1277.  
  1278.     APPENDIX E
  1279.     Sample FTPUSERS File
  1280.     
  1281.     # This file establishes ftp user permissions.  Fields are 
  1282.     # separated by exactly one space.  The privileges value is a 
  1283.     # bitmask.  The only values significant for ftp are:
  1284.     
  1285.     # 1 - read only
  1286.     # 3 - read/write
  1287.     # 7 - read/write/overwrite/delete
  1288.     
  1289.     
  1290.     anonymous * /pub 1        # no password, read only in /pub
  1291.     friend foobar /pub 3        # read/write privileges in /pub
  1292.     spouse snoogums / 7        # read/write/delete everywhere
  1293.  
  1294.     APPENDIX F
  1295.     Making Your TNC Talk in KISS MODE
  1296.     
  1297.     Once NOS is installed and your configuration files set, you need to 
  1298.     do one more thing:  get your TNC talking to your computer in KISS 
  1299.     (Keep It Simple, Stupid) mode.  KISS is a special protocol that lets 
  1300.     your computer do the work of processing packets; the TNC does 
  1301.     only the very low-level packet assembly and disassembly 
  1302.     functions.  Nearly all TNCs support KISS in one way or another.
  1303.     
  1304.     Typically, you'll need to issue commands to the TNC to set the 
  1305.     serial line baud rate to the same speed as you've specified in the 
  1306.     attach command, to 8 bit data, and to no parity.  Then, issue the 
  1307.     KISS command (on a TNC2, kiss on), and the TNC's software 
  1308.     reset command.  After that, you won't be able to talk to your TNC 
  1309.     via the terminal program, but NOS will be able to.  (And don't 
  1310.     worry, you can easily return the TNC to normal mode if you want 
  1311.     to.)  Once you've done this, you're set to run NOS.
  1312.     
  1313.     One trick that grinos supports is the ability to send commands to 
  1314.     the TNC during startup.  The comm command will send a string of 
  1315.     text to the named interface.  For example, to force a Kantronics 
  1316.     DataEngine or KAM into KISS mode every time you start NOS, 
  1317.     include the following commands in AUTOEXEC.NOS (after you've 
  1318.     defined the interface with the attach command):
  1319.     
  1320.     comm ax0 "interface kiss"
  1321.     comm ax0 "reset"
  1322.     
  1323.     Note that surrounding the text with quote characters will preserve 
  1324.     spaces in the command.
  1325.  
  1326.     Appendix G
  1327.     A Sample BM.RC File
  1328.     
  1329.     # BM.rc
  1330.     
  1331.     # your hostname -- note that for mail we <don't> put a trailing 
  1332.     period at
  1333.     # the end of the FQDN.
  1334.     host ag9v.ampr.org
  1335.     
  1336.     # the user name (one host can receive mail for several users); 
  1337.     # usually your callsign
  1338.     user ag9v
  1339.     
  1340.     # your full name, for the message "From:" line
  1341.     fullname John Ackermann
  1342.     
  1343.     # if you want to have replies sent to another host, because, for 
  1344.     # example, you are using a POP server, this line specifies where
  1345.     # replies should go
  1346.     reply ag9v@ag9v.ampr.org
  1347.     
  1348.     # for faster screen writes on the pc, use direct video, not bios
  1349.     screen direct
  1350.     
  1351.     # if you want to use an editor different than BM's built-in one
  1352.     edit ed
  1353.     
  1354.     # put saved messages here; note "/" instead of "\"
  1355.     mbox c:/folder/mbox
  1356.     
  1357.     # save a copy of outbound mail here
  1358.     record c:/folder/outmail
  1359.     
  1360.     # folder for your mail
  1361.     folder c:/folder
  1362.     
  1363.     # maximum number of messages that can be pending
  1364.     maxlet 200
  1365.  
  1366.