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: Sun, 29 Nov 1998 14:16:04 &#45;0800 -->
<!--X-Message-Id: 3.0.6.32.19981129152318.007a3100#mail,donet.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.SOL.3.96.981124161642.5501A&#45;100000#licia,dtek.chalmers.se -->
<!--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="msg00864.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00867.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00902.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00870.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00865">Author</A>
&nbsp;|&nbsp;<A HREF="#00865">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00865">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>: Sun, 29 Nov 1998 15:23:18 -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>

Ahh... what a wonderful post to reply to as my first posting on this list
in about 4 months!

*rubbing hands together eagerly*

I've been working with those DoD DIS networks you mentioned for about 2
years now, so I thought I'd chip in my $0.02.  You may want to look into
HLA, instead of DIS, btw.  DoD is cutting all funding to all DoD DIS
projects, and shifting it over to HLA.  However, as I understand it, HLA is
essentially DIS++ (DIS plus a couple extra protocols).

At 10:06 PM 11/24/98 +0100, Niklas Elmqvist wrote:

&lt;...&gt;

&gt;Here's the situation:
&gt;I'm currently drafting a proposal for a group project course me and my
&gt;fellow classmates will undertake next year. This course will include a
&gt;range of several different projects which all students will be able to
&gt;choose from -- I am aiming to contribute one of the project ideas.

I'd be interested in seeing the proposal posted to this list, once it's done.

&lt;...&gt;

&gt;Enough chattering -- this brings me to the problem. The term DIS is quite
&gt;general; for one thing, there is a DIS standard. I have some problems with
&gt;it, though, and I am looking for justification of the deviations I want to
&gt;make from the standard (in general, I believe it is a good read). 

I'd be surprised if you need to deviate from the standard any.  It is VERY
broad, and any *fully* DIS compliant product should be maliable enough that
you can do a lot of what I think you want to do for this project.

&gt;One of
&gt;the keypoints of DIS is that it is a strict peer-to-peer architecture,
&gt;which means that there is no central server which makes the decisions and
&gt;calls the shots.

Yes and no.  There are simulation control PDUs which can be sent (stop,
start, destroy entity, create entity, etc), and I believe there is a
concept of a simulation controller within the standard (I'd have to go into
work to get my copy).  You should be able to make a Client-Server
architecture out of a DIS system.  It is mostly implemented as
peer-to-peer, but is not so by design of the standard.

&gt; For example, in the DIS standard, the shooting client is
&gt;responsible for reporting the shot and the ballistics to the targeted
&gt;client, but it us up to the targeted client to decide whether the shot is
&gt;a hit or not, and the extents of the damages. 

Well, techinically, that is what the standard IMPLIES, not what it states.
All it states is that the Detonation PDU has to be issued from the
simulation that detects the detonation (note that this does not have to be
the simulation controlling the entity that detonated).  It is a common
(and, in a trusted network, safe and easy to implement) assumption that the
simulation controlling the targeted entity resolves the damage.  However,
if you wanted to have a Client-Server architecture, you could have the
simulation controller resolve all damage and send out sim-control PDUs to
enact the proper results.

&gt;In a trusted network
&gt;environment (such as the "safe" LANs the US DoD no doubt is using DIS on),
&gt;this is no problem.  To me, however, this instinctively feels like a big
&gt;stumbling block in an untrusted network such as the Internet -- horrible
&gt;visions of Interstate '76 and Diablo multiplayer rise up to haunt me. In a 
&gt;naive DIS implementation running on the devious Internet, clients could
&gt;easily be hacked (especially if the client is Open Source) and modified to
&gt;always tell the shooter that the shot missed (or that the damages are
&gt;minimal). Clearly, this simply won't do. (Yes, one in Raph's collection of
&gt;laws, the one about clients being in the hands of the enemy, does spring
&gt;to mind.)

Aye, "this simply won't do."  I would recommend something like so:

The clients are stripped down to simply provide the interface to the
environment, managing their own entities, and dead-reckoning the foreign
entities, between state updates.  If the client detects a
collision/detonation, it fires off the appropriate PDU.  The Server catches
any detonation/collision PDUs, and immediately sends out an
entity-Stop/Pause PDU.  Once it resolves the collision/detonation, it sends
out a PDU (can't recall the name, I think it's an Entity State PDU, but it
might be a special PDU) to update the targeted entity, and then a
Start/Resume PDU.  If it decides the entity is dead, it sends out an Entity
Destroy PDU, telling everyone that the entity is dead.  The clients would
have to be set up to ignore all PDUs from any entity they didn't receive a
Start PDU for (to prevent hacking of the client).  The problem with this is
increased latency between action and resolution.

&gt;So ATM I am seriously thinking about proposing a client-server
&gt;architecture instead of peer-to-peer. I now need justification for this
&gt;decision. Basically, I am looking for all the good arguments why
&gt;client-server should be used instead of peer-to-peer as well as the
&gt;advantages and disadvantages of each approach. Some sample questions:
&gt;
&gt; - Is it a sound decision (using client-server)?

Yes, I think it is a sound decision to use a Client-Server approach.

&gt; - Can peer-to-peer be implemented without a lot of hassle with
&gt;	authentication and so on? How?

Not in an unsafe network.  Any time the client is out of your control, you
have to assume it will be hacked to your worst detriment.  Therefor, you
can not trust the client to tell you anything truthful.

&gt; - Is it possible in an Open Source project where anyone has access to the
&gt;	source? 

Only as a Client-Server model.  And as long as you, and/or trusted
flunkies, are the only ones with access to the server code.

&gt; - Are there any large-scale multiplayer games (MMPOG, I believe they are
&gt;	called) which uses a peer-to-peer architecture?

Not successfully, to my knowledge.

&lt;...&gt;

&gt;While I am at it and provided the answer is "yes, client-server is the way
&gt;to go" I might as well ask some additional questions: 
&gt;
&gt; - How would you keep the "distributed" in DIS with a client-server
&gt;	architecture?

Distrubuted does not mean "evenly distributed".  The clients can do action
detection, just not resolution.  As long as all clients AND the server are
doing detection, and the server's resolution algorithms take into account
the possibility of false/innacurate detections, you should be safe.  You'll
have to assume that any detections made by the server are accurate.

You can probably allow the client to handle modeling of motion for the
entity(s) it controls.  Just put some simple reality checks on the server
side, so that it doesn't trust the results completely.  The down side to
this is that it requires that both client and server have the same database
to describe the environment.  You could accomplish this through use of the
Info PDUs, to send info about the DB to the clients, if it is too large for
the client to have a complete copy of, or there are parts of it that you
don't want the client to know everything about (secret doors, etc).

You'll also have to be able to handle a client that refuses to listen to
the sim control PDUs from the server.  I'd reccomend an Entity Destroy PDU
for all the entities that client controls, effectively removing it from the
loop.

The only situation I can envision that would get around that would be all
clients ignoring the server.  If that happens, I'd say the person that
pulled that off deserves to enjoy it.  The client should be a sufficiently
stripped down DIS sim that the amount of work required to allow all the
clients to ignore the server would be collosal.  That and the resulting sim
would be peer-to-peer with all the inherant problems therin.

&gt; - What things can be trusted to the client? (Yes, I know there has been a
&gt;	rather extensive thread on that.) Does anyone know, for example,
&gt;	what the client-server relationships/responsibilities are for
&gt;	games such as Quake?

Dunno what Quake does, but I don't think the client does a lot.  I've seen
my position change as a result of lag (IE: I walk down a hall, then I'm
back at the start of the hall, and walk down it again, repeat 4-5 times
while the lag clears).  Quake clients appear to be simple interfaces.  You
may be able to go a little further than that, using DIS, but you'll have to
play with it and see how false info can be used to thwart the system.

Come to think of it, I bet Quake clients have a full copy of the map, too.  ;)


Ahh... It's good to be back.

-Greg



</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="00872" HREF="msg00872.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>
<ul compact><li><em>From:</em> Niklas Elmqvist &lt;d97elm#dtek,chalmers.se&gt;</li></ul>
<li><strong><A NAME="00870" HREF="msg00870.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>
<ul compact><li><em>From:</em> Marc Hernandez &lt;marc#ias,jb.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00855" HREF="msg00855.html">[MUD-Dev] DIS: Client-Server vs Peer-to-Peer</A></STRONG>
<UL><LI><EM>From:</EM> Niklas Elmqvist &lt;d97elm#dtek,chalmers.se&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00864.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00867.html">[MUD-Dev] Re: Ruminations on CVS and developing in the Bazaar</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00902.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00870.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00865"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00865"><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>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01025" HREF="msg01025.html">[MUD-Dev] Re: DIS: Client-Server vs Peer-to-Peer</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Mon 21 Dec 1998, 18:36 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<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>
</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>