home *** CD-ROM | disk | FTP | other *** search
/ 1,001 Nights of Doom / 1001NightsOfDoom1995wickedSensations.iso / text / doomhelp.zip / DOOMNET.HLP < prev    next >
Text File  |  1994-10-25  |  21KB  |  534 lines

  1. ==================================
  2. DOOM NETWORK TROUBLESHOOTING GUIDE
  3. ==================================
  4.  
  5. AUTHOR: Murray Chapman
  6.   DATE: 25th May, 1994
  7.  
  8.  
  9. INTRODUCTION
  10. ------------
  11.  
  12. The purpose of this file is to help you diagnose problems when running DOOM
  13. on a dedicated network.  Dedicated means that there is no network software
  14. running, it is not connected to any other computers, and will be carrying
  15. no traffic other than DOOM.
  16.  
  17. In other words, this file will help you if you have computers, ethernet cards,
  18. and cable but don't know how to set it up.
  19.  
  20. I have no experience with Novell/LANtastic/TCP, etc, and hence can't help you.
  21.  
  22.  
  23. DISCLAIMER
  24. ----------
  25.  
  26. I accept no responsibility for anything that might happen to you or your
  27. computer.  I also make no guarantees about the correctness of this, or its
  28. ability to produce anything that works at all.  You're on your own.
  29.  
  30.  
  31. BACKGROUND
  32. ----------
  33.  
  34. DOOM requires an IPX network to run.  IPX is a very simple and very
  35. popular protocol, so you shouldn't have compatibility problems with 99% of
  36. network cards.
  37.  
  38. Definitions:
  39.  
  40. Node: A computer with a network card installed in it.
  41.  
  42. BNC: A type of cable and connector: cable is coaxial, often MIL-C-17D grade.
  43.      The ends of the cable have connectors with collars, which slide over
  44.      the socket and are held on by pins on the socket when you rotate the
  45.      collar.  Cost: a 20 metre cable, complete with all adapters and plugs
  46.      for a four-node system cost me about $US80.
  47.  
  48. Network Card: The card that slots into your computer.  It could be either
  49.      8- or 16-bit.  It should have a round BNC socket on the back, and should
  50.      be able to run IPX networks.  99% do.  Cost:  I picked up four second hand
  51.      cards for about $US70 (that's less than $US18 each!)
  52.  
  53. Transceiver: A device which should be built into the network card.  It is
  54.      the hardware that converts between the TTL logic levels used in your
  55.      computer and the signal levels used on the cable.  If there is a round
  56.      BNC socket on the back of your card, then you have an "internal
  57.      tranceiver".
  58.  
  59. Packet Driver (PD): a small program, specific to your brand/model of network
  60.      card.  It handles the raw interface to the hardware on your network
  61.      card.  This packet driver provides a hardware-independant interface for
  62.      software.
  63.  
  64. IPX driver: a small program which sits on top of a packet driver, which
  65.     implements the IPX protocol.
  66.  
  67. Ethernet: A networking standard.  See:
  68.  
  69.     http://wwwhost.ots.utexas.edu/ethernet/ethernet-home.html
  70.  
  71.     for an extremely detailed breakdown.
  72.  
  73.  
  74.  
  75. A GENERAL NOTE ABOUT DEBUGGING
  76. ------------------------------
  77.  
  78. Occam's razor: reduce a problem down to the smallest system that still exhibits
  79. the erroneous behaviour.
  80.  
  81. If you are experiencing problems networking, it makes sense to minimise all
  82. the sources of possible errors.  For example, don't try debugging a 4-player
  83. game if you can't get a two player game going.  Strip your machine down
  84. to bare minimum that you need to run DOOM: no TSRs, no HIMEM, remove the
  85. sound card and drivers, EVERYTHING!  This can't be stressed enough.  Don't
  86. assume that YOUR soundcard couldn't possibly be causing a problem!
  87.  
  88. If the problem disappears, then you know it was one of those components.  You
  89. can then add them back one at a time to find the problem.
  90.  
  91. A fundamental problem is that there isn't much middle ground for testing a DOOM
  92. network: you must have everything right to get it to work.  If even just one
  93. thing is wrong, it won't work, and it won't give you a clue about where
  94. to look.
  95.  
  96.  
  97. A DOOM NETWORK
  98. --------------
  99.  
  100. Here is a two-node DOOM network, from a hardware/software point of view:
  101.  
  102. +---------------+                                       +---------------+
  103. | DOOM -nodes 2 |                                       | DOOM -nodes 2 |
  104. +---------------+                                       +---------------+
  105. | DOOM LAUNCHER |                                       | DOOM LAUNCHER |
  106. | ([IPX]SETUP)  |                                       | ([IPX]SETUP)  |
  107. +---------------+                                       +---------------+
  108. | IPX driver    |                                       | IPX driver    |
  109. +---------------+                                       +---------------+
  110. | Packet driver |                                       | Packet driver |
  111. +---------------+                                       +---------------+
  112. | Network Card  |                                       | Network Card  |
  113. +---------------+---------------------------------------+---------------+
  114. |                 C O N N E C T O R S   &   C A B L E S                 |
  115. +-----------------------------------------------------------------------+
  116.  
  117. 3 and 4 player systems are just an extension of this, shown below.
  118.  
  119. You need to construct this system from the bottom up, as each level of the
  120. system requires the lower level be present in order to work.  (Actually, DOOM
  121. itself is automatically run by IPXSETUP, which can be launched from SETUP.)
  122.  
  123. Debug from the bottom up: make sure that each layer is working before you
  124. attempt to install the next.
  125.  
  126.  
  127. HARDWARE SETUP
  128. --------------
  129.  
  130. H0. Remove all unnecessary hardware.  This includes sound cards.  Don't forget
  131.     to tell DOOM via SETUP that you no longer have a sound card.  This is
  132.     important.
  133.  
  134. H1. Install the network cards in the computers.  Make sure all the jumpers on
  135.    the network cards are set to either the defaults, or (if you are certain
  136.    the default setting will cause a conflict) a known safe setting.  Make sure
  137.    that you plug a 16-bit card into a 16-bit slot.  My 8-bit card works in
  138.    a 16-bit slot, but others might not.
  139.  
  140. H2. Connect your computers up as follows:
  141.  
  142.  
  143.  Two Node setup:
  144.  
  145.         =TTT----------------TTT=
  146.           T                  T
  147.     NODE 1             NODE 2
  148.  
  149.  
  150.  Three Node setup:
  151.  
  152.         =TTT----------------TTT----------------TTT=
  153.           T                  T                  T
  154.     NODE 1             NODE 2             NODE 3
  155.  
  156.  
  157.  Four Node setup:
  158.  
  159.         =TTT----------------TTT----------------TTT----------------TTT=
  160.           T                  T                  T                  T
  161.     NODE 1             NODE 2             NODE 3             NODE 4
  162.  
  163.  Where:
  164.   TTT is a BNC T-piece
  165.    T
  166.  
  167.    - is 50 ohm (MIL-C-17D) ethernet cable with BNC plugs
  168.  
  169.    = are 50 ohm terminator plugs
  170.  
  171.   Please note that the terminator plugs are essential for correct functioning
  172.   of the network.  Very important!  If for some strange reason you can't find
  173.   terminator plugs, all you have to do is connect the two wires in the cable
  174.   via a 50 ohm resistor.  The plugs are cheap, and make a nice clean job of
  175.   it, so you shouldn't really have to do this.
  176.  
  177.   Total cable length should not exceed about 180 metres. (!)  Any longer than
  178.   that and you might suffer dropout or pick up too much RF interference.
  179.  
  180.  
  181. H3. Learn about your system.  Run MSD.EXE (Microsoft System Diagnostics),
  182.    Norton Utilities, PC Tools, or any other program which will give you
  183.    details about IRQ levels, shared memory, etc.  Also check all aspects of
  184.    your CMOS.  Make sure that you note all addresses that are in use.
  185.  
  186.  
  187. H4. If your network cards came with software diagnostics, run them.
  188.  
  189.   The diagnostics should be able to detect the presence of the cards in the
  190.   system, and check their circuitry.  They will ask you for things such as
  191.   IRQ level and DMA channels.  Make sure that the values you supply match
  192.   any settings you made with jumpers during step H1.  Also make sure that
  193.   they don't conflict with any other setting in your system.
  194.  
  195.   Remember that DOOM can only use sound cards on IRQ 5 or 7.  Make sure one
  196.   of these is still free if you intend to run a sound card as well.
  197.  
  198.   The diagnostics might mention a "loopback plug".  This is merely:
  199.  
  200.                 =TTT=
  201.                   T
  202.                 NODE
  203.  
  204.   but the networks illustrated in step H2 above provide the same functionality.
  205.  
  206.   You might be able to set up an "echo server".  Set up one node to be an
  207.   echo server, then try running "echo client" on the others.  If none of them
  208.   work, then it's probable that at least the node that has been set up to be
  209.   the echo server is at fault.  If at least one client passes the test, then
  210.   the server appears to be working.  The diagnostics should give you statistics
  211.   about the success or otherwise of the test.
  212.  
  213.   If you have a node that works and one that doesn't, swap the network cards.
  214.   If the problem follows the network card, then either the jumper settings
  215.   are incorrectly set, or the card is at fault.  If the problem doesn't follow
  216.   the card, then the problem is with that particular computer.
  217.  
  218.   For a each node that you suspect isn't working, redo steps H1 to H4.
  219.  
  220.  
  221. H5. Once you have done all of this, you can assume the following:
  222.  
  223.     The cards are functioning correctly.  The cabling has been done correctly.
  224.     The network is functioning correctly AT THE MOMENT.  There is no guarantee
  225.     that it will work properly under DOOM.
  226.  
  227.  
  228. PROBLEMS?
  229.  
  230.   If it doesn't work, then try all combinations of jumper settings, all
  231.   card/PC combinations, and test your cables, plugs, and terminators with a
  232.   multimeter.
  233.   
  234.   If you can't get it to work no matter what you try, then try setting up
  235.   a null-modem game.  These are much easier to set up and run.  DOOM only
  236.   requires three connections: pins 2, 3, and 7.  Make sure 2 and 3 swap over
  237.   between computers.  If you can't get this to work, then I doubt that you
  238.   would be able to get network DOOM to work.
  239.  
  240.  
  241. SOFTWARE
  242. --------
  243.  
  244. S0. Strip your AUTOEXEC.BAT and CONFIG.SYS down to the bare minimum needed
  245.   to run DOOM.  This includes all sound-card drivers, all TSRs, HIMEM,
  246.   SMARTDRIVE, mouse drivers, etc.
  247.  
  248. S1. Find a packet driver (PD) specific for your computer.  There are a whole
  249.    suite of them available in:
  250.  
  251.         oak.oakland.edu:/pub/msdos/pktdrvr/pktd11.zip
  252.  
  253.    and associated mirror sites.
  254.  
  255.    Older versions of the file (OLDIPX.ZIP) are available at ftp.uwp.edu and
  256.    infant2.sphs.indiana.edu.  If you get really stuck, try contacting the
  257.    manufacturer (ftp.3com.com, for example).
  258.  
  259. S2. Install your packet driver.
  260.  
  261.   This is extensively covered in the DOOM FAQ:
  262.  
  263.     infant2.sphs.indiana.edu:/pub/doom/text/*
  264.  
  265.   Typically, you have to run the packet driver .COM file with commands which
  266.   tell it what hardware settings you have made.  For example, a 3com 503 card
  267.   running on IRQ 5, interrupt 0x60, communicating via port 0x300 would be set
  268.   up like this:
  269.  
  270.  
  271.     C:\IPX>3c503 0x60 0x5 0x300
  272.             (a)   (b)  (c) (d)
  273.  
  274.     (a) 3c503.com: a packet driver for the card, found in pktdrv11.zip
  275.     (b) IO interrupt: 0x60 is standard, others are 0x62, 0x64, etc
  276.     (c) IRQ level
  277.     (d) IO port
  278.  
  279.   Your packet driver should report on whether the attempt was successful
  280.   or not.  If you have run the wrong PD, it should report that it couldn't
  281.   find the card.
  282.  
  283.   Note that some of these values will have to match the values set by the
  284.   jumpers on the network card.  Make sure they match and don't conflict
  285.   with any other settings in your system.  The 3c503 lets you set IO address
  286.   and shared memory address via jumpers, but the IRQ level is software
  287.   selectable.  pktdrv11.zip contains readme files which should help.
  288.  
  289.   If you can't get it to install, try changing the jumper settings on the 
  290.   card, and restart at step H1.
  291.  
  292.   NOTE!
  293.  
  294.   An incorrectly installed PD is the source of most errors.  What do errors
  295.   look like?
  296.  
  297.      (a) Your computer reboots/crashes/locks up.
  298.      (b) Erratic/unpredictable behaviour within two minutes
  299.      (c) nothing immediate
  300.  
  301.   (a) is easy to detect, (b) can be detected by making sure that you can
  302.   still get a directory, change dirs, run programs, etc.  I had a problem
  303.   whereby the system would freeze after about 15 seconds.
  304.  
  305.   (c) is interesting.  It might have appeared to work, but if you get problems
  306.   later you might have to come back here.
  307.  
  308.   NOTE!
  309.  
  310.     Once you install a PD, you might not be able to remove it or change the
  311.     settings without rebooting your computer.  Be prepared to do this many
  312.     times!
  313.  
  314.  
  315.  
  316. S3. Install the IPX driver:
  317.  
  318.   C:\IPX>IPXPD
  319.  
  320.   IPXPD.COM (or PDIPX.COM) is in pktdrv11.zip.
  321.  
  322.   IPXPD will look for your packet driver.  An optional parameter (in our
  323.   example 0x60) tells it specifically where to look for the driver.  If you
  324.   don't supply the parameter, it will search from 0x60 onwards.
  325.  
  326.   It shouldn't report an error.  If it reports an error or hangs, that means
  327.   that it had a problem detecting your packet driver, so you should go back
  328.   to step S2.
  329.  
  330.   Running MSD (or Norton Utilities) at this point should report that it
  331.   detected a network.  Don't worry if some of the details look like rubbish,
  332.   as long as it says "IPX DETECTED".
  333.  
  334.  
  335. S4. Attempt to launch DOOM:
  336.  
  337.   C:\DOOM>IPXSETUP
  338.  
  339.   This is for a two node system.  Note that all nodes must be running the
  340.   same DOOM.WAD, and IPXSETUP must be run on all nodes with the same
  341.   parameters.  (There are exceptions to this: you can run different sound PWADs
  342.   on different nodes.  Occam's razor implies that you shouldn't be doing this,
  343.   however.)
  344.  
  345.   If everything is ok, it should say something like:
  346.  
  347.   Looking for a node....
  348.   Found a node!
  349.   Communicating via .....
  350.  
  351.   ...and then launch DOOM.
  352.  
  353.   If it reports "IPX not detected", then step S3 didn't work,
  354.  
  355.   NOTE!
  356.     If you abort the connection attempt, or IPXSETUP reports "Illegal game
  357.     packet encountered during setup", then IPXSETUP will exit, leaving the
  358.     socket open.   If you try to run IPXSETUP again, it will say:
  359.  
  360.       Open socket: 0xff
  361.  
  362.     and you will have to reboot to close it.  Don't forget to reload your
  363.     PD and IPXPD.  If DOOM terminates normally, IPXSETUP closes the socket
  364.     correctly, and you can relaunch DOOM via IPXSETUP or SETUP.
  365.  
  366.  
  367.   If a node hangs on: "Looking for a node..........." (ad-infinitum)
  368.   Then either the PD on at least one node didn't install correctly (go to step
  369.   S2), or you have a problem with a cable.
  370.  
  371.  
  372. FURTHER PROBLEMS
  373. ----------------
  374.  
  375. Consider what happens when you try to launch a game of network DOOM.  Each
  376. node sends out small tentative messages over the network.  Once they have
  377. agreed on who is which player, DOOM is launched.  Then what happens?
  378. DOOM starts to run.  The VGA card gets thrashed.  The sound card gets thrashed.
  379. The keyboard/mouse gets thrashed.  In summary, your bus is carrying a LOT of
  380. information.  DOOM pushes your system to the maximum, and this could be where
  381. the problem surfaces.  It's like idling your car, then flooring the
  382. accellerator: your fuel system might handle an idle, but it might not be able
  383. to handle being run at full speed.  Don't forget that your sound card isn't
  384. active during the connect phase of IPXSETUP.
  385.  
  386. Once you see the "DOS4GW Protected Runtime System" message come up, you know
  387. that DOOM considers that your network is capable of supporting the current
  388. setup.  It *can* communicate correctly, given the right circumstances.  Write
  389. down the IRQ, jumper, DMA, and port numbers for each node for future reference.
  390.  
  391. With all the problems below, try different combinations of nodes, different
  392. number of nodes, different peripherals, different powers of computers.  Best
  393. to try are two reasonably similar computers, with minimal performance and
  394. memory characteristics.  Try to work out exactly when the problem occurs.
  395.  
  396. If you have one node that crashes, the problem is almost certainly with that
  397. node.  Take it offline, replace it with a different node, and see if the
  398. problem repeats itself.
  399.  
  400. If your DOOM session hangs, then see which nodes will bring up the menu
  401. (eventually) when you hit ESC.  If a node can bring up the menu, then it
  402. is probably working properly.  Look at nodes that can't bring up the menu.
  403.  
  404.  
  405. SYMPTOM: DOOM hangs on "Listening for network start info"
  406. Cause: most likely a problem with another, slower computer.  This node is
  407.        ready to go, and is awaiting another node.
  408.   Fix: check other node(s).
  409.  
  410.  
  411. SYMPTOM: DOOM hangs on a blank screen
  412. Cause: Protocol problem
  413.   Fix: Wait.  If it doesn't continue, then whichever node was last to start
  414.        is probably the culprit
  415.  
  416.  
  417. SYMPTOM: DOOM runs extremely slowly.
  418. Cause: Too many monsters
  419.   Fix: add "-nomonsters" to the IPXSETUP command on all nodes
  420.   Fix: Make all nodes play on low detail mode.
  421.  
  422. Cause: Too complex a level
  423.   Fix: play a more simple level, such as "-episode 1 -map 8"
  424.   Fix: Make all nodes play on low detail mode.
  425.  
  426. Cause: A really slow computer
  427.   Fix: Make sure that you don't play with a 386SX-16! :-)
  428.  
  429. Cause: Cable too long
  430.   Fix: Try a shorter cable.
  431.  
  432. Cause: Protocol errors.  Doom automatically detects when there is a problem
  433.        a transmission.  It "drops" erroneous packets, and waits for others.
  434.        This causes DOOM to slow down.
  435.   Fix: Try to isolate the problem down to a particular node.  Reinstall
  436.        everything on that node.
  437.  
  438.  
  439. SYMPTOM: DOOM slows down slightly for a moment, then resumes normal speed.
  440.   Cause: One node is struggling; either it is doing a lot of work, or is
  441.          having problems with its card.
  442.     Fix: More memory, faster computer.
  443.  
  444.  
  445. SYMPTOM: DOOM hangs suddenly, can't get the menu up on at least one node.
  446.   Cause: That node has crashed.  The problem is probably with that node.
  447.     Fix: Re-install system on that node, from step H0.
  448.  
  449.  
  450. SYMPTOM: DOOM hangs suddenly, but you can get the menu up on all nodes.
  451.   Cause: Someone kicked a cable out!
  452.     Fix: Check the cabling!
  453.  
  454.  
  455. SYMPTOM: DOOM slows down, then crashes on one particular node.
  456. Cause: A problem with the crashed node.
  457.   Fix: Remove/replace that node, see if the problem re-occurs.
  458.  
  459.  
  460. SYMPTOM: DOOM consistently crashes at a particular point
  461. Cause: A network card is clashing with either the hard drive or the sound card.
  462.   Fix: Change the jumpers on the card or the software settings.  Go to step
  463.        H3.
  464.  
  465.  
  466. DEBUGGING EXAMPLES
  467. ------------------
  468.  
  469. (A)
  470. Two 386DX-33s.  One with a SB-16, the other with a SB-16-ASP.  Both sound cards
  471. were set to IRQ 5, and both were trying to run network cards on IRQ 5 as well.
  472. 3com 503 ethernet cards.  DOOM 1.2.
  473.  
  474. Changed soundcard IRQ jumpers to 7, notified DOOM of this via SETUP, and it
  475. worked fine.
  476.  
  477. (B)
  478. A 386DX-33/8Mb/SB-16/Sound Canvas and a 486DX-33/16Mb/Sound Galaxy were
  479. networked, and worked fine.  Both had 3com 503 network cards.  DOOM 1.2.
  480.  
  481. Added a 486DLC-40/8Mb with a 3com 503 network card.  DOOM started ok, but
  482. crashed whenever we tried to move too far.
  483.  
  484. Took the 386 off line, to see if it was a problem with the DLC or with 3 nodes
  485. in general.  The problem remained, therefore it was with the DLC.
  486.  
  487. Checked the CMOS on the DLC.  Becuase it had a hybrid chip, it had some extra
  488. setting.  There was a setting for "Hard Disk type 47 area", which was 0x300,
  489. the same as the port for the network card.  I changed a jumper on the network
  490. card so that the card used 0x310.  When installing the PD, I made sure I
  491. specified 0x310.
  492.  
  493. The problem remained.
  494.  
  495. I remembered that in order to get DOOM to run on the DLC in the first place,
  496. we had to switch off some shadow RAM.  Thinking there might be a memory
  497. conflict, I changed the "shared memory" jumper on the network card from "DC00"
  498. to "DISABLE", left the port at 0x310, and ran it.  It worked.
  499.  
  500.  
  501. (C)
  502. A 386DX-33/8Mb/SB8 3com 503 network card.  Would connect ok, but send the
  503. network start info, but would then hang on a black screen.  The problem was the
  504. old 8-bit Sound Blaster, which would only use DMA channel 1.  The network card
  505. was software selectable to DMA channel 3.  Unfortunately, this didn't work,
  506. so we removed the card, and this solved the problems.  DOOM 1.2.
  507.  
  508. (D)
  509. A 486SX-33/8Mb/PAS-16 3com 503.  Would say "listening for network start info",
  510. then print a string of garbage, then quit back to DOS.  Solution: Eliminated
  511. things from CONFIG.SYS.  EMM was probably at fault here.  DOOM 1.2.
  512.  
  513. (E)
  514. 486DX-33/16Mb/SB-16 3com 503.  Would hang on "listening for network start info"
  515. Tried everything, eventually discovered that when we swapped the network card
  516. for a slightly different revision board, it worked fine.  The board at fault
  517. worked perfectly in a different computer.  DOOM 1.2.
  518.  
  519.  
  520. NOTES
  521. -----
  522.  
  523. I haven't got the time to maintain this file.  If you are interested, then
  524. let me know.
  525.  
  526. Murray
  527. --
  528. -- Murray Chapman                               Zheenl Punczna            --
  529. -- muzzle@cs.uq.oz.au                           zhmmyr@pf.hd.bm.nh        --
  530. -- University of Queensland                     Havirefvgl bs Dhrrafynaq  --
  531. -- Brisbane, Australia                          Oevfonar, Nhfgenyvn       --
  532.  
  533.  
  534.