ogdc 2013 network stragegy for mmo game
TRANSCRIPT
![Page 1: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/1.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/2.jpg)
Who Am I ?Technical Leader
![Page 3: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/3.jpg)
myPlay Game Portal
![Page 4: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/4.jpg)
myPlay Mobile
![Page 5: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/5.jpg)
Problems
![Page 6: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/6.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/7.jpg)
Agenda
11
22
33Common Problems
Disconnection
Lag
![Page 8: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/8.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/9.jpg)
Effective Protocol
![Page 10: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/10.jpg)
Packet Optimization
Data Protocol
Combination
Compress
![Page 11: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/11.jpg)
Data Transfer Protocol
![Page 12: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/12.jpg)
Combination & Compress
![Page 13: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/13.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/14.jpg)
NỘI DUNG
11
22
33Common Problems
Disconnection
Lag
![Page 15: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/15.jpg)
Slow Connection Disconnection
2. Disconnection
![Page 16: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/16.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/17.jpg)
myPlay before
Slow Connection
![Page 18: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/18.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/19.jpg)
Solutions
Disconnect protection Re-connection
![Page 20: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/20.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/21.jpg)
Auto - Reconnection System
Session
Game Client
State
Data
New Connection
Priority Message Queue
![Page 22: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/22.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/23.jpg)
Auto - Reconnection System
Result
![Page 24: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/24.jpg)
NỘI DUNG
11
22
33Common Problems
Disconnection
Lag
![Page 25: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/25.jpg)
Ghost User
3. Common Problems
Firewall
![Page 26: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/26.jpg)
Firewall
Block Game Port
![Page 27: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/27.jpg)
Http Tunnel by-pass Firewall
Http Tunnel
![Page 28: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/28.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/29.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/30.jpg)
Summary
Choose right protocol
Optimize packet
Lag
Reduce Slow Connection
Use Auto-reconnecting
system
![Page 31: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/31.jpg)
Happy Gaming
![Page 32: Ogdc 2013 network stragegy for mmo game](https://reader037.vdocument.in/reader037/viewer/2022103000/554d284cb4c905ab268b4d59/html5/thumbnails/32.jpg)