home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / tcpip / 5606 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.5 KB

  1. Xref: sparky comp.protocols.tcp-ip:5606 comp.sys.mips:1124
  2. Path: sparky!uunet!timbuk.cray.com!shamash!easyaspi.udev.cdc.com!gsa
  3. From: gsa@easyaspi.udev.cdc.com (gary s anderson)
  4. Newsgroups: comp.protocols.tcp-ip,comp.sys.mips
  5. Subject: Re: maximum size of UDP datagrams [ethernet]
  6. Message-ID: <50437@shamash.cdc.com>
  7. Date: 14 Dec 92 19:47:53 GMT
  8. References: <Bz2tLw.JH5@ecf.toronto.edu>
  9. Sender: usenet@shamash.cdc.com
  10. Reply-To: gsa@easyaspi.udev.cdc.com (gary s anderson)
  11. Followup-To: comp.protocols.tcp-ip
  12. Lines: 43
  13.  
  14. In article <Bz2tLw.JH5@ecf.toronto.edu>, steve@ecf.toronto.edu (Steve Kotsopoulos) writes:
  15. |> According to my calculations, the maximum size of a broadcast UDP
  16. |> datagram is 1472 bytes, but on our MIPS machines (running RISC/os 4.52)
  17. |> this does not work. Experimentation reveals that the 'magic number'
  18. |> on MIPS machines is 1468. Broadcast packets 1472 bytes long work fine
  19. |> for me on the SGI, SUN and VAX hosts I have tried.
  20. |> 
  21. |> Where did the other 4 bytes go?
  22.  
  23. Your calculations are correct.  My guess is that you have an
  24. "eagle" ethernet board in your system (e.g. egl0).  If you
  25. look at the "netstat -i" display you will discover that the
  26. MTU size is "1496" and not "1500".  The reason for the decrease
  27. in size was do to a DMA problem.  I don't know whether
  28. the board has ever been fixed but the code still assumes
  29. the bug exists.  The problem is only on the sending side since the
  30. board can receive 1500 byte packets (i.e. otherwise it would
  31. not interoperate with other systems sending 1500 byte packets).
  32.  
  33. NOTE - the integrated ethernets (e.g. la0) on the MIPS boxes
  34. use the "1500" byte MTU.
  35.  
  36.  
  37. |> 
  38. |> calculation:
  39. |> Broadcast UDP datagram cannot be fragmented, so it must fit into the
  40. |> 1500 byte data portion of an ethernet frame. After sustracting 20 bytes
  41. |> for the IP header, and another 8 bytes for the UDP header, you are left
  42. |> with 1472 bytes for user data. [these numbers are based on the diagrams
  43. |> on page 208 in "UNIX Network Programming" by W. Richard Stevens]
  44. |> 
  45. |> Also, what are the typical limits on regular UDP datagrams?
  46. |> On our microvax, the max. size is 9000 bytes, while the SGI and
  47. |> MIPS machines support much larger limits (haven't found the exact
  48. |> number yet).
  49. |> 
  50. |> Thanks
  51. |> 
  52. |> -- 
  53. |> Steve Kotsopoulos                   mail:   steve@ecf.toronto.edu
  54. |> Systems Analyst                     bitnet: steve@ecf.UTORONTO.BITNET
  55. |> Engineering Computing Facility      uucp:   uunet!utai!ecf!steve
  56. |> University of Toronto               phone:  (416) 978-5898
  57.