Chapter 5.6 Network and Multiplayer SUNDEEP MYNENI COMP 7970.

Slides:



Advertisements
Similar presentations
Part 1: Multiplayer Games Multiplayer Modes. Multiplayer Modes Event Timing Turn-Based Easy to implement Any connection type Real-Time Difficult to implement.
Advertisements

CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
Laboratório de Teleprocessamento e Redes1 Unix Network Programming Prof. Nelson Fonseca
CCNA – Network Fundamentals
Network Certification Preparation. Module - 1 Communication methods OSI reference model and layered communication TCP/IP model TCP and UDP IP addressing.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers Part 2.
K. Salah 1 Chapter 31 Security in the Internet. K. Salah 2 Figure 31.5 Position of TLS Transport Layer Security (TLS) was designed to provide security.
Chapter 5 The Network Layer.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Understanding Networks. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Introduction To Networking
Chapter 2 Internet Protocol DoD Model Four layers: – Process/Application layer – Host-to-Host layer – Internet layer – Network Access layer.
1 Version 3.0 Module 9 TCP/IP Protocol and IP Addressing.
Chapter 5.6 Network and Multiplayer. 2 Multiplayer Modes: Event Timing Turn-Based Easy to implement Any connection type Real-Time Difficult to implement.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Lecture slides prepared for “Business Data Communications”, 7/e, by William Stallings and Tom Case, Chapter 8 “TCP/IP”.
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
IP Network Basics. For Internal Use Only ▲ Internal Use Only ▲ Course Objectives Grasp the basic knowledge of network Understand network evolution history.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Addressing Networking for Home and Small Businesses – Chapter.
OSI Model Routing Connection-oriented/Connectionless Network Services.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CP476 Internet ComputingCh.1 # 1 Lecture 2. A Brief Introduction to the Internet The objective is to understand The history of Internet What the Internet.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
Computer Networks.  The OSI model is a framework containing seven layers that defines the protocols and devices used at each stage of the process when.
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
Operating Systems Lesson 10. Networking Communications protocol is the set of standard rules for ◦ Data representation ◦ Signaling ◦ Authentication ◦
Chapter 5.6 Network and Multiplayer edited by Jeffery.
CSCE 552 Fall 2012 Multiplayer By Jijun Tang. Multiplayer Modes: Event Timing Turn-Based  Easy to implement  Any connection type Real-Time  Difficult.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_a Transport Protocols - UDP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
Polytechnic University1 The internetworking solution of the Internet Prof. Malathi Veeraraghavan Elec. & Comp. Engg. Dept/CATT Polytechnic University
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
TCP/IP Protocols Contains Five Layers
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
OS Services And Networking Support Juan Wang Qi Pan Department of Computer Science Southeastern University August 1999.
William Stallings Data and Computer Communications
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Networking Fundamentals Network Protocols. Protocol Rule for how networks communicate Each OSI layer handled by one or more protocols Protocol Suites.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
ISDS 4120 Project 1 DWAYNE CARRAL JR 3/27/15. There are seven layers which make up the OSI (Open Systems Interconnection Model) which is the model for.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
Client-server communication Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
CSCE 552 Spring 2012 AI (III) & Multiplayer By Jijun Tang.
Week 3: Protocols Protocols. Protocols Protocol Design Packet Length Conveyance Acknowledgement Methodology Error Checking / Correcting Compression Encryption.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
Ad Hoc – Wireless connection between two devices Backbone – The hardware used in networking Bandwidth – The speed at which the network is capable of sending.
Networking for Home and Small Businesses – Chapter 5
Chapter 5 Network and Transport Layers
Scaling the Network: The Internet Protocol
What the OSI Protocol Layers Do
Hubs Hubs are essentially physical-layer repeaters:
The Open System Interconnection (OSI) Model & Network Protocols.
Chapter 5 Network and Transport Layers
Networking for Home and Small Businesses – Chapter 5
Hubs Hubs are essentially physical-layer repeaters:
Computing Over Distance
Chapter 15 – Part 2 Networks The Internal Operating System
Presentation transcript:

Chapter 5.6 Network and Multiplayer SUNDEEP MYNENI COMP 7970

2 Multiplayer Modes: Event Timing Turn-Based Easy to implement Any connection type Real-Time Difficult to implement Latency sensitive Shared I/O

3 Multiplayer Modes: Shared I/O Input Devices Shared keyboard layout Multiple device mapping Display Full Screen Funneling Screen Swap Split Screen

4 Multiplayer Modes: Connectivity Non Real-Time Floppy disk net Database Direct Link Serial, USB, IrD, … (no hops) Circuit Switched (phones) Dedicated line with consistent latency Packet Switched Internet Shared pipe

5 Protocols: Protocol Design Packet Length Conveyance Acknowledgement Methodology Error Checking / Correcting Compression Encryption Packet Control

6 Protocols: Packets Packets The logical transmission units of protocol. It consists of two parts 1) Header :- Contains formats elements of protocol. 2)Payload :- It is a Binary large Object

7 Protocols: Request for Comments RFC web site Protocol Specifications Definitive Resource Public Criticism Future Protocols

8 Protocol Stack: Open System Interconnect

9 Protocol Stack: Physical Layer Bandwidth Width of data pipe Measured in bps = bits per second Latency Travel time from point A to B Measured in Milliseconds The Medium Fiber, FireWire, IrD, CDMA & other cell Serial USB 1&2 ISDNDSLCable LAN 10/100/1G BaseT Wireless a/b/g Power Line T1 Speed (bps) 20K 12M 480M 128k 1.5M down 896K up 3M down 256K up 10M 100M 1G b=11M a,g=54M 14M1.5M Table: Max Bandwidth Specifications

10 Protocol Stack: Data Link Layer Serializes data to/from physical layer Network Interface Card Ethernet MAC Address

11 Protocol Stack: Network Layer Packet Routing Hops Routers, Hubs, Switches Trace packets to Google. COM Internet Protocol (IP) Contains Source & Destination IP Address IPv4 This address contains 4 bytes displayed in 8 bit decimals IPv6 This address contains 16 bytes,displayed in 16 bit hex. FFFF:FFFF:0000:0000:FFFF:FFFF:0000:0000

12 Protocol Stack: Network Layer: IP Address Unicast Static (User Assigned) DHCP (Dynamic Host Configuration Protocol) Multicast Requires multicast capable router Broadcast Local Directed Loop Back Send to self Address Any 0 = address before receiving an address

13 Protocol Stack: Network Layer: DNS Domain Name Service Converts text name to IP address Must contact one or more DNS servers to resolve Local cache resolution possible Game Tips Store local game cache to use when DNS out of order. DNS resolution often slow, use cache for same day resolution.

14 Protocol Stack: Transport Layer Manage data deliver between endpoints Error recovery Data flow TCP and UDP used with IP Contains Source and Destination Port Port + IP = Net Address Port Range = 0-64k Well known Ports 0-1k

15 Protocol Stack: Transport Layer: TCP Guaranteed Correct In Order Delivery Acknowledgement system Ack, Nack, Resend Checksum Out of Band Connection Required Packet Window Packet Coalescence Keep Alive Streamed Data User must serialize data

16 Protocol Stack: Transport Layer: UDP Non Guaranteed Delivery No Acknowledgement system May arrive out of order Checksum Not Connected Source not verified Hop Count Limit = TTL (time to live) Required for Broadcasting Datagram Sent in packets exactly as user sends them

17 Protocol Stack: Session Layer Manages Connections between Apps Connect Terminate Data Exchange Socket API live at this layer Cross platform Cross language

18 Protocol Stack: Session Layer: Sockets Based on File I/O File Descriptors Open/Close Read/Write Winsock Provides standard specification implementation plus more Extension to spec prefixed with “WSA” Requires call to WSAStartup() before use Cleanup with WSAShutdown()

19 Protocol Stack: Session Layer: Socket Design Modes Blocking Non-Blocking Standard Models Standard Select Extended Models Windows WSAEventSelect I/O Completion Ports Unix Poll Kernel Queues

20 Protocol Stack: Presentation Layer Prepares App Data for Transmission Compression Pascal Strings String Tables Float to Fixed Matrix to Quaternion Encryption Endean Order When used cross platform or cross language Serialize Pointers Variable Length Arrays

21 Protocol Stack: Presentation Layer: Buffering Packet Coalescence Induced Latency Dead Data Large Packets

22 Protocol Stack: Application Layer Handles Game Logic Update Models Input Reflection State Reflection Synchronization Dead Reckoning AI Assist Arbitration

23 Real-Time Communications: Connection Models Broadcast Good for player discovery on LANs Peer to Peer Good for 2 player games Client / Server Good for 2+ player games Dedicated lobby server great for player discovery

24 Real-Time Communications: Peer to Peer vs. Client/Server BroadcastPeer/PeerClient/Server Connections0 Client = 1 Server = N N = Number of players BroadcastPeer/PeerClient/Server Send1N-1 Client = 1 Server = N ReceiveN-1 Client = 1 Server = N

25 Real-Time Communications: Asynchronous Environments Thread Priority Suspension Pooling Critical Section & Mutex Signal & Event Data Sharing volatile keyword Interlocked Inc/Dec

26 Security: Encryption Goals Authentication Privacy Integrity

27 Security: Encryption Methods Keyed Public Key Private Key Ciphers :- Block Ciphers, Stream Ciphers Message Digest Certificates IPSec

28 Security: Copy Protection Disk Copy Protection Costly Mastering Invalid/Special Sector Read Code Sheets Watermarking

29 Security: Execution Cryptography Code Obfuscation Strip Symbols Heap Hopper Stack Overrun Execution NoOp Hacking Timer Hacking DLL Shims

30 Security: Firewalls Packet Filter Proxies Circuit Gateways

31 Security: Firewalls: Network Address Translation

32 Security: Firewalls: NAT Traversal Port Forwarding Port Triggering DMZ Determining WAN IP

33 Summary: Topic Coverage Multiplayer Modes Protocols Protocol Stack Real-Time Communications Security

34 Summary: Further Study Socket Programming Serial Communication Server Design Network Gear & Infrastructure VOIP Tools of the Trade Unit & Public Beta Testing Middleware Databases Web Development Asynchronous Programming