1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: DIS: Client&#45;Server vs Peer&#45;to&#45;Peer -->
<!--X-From-R13: Uert Gaqrejbbq <thaqrejbbqNqbarg.pbz> -->
<!--X-Date: Thu, 3 Dec 1998 18:19:47 &#45;0800 -->
<!--X-Message-Id: 3.0.6.32.19981130230359.007a7de0#mail,donet.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 3.0.6.32.19981129152318.007a3100#mail,donet.com -->
<!--X-Reference: Pine.LNX.3.93.981129161635.5644A&#45;100000#ias,jb.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:gunderwood#donet,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="msg00900.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00902.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00870.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00872.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00901">Author</A>
&nbsp;|&nbsp;<A HREF="#00901">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00901">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>: Greg Underwood &lt;<A HREF="mailto:gunderwood#donet,com">gunderwood#donet,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 30 Nov 1998 23:03:59 -0500</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>
At 04:37 PM 11/29/98 -0800, Marc Hernandez wrote:
&gt;
&gt;On Sun, 29 Nov 1998, Greg Underwood wrote:
&gt;&gt; At 10:06 PM 11/24/98 +0100, Niklas Elmqvist wrote:

&lt;...&gt;
 
&gt;&gt; The clients are stripped down to simply provide the interface to the
&gt;&gt; environment, managing their own entities, and dead-reckoning the foreign
&gt;&gt; entities, between state updates.  If the client detects a
&gt;&gt; collision/detonation, it fires off the appropriate PDU.  The Server catches
&gt;
&gt;	'If the client detects'.  So lets say I put a proxy between me and
&gt;the server and intercept all the coll/det PDU's.  Does this mean I never
&gt;collide nor detonate?  

No.  You won't be the only one running collision detection.  Every other
client out there will be, and possibly the server if you choose to
implement that as a fail-safe.

&gt;In small games (ie &lt;32 or so) it would probably be
&gt;fine because it is easy to detect, but larger games (hundreds to thousands
&gt;of simul. clients) it would be a nightmare.

That depends on how many entities each client has to keep track of.
If you anticipate large battles, you might want to have the clients
selectively filter the entities they are tracking, narrowing their local
field of battle down to a more managable number of entities.  For the
purposes of collision detection, you only want to closely watch entities
that are close enough to collide, no?

The same applies for detonation.  You only have to track munitions for
detonations, and then only the munitions close enough to really affect you,
and maybe a couple of your friends.

&lt;...&gt;

&gt;&gt; Distrubuted does not mean "evenly distributed".  The clients can do action
&gt;&gt; detection, just not resolution.  As long as all clients AND the server are
&gt;&gt; doing detection, and the server's resolution algorithms take into account
&gt;&gt; the possibility of false/innacurate detections, you should be safe.  You'll
&gt;&gt; have to assume that any detections made by the server are accurate.
&gt;
&gt;	This answers the above I think, however I fail to see why to have
&gt;the client send a message at all (it could detect it so that it could
&gt;start the death/collide animations).

If you are going to off load all 'sensative' decisions to the server, then
there is no reason for the client to send a PDU, much less do any collision
detection.  I suppose it wouldn't be to hard to build a dumb client that
communicates through DIS PDUs, holding only a map and UI on the local side.

I was suggesting the server do detection as a fail-safe.  You could have
the server do a minial detection algorithm... or offload it to a seperate
process entirely (no one said the server had to be one app. on one machine!).

&lt;...&gt;

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

Spot check sounds like a reasonable approach.

Keep in mind that there is no point in solving a problem that doesn't
exist.  Don't go too overboard in trying to prevent hacking before you have
any real cases of hacking.  If it never happens, you've wasted time
developing a bad-arse detection system.  Of course, you have to balance
wasted time against potential threat.  *shrug*  I'm glad I work on 'safe'
DoD networks.  :)

-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="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>
<LI><STRONG><A NAME="00870" HREF="msg00870.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
<UL><LI><EM>From:</EM> Marc Hernandez &lt;marc#ias,jb.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00900.html">[MUD-Dev] Re: Hex-grid mapping (fwd)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00902.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00870.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00872.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00901"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00901"><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>
<ul compact>
<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><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
<LI><strong><A NAME="00850" HREF="msg00850.html">[MUD-Dev] World Building Page</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Sun 22 Nov 1998, 17:30 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>