[Computer Network] Chap12. Game Networking

2023. 12. 19. 13:25ใ†ComputerScience/ComputerNetwork

 

 

 

 

 

12. Game Networking 

- Massive Multi-user Online RPG 

- ๊ตฌ๊ธ€, ์•„๋งˆ์กด, ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ, 5G ์ƒ์šฉํ™” ์ง์ „, game ํšŒ์‚ฌ๋“ค ์ธ์ˆ˜ํ•จ

 

** Dedicated ์„œ๋ฒ„๋Š” 2๊ฐœ๋งˆ์Šคํ„ฐ ์„œ๋ฒ„์™€ ๊ฒŒ์ž„ ์„œ๋ฒ„๋กœ ๋‚˜๋‰œ๋‹ค

1. master server - ๋กœ๊ทธ์ธ, ์ธ์ฆ, session layer ๋“ฑ ๊ฒŒ์ž„์— ๋Œ€ํ•œ ๋กœ์ง์ด ๋„๋Š” ๊ฑด X / ๊ฒŒ์ž„ ํšŒ์‚ฌ๋“ค์ด ๋‹ค ๋น„์Šทํ•œ ์ผ

2. game server - ์‹ค์งˆ์ ์œผ๋กœ ๊ฒŒ์ž„์— ๋Œ€ํ•œ, ํšŒ์‚ฌ ๋ณ„ ์œ ๋‹ˆํฌํ•œ ๋กœ์ง, high performance 

- ์‹ค์‹œ๊ฐ„ ๋งˆ์šฐ์Šค ๋™์ž‘ ์ฒ˜๋ฆฌ / real time ๋ Œ๋”๋ง / ๋„คํŠธ์›Œํฌ ํŠธ๋ž˜ํ”ฝ ๋งŽ์Œ + CPU/GPU ํ•„์š” -> ์–ด๋งˆ์–ด๋งˆํ•œ ๋ถ€ํ•˜

 

 

 

 

https://emilraineroblog.wordpress.com/2017/04/27/unity-master-server-framework-matchmaking/

 

 

 

 

* ์„œ๋ฒ„ ์—†์ด P2P 

- ์„œ๋ฒ„๋ฅผ ๊ฑฐ์น˜์ง€ ์•Š๊ณ , ๊ฒŒ์ž„ ์ปจํ…์ธ ๋ฅผ ์ง์ ‘ ์ฃผ๊ณ  ๋ฐ›์•„๋ผ / WebRTC (์›น์—์„œ P2P ๊ฒŒ์ž„)

- ํŠธ๋ž˜ํ”ฝ ๋ถ€ํ•˜๋Š” ํฌ์ง€๋งŒ, ๋„คํŠธ์›Œํฌ์™€ processing ์ง€์—ฐ์€ ์ค„์–ด๋“ฆ // ์ฆ‰ for low latency + 5G edge computing

- Sync๋ฅผ ๋งž์ถ”๋Š” ๊ฒƒ๊ณผ, ์ƒˆ ์œ ์ €๊ฐ€ ๋“ค์–ด์˜ค๋Š” ์ฒ˜๋ฆฌ ๋“ฑ์˜ ์–ด๋ ค์›€์ด ์กด์žฌํ•œ๋‹ค (์„œ๋ฒ„๊ฐ€ ์—†์œผ๋‹ˆ) 

 

- MMORPG ์„œ๋ฒ„ ์–ด๋–ป๊ฒŒ ๋งŒ๋“ค ๊ฒƒ? -> cloud computing ๋น„์ง€๋‹ˆ์Šค์˜ ํ™•์žฅ 

- ์•„๋งˆ์กด, ๊ตฌ๊ธ€ ๊ฒŒ์ž„ ์„œ๋ฒ„ PaaS (ํ”Œ๋žซํผ ์ œ๊ณต) -> ๋งˆ์Šคํ„ฐ์„œ๋ฒ„, ๊ฒŒ์ž„์„œ๋ฒ„, P2P๋ฅผ ์ œ๊ณต 

 

1. Photon - ์„œ๋ฒ„๊ฐ€ 1์ดˆ์— 60 ~ 120์žฅ์˜ ์ด๋ฏธ์ง€๋ฅผ ๋งŒ๋“ค์–ด์•ผ ํ•จ -> deterministicํ•œ real time 

- ํด๋ผ์ด์–ธํŠธ๋Š” ๋„ค๊ฐ€ ์ง์ ‘ ์งœ๊ณ , ๋ˆ ๋‚ด๋ฉด ์šฐ๋ฆฌ ์„œ๋ฒ„์—์„œ ๋„ค ๊ฒŒ์ž„ ๋Œ์•„๊ฐ€๊ฒŒ PaaS

 

2. Agones by Google - ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŽ์€ ๊ฒŒ์ž„ ์„œ๋ฒ„๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ์˜คํ”ˆ์†Œ์Šค

- ๊ตฌ๊ธ€๋„ MMORPG ๊ฒŒ์ž„ ์„œ๋ฒ„์— ๋Œ€ํ•œ ํ† ํƒˆ ์†”๋ฃจ์…˜์„ ์ œ๊ณต

- dedicated ์ค‘์—์„œ game server ํ•˜๋‚˜๋งŒ ์ž˜ ์งœ๋ฉด ๋จ (์‹ค์งˆ์ ์ธ ๊ฒŒ์ž„ ๋กœ์ง) + ๋งˆ์Šคํ„ฐ์„œ๋ฒ„ ์•ž little

- ๊ตฌ๊ธ€์˜ ํด๋ผ์šฐ๋“œ ์ธํ”„๋ผ ์œ„์—, ์ผ๋ฐ˜์ ์œผ๋กœ ๊ฒŒ์ž„ ์„œ๋ฒ„์˜ ๊ธฐ๋Šฅ์„ ์•„๊ณ ๋„ค์Šค๋กœ ๊ตฌํ˜„ - ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค๋กœ ๋Œ์•„๊ฐ 

-> ์šฐ๋ฆฌ๋Š” ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„ ๋กœ์ง์—๋งŒ ์ง‘์ค‘

 

+ 3. Colyseus ์˜คํ”ˆ์†Œ์Šค, ์‚ฌ์šฉํ•˜๊ธฐ ์‰ฝ๋‹ค. 

 

- 2018๋…„, ๊ตฌ๊ธ€ - ์•„๊ณ ๋„ค์Šค ์ง์ ‘ ๊ฐœ๋ฐœ / ์•„๋งˆ์กด - ๊ฒŒ์ž„ ์ŠคํŒŒํฌ ์ธ์ˆ˜ / ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ - playFab ์ธ์ˆ˜

-> ํด๋ผ์šฐ๋“œ ๊ธฐ์—…๋“ค์ด ๊ธ‰ํ•˜๊ฒŒ ๊ฒŒ์ž„ ์„œ๋ฒ„ ์ธ์ˆ˜ ๋ฐ ๊ณต๊ฐœ -> 2019๋…„ 5G ์ƒ์šฉํ™” / ์œ ๋‹ˆํ‹ฐ๋Š” ์„œ๋น„์Šค ์ข…๋ฃŒ

 

- Public Cloud Solutions at Game -> Google Cloud Platform, GCP 

- ์ˆ˜ ์–ต ๋ช…์˜ ํ”Œ๋ ˆ์ด์–ด๊ฐ€ ์žˆ์–ด๋„ ๋™์ž‘ํ•  ์ˆ˜ ์žˆ๋„๋ก, ์Šค์ผ€์ผ๋ง 

- ๊ตฌ๊ธ€ CPU๋ฅผ ์“ฐ๊ธฐ ์œ„ํ•œ compute engine + dedicated game server๋ฅผ ์œ„ํ•œ App Engine

-> ๊ตฌ๊ธ€ ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ์„ ํ™œ์šฉํ•œ ๊ฒŒ์ž„ ์ „์šฉ ์„œ๋ฒ„

+ Amazon GameLift – ์•„๋งˆ์กด์€ ์ „ ์„ธ๊ณ„ ์—ฌ๋Ÿฌ ์ง€์—ญ์— ์„œ๋ฒ„ ์ด๋ฏธ ๋ณด์œ ํ•จ -> low latency

 

* Streaming Games 

- ํ”Œ๋ ˆ์ด์Šคํ…Œ์ด์…˜์ด ๊ตฌ๊ธ€ ์„œ๋ฒ„์— ์žˆ์–ด, ์ฝ˜์†”์˜ ์ž…๋ ฅ์„ ๋ฐ›์œผ๋ฉด ๊ตฌ๊ธ€ ์„œ๋ฒ„๋กœ ๊ฐ

- ๋ฐœ๋ชฉ์€ ๋„คํŠธ์›Œํฌ์—์„œ ์žกํž˜ -> ๋„คํŠธ์›Œํฌ๊ฐ€ ํ”๋“ค๋ฆฌ์ง€ ์•Š๋Š” ์ง€ํ„ฐ์™€ ๋กœ์Šค / ๋งค์šฐ ๋‚ฎ์€ ์ง€์—ฐ์ด ๋ณด์žฅ๋  ๋•Œ ๊ฐ€๋Šฅ

thin client - processing์€ X -> ์ž…์ถœ๋ ฅ๋งŒ ๊ฐ€๋Šฅ

 

- Sony play station now

- ๊ฐ€์ž…ํ˜• ์„œ๋น„์Šค, ์ŠคํŠธ๋ฆฌ๋ฐ ๊ฒŒ์ž„ – ํ”Œ๋ ˆ์ด ์Šคํ…Œ์ด์…˜ ์—†์ด๋„ ๊ฒŒ์ž„์ด ๊ฐ€๋Šฅ

- MS xCloud ํ”„๋กœ์ ํŠธ - ํด๋ผ์šฐ๋“œ ์œ„์—์„œ Xbox ๊ฒŒ์ž„์„ ํ•œ๋‹ค / like ๊ตฌ๊ธ€ ์Šคํƒ€๋””์•„, ์—”๋น„๋””์•„ - GEFORCE 

- ์™œ ๋‹ค 2018๋…„? -> 2019๋…„ 5G ์ƒ์šฉํ™” / ์ŠคํŠธ๋ฆฌ๋ฐ ๊ฒŒ์ž„์„ ํ™œ์„ฑํ™” ํ•œ ์ด์œ 

+ HTTP TCP๋Š” ์•„๋‹Œ ๊ฒƒ ๊ฐ™์•„ / QUIC (HTTP/3.0) ์˜คํ”ˆ์†Œ์Šค ํ™œ์šฉ / ์Šค์Šค๋กœ ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐ ์„ฑ๋Šฅ ๊ฐœ์„  ๊ฒ€์ฆ (์ฟ ํ‚ค๋Ÿฐ)

 

์šฐ๋ฆฌ๊ฐ€ ๋ฐฐ์šด ๊ธฐ์ˆ ๋“ค ์ด๋™์›

- ๋“œ๋ก  ๊ณต๊ฒฉ - ์ž๊ธฐ๋“ค๋ผ๋ฆฌ ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•ด ํŽธ๋Œ€ ๋น„ํ–‰ -> ad hoc / mesh net (5G ์ด๋™ํ†ต์‹ ์„ ํ†ตํ•ด ์ค‘์•™์ œ์–ด) 

- cloud computing (์‹ค์‹œ๊ฐ„ ์–ผ๊ตด ๋ถ„์„, ๋น…๋ฐ์ดํ„ฐ, ML ์ฒ˜๋ฆฌ) / ๊ฒŒ์ž„ ์•ˆ์—์„œ๋‚˜ ๋ฐ–์—์„œ ๋น„ํ–‰๊ธฐ๊ฐ€ ๋ญ๊ฐ€ ๋‹ฌ๋ผ?

massiveํ•œ ์• ๋“ค์ด ๋„คํŠธ์›Œํฌ๋กœ ์—ฐ๊ฒฐ๋˜์–ด์„œ interactiveํ•˜๊ฒŒ real time๋กœ communication (low latency)

 

 

 

 

 

'ComputerScience > ComputerNetwork' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Computer Network] Chap13. Make: Networking  (1) 2023.12.19
[Computer Network] Chap11. Cloud Computing  (0) 2023.12.19
[Computer Network] Chap10. HTTP & SIP  (1) 2023.12.19
[Computer Network] Chap9. Transport layer (2)  (0) 2023.12.19
[Computer Network] Chap8. Transport layer (1)  (0) 2023.12.19