Download - Ogdc 2013 network stragegy for mmo game

Transcript
Page 1: Ogdc 2013 network stragegy for mmo game

Network Strategy for MMO Game

Trần Như Toàn , Lead Software

Engineer,

Game Studio North , VNG Corporation

Page 2: Ogdc 2013 network stragegy for mmo game

Who Am I ?Technical Leader

Page 3: Ogdc 2013 network stragegy for mmo game

myPlay Game Portal

Page 4: Ogdc 2013 network stragegy for mmo game

myPlay Mobile

Page 5: Ogdc 2013 network stragegy for mmo game

Problems

Page 6: Ogdc 2013 network stragegy for mmo game

This topic suite for

Turn-based, Real-time MMO Games

Network Game Developers

MMO Mobile Games

Page 7: Ogdc 2013 network stragegy for mmo game

Agenda

11

22

33Common Problems

Disconnection

Lag

Page 8: Ogdc 2013 network stragegy for mmo game

1. Lag

35% Game Client

(un-trusted , multitasking)

35% Game Servers (Overloaded ,Costly)

30% Network

(latency , bandwidth)

Page 9: Ogdc 2013 network stragegy for mmo game

Effective Protocol

Page 10: Ogdc 2013 network stragegy for mmo game

Packet Optimization

Data Protocol

Combination

Compress

Page 11: Ogdc 2013 network stragegy for mmo game

Data Transfer Protocol

Page 12: Ogdc 2013 network stragegy for mmo game

Combination & Compress

Page 13: Ogdc 2013 network stragegy for mmo game

myPlay Results

OLD

Traffic of 3200 CCU:

In: 1,53 KB/s

Out: 325,08 KB/s

Page 14: Ogdc 2013 network stragegy for mmo game

NỘI DUNG

11

22

33Common Problems

Disconnection

Lag

Page 15: Ogdc 2013 network stragegy for mmo game

Slow Connection Disconnection

2. Disconnection

Page 16: Ogdc 2013 network stragegy for mmo game

Maintain connection until time-out

Slow Connection

• Use session for each

connection

• Hold connection state in

session

• Activate connection when

having any signal

Page 17: Ogdc 2013 network stragegy for mmo game

myPlay before

Slow Connection

Page 18: Ogdc 2013 network stragegy for mmo game

Disconnection

Why ???

• Interrupted, even temporarily

• ISP might have intermittent

issues , router fail

• Drop in the strength of the

signal

Page 19: Ogdc 2013 network stragegy for mmo game

Solutions

Disconnect protection Re-connection

Page 20: Ogdc 2013 network stragegy for mmo game

Re-connection

Automatically reconnectwhen connection is lost

Remain user’s state

Game flow is not interrupted

Page 21: Ogdc 2013 network stragegy for mmo game

Auto - Reconnection System

Session

Game Client

State

Data

New Connection

Priority Message Queue

Page 22: Ogdc 2013 network stragegy for mmo game

Auto - Reconnection System

Game flow is not interrupted

Client games auto-reconnect when connection lost

Remain state of User

The complexity of the reconnection is hidden from the developers.

Page 23: Ogdc 2013 network stragegy for mmo game

Auto - Reconnection System

Result

Page 24: Ogdc 2013 network stragegy for mmo game

NỘI DUNG

11

22

33Common Problems

Disconnection

Lag

Page 25: Ogdc 2013 network stragegy for mmo game

Ghost User

3. Common Problems

Firewall

Page 26: Ogdc 2013 network stragegy for mmo game

Firewall

Block Game Port

Page 27: Ogdc 2013 network stragegy for mmo game

Http Tunnel by-pass Firewall

Http Tunnel

Page 28: Ogdc 2013 network stragegy for mmo game

Ghost Users

Incomplete TCP disconnection occurs (e.g. disable 3g, wifi ….)

Why?How to deal with ghosts?

Page 29: Ogdc 2013 network stragegy for mmo game

Ghost User Hunter

Reduce the impact of pending connections

• Create scheduled task (called Ghost Hunter)

• Check the integrity of each connection

• Remove those that are stale

Page 30: Ogdc 2013 network stragegy for mmo game

Summary

Choose right protocol

Optimize packet

Lag

Reduce Slow Connection

Use Auto-reconnecting

system

Page 31: Ogdc 2013 network stragegy for mmo game

Happy Gaming

Page 32: Ogdc 2013 network stragegy for mmo game