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