1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Transport layer (UDP vs TCP) -->
<!--X-From-R13: Xba Zrbaneq <wyrbaneqNqvipbz.hzbc&#45;nc.pbz> -->
<!--X-Date: Wed, 18 Mar 1998 17:48:22 +0000 -->
<!--X-Message-Id: 19980318094342.23395#divcom,umop&#45;ap.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 19980317111840.55762#divcom,umop&#45;ap.com -->
<!--X-Reference: Pine.LNX.3.96.980317215948.581A&#45;100000#shamen,cyberhighway.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Transport layer (UDP vs TCP)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jleonard#divcom,umop-ap.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00753.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00754.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00745.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00758.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00752">Author</A>
&nbsp;|&nbsp;<A HREF="#00752">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00752">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Transport layer (UDP vs TCP)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Transport layer (UDP vs TCP)</LI>
<LI><em>From</em>: Jon Leonard &lt;<A HREF="mailto:jleonard#divcom,umop-ap.com">jleonard#divcom,umop-ap.com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 18 Mar 1998 09:43:42 -0800</LI>
<LI><em>Cc</em>: Jon Leonard &lt;<A HREF="mailto:jleonard#divcom,umop-ap.com">jleonard#divcom,umop-ap.com</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Tue, Mar 17, 1998 at 09:24:34PM +0000, Ben Greear wrote:
&gt; On Tue, 17 Mar 1998, Jon Leonard wrote:
&gt; &gt; On Tue, Mar 17, 1998 at 10:58:58AM +0000, Niklas Elmqvist wrote:
&gt; &gt; &gt; &gt; The question is, what is the packet size (max) that UDP can handle?
[snip]
&gt; &gt; It's likely more complicated than that.  The maximum size of a UDP packet
&gt; &gt; is about the maximum size of an IP datagram (quite large).  Realisticly,
&gt; &gt; though, you want largest packet that won't get broken up into fragments.
&gt; &gt; 
&gt; &gt; The largest non-fragmenting packet (MTU = Maximum Transfer Unit) depends
&gt; &gt; on the networks involved.  For Ethernet, it's about 1500 bytes.  Most high
&gt; &gt; speed networks have larger maxima, but you could see almost anything.
&gt; 
&gt; I'm definately looking for the MTU.  The whole point would be to ensure
&gt; that each packet arrived all at once, and was complete by itself.  I
&gt; think I can fit them into 512 bytes easily.  If I need to send larger
&gt; packets I can always chunk them over the tcp connection.

That'd work fine.  I still think it's not that much more work to track
the largest packets that made it, though.

&gt; &gt; A search for "MTU discovery" should probably find something on how some
&gt; &gt; TCP implementations figure out what the optimal packet size is.  Anyone
&gt; &gt; seriously considering a UDP tranport protocol should write something similar.
&gt; &gt; The basic idea is set the "don't fragment" bit, and play with packet size
&gt; &gt; until you find out what works.
&gt; 
&gt; I was mostly hoping that someone had a good 'working maximum' that they
&gt; had used with success.  However, most MUD's would deal wrather poorly
&gt; with a lossy protocol, so there may not be much experience with UDP
&gt; in the mud community....

In many ways, an easier question.  Most of the networks you need to worry
about are ethernet or can handle ethernet-sized packets.  So your maximum
packet size should be 1500 minus a margin for IP headers.  If you can fit
into 512 bytes, that'd be fine.

You'll lose more clients due to firewalls that block UDP than you will to
strange networks.  Be prepared for re-assembled packets, though -- the
last hop may be a noisy PPP session that fragments, for example.

Jon Leonard

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00758" HREF="msg00758.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00739" HREF="msg00739.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></STRONG>
<UL><LI><EM>From:</EM> Jon Leonard &lt;jleonard#divcom,umop-ap.com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00745" HREF="msg00745.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></STRONG>
<UL><LI><EM>From:</EM> Ben Greear &lt;greear#cyberhighway,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00753.html">XShipWars</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00754.html">(fwd) INFO: [client] Chaco looking for new parent for Pueblo</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00745.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00758.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00752"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00752"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><strong><A NAME="00733" HREF="msg00733.html">Transport layer (UDP vs TCP)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 17 Mar 1998, 05:58 GMT
<UL>
<LI><strong><A NAME="00737" HREF="msg00737.html">Transport layer (UDP vs TCP)</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Tue 17 Mar 1998, 18:41 GMT
<UL>
<LI><strong><A NAME="00739" HREF="msg00739.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,umop-ap.com">jleonard#divcom,umop-ap.com</a>, Tue 17 Mar 1998, 19:22 GMT
<UL>
<LI><strong><A NAME="00745" HREF="msg00745.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 18 Mar 1998, 05:05 GMT
<UL>
<LI><strong><A NAME="00752" HREF="msg00752.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,umop-ap.com">jleonard#divcom,umop-ap.com</a>, Wed 18 Mar 1998, 17:48 GMT
<UL>
<LI><strong><A NAME="00758" HREF="msg00758.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Thu 19 Mar 1998, 00:52 GMT
<UL>
<LI><strong><A NAME="00763" HREF="msg00763.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Thu 19 Mar 1998, 08:18 GMT
</LI>
<LI><strong><A NAME="00778" HREF="msg00778.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 20 Mar 1998, 03:06 GMT
<UL>
<LI><strong><A NAME="00779" HREF="msg00779.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 20 Mar 1998, 04:28 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>