1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Net protocols for MUDing (was: Moore's Law sucks) -->
<!--X-From-R13: f001tzhNabin.jevtug.rqh -->
<!--X-Date: Sun, 01 Mar 1998 02:40:24 +0000 -->
<!--X-Message-Id: Pine.PMDF.3.95.980228212651.543412592A&#45;100000#nova,wright.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199802280448.VAA28818#user1,inficad.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Net protocols for MUDing (was: Moore's Law sucks)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:s001gmu#nova,wright.edu">
</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="msg00653.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00655.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00641.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00475.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00654">Author</A>
&nbsp;|&nbsp;<A HREF="#00654">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00654">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Net protocols for MUDing (was: Moore's Law sucks)</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>: Net protocols for MUDing (was: Moore's Law sucks)</LI>
<LI><em>From</em>: <A HREF="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</A></LI>
<LI><em>Date</em>: Sat, 28 Feb 1998 21:40:45 -0500 (EST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>


On Fri, 27 Feb 1998, Adam Wiggins wrote:

&gt; [coder#ibm,net:]
&gt; &gt; On 20/02/98 at 02:35 AM, Jon Leonard &lt;jleonard#divcom,umop-ap.com&gt; said:

[...]
 
&gt; &gt; No, you misunderstand.
&gt; &gt; I am proposing that MUD clients move to a protocol and data model which is
&gt; &gt; tolerant of data loss.  If packets get lost, or arrive far to late, the
&gt; &gt; client won't care and will continue to offer a decent representation of
&gt; &gt; what is happening in the game.  The main problem with telnet lag is *not*
&gt; &gt; latency but dropped packets -- the whole damn client freezes while
&gt; &gt; awaiting the lost packet.  Instead have the client be predictive and work
&gt; &gt; on a best-effort basis.  It works with the data it gets, and ignores or
&gt; &gt; attempts to generate the data it never sees for whatever reason.
&gt; &gt; Raph has commented that UOL's client does this in some areas.

[...]
 
&gt; On a slighty more interesting and possibly less practical line of thought,
&gt; I've been considering using the timestamps on the packets in creative ways.
&gt; As long as the server and all clients were synced, and all packets were
&gt; timestamped with an extremelly high granularity timer (say, 1ms or lower)
&gt; then the server could actually "insert" the packets it receives from the
&gt; client at that point in time, and then recompute all the events that happened
&gt; since then.  In order for this to work you'd need a very robust event
&gt; system (like JC's) and predictable AI for the computer-controlled characters.
&gt; You'd also need to clip the timestamps on incoming packets to a resonably
&gt; small interval - probably three or four seconds.

[connections at different times w/i the game...]

I make no comments on the above, rather odd, idea.

&gt; Now, assuming that we're using both high-framerate clients and the timeline
&gt; breaking I'm suggesting above, this is going to cause some incongruous stuff.
&gt; A simple case would be the aforementioned spacecraft, piloted by a player,
&gt; speeding towards a cliff wall.  The player's connection is slow.  On their
&gt; machine, they hit the up key just in time to clear the cliff face and
&gt; continue flying.  Everyone else sees their ship fly into the wall, and then
&gt; a moment later, as the server inserts the packets, they fly clear to safety.
&gt; Depending on your world, you could approach this different ways.  You could
&gt; have certain events (collisions being the main example) flaged as requiring
&gt; server confirmation.  Thus, everyone would see the player's ship disappear into
&gt; the cliff face, but they would only see an explosion and a rain of ship parts
&gt; once the server confirmed the crash.  Otherwise they just see the ship pop
&gt; out of the other side of the cliff, making it look more like a glitch in the
&gt; clipping routines than a total server botch.  I would also tend to, instead
&gt; of making the ship "pop" to its new location, speed up by some large amount
&gt; based on the distance from the old position to the new one, so that it appears
&gt; to hurry to the new place.  This will certainly look funny, but hopefully not
&gt; like a 'break' - and if you have ships which speed up and slow down easily
&gt; anyways, hopefully this should rarely cause anyone to think anything is
&gt; strange.  Sudden turns will have the effect of doing a larger, sweeping
&gt; turn - a sudden 45 degree turn by the lagging player should look more like
&gt; an overshot 60 degree turn, which then turns back to the new heading.
&gt; 
&gt; I haven't thought this through real thoroughly, nor attempted any complex
&gt; or hairy scenarios.  I'm sure once I do some problems will pop up, but at the
&gt; moment it seems much more appealing than the usual unresponsive clients.
&gt; 
&gt; I also used all sci-fi examples (ships) because client prediction would
&gt; tend to be more accurate with them (I imagine).  Thank's to Newton's first
&gt; law, a missed second or two of packets won't be a big deal unless something
&gt; unexpected (collision, sudden direction change) happens, and even then it
&gt; can be made to look relatively seemless.

I hate to post so much with only a brief comment, but I thought it silly
to type basically the same statement here and there in response to
particular arguments.

I highly recommend you look at the IEEE DIS standard I mentioned a few
posts ago (I can get the RFC# again if you like).  It deals with a lot of
these very same problems. It certainly won't solve everything, but it's
not a bad approach.  Essentially, it maintains a state for each entity at
each location, using dead-reckoning algorithms to calculate the actual
motion of an entity when that entity is not sending updates very often.
It doesn't set out a method for handeling the 'do then undo' situations
you mentioned above, but it provides a solid framework which should be
easily extendable to cover a lot of those types of situations.  It is
heavily geared towards military simulations, and large portions of it
you'll probably not need to deal with, but the simulation management
protocols deal extensively with the ideas you've brought up.

-Greg



</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00641" HREF="msg00641.html">Re: [MUD-Dev]  Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
<UL><LI><EM>From:</EM> Adam Wiggins &lt;nightfall#user1,inficad.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00653.html">Re: [MUD-Dev] Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00655.html">Re: [MUD-Dev] Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00641.html">Re: [MUD-Dev]  Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00475.html">Re: [MUD-Dev] Moore's Law sucks (was: 3D graphics)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00654"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00654"><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>Net protocols for MUDing (was: Moore's Law sucks)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00569" HREF="msg00569.html">Net protocols for MUDing (was: Moore's Law sucks)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 23 Feb 1998, 21:15 GMT
<UL>
<LI><strong><A NAME="00774" HREF="msg00774.html">Re: [MUD-Dev] Net protocols for MUDing (was: Moore's Law sucks)</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 19 Mar 1998, 23:43 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00570" HREF="msg00570.html">Re: [MUD-Dev]  Net protocols for MUDing (was: Moore's Law sucks)</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Mon 23 Feb 1998, 22:18 GMT
</LI>
<LI><strong><A NAME="00641" HREF="msg00641.html">Re: [MUD-Dev]  Net protocols for MUDing (was: Moore's Law sucks)</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Sat 28 Feb 1998, 04:54 GMT
<UL>
<LI><strong><A NAME="00654" HREF="msg00654.html">Net protocols for MUDing (was: Moore's Law sucks)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Sun 01 Mar 1998, 02:40 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00475" HREF="msg00475.html">Re: [MUD-Dev] Moore's Law sucks (was: 3D graphics)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 16 Feb 1998, 04:41 GMT
<UL>
<LI><strong><A NAME="00491" HREF="msg00491.html">Re: [MUD-Dev] Moore's Law sucks (was: 3D graphics)</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Mon 16 Feb 1998, 14:53 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00481" HREF="msg00481.html">Re: [MUD-Dev] Moore's Law sucks (was: 3D graphics)</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Mon 16 Feb 1998, 06:32 GMT
</LI>
<LI><strong><A NAME="00505" HREF="msg00505.html">Re: [MUD-Dev] Moore's Law sucks (was: 3D graphics)</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Tue 17 Feb 1998, 01:09 GMT
</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>