Introduction to Multiplayer Network Technology

Download Report

Transcript Introduction to Multiplayer Network Technology

Introduction to
Multiplayer Network Technology
Thomas Lidy
Introduction

Networking - used in ...
–
–
–
–
–
–
Thomas Lidy
e-commerce
training & education
distributed engineering & design
entertainment
multi player games
 „networked virtual environments“
Introduction to
Multiplayer Network Technology
2/20
Networked Virtual Environment

software system
–
–
–
–
–
Thomas Lidy
multiple users interact in real-time
shared sense of space and time
realistic 3D graphics and sound
a way to communicate
interaction with the virtual environment
Introduction to
Multiplayer Network Technology
3/20
Networked Virtual Environment

components
–
–
–
–
Thomas Lidy
graphics engines and displays
communication and control devices
processing systems
data network
Introduction to
Multiplayer Network Technology
4/20
Origins of virtual environments
origins in military
(and industry)
 academic research in
networked virtual environments
 virtual worlds on PC class systems
- 3D games

Thomas Lidy
Introduction to
Multiplayer Network Technology
5/20
Origins in military

SIMNET
–
–

started 1983
developed for DARPA
DIS (protocol)
–
–
–
Thomas Lidy
defined after 1989
standardized packets (PDUs)
distributed & heterogeneous
Introduction to
Multiplayer Network Technology
6/20
Origins in industry
SGI - Flight (1984)
 SGI - Dogfight (1985)

Academic origins
Flight
NPSNET (1986)
 PARADISE (1993)
 BrickNet (1991)

Thomas Lidy
Introduction to
Multiplayer Network Technology
7/20
Origins on PC class machines
Doom (1993)
 Macintosh:
 Marathon (1994)
 Bolo (tank game)

Doom

... and many others
Bolo
Thomas Lidy
Introduction to
Multiplayer Network Technology
8/20
Network Technology

Issues for networking
–
Latency

–
Bandwidth

–
data rate: how many bits per second
Reliability

Thomas Lidy
time required from one host to another
how much data is lost
Introduction to
Multiplayer Network Technology
9/20
Sockets and Ports

allow multiple applications to use the network
Applications
ftp
port #s
protocols
IP layer
Thomas Lidy
www
0
netVEs
65535
TCP
games
0
65535
UDP
0
65535
Other Prot.
IP (Internet Protocol)
Introduction to
Multiplayer Network Technology
10/20
Internet Protocol (IP)
low-level protocol
 basic services
 splits & reassembles packets
 TTL field („time to live“)
 other protocols lie on top of IP

Thomas Lidy
Introduction to
Multiplayer Network Technology
11/20
Transmission Control Protocol (TCP)
layered on top of IP ( TCP/IP)
 simple point-to-point connection
 automatic acknowledgments
 error checking
 correct packet order
 reliability

Thomas Lidy
Introduction to
Multiplayer Network Technology
12/20
User Datagram Protocol (UDP)
also layered on top of IP
 connectionless
 packet-by-packet basis
 best-efforts delivery (not reliable)
 less processing time  faster
 deal with packet loss and ordering!

Thomas Lidy
Introduction to
Multiplayer Network Technology
13/20
IP Broadcasting
instead of sending multiple copies
of a packet to all destinations
 single transmission to all hosts in the
network
 broadcasting to address 255.255.255.255
 disadvantages:

–
–
Thomas Lidy
expensive for hosts that are not interested
delivery only on LAN - not Internet-wide!
Introduction to
Multiplayer Network Technology
14/20
IP Multicasting
receiver-controlled distribution
 interested hosts subscribe to a list
 packets are sent down distribution paths
 no burdens for hosts not interested
 less overhead than broadcasting
 appropriate for Internet use

Thomas Lidy
Introduction to
Multiplayer Network Technology
15/20
Multicast routing
New York
Moscow
Washington
Denver
London
Munich
Tokyo
Prague
Vienna
Graz
Thomas Lidy
Introduction to
Multiplayer Network Technology
16/20
IP Multicasting

addressing
–
–

pseudo IP (class D address):
range 224.0.0.0 - 239.255.255.255
can be used temporarily or reserved by IANA
problems
–
–
–
Thomas Lidy
routers must be multicast-capable
not yet available troughout the Internet
multicast routers communicate directly with
each other through the MBONE
Introduction to
Multiplayer Network Technology
17/20
Overview (1)
delivery:
flow:
ordering:
error handling:
advantages:
disadvant.:
Thomas Lidy
TCP
UDP
guaranteed
best-effort
stream-based
packet-based
ordered
packets
checksums
immediate
delivery
-
reliable
low overhead
delays,
overhead
no ordering,
no acknowl.
Introduction to
Multiplayer Network Technology
18/20
Overview (2)
Broadcasting
delivery to: all hosts on
local network
strengths: fast delivery,
as with UDP
limitations: same as UDP,
limited to LAN
Multicasting
subscribed hosts
efficient Internetwide delivery
same as UDP,
routers must be
multicast-capable
suitable for: small-scale p2p large-scale p2p
netVEs with
and client/server
high data
netVEs in the
requirements
Internet
Thomas Lidy
Introduction to
Multiplayer Network Technology
19/20
Networking today - Conclusion





networking:
essential part of multi player environments
designers must carefully select
protocols and network archtitecture
multicasting: most efficient technique
for large-scale netVEs
games today use client/server, peer-to-peer
multicasting probably becomes more globally
available with IPv6
Thomas Lidy
Introduction to
Multiplayer Network Technology
20/20
The End
Thomas Lidy