home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / phrack2 / phrack33.003 < prev    next >
Encoding:
Text File  |  2003-06-11  |  38.8 KB  |  923 lines

  1.                                 ==Phrack Inc.==
  2.  
  3.                 Volume Three, Issue Thirty-Three, File 3 of 13
  4.  
  5. ______________________________________________________________________________
  6.  
  7.                        A Hacker's Guide to the Internet
  8.  
  9.                                  By The Gatsby
  10.  
  11.                       Version 2.00 / AXiS / July 7, 1991
  12. ______________________________________________________________________________
  13.  
  14.  
  15. 1   Index
  16. ~~~~~~~~~
  17.             Part:     Title:
  18.             ~~~~      ~~~~~
  19.              1        Index
  20.              2        Introduction
  21.              3        Glossary, Acronyms, and Abbreviations
  22.              4        What is the Internet?
  23.              5        Where You Can Access The Internet
  24.              6        TAC
  25.              7        Basic Commands
  26.                a           TELNET command
  27.                b           ftp ANONYMOUS to a Remote Site
  28.                c           Basic How to tftp the Files
  29.                d           Basic Fingering
  30.              8        Networks
  31.              9        Internet Protocols
  32.             10        Host Names and Addresses
  33.  
  34.  
  35. 2   Introduction
  36. ~~~~~~~~~~~~~~~~
  37.      The original release of this informative file was in an IRG newsletter,
  38. but it had some errors that I wanted to correct.  I have also added more
  39. technical information.
  40.  
  41.      This file is intended for the newcomer to Internet and people (like
  42. me) who are not enrolled at a university with Internet access.  It covers the
  43. basic commands, the use of Internet, and some tips for hacking through
  44. Internet. There is no MAGICAL way to hacking a UNIX system.  If you have any
  45. questions, I can be reached on a number of boards.
  46.  
  47. - The Crypt       -            - 619/457+1836 -     - Call today -
  48. - Land of Karrus  -            - 215/948+2132 -
  49. - Insanity Lane   -            - 619/591+4974 -
  50. - Apocalypse NOW  -            - 2o6/838+6435 -  <*> AXiS World HQ <*>
  51.  
  52.   Mail me on the Internet:  gats@ryptyde.cts.com
  53.                             bbs.gatsby@spies.com
  54.  
  55.                                 The Gatsby
  56.  
  57. *** Special Thanks go to Haywire (a/k/a Insanity: SysOp of Insanity Lane),
  58.     Doctor Dissector, and all the members of AXiS.
  59.  
  60.  
  61. 3   Glossary, Acronyms, and Abbreviations
  62. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. ACSE     -  Association Control Service Element, this is used with ISO to help
  64.             manage associations.
  65. ARP      -  Address Resolution Protocol, this is used to translate IP protocol
  66.             to Ethernet Address.
  67. ARPA     -  Defense Advanced Research Project Agency
  68. ARPANET  -  Defense Advanced Research Project Agency or ARPA.  This is an
  69.             experimental PSN which is still a sub network in the Internet.
  70. CCITT    -  International Telegraph and Telephone Consultative Committee is a
  71.             international committee that sets standard.  I wish they would set
  72.             a standard for the way they present their name!
  73. CERT     -  Computer Emergency Response Team, they are responsible for
  74.             coordinating many security incident response efforts.  They have
  75.             real nice reports on "holes" in various UNIX strands, which you
  76.             should get because they are very informative.
  77. CMIP     -  Common Management Information Protocol, this is a new HIGH level
  78.             protocol.
  79. CLNP     -  Connection Less Network Protocol is OSI equivalent to Internet IP
  80. DARPA    -  Defence Advanced Research Project Agency.  See ARPANET
  81. DDN      -  Defence Data Network
  82. driver   -  a program (or software) that communicates with the network itself,
  83.             examples are TELNET, FTP, RLOGON, etc.
  84. ftp      -  File Transfer Protocol, this is used to copy files from one host
  85.             to another.
  86. FQDN     -  Fully Qualified Domain Name, the complete hostname that reflects
  87.             the domains of which the host is a part.
  88. Gateway  -  Computer that interconnects networks.
  89. Host     -  Computer that is connected to a PSN.
  90. Hostname -  Name that officially identifies each computer attached
  91.             internetwork.
  92. Internet -  The specific IP-base internetwork.
  93. IP       -  Internet Protocol which is the standard that allows dissimilar
  94.             host to connect.
  95. ICMP     -  Internet Control Message Protocol is used for error messages for
  96.             the TCP/IP.
  97. LAN      -  Local Area Network
  98. MAN      -  Metropolitan Area Network
  99. MILNET   -  DDN unclassified operational military network.
  100. NCP      -  Network Control Protocol, the official network protocol from 1970
  101.             until 1982.
  102. NIC      -  DDN Network Information Center
  103. NUA      -  Network User Address
  104. OSI      -  Open System Interconnection.  An international standardization
  105.             program facilitate to communications among computers of different
  106.             makes and models.
  107. Protocol -  The rules for communication between hosts, controlling the
  108.             information by making it orderly.
  109. PSN      -  Packet Switched Network
  110. RFC      -  Request For Comments, is technical files about Internet protocols
  111.             one can access these from anonymous ftp at NIC.DDN.MIL.
  112. ROSE     -  Remote Operations Service Element, this is a protocol that is used
  113.             along with OSI applications.
  114. TAC      -  Terminal Access Controller; a computer that allow direct access to
  115.             Internet.
  116. TCP      -  Transmission Control Protocol
  117. TELNET   -  Protocol for opening a transparent connection to a distant host.
  118. tftp     -  Trivial File Transfer Protocol, one way to transfer data from one
  119.             host to another.
  120. UDP      -  User Datagram _Protocol
  121. Unix     -  This is copyrighted by AT&T, but I use it to cover all the
  122.             look-alike Unix systems, which you will run into more often.
  123. UUCP     -  Unix-to-Unix Copy Program, this protocol allows UNIX file
  124.             transfers.  This uses phone lines using its own protocol, X.25 and
  125.             TCP/IP.  This protocol also exist for VMS and MS-DOS.
  126. uucp     -  uucp when in lower case refers to the UNIX command uucp.  For
  127.             more information on uucp read files by The Mentor in the Legion of
  128.             Doom Technical Journals.
  129. WAN      -  Wide Area Network
  130. X.25     -  CCITTs standard protocol that rules the interconnection of two
  131.             hosts.
  132.  
  133.  
  134.      In this file I have used several special charters to signify certain
  135. things. Here is the key;
  136.  
  137. *  - Buffed from UNIX itself.  You will find this on the left side of the
  138.      margin.  This is normally "how to do" or just "examples" of what to do
  139.      when using Internet.
  140.  
  141. #  - This means these are commands, or something that must be typed in.
  142.  
  143.  
  144. 4   What is the Internet?
  145. ~~~~~~~~~~~~~~~~~~~~~~~~~
  146.      To understand the Internet you must first know what it is.  The Internet
  147. is a group of various networks, ARPANET (an experimental WAN) was the first.
  148. ARPANET started in 1969, this experimental PSN used Network Control Protocol
  149. (NCP).  NCP was the official protocol from 1970 until 1982 of the Internet (at
  150. this time also known as DARPA Internet or ARPA Internet).  In the early 80's
  151. DARPA developed the Transmission Control Protocol/Internet Protocol which is
  152. the official protocol today, but much more on this later.  Due to this fact,
  153. in 1983 ARPANet split into two networks, MILNET and ARPANET (both are still
  154. part of the DDN).
  155.  
  156.     The expansion of Local Area Networks (LAN) and Wide Area Networks (WAN)
  157. helped make the Internet connecting 2,000+ networks strong.  The networks
  158. include NSFNET, MILNET, NSN, ESnet and CSNET.  Though the largest part of the
  159. Internet is in the United States, the Internet still connects the TCP/IP
  160. networks in Europe, Japan, Australia, Canada, and Mexico.
  161.  
  162.  
  163. 5   Where You Can Access Internet
  164. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  165.      Internet is most likely to be found on Local Area Networks or LANs and
  166. Wide Area networks or WANs.  LANs are defined as networks permitting the
  167. interconnection and intercommunication of a group of computers, primarily for
  168. the sharing of resources such as data storage device and printers.  LANs cover
  169. a short distance (less than a mile) and are almost always within a single
  170. building complex.  WANs are networks which have been designed to carry data
  171. calls over long distances (many hundreds of miles).  You can also access
  172. Internet through TymNet or Telenet via gateway.  You'll have to find your own
  173. NUAs though.
  174.  
  175.  
  176. 6   TAC
  177. ~~~~~~~
  178.      TAC (terminal access controller) is another way to access Internet.  This
  179. is just dial-up terminal to a terminal access controller.  You will need to
  180. get a password and an account.  TAC has direct access to MILNET.  One example
  181. of a TAC dialup is (800)368-2217, but there are several out there to be found.
  182. In fact, CERT has a report circulating about people attempting to find these
  183. dialups through social engineering.
  184.  
  185.      If you want the TAC manual you can write a letter to:
  186.  
  187.        Defense Communications Agency
  188.        Attn: Code BIAR
  189.        Washington, DC 2o3o5-2ooo
  190.  
  191. Be sure to write that you want the TAC User Guide, 310-p70-74.
  192.  
  193.      In order to logon, you will need a TAC Access Card.  You would probably
  194. get it from the DDN NIC.  Here is a sample logon:
  195.  
  196.  
  197. Use Control-Q for help...
  198.  
  199. *
  200. * PVC-TAC 111: 01               \ TAC uses to this to identify itself
  201. * @ #o 124.32.5.82               \ Use ``O'' for open and the internet
  202. *                                / address which yea want to call.
  203. *
  204. * TAC Userid: #THE.GATSBY
  205. * Access Code: #10kgb0124
  206. * Login OK
  207. * TCP trying...Open
  208. *
  209. *
  210.  
  211.  
  212. 7   Basic Commands
  213. ~~~~~~~~~~~~~~~~~~
  214. a:  Basic TELNET Commands
  215.  
  216.       Situation:  You have an account on a UNIX system that is a host on
  217. Internet.  Now you can access the entire world!  Once the UNIX system you
  218. should see a prompt, which can look like a '$' or '%' (it also depends on what
  219. shell you are in and the type of Unix system).  At the prompt you can do all
  220. the normal UNIX commands, but when on a Internet host you can type 'telnet'
  221. which will bring you to the 'telnet' prompt.
  222.  
  223. *
  224. * $ #telnet
  225. * ^   ^
  226.   |   |
  227.   |  the command that will bring you to the telnet prompt
  228.   |
  229.   a normal UNIX prompt
  230.  
  231.  
  232.      You should get this:
  233.  
  234. *
  235. * telnet>
  236. *
  237.      At this prompt you will have a whole different set of commands which are
  238. as follows (This comes from UCSD, so it may vary from place to place).
  239.  
  240. *
  241. * telnet> #help
  242. *
  243. * close           close current connection
  244. * display         display operating parameters
  245. * open            connect to a site
  246. * quit            exit telnet
  247. * send            transmit special character
  248. * set             set operating parameters
  249. * status          print status information
  250. * toggle          toggle operating parameters
  251. * ?               to see what you are looking at now
  252. *
  253.  
  254. close      - this command is used to 'close' a connection, when multitasking
  255.              or jumping between systems.
  256.  
  257. display    - this set the display setting, commands for this are as follow.
  258.  
  259.              ^E    echo.
  260.              ^]    escape.
  261.              ^H    erase.
  262.              ^O    flushoutput.
  263.              ^C    interrupt.
  264.              ^U    kill.
  265.              ^\    quit.
  266.              ^D    eof.
  267.  
  268.  
  269. open       - type 'open [host]' to connect to a system
  270.  
  271. *
  272. * $ #telnet ucsd.edu
  273. *
  274.  
  275.      or
  276. *
  277. * telnet> #open 125.24.64.32.1
  278. *
  279.  
  280. quit   - to get out of telnet and back to UNIX
  281. send   - send files
  282. set    - set
  283. echo   - character to toggle local echoing on/off
  284. escape - character to escape back to telnet command mode
  285.  
  286.  
  287.      The following need 'localchars' to be toggled:
  288.  
  289. erase         -  character to cause an Erase Character
  290. flushoutput   -  character to cause an Abort Output
  291. interrupt     -  character to cause an Interrupt Process
  292. kill          -  character to cause an Erase Line
  293. quit          -  character to cause a Break
  294. eof           -  character to cause an EOF
  295. ?             -  display help information
  296.  
  297.  
  298. b:   ftp ANONYMOUS to a remote site
  299.  
  300.      ftp or file transfer protocol is used to copy files from a remote host to
  301. the one that you are on.  You can copy anything.  Security has really clamped
  302. down on the passwd file, but it will still work here and there (always worth a
  303. shot).
  304.  
  305.      This could be useful when you see a Internet CuD (Computer Underground
  306. Digest) site that accepts a anonymous ftps, and you want to read the CuDs, but
  307. do not feel like wasting your time on boards downloading them.  The best way
  308. to start out is to ftp a directory to see what you are getting.
  309.  
  310.      Example:  The CuD archive site has an Internet address of 192.55.239.132
  311. and my account name is "gats".
  312.  
  313. *
  314. * $ #ftp
  315. * ^  ^
  316.   |  |
  317.   | ftp command
  318.   |
  319.  UNIX prompt
  320.  
  321. *
  322. * ftp> #open 192.55.239.132
  323. * Connected to 192.55.239.132
  324. * 220 192.55.239.132 FTP Server (sometimes the date, etc)
  325. * Name (192.55.239.132:gats): #anonymous
  326. *            ^         ^        ^
  327.              |         |        |
  328.              |         |       This is where you type 'anonymous' unless
  329.              |         |     you have a account on 192.55.239.132.
  330.              |         |
  331.              |        This is the name of my account or [from]
  332.              |
  333.             This is the Internet address or [to]
  334. *
  335. * Password: #gats
  336. *            ^
  337.              |
  338.             For this just type your username or anything you feel like typing
  339.             in at that time.  It doesn't matter.
  340.  
  341. *
  342. * % ftp 192.55.239.132
  343. * Connected to 192.55.239.132
  344. * ftp> #ls
  345. *       ^
  346.         |
  347.        You are connected now, thus you can ls it.
  348.  
  349.      Just move around like you would in a normal unix system.  Most of the
  350. commands still apply on this connection. Here is a example of me getting a
  351. copy of the Electronic Frontier Foundation's Effector (issue 1.04) from
  352. Internet address 192.55.239.132.
  353.  
  354. *
  355. * % #ftp
  356. * ftp> #open 128.135.12.60
  357. * Trying 128.135.12.60...
  358. * 220 chsun1 FTP server (SunOS 4.1) ready.
  359. * Name (128.135.12.60:gatsby): anonymous
  360. * 331 Guest login ok, send ident as password.
  361. * Password: #gatsby
  362. * 230 Guest login ok, access restrictions apply.
  363. * ftp> #ls
  364. * 200 PORT command successful.
  365. * 150 ASCII data connection for /bin/ls (132.239.13.10,4781) * (0 bytes).
  366. * .hushlogin
  367. * bin
  368. * dev
  369. * etc
  370. * pub
  371. * usr
  372. * README
  373. * 226 ASCII Transfer complete.
  374. * 37 bytes received in 0.038 seconds (0.96 Kbytes/s)
  375. * ftp>
  376.  
  377.      _________________________________________________________________________
  378.     |
  379.     |  This is where you can try to 'cd' the "etc" dir or just 'get'
  380.     |  /etc/passwd, but grabbing the passwd file this way is a dieing art.
  381.     |_________________________________________________________________________
  382.  
  383. * ftp> #cd pub
  384. * 200 PORT command successful.
  385. * ftp> #ls
  386. * ceremony
  387. * cud
  388. * dos
  389. * eff
  390. * incoming
  391. * united
  392. * unix
  393. * vax
  394. * 226 ASCII Transfer cmplete.
  395. * 62 bytes received in 1.1 seconds (0.054 Kbytes/s)
  396. * ftp> #cd eff
  397. * 250 CWD command successful.
  398. * ftp> #ls
  399. * 200 PORT command successful.
  400. * 150 ASCII data connection for /bin/ls (132.239.13.10,4805) (0 bytes).
  401. * Index
  402. * eff.brief
  403. * eff.info
  404. * eff.paper
  405. * eff1.00
  406. * eff1.01
  407. * eff1.02
  408. * eff1.03
  409. * eff1.04
  410. * eff1.05
  411. * realtime.1
  412. * 226 ASCII Transfer complete.
  413. * 105 bytes received in 1.8 seconds (0.057 Kbytes/s)
  414. * ftp> #get
  415. * (remote-file) #eff1.04
  416. * (local-file) #eff1.04
  417. * 200 PORT command successful.
  418. * 150 Opening ASCII mode data connection for eff1.04 (909 bytes).
  419. * 226 Transfer complete.
  420. * local: eff1.04 remote: eff1.04
  421. * 931 bytes received in 2.2 seconds (0.42 Kbytes/s)
  422. * ftp> #close
  423. * Bye...
  424. * ftp> #quit
  425. * %
  426. *
  427.  
  428.      To read the file you can just 'get' the file and buffer it.  If the files
  429. are just too long, you can 'xmodem' it off the host you are on.  Just type
  430. 'xmodem' and that will make it much faster to get the files.  Here is the set
  431. up (as found on ocf.berkeley.edu).
  432.  
  433.    If you want to:                                         type:
  434.  
  435. send a text file from an apple computer to the ME       xmodem ra <filename>
  436. send a text file from a non-apple home computer         xmodem rt <filename>
  437. send a non-text file from a home computer               xmodem rb <filename>
  438. send a text file to an apple computer from the ME       xmodem sa <filename>
  439. send a text file to a non-apple home computer           xmodem st <filename>
  440. send a non-text file to a home computer                 xmodem sb <filename>
  441.  
  442. xmodem will then display:
  443.  
  444. *
  445. * XMODEM Version 3.6 -- UNIX-Microcomputer Remote File Transfer Facility
  446. * File filename Ready to (SEND/BATCH RECEIVE) in (binary/text/apple) mode
  447. * Estimated File Size (file size)
  448. * Estimated transmission time (time)
  449. * Send several Control-X characters to cancel
  450. *
  451.  
  452.  
  453. Hints- File transfer can be an iffy endeavor; one thing that can help is to
  454.        tell the annex box not to use flow control.  Before you do rlogin, type
  455.  
  456.  stty oflow none
  457.  stty iflow none
  458.  
  459. at the annex prompt.  This works best coming through 2-6092.
  460.  
  461.     Some special commands used during ftp session are cdup (same as cd ..) and
  462. dir (gives a detailed listing of the files).
  463.  
  464.  
  465. c:   How to tftp the Files
  466.  
  467.      tftp (Trivial File Transfer Protocol, the command is NOT in caps, because
  468. UNIX is case sensitive) is a command used to transfer files from host to host.
  469. This command is used sometimes like ftp, in that you can move around using
  470. UNIX commands.  I will not go into this part of the command, but I will go
  471. into the basic format, and structure to get files you want. Moreover, I will
  472. be covering how to flip the /etc/passwd out of remote sites.
  473.      There is a little trick that has been around a while.  It helps you to
  474. "flip" the /etc/passwd file out of different sites, which gets you the passwd
  475. file without out breaking into the system.  Then just run Brute Hacker (the
  476. latest version) on the thing and you save time and energy.  This 'hole' (not
  477. referring to the method of obtaining Unix superuser status) may can be found
  478. on SunOS 3.X, but has been fixed in 4.0.  It has sometimes appeared in
  479. System V, BSD and a few others.
  480.  
  481.      The only problem with this 'hole' is that the system manager will often
  482. realize what you are doing.  The problem occurs when attempts to tftp the
  483. /etc/passwd is happen too many times.  You may see this (or something like
  484. this) when you logon on to your account.  This was buffered off of
  485. plague.berkeley.edu.  I guess they knew what I was doing.
  486.  
  487. *
  488. * DomainOS Release 10.3 (bsd4.3) Apollo DN3500 (host name):
  489. *         This account has been deactivated due to use in system cracking
  490. * activities (specifically attempting to tftp /etc/passwd files from remote
  491. * sites) and for having been used or broken in to from <where the calls are
  492. * from>.  If the legitimate owner of the account wishes it reactivated,
  493. * please mail to the staff for more information.
  494. *
  495. * - Staff
  496. *
  497.  
  498.      The tftp is used in this format:
  499.  
  500.  tftp -<command> <any name> <Internet Address>  /etc/passwd  <netascii>
  501.  
  502. Command      -g   is to get the file, this will copy the file onto
  503.                   your 'home' directory, thus you can do anything with
  504.                   the file.
  505.  
  506. Any Name     If your going to copy it to your 'home' directory, it needs a
  507.              name.
  508.  
  509. Internet     This is the address that you want to snag the passwd file from.
  510.  Address     There are hundreds of thousands of them.
  511.  
  512. /ETC/PASSWD  THIS IS THE FILE THAT YOU WANT.  You do not want John Smith's
  513.              even though it would be trivial to retreive it.
  514.  
  515. netascii     This how you want the file to be transferred.
  516.  
  517. &            Welcome to the power of UNIX, it is multitasking, this little
  518.              symbol place at the end will allow you to do other things (such
  519.              as grab the passwd file from the UNIX that you are on).
  520.  
  521.      Here is the set up:  We want to get the passwd file from
  522. sunshine.ucsd.edu.  The file in your 'home' directory is going to be named
  523. 'asunshine'.
  524.  
  525. *
  526. * $ #tftp -g asunshine sunshine.ucsd.edu /etc/passwd &
  527. *
  528.  
  529.  
  530. d  Basic Fingering
  531.  
  532.      Fingering is a real good way to get an account on remote sites.  Typing
  533. 'who' or just 'finger <account name> <CR>' you can have names to "finger".
  534. This will give you all kinds information on the person's account.  Here is a
  535. example of how to do it:
  536.  
  537. *
  538. * % #who
  539. * joeo                 ttyp0       Jun 10 21:50   (bmdlib.csm.edu)
  540. * gatsby               ttyp1       Jun 10 22:25   (foobar.plague.mil)
  541. * ddc                  crp00       Jun 10 11:57   (aogpat.cs.pitt.edu)
  542. * liliya               display     Jun 10 19:40
  543.  
  544.                  /and fingering what you see
  545.  
  546. * % #finger bbc
  547. * Login name: ddc                     In real life: David Douglas Cornwall
  548. * Office: David C. Co
  549. * Directory: //aogpat/users_local/bdc     Shell: /bin/csh
  550. * On since Jun 10 11:57:46 on crp00 from aogpat   Phone 555-1212
  551. * 52 minutes Idle Time
  552. * Plan:  I like to eat apples and bananas.
  553. * %
  554. *
  555.  
  556.      Now you could just call (or Telnet to) 'aogpat.cs.pit.edu' and try to
  557. hack out an account.  Try the last name as the password, the first name, the
  558. middle name, and try them all backwards.  The chances are real good that you
  559. WILL get in because people are stupid.
  560.  
  561.      If there are no users online for you to type "who" you can just type
  562. "last" and all of the users who logged on will come rolling out.  Now "finger"
  563. them.  The only problem with using the "last" command is aborting it.
  564.  
  565.      You can also try telephoning individual users and tell them you are the
  566. system manager (i.e. social engineer them).  However, I have not always seen
  567. phone numbers in everyone's ".plan" file (the file you see when you finger the
  568. user).
  569.  
  570.  
  571. 8  Other Networks
  572. ~~~~~~~~~~~~~~~~~
  573. AARNet -      Australian Academic and Research Network.  This network supports
  574.               research for various Australian Universities.  This network
  575.               supports TCP/IP, DECnet, and OSI (CLNS).
  576.  
  577. ARPANET -     We've already discussed this network.
  578.  
  579. BITNET -      Because It's Time NETwork (BITNET) is a worldwide network that
  580.               connects many colleges and universities.  This network uses many
  581.               different protocols, but it dose use the TCP/IP.
  582.  
  583. CREN CSNET -  Corporation for Research and Educational Network (CREN) or
  584.               Computer + Science research NETwork (CSNET).  This network links
  585.               scientists at sites all over the world.  CSNET providing access
  586.  
  587.               to the Internet, CREN to BITNET.  CREN is the name more often
  588.               used today.
  589.  
  590. CSUNET -      California State University Network (CSUNET).  This network
  591.               connects the California State University campuses and other
  592.               universities in California.  This network is based on the CCITT
  593.               X.25 protocol, and also uses TCP/IP, SNA/DSLC, DECnet, and
  594.               others.
  595.  
  596.  
  597.  
  598. The Cypress Net - This network started as a experimental network.  The use of
  599.                   this network today is as a connection to the TCP/IP Internet
  600.                   as a cheap price.
  601.  
  602. DRI -        Defense Research Internet is a WAN that is used as a platform
  603.              from which to work from.  This network has all kind of services,
  604.              such as multicast service, real-time conference and more.  This
  605.              network uses the TCP/IP (also see RFC 907-A for more information
  606.              on this network).
  607.  
  608. ESnet -      This is the new network operated by the Department of Energy's
  609.              Office of Energy Research (DoE OER).  This net is the backbone
  610.              for all DoE OER programs.  This network replaced the High Energy
  611.              Physics DECnet (HEPnet) and also the Magnetic Fusion Energy
  612.              network (MFEnet).  The protocols offered are IP/TCP and also
  613.              DECnet service.
  614.  
  615. JANET -      JANET is a Joint Academic NETwork based in the UK, connected to
  616.              the Internet.  JANET is a PSN (information has pass through a
  617.              PAD) using the protocol X.25 though it does support the TCP/IP.
  618.              This network also connects PSS (Packet Switched Service is a PSN
  619.              that is owned and operated by British telecom).
  620.  
  621. JUNET -      Japan's university message system using UUCP, the Internet as its
  622.              backbone, and X.25 (see RFC 877).  This network is also a part of
  623.              USENET (this is the network news).
  624.  
  625. Los Nettos - Los Nettos is a high speed MAN in the Los Angeles area.  This
  626.              network uses the IP/TCP.
  627.  
  628. MILNET -     When ARPANET split, the DDN was created and MILNET (MILitary
  629.              NETwork) is also a part of the network.  MILNET is unclassified,
  630.              but there are three other classified networks that make up the
  631.              DDN.
  632.  
  633. NORDUNet -   This net is the backbone to the networks in the Nordic Countries,
  634.              Denmark (DENet), Finland (FUNET), Iceland (SURIS), Norway
  635.              (UNINETT), and Sweden (SUNET).  NORDUnet supports TCP/IP, DECNet,
  636.              and X.25.
  637.  
  638. NSN -        NASA Science Network (NSN).  This network is used by NASA to send
  639.              and relay information.  The protocols used are TCP/IP.  NSN has a
  640.              sister network called Space Physics Analysis Network (SPAN) for
  641.              DECNet.
  642.  
  643. ONet -       Ontario Network is a TCP/IP network used for research.
  644.  
  645. NSFNet -     National Science Foundation Network, this network is in the
  646.              IP/TCP family, but in any case it uses UDP (User Diagram
  647.              Protocol) and not TCP.  NSFnet is the network for the US
  648.              scientific and engineering research community.  Listed below are
  649.              all the NSFNet Sub-networks:
  650.  
  651.        BARRNet -     Bay Area Regional Research Network is located in the San
  652.                      Francisco area.  This network uses TCP/IP.
  653.  
  654.        CERFnet -     California Education and Research Federation Network is
  655.                      a research based network supporting Southern California
  656.                      Universities communication services.  This network uses
  657.                      TCP/IP.
  658.  
  659.        CICNet -      Committee on Institutional Cooperation.  This network
  660.                      services the BIG 10, and University of Chicago.  This
  661.                      network uses TCP/IP.
  662.  
  663.        JvNCnet -     John von Neumann National Supercomputer Center.  This
  664.                      network uses TCP/IP.
  665.  
  666.        Merit -       Merit connects Michigan's academic and research
  667.                      computers. This network supports TCP/IP, X.25 and
  668.                      Ethernet for LANs.
  669.  
  670.        MIDnet -      MIDnet connects 18 universities and research centers in
  671.                      the midwest United States.  The support protocols are
  672.                      TELNET, FTP and SMTP.
  673.  
  674.        MRNet -       Minnesota Regional Network, this network services
  675.                      Minnesota.  The network protocols are TCP/IP.
  676.  
  677.        NEARnet -     New England Academic and Research Network, connects
  678.                      various research/educational institutions.  You
  679.                      can get more information about this net by mailing
  680.                      'nearnet-staff@bbn.com'.
  681.  
  682.  
  683.        NCSAnet -     The National Center for Supercomputing Applications
  684.                      supports the whole IP family (TCP, UDP, ICMP, etc).
  685.  
  686.        NWNet -       North West Network provides service to the Northwestern
  687.                      United States and Alaska.  This network supports IP and
  688.                      DECnet.
  689.  
  690.        NYSERNet -    New York Service Network is a autonomous nonprofit
  691.                      network.  This network supports the TCP/IP.
  692.  
  693.        OARnet -      Ohio Academic Resources Network gives access to the
  694.                      Ohio Supercomputer Center.  This network supports TCP/IP.
  695.  
  696.        PREPnet -     Pennsylvania Research and Economic Partnership is a
  697.                      network operated and managed by Bell of Pennsylvania.  It
  698.                      supports TCP/IP.
  699.  
  700.        PSCNET -      Pittsburgh Supercomputer Center serving Pennsylvania,
  701.                      Maryland, and Ohio.  It supports TCP/IP, and DECnet.
  702.  
  703.        SDSCnet -     San Diego Super Computer Center is a network whose goal
  704.                      is to support research in the field of science.  The
  705.                      Internet address is 'y1.ucsc.edu' or call Bob at
  706.                      (619)534-5060 and ask for a account on his Cray.
  707.  
  708.        Sesquinet -   Sesquinet is a network based in Texas.  It supports
  709.                      TCP/IP.
  710.  
  711.        SURAnet -     Southeastern Universities Research Association Network
  712.                      is a network that connects institutions in the Southeast
  713.                      United States.
  714.  
  715.        THEnet -      Texas Higher Education Network is a network that is run
  716.                      by Texas A&M University.  This network connects to hosts
  717.                      in Mexico.
  718.  
  719.        USAN/NCAR -   University SAtellite Network (USAN)/National Center for
  720.                      Atmospheric Research is a network for information
  721.                      exchange.
  722.  
  723.        Westnet -     Westnet connects the western part of the United States,
  724.                      but not including California.  The network is supported
  725.                      by Colorado State University.
  726.  
  727. USENET -     USENET is the network news (the message base for the Internet).
  728.              This message base is quite large with over 400 different topics
  729.              and connecting to 17 different countries.
  730.  
  731.  
  732. 9  Internet Protocols
  733. ~~~~~~~~~~~~~~~~~~~~~
  734.      TCP/IP is a general term relating to the whole family of Internet
  735. protocols.  The protocols in this family are IP, TCP, UDP, ICMP, ROSE, ACSE,
  736. CMIP, ISO, ARP and Ethernet for LANs.  If if you want more information, get
  737. the RFCs.
  738.  
  739.       TCP/IP protocol is a "layered" set of protocols.  In this diagram taken
  740. from RFC 1180 you will see how the protocol is layered when connection is
  741. made.
  742.  
  743. Figure is of a Basic TCP/IP Network Node:
  744.  
  745.          -----------------------------------
  746.          |      Network    Application     |
  747.          |                                 |
  748.          | ... \  |  /  ..  \  |  /    ... |
  749.          |     -------      -------        |
  750.          |     | TCP |      | UDP |        |
  751.          |     -------      -------        |
  752.          |           \       /             |          % Key %
  753.          |  -------   ---------            |          ~~~~~~~
  754.          |  | ARP |   |  IP   |            |   UDP  User Diagram Protocol
  755.          |  -------   ------*--            |   TCP  Transfer Control Protocol
  756.          |     \            |              |   IP   Internet Protocol
  757.          |      \           |              |   ENET Ethernet
  758.          |       -------------             |   ARP  Address Resolution
  759.          |       |    ENET   |             |                  Protocol
  760.          |       -------@-----             |   O    Transceiver
  761.          |              |                  |   @    Ethernet Address
  762.          -------------- | ------------------   *    IP address
  763.                         |
  764. ========================O=================================================
  765.       ^
  766.       |
  767.   Ethernet Cable
  768.  
  769. TCP/IP:  If connection is made is between the IP module and the TCP module the
  770.          packets are called a TCP datagram.  TCP is responsible for making
  771.          sure that the commands get through the other end.  It keeps track of
  772.          what is sent, and retransmits anything that does not go through.  The
  773.          IP provides the basic service of getting TCP datagram from place to
  774.          place.  It may seem like the TCP is doing all the work, this is true
  775.          in small networks, but when connection is made to a remote host on
  776.          the Internet (passing through several networks) this is a complex
  777.          job. Say I am connected from a server at UCSD to LSU (SURAnet) the
  778.          data grams have to pass through a NSFnet backbone.  The IP has to
  779.          keep track of all the data when the switch is made at the NSFnet
  780.          backbone from the TCP to the UDP.  The only NSFnet backbone that
  781.          connects LSU is the University of Maryland, which has different
  782.          circuit sets.  The cable (trunk)/circuit types are the T1 (a basic
  783.          24-channel 1.544 Md/s pulse code modulation used in the US) to a
  784.          56 Kbps.  Keeping track of all the data from the switch from T1 to
  785.          56Kbs and TCP to UDP is not all it has to deal with.  Datagrams on
  786.          their way to the NSFnet backbone (at the University of Maryland) may
  787.          take many different paths from the UCSD server.
  788.  
  789.          All the TCP does is break up the data into datagrams (manageable
  790.          chunks), and keeps track of the datagrams.  The TCP keeps track of
  791.          the datagrams by placing a header at the front of each datagram.  The
  792.          header contains 160 (20 octets) pieces of information about the
  793.          datagram.  Some of this information is the FQDN (Fully Qualified
  794.          Domain Name).  The datagrams are numbers in octets (a group of eight
  795.          binary digits, say there are 500 octets of data, the numbering of the
  796.          datagrams would be 0, next datagram 500, next datagram 1000, 1500
  797.           etc.
  798.  
  799. UDP/IP:  UDP is one of the two main protocols of the IP.  In other words the
  800.          UDP works the same as TCP, it places a header on the data you send,
  801.          and passes it over to the IP for transportation throughout the
  802.          Internet.  The difference is that it offers service to the user's
  803.          network application.  It does not maintain an end-to-end connection,
  804.          it just pushes the datagrams out.
  805.  
  806. ICMP:  ICMP is used for relaying error messages.  For example you might try to
  807.        connect to a system and get a message back saying "Host unreachable",
  808.        this is ICMP in action.  This protocol is universal within the
  809.        Internet, because of its nature.  This protocol does not use port
  810.        numbers in it's headers, since it talks to the network software itself.
  811.  
  812.  
  813. Ethernet:  Most of the networks use Ethernet.  Ethernet is just a party line.
  814.            When packets are sent out on the Ethernet, every host on the
  815.            Ethernet sees them.  To make sure the packets get to the right
  816.            place, the Ethernet designers wanted to make sure that each address
  817.            is different.  For this reason 48 bits are allocated for the
  818.            Ethernet address, and a built in Ethernet address on the Ethernet
  819.            controller.
  820.  
  821.            The Ethernet packets have a 14-octet header, this includes address
  822.            "to" and "from."  The Ethernet is not too secure, it is possible to
  823.            have the packets go to two places, thus someone can see just what
  824.            you are doing.  You need to take note that the Ethernet is not
  825.            connected to the Internet.  A host on both the Ethernet and on the
  826.            Internet has to have both an Ethernet connection and an Internet
  827.            server.
  828.  
  829. ARP:  ARP translates the IP address into an Ethernet address.  A conversion
  830.       table is used (the table is called ARP Table) to convert the addresses.
  831.       Therefore, you would never even know if you were connected to the
  832.       Ethernet because you would be connecting to the IP address.
  833.  
  834.       The following is a real sketchy description of a few Internet protocols,
  835.       but if you would like to get more information you can access it via
  836.       anonymous ftp from several hosts.  Here is a list of RFCs that deal with
  837.       the topic of protocols.
  838.  
  839.       |~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  840.       |     RFC:      |       Description:                     |
  841.       |               |                                        |
  842.       |~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  843.       |   rfc1011     |  Official Protocols of the Internet    |
  844.       |   rfc1009     |  NSFnet gateway specifications         |
  845.       |   rfc1001/2   |  netBIOS: networking for PC's          |
  846.       |   rfc894      |  IP on Ethernet                        |
  847.       |   rfc854/5    |  telnet - protocols for remote logins  |
  848.       |   rfc793      |  TCP                                   |
  849.       |   rfc792      |  ICMP                                  |
  850.       |   rfc791      |  IP                                    |
  851.       |   rfc768      |  UDP                                   |
  852.       |               |                                        |
  853.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  854.  
  855.  
  856. 10  Host Name and Address
  857. ~~~~~~~~~~~~~~~~~~~~~~~~~
  858.      Internet addresses are long and difficult hard to remember (i.e.,
  859. 128.128.57.83) so we use host names.  All hosts registered on the Internet
  860. must have names that reflect them domains under which they are registered.
  861. Such names are called Fully Qualified Domain Names (FQDNs).  Lets dissect a
  862. name and see the domains:
  863.  
  864.  lilac.berkeley.edu
  865.    ^      ^      ^
  866.    |      |      |
  867.    |      |      |____  "edu" shows that this host is sponsored by an
  868.    |      |             education related organization.  This is a top-level
  869.    |      |             domain.
  870.    |      |
  871.    |      |___________  "berkeley" is the second-level domain.  This shows
  872.    |                    that it is an organization within University of
  873.    |                    Calironia at  Berkeley.
  874.    |
  875.    |__________________  "lilac" is the third-level domain.  This indicates the
  876.                         local host name is 'lilac'.
  877.  
  878.      Common Top-Level Domains
  879.  
  880.      COM  -  commercial enterprise
  881.      EDU  -  educational institutions
  882.      GOV  -  nonmilitary government agencies
  883.      MIL  -  military (non-classified)
  884.      NET  -  networking entities
  885.      ORG  -  nonprofit intuitions
  886.  
  887.      A network address is the numerical address of a host, gateway, or TAC.
  888. The addresses are made up of four decimal numbered slots, which are separated
  889. by a period.
  890.  
  891.      There are three classes that are used most, these are Class A, Class B,
  892. and Class C.
  893.  
  894.    Class A  -  from '0'    to  '127'
  895.    Class B  -  from '128'  to  '191'
  896.    Class C  -  from '192'  to  '223'
  897.  
  898. Class A  -  Is for MILNET net hosts.  The first part of the address has the
  899.             network number.  The second is for the physical PSN port number.
  900.             The third is for the logical port number, since it is on MILNET,
  901.             it is a MILNET host.  The fourth part is for which PSN it is on.
  902.             On 29.34.0.9.  '29' is the network it is on.  '34' means it is on
  903.             port '34'.  '9' is the PSN number.
  904.  
  905. Class B  -  This is for the Internet hosts, the first two "clumps" are for the
  906.             network portion.  The second two are for the local port.
  907.  
  908.              128.28.82.1
  909.                \_/   \_/
  910.                 |     |_____ Local portion of the address
  911.                 |
  912.                 |___________ Potation address.
  913.  
  914. Class C  -  The first three "clumps" are the network portion and the last one
  915.             is the local port.
  916.  
  917.             193.43.91.1
  918.                \_|_/  |_____ Local Portation Address
  919.                  |
  920.                  |__________ Network Portation Address
  921. _______________________________________________________________________________
  922.                                                                         
  923.