1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: DIS: Client&#45;Server vs Peer&#45;to&#45;Peer -->
<!--X-From-R13: [nep Vreanaqrm <znepNvnf.wo.pbz> -->
<!--X-Date: Sun, 29 Nov 1998 15:38:36 &#45;0800 -->
<!--X-Message-Id: Pine.LNX.3.93.981129161635.5644A&#45;100000#ias,jb.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 3.0.6.32.19981129152318.007a3100#mail,donet.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:marc#ias,jb.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="msg00869.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00871.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00865.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00901.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00870">Author</A>
&nbsp;|&nbsp;<A HREF="#00870">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00870">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</LI>
<LI><em>From</em>: Marc Hernandez &lt;<A HREF="mailto:marc#ias,jb.com">marc#ias,jb.com</A>&gt;</LI>
<LI><em>Date</em>: Sun, 29 Nov 1998 16:37:39 -0800 (PST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

On Sun, 29 Nov 1998, Greg Underwood wrote:
&gt; At 10:06 PM 11/24/98 +0100, Niklas Elmqvist wrote:
&gt; &gt; For example, in the DIS standard, the shooting client is
&gt; &gt;responsible for reporting the shot and the ballistics to the targeted
&gt; &gt;client, but it us up to the targeted client to decide whether the shot is
&gt; &gt;a hit or not, and the extents of the damages. 
&gt; 
&gt; Well, techinically, that is what the standard IMPLIES, not what it states.
&gt; All it states is that the Detonation PDU has to be issued from the
&gt; simulation that detects the detonation (note that this does not have to be
&gt; the simulation controlling the entity that detonated).  It is a common
&gt; (and, in a trusted network, safe and easy to implement) assumption that the
&gt; simulation controlling the targeted entity resolves the damage.  However,
&gt; if you wanted to have a Client-Server architecture, you could have the
&gt; simulation controller resolve all damage and send out sim-control PDUs to
&gt; enact the proper results.
&gt; 
&gt; &gt;In a trusted network
&gt; &gt;environment (such as the "safe" LANs the US DoD no doubt is using DIS on),
&gt; &gt;this is no problem.  To me, however, this instinctively feels like a big
&gt; &gt;stumbling block in an untrusted network such as the Internet -- horrible
&gt; &gt;visions of Interstate '76 and Diablo multiplayer rise up to haunt me. In a 
&gt; &gt;naive DIS implementation running on the devious Internet, clients could
&gt; &gt;easily be hacked (especially if the client is Open Source) and modified to
&gt; &gt;always tell the shooter that the shot missed (or that the damages are
&gt; &gt;minimal). Clearly, this simply won't do. (Yes, one in Raph's collection of
&gt; &gt;laws, the one about clients being in the hands of the enemy, does spring
&gt; &gt;to mind.)

&gt; Aye, "this simply won't do."  I would recommend something like so:
&gt; 
&gt; The clients are stripped down to simply provide the interface to the
&gt; environment, managing their own entities, and dead-reckoning the foreign
&gt; entities, between state updates.  If the client detects a
&gt; collision/detonation, it fires off the appropriate PDU.  The Server catches

	'If the client detects'.  So lets say I put a proxy between me and
the server and intercept all the coll/det PDU's.  Does this mean I never
collide nor detonate?  In small games (ie &lt;32 or so) it would probably be
fine because it is easy to detect, but larger games (hundreds to thousands
of simul. clients) it would be a nightmare.

&gt; any detonation/collision PDUs, and immediately sends out an
&gt; entity-Stop/Pause PDU.  Once it resolves the collision/detonation, it sends
&gt; out a PDU (can't recall the name, I think it's an Entity State PDU, but it
&gt; might be a special PDU) to update the targeted entity, and then a
&gt; Start/Resume PDU.  If it decides the entity is dead, it sends out an Entity
&gt; Destroy PDU, telling everyone that the entity is dead.  The clients would
&gt; have to be set up to ignore all PDUs from any entity they didn't receive a
&gt; Start PDU for (to prevent hacking of the client).  The problem with this is
&gt; increased latency between action and resolution.

&gt; &gt;While I am at it and provided the answer is "yes, client-server is the way
&gt; &gt;to go" I might as well ask some additional questions: 
&gt; &gt;
&gt; &gt; - How would you keep the "distributed" in DIS with a client-server
&gt; &gt;	architecture?
&gt; 
&gt; Distrubuted does not mean "evenly distributed".  The clients can do action
&gt; detection, just not resolution.  As long as all clients AND the server are
&gt; doing detection, and the server's resolution algorithms take into account
&gt; the possibility of false/innacurate detections, you should be safe.  You'll
&gt; have to assume that any detections made by the server are accurate.

	This answers the above I think, however I fail to see why to have
the client send a message at all (it could detect it so that it could
start the death/collide animations).

&gt; You can probably allow the client to handle modeling of motion for the
&gt; entity(s) it controls.  Just put some simple reality checks on the server
&gt; side, so that it doesn't trust the results completely.  The down side to
&gt; this is that it requires that both client and server have the same database
&gt; to describe the environment.  You could accomplish this through use of the
&gt; Info PDUs, to send info about the DB to the clients, if it is too large for
&gt; the client to have a complete copy of, or there are parts of it that you
&gt; don't want the client to know everything about (secret doors, etc).
&gt; 
&gt; You'll also have to be able to handle a client that refuses to listen to
&gt; the sim control PDUs from the server.  I'd reccomend an Entity Destroy PDU
&gt; for all the entities that client controls, effectively removing it from the
&gt; loop.
&gt; 
&gt; The only situation I can envision that would get around that would be all
&gt; clients ignoring the server.  If that happens, I'd say the person that
&gt; pulled that off deserves to enjoy it.  The client should be a sufficiently
&gt; stripped down DIS sim that the amount of work required to allow all the
&gt; clients to ignore the server would be collosal.  That and the resulting sim
&gt; would be peer-to-peer with all the inherant problems therin.
&gt; 
&gt; &gt; - What things can be trusted to the client? (Yes, I know there has been a
&gt; &gt;	rather extensive thread on that.) Does anyone know, for example,
&gt; &gt;	what the client-server relationships/responsibilities are for
&gt; &gt;	games such as Quake?
&gt; 
&gt; Dunno what Quake does, but I don't think the client does a lot.  I've seen
&gt; my position change as a result of lag (IE: I walk down a hall, then I'm
&gt; back at the start of the hall, and walk down it again, repeat 4-5 times
&gt; while the lag clears).  Quake clients appear to be simple interfaces.  You
&gt; may be able to go a little further than that, using DIS, but you'll have to
&gt; play with it and see how false info can be used to thwart the system.
&gt; Come to think of it, I bet Quake clients have a full copy of the map, too.  ;)

	Quake simply does client prediction and display.  Sadly Quake
clients have a complete copy of the map (they must for the bsp stuff to
work), as well as copies of the models.  This lead to cheats concerning
changing the models to be more visible and 'cutting' parts out of the
maps.  In team fortress this game the cheating teams HUGE advanteges.  
	So they put in CRC checks for models and maps.  As simple as this
fix is it seems to be working.
	They cant get rid of autoaim bots, but it is fairly easy to spot
(the person switches very quickly from person to person, fires in
directions it isnt moving etc).  

	Ive had an idea of just doing spot checks on the client.  Assuming
most players are not wanting to cheat, and assuming the game is designed
such that cheats on the client end are detectable (ie with the collision
stuff), would it be a good design decision to let the clients do some work
but do automated spot checks occasionally?  Then if the server detects
something it can flag it, send messages to admin personnel, kick the
player off etc.  

&gt; -Greg

&gt; -- 
&gt; MUD-Dev: Advancing an unrealised future.



</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="00901" HREF="msg00901.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>
<ul compact><li><em>From:</em> Greg Underwood &lt;gunderwood#donet,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00865" HREF="msg00865.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
<UL><LI><EM>From:</EM> Greg Underwood &lt;gunderwood#donet,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00869.html">[MUD-Dev] DevMUD: List data, subscription, and the rest</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00871.html">[MUD-Dev] Re: DevMUD: List data, subscription, and the rest</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00865.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00901.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00870"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00870"><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>[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00860" HREF="msg00860.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Wed 25 Nov 1998, 23:34 GMT
<UL>
<LI><strong><A NAME="00866" HREF="msg00866.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Sun 29 Nov 1998, 22:17 GMT
<UL>
<LI><strong><A NAME="00902" HREF="msg00902.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Fri 04 Dec 1998, 02:19 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00865" HREF="msg00865.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Sun 29 Nov 1998, 22:16 GMT
<UL>
<LI><strong><A NAME="00870" HREF="msg00870.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Marc Hernandez <a href="mailto:marc#ias,jb.com">marc#ias,jb.com</a>, Sun 29 Nov 1998, 23:38 GMT
<UL>
<LI><strong><A NAME="00901" HREF="msg00901.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Fri 04 Dec 1998, 02:19 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00872" HREF="msg00872.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Mon 30 Nov 1998, 17:57 GMT
<UL>
<LI><strong><A NAME="00903" HREF="msg00903.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Fri 04 Dec 1998, 03:40 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00854" HREF="msg00854.html">[MUD-Dev] ScryMUD [CUSTOM] Code release 1.8.1</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 23 Nov 1998, 06:00 GMT
</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>