home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / tnet_x1h.zip / IP-MTU.X1H < prev    next >
Text File  |  1992-11-02  |  3KB  |  79 lines

  1.               Using TheNet X-1H with large packets
  2.  
  3. The basic version of TheNet X-1H has an AX.25 paclen limit of 256 
  4. bytes and IP router MTU sizes of 256 bytes for each port. It will 
  5. also  accept AX.25 datagrams with packet sizes greater  than  256 
  6. bytes and fragment them in the IP router.
  7.  
  8. This  is  sometimes inadequate. To cater for this, the  code  has 
  9. been  modified to allow it to work with larger frames,  but  will 
  10. need to be patched to enable this.
  11.  
  12. The patching must be done manually.
  13.  
  14. IT  MUST  BE STRESSED THAT IT IS NOT A SENSIBLE THING TO  DO,  TO 
  15. SIGNIFICANTLY INCREASE THE PACKET SIZES. This is because the node 
  16. will  run  out  of  buffers much quicker,  but  if  you  want  to 
  17. experiment,  be my guest. I suspect that crashes may become  more 
  18. frequent,  but would greatly appreciate reports from  people  who 
  19. try it.
  20.  
  21. The details follow.
  22.  
  23. There are 3 basic parts to patch.
  24.  
  25. 1. The maxframe level 2 limit.
  26.  
  27.      This  parameter sets a limit on the overall level  2  packet 
  28.      size. It is set currently to 328, ie enough space for a  256 
  29.      bytes  of L2 data plus a full digipeat header address  (  70 
  30.      bytes ) and 2 bytes for control data.
  31.  
  32.      The parameter is located at offset 08ee hex into BOTH  parts 
  33.      of  the rom image ( ie thenet1.x1h AND thenet2.x1h  ).  Both 
  34.      must  be patched. It is stored as a 16 bit word  with  least 
  35.      significant  byte at the lowest address, so at offsets  08ee 
  36.      and  08ef respectively you will find the values 48  and  01. 
  37.      This corresponds to 0148 hex, ie 328 decimal. Patch these to 
  38.      whatever  limit you want. For example for IP frames  of  512 
  39.      bytes,  set  it  to  5c 02 hex ( ie a  value  of  025c  hex, 
  40.      corresponding  to  512 data bytes, 20 IP  header,  70  AX.25 
  41.      address and 2 control.
  42.  
  43.      The software does not always check this value !.
  44.  
  45. 2. The I field limit
  46.  
  47.      The  second  value to patch is the maximum  number  of  data 
  48.      bytes  permitted  in an AX.25 I field. More than  this  will 
  49.      result in an FRMR error response.
  50.  
  51.      As  for  the  above parameter, it is also  a  2  byte  entry 
  52.      located  at offset 14a8 hex into the file thenet1.x1h.  Note 
  53.      that only the first part needs patching.
  54.  
  55.      It is currently set to 0101 hex ( ie 257 decimal ). Increase 
  56.      it to whatever size you want.
  57.  
  58. 3. The IP router MTU entries
  59.  
  60.      The  final  two entries that are patchable are the  level  2 
  61.      MTUs. These are located in the file thenet1.x1h, at  offsets 
  62.      of 7f5e and 7f66 hex respectively for ports 0 ( the radio  ) 
  63.      and 1 ( the RS232 port ). They are currently set to 00 01  ( 
  64.      ie  0100  hex, ie 256 decimal ). Set them  to  whatever  you 
  65.      want, BUT DO NOT EXCEED THE NODE'S LEVEL 2 LIMITS !.
  66.  
  67.      Note that 8 bytes earlier you will find the netrom MTU,  but 
  68.      only increase this if you wish to cause trouble.
  69.  
  70. 4. Closing comments
  71.  
  72.      Whilst  I believe the changes work, you are on your  own.  I 
  73.      have  checked  the code out with 512 byte  packets,  and  it 
  74.      appears to work but that's your lot!.
  75.  
  76.      Personally,  I think the overhead saved is a small gain  and 
  77.      can be saved better in other more elegant ways.
  78.  
  79.