Effective connection type - ChoDragon9/posts GitHub Wiki

๊ธ€์˜ ๋ชฉ์ 

Effective connection type์„ ํŒŒ์•…ํ•˜๊ณ , ๋„คํŠธ์›Œํฌ ์„ฑ๋Šฅ ๊ธฐ์ค€์„ ํŒŒ์•…ํ•œ๋‹ค.

Effective connection type์ด ๋ฌด์—‡์ธ๊ฐ€?

์ธก์ •๋œ ๋„คํŠธ์›Œํฌ ์„ฑ๋Šฅ์„ ๋‚˜ํƒ€๋‚ธ๋‹ค. WiFi๋‚˜ ์œ ์„  ์—ฐ๊ฒฐ์„ ํ•ด๋„ ๋„คํŠธ์›Œํฌ ์„ฑ๋Šฅ์„ ์ธก์ •ํ•ด 3G์™€ ๊ฐ™์€ ์„ฑ๋Šฅ ๊ฒฐ๊ณผ๋ฅผ ํ‘œ์‹œํ•œ๋‹ค.

์ด ๊ฐ’์„ ์–ด๋–ป๊ฒŒ ์กฐํšŒํ•  ์ˆ˜ ์žˆ์„๊นŒ?

navigator.connection.effectiveType๋กœ ์กฐํšŒํ•  ์ˆ˜ ์žˆ๋‹ค.

๋„คํŠธ์›Œํฌ ์„ฑ๋Šฅ ๊ฒฐ๊ณผ๋Š” ์–ด๋–ค ํ•ญ๋ชฉ๋“ค์ด ์žˆ๋‚˜?

slow-2g, 2g, 3g, 4g์™€ ๊ฐ™์€ ํ•ญ๋ชฉ๋“ค์ด ์žˆ๋‹ค.

slow-2g๋Š” ์–ด๋–ค ๊ธฐ์ค€์œผ๋กœ ์„ฑ๋Šฅ์„ ์ธก์ •ํ• ๊นŒ?

  • ์ตœ์†Œ RTT: 2000ms
  • ์ตœ๋Œ€ Downlink: 50Kbps
  • ํ…์ŠคํŠธ ์ „์šฉ ํŽ˜์ด์ง€์™€ ๊ฐ™์€ ์†Œ๊ทœ๋ชจ ์ „์†ก์— ์ ํ•ฉํ•˜๋‹ค.

2g๋Š” ์–ด๋–ค ๊ธฐ์ค€์œผ๋กœ ์„ฑ๋Šฅ์„ ์ธก์ •ํ• ๊นŒ?

  • ์ตœ์†Œ RTT: 1400ms
  • ์ตœ๋Œ€ Downlink: 70Kbps
  • ์ž‘์€ ์ด๋ฏธ์ง€ ์ „์†ก์— ์ ํ•ฉํ•˜๋‹ค.

3g๋Š” ์–ด๋–ค ๊ธฐ์ค€์œผ๋กœ ์„ฑ๋Šฅ์„ ์ธก์ •ํ• ๊นŒ?

  • ์ตœ์†Œ RTT: 270ms
  • ์ตœ๋Œ€ Downlink: 700Kbps
  • ๊ณ ํ•ด์ƒ๋„ ์ด๋ฏธ์ง€, ์˜ค๋””์˜ค ๋ฐ SD ๋น„๋””์˜ค์™€ ๊ฐ™์€ ํฐ ๋ฆฌ์†Œ์Šค ์ „์†ก์— ์ ํ•ฉํ•˜๋‹ค.

4g๋Š” ์–ด๋–ค ๊ธฐ์ค€์œผ๋กœ ์„ฑ๋Šฅ์„ ์ธก์ •ํ• ๊นŒ?

  • ์ตœ์†Œ RTT: 0ms
  • ์ตœ๋Œ€ Downlink: โˆž
  • HD ๋น„๋””์˜ค, ์‹ค์‹œ๊ฐ„ ๋น„๋””์˜ค์— ์ ํ•ฉํ•˜๋‹ค.

RTT๋ž€ ๋ฌด์—‡์ธ๊ฐ€?

  • Round Trip Time์˜ ์•ฝ์ž๋กœ ์™•๋ณต ์‹œ๊ฐ„์ด๋ผ ํ•œ๋‹ค.
  • ๋„คํŠธ์›Œํฌ ์‹œ์ž‘ ์ง€์ ์—์„œ ํŒจํ‚ท์ด ํƒ€๊ฒŸ์œผ๋กœ ์ „์†ก๋˜๋Š” ๋ฐ ๊ฑธ๋ฆฌ๋Š” ์‹œ๊ฐ„๊ณผ ํ•ด๋‹น ํŒจํ‚ท์˜ ์Šน์ธ์ด ๋„คํŠธ์›Œํฌ ์‹œ์ž‘ ์ง€์ ์— ๋‹ค์‹œ ์ „์†ก๋˜๋Š” ์‹œ๊ฐ„์„ ์˜๋ฏธํ•œ๋‹ค.

Downlink๋ž€ ๋ฌด์—‡์ธ๊ฐ€?

  • ๊ธฐ์ง€๊ตญ์—์„œ ๋‹จ๋ง๊ธฐ ๋ฐฉํ–ฅ์˜ ๋งํฌ๋‹ค.

์ถœ์ฒ˜