çµéšã¯é£ããééãã®æ¯åã§ã
å€ãã®ãªã¢ãŒãã¢ã¯ã»ã¹ã·ã¹ãã ããããŸãã ãããã¯ãç¡æã®VNCã®ããããçš®é¡ã®ããªãšãŒã·ã§ã³ã§ãããéåžžã«åŒ·åã§ãããå¹ åºãæ©èœãåãããœãªã¥ãŒã·ã§ã³ãæäŸããŸããæåã¯ããã®ãããªãœãªã¥ãŒã·ã§ã³ã®1ã€ã§ããUltraVNCãæ¡çšããŸããã ããã¯ãIPãç¥ã£ãŠããå¥ã®PCã«æ¥ç¶ã§ããåªããç¡æã·ã¹ãã ã§ãã PCãã€ã³ã¿ãŒããããããã¯ãŒã¯ã«éæ¥çã«ã¢ã¯ã»ã¹ããŠããå Žåã®å¯ŸåŠæ¹æ³ã®ãªãã·ã§ã³ã¯ãHabrã®ãªãŒãã³ã¹ããŒã¹ã§æ¢ã«ã¡ãã€ããŠããŸãããã®ãããã¯ã«ã€ããŠã¯è§ŠããŸããã ãã®ãœãªã¥ãŒã·ã§ã³ã¯ãæ¯èŒçå°æ°ã®åææ¥ç¶ãéæããããŸã§ååã§ãã å·Šãžã®ã¹ããããå³ãžã®ã¹ããããããã³ã¹ãããã¯ãã¹ã±ãŒãªã³ã°ããŠãŒã¶ããªãã£ãã·ã¹ãã ãžã®çµ±åãããã³æ¹åã®è€éãããå§ãŸããŸãããã¡ããããããã¯ãœãããŠã§ã¢ã©ã€ããµã€ã¯ã«äžã«çºçããŸãã
ãã®ãããèªè»¢è»ãçºæããŠç¬èªã®ãªã¢ãŒããã¹ã¯ããã管çã·ã¹ãã ãäœæããVLSIãšã³ã·ã¹ãã å šäœã«çµ±åããããšãã§ããŸããã ãã¡ãããæ zyãªPCã ãã䜿çšããªã2å°ã®PCãæ¥ç¶ããæãç°¡åãªæ¹æ³ã¯ãæ°å€èå¥åã䜿çšããããšã§ãã å®è£ ã§ã¯ãç¹å®ã®ã¯ã©ã€ã¢ã³ããåç §ããã«6æ¡ã®ã©ã³ãã ãªæ°åã䜿çšããŸãã
ããæåãªäººã¯ãã€ãŠèšã£ãïŒ
çè«ã¯ããã¹ãŠãç¥ãããŠããããäœãæ©èœããªããšãã§ãã
ç·Žç¿ã¯ãã¹ãŠãããŸããããšãã§ããããã®çç±ã¯èª°ã«ãããããŸããã
çè«ãšå®è·µãçµã¿åãããŸãïŒäœãæ©èœããŸãã...
誰ããã®çç±ãç¥ããŸããïŒ
ç§ãã¡ã®æ ã®æåã«ããã®åŒçšã¯çå®ã«éåžžã«äŒŒãŠããŸãããã¯ã©ã€ã¢ã³ããšãªãã¬ãŒã¿ãŒããäºãã«ã玹ä»ãããæ¹æ³ã«ã€ããŠã®ç解ããããŸããã ãããå®éã«ã¯ããã¹ãŠãå®å šã«äºçŽ°ãªãã®ã§ã¯ãªãããšãå€æããŸããã
P2Pã®æŠèŠ
2ã€ã®ããã€ã¹ãæ¥ç¶ããããã«ãã·ã°ãã«ãµãŒããŒã䜿çšããŸããããã¯ãäž¡æ¹ã®åœäºè ãå©çšã§ãã仲ä»ãµãŒããŒã§ãã ãã®åœ¹å²ã¯ãåå è éã§ãªã¢ã«ã¿ã€ã ã«æ å ±ãç»é²ããã³äº€æããããšã§ãã ãããä»ããŠãé¢åãªããšãªããæ¥ç¶ã確ç«ããããã«ãšã³ããã€ã³ãïŒIPã¢ãã¬ã¹ãšããŒãã®æãã¢ã¯ã»ã¹ãã€ã³ãïŒã亀æããŸãã
ãªã¢ãŒããã«ããŒãããŒãžã£ãŒïŒRHMïŒãšåŒã°ãããã®ã·ã°ãã«ãµãŒããŒã¯ãnodejsã§èšè¿°ãããã·ã¹ãã ã®ããŒã«ã§ããããµãŒãã¹å šäœã®ãã©ãŒã«ããã¬ã©ã³ããªæäœãæäŸããŸãã Nuuuãããæ£ç¢ºã«ã¯ãããã©ãŒã«ããã¬ã©ã³ãããšããŠ...ç§ãã¡ã¯ããé¡ã£ãŠããŸã:)ã ããããã®ãµãŒããŒãžã®æ¥ç¶ã¯ãã©ãŠã³ãããã³æ¹åŒã«åºã¥ããŠããŸãã ãããã£ãŠãã¯ã©ã€ã¢ã³ããšãªãã¬ãŒã¿ãŒã¯ç°ãªããµãŒããŒã«æ¥ç¶ã§ããåæãšèª¿æŽã®ããã®ãã¹ãŠã®ã¡ã«ããºã ã¯ãã¹ã¯ãããã¢ããªã±ãŒã·ã§ã³ããå®å šã«åé€ãããŸãã
ãã¹ãŠã®äœæ¥ã¯ãµãŒãã¹ããã±ãŒãžã®äº€æã«åæžãããŸããããã«ãããããšãã°ãæ¥ç¶ã®åè£ãåéããããã»ã¹ãéå§ããããæ¥ç¶è©Šè¡èªäœãéå§ãããããããã«ãåœäºè ãäºãã«äžæã«èå¥ããã¢ã¯ã·ã§ã³ãæ¯èŒçåæçã«å®è¡ã§ããŸãã
ãšããã§ãç§ãã¡ã®ããã«æ¯ãèããªãã§ãã ãã-足å ã§èªåãæããªãã§ãã ããïŒ443 TCPããŒãã䜿çšããå Žå-çŽç²ãªãã©ãã£ãã¯ã§ã¯ãªãTLSã䜿çšããŠãã ããã ããã«å€ãã®ãã¡ã€ã¢ãŠã©ãŒã«ãããããããã¯ããããã«å€ãã®å Žåãããã€ããŒåŽââã§åæããŸãã
ã€ã³ã¿ãŒãããã§æãäžè¬çãªéä¿¡ãããã³ã«ã¯UDPãšTCPã§ãã UDPã¯è¿ éãã€ç°¡åã§ããããã±ããã®é ä¿¡ãšé åºãä¿èšŒãããã€ãã£ãæ©èœããããŸããã TCPã«ã¯ãããã®æ¬ ç¹ã¯ãããŸããããp2pæ¥ç¶ã®ã»ããã¢ããäžã¯å°ãè€éã§ãã ãããŠãææ°ã®ãã¬ã³ãã§ã¯ãçŽæ¥ã®TCPæ¥ç¶ã¯å®å šã«å¿åŽã«æ²ãããšãã§ããããã«æããŸãã
p2pæ¥ç¶ã®ã»ããã¢ããã¯ãåžžã«ãããã¯ãŒã¯ãããã³ã«ãæäœããèœåã«å€§ããäŸåããŠããããã§ã¯ãããŸããã ã»ãšãã©ã®å Žåããã®æ©èœã¯ç¹å®ã®ãããã¯ãŒã¯èšå®ãããå€ãã®å ŽåãNATïŒãããã¯ãŒã¯ã¢ãã¬ã¹å€æïŒããã¡ã€ã¢ãŠã©ãŒã«èšå®ãªã©ã«äŸåããŸãã
NATã4ã€ã®ã¿ã€ãã«åå²ããã®ãéäŸã§ããããããã®ã¿ã€ãã¯ãå€éšãããã¯ãŒã¯ãããšã³ããŠãŒã¶ãŒã«ãã±ãããéä¿¡ããããã®ã«ãŒã«ãç°ãªããŸãã
- 察称NAT
- ã³ãŒã³/ãã«ã³ãŒã³NAT
- ã¢ãã¬ã¹å¶éä»ãã³ãŒã³NAT
- ããŒãå¶éã³ãŒã³NAT
ã¡ãªã¿ã«ãäžéšã®é«åºŠãªããã€ã¹ã§ã¯ãæ§æããã«ããçŽæ¥ã¢ãŒããéžæã§ããŸãããçŸåšã§ã¯ããã§ã¯ãããŸããã
ã»ãšãã©ã®å ŽåãNATãçªç ŽããŠããã¹ããžã®ããŒã¿è»¢éãéå§ããããããå¿çãåä¿¡ããããšãã§ããŸãã ãããè¡ãã«ã¯ããªã¢ãŒãåŽããã®å€éšãšã³ããã€ã³ããèªèãããããåœç€Ÿã«éç¥ããå¿ èŠããããŸãã 次ã«ãåãããšãè¡ãå¿ èŠããããŸãã
å€éšããã€ã¹ã®IPã¢ãã¬ã¹ãšããŒãã調ã¹ãã«ã¯ïŒç°¡åã«ããããã«ã«ãŒã¿ãŒãšåŒã³ãŸãããïŒãSTUNïŒNATã®ã»ãã·ã§ã³ãã©ããŒãµã«ãŠãŒãã£ãªãã£ïŒããã³TURNïŒãªã¬ãŒNATã䜿çšãããã©ããŒãµã«ïŒãµãŒããŒã䜿çšããŸãã STUN-å€éšIPã決å®ããããïŒUDPãããã³ã«ã®ããŒãïŒãšã³ããã€ã³ãïŒãTURN-TCPã®å Žåã
ãªããç§ãã¡èªèº«ã®ã·ã°ãã«ãµãŒããŒããå€éšIPãååŸããæ¹ãã¯ããã«ç°¡åã ãããïŒ
ããã«ã¯å°ãªããšã4ã€ã®åŒæ°ããããŸãã
- ãšã³ããã€ã³ããåéããããã«ãµãŒããŒã®ãªã¹ãïŒç¬èªã®ãµãŒããŒãšå ¬éãããŠãããµãŒããŒã®äž¡æ¹ïŒãééçã«æ¡åŒµããæ©èœã«ãããã·ã¹ãã ã®åŸ©å åãåäžããŸãã
- STUNããã³TURNãããã³ã«ã®çžè£æ§ãšåºç¯ãªäœ¿çšã«ããããšã³ããã€ã³ãã®åéãšãã©ãã£ãã¯ã®äžç¶ã«æå°éã®æ³šæãæãããšãã§ããŸãã
- STUNããã³TURNãããã³ã«ã¯éåžžã«äŒŒãŠããŸãã STUNããã±ãŒãžã®ã¢ãŒããã¯ãã£ãæ±ã£ãåŸãTURNã¯ãã§ã«çµéšããŠããŸãã ãŸããTURNã䜿çšãããšãçŽæ¥æ¥ç¶ã®ç¢ºç«ã«å€±æãããšãã«ãã©ãã£ãã¯ãäžç¶ããæ©äŒãåŸãããŸãã
- ç§ãã¡ã¯ãã§ã«ãããªã³ãŒã«ã®ãããžã§ã¯ãã§STUN / TURNãµãŒããŒãã³ã¿ãŒã³ãã䜿çšããŸãããã€ãŸãããéããžã®æå°éã®æ³šå ¥ã§ãã®èœåãããã©ã°ã€ã³ãããããšãå¯èœã§ããã
Coturnã¯ãTURNããã³STUNãµãŒããŒã®ãªãŒãã³ãœãŒã¹å®è£ ã§ãã å®è·µã瀺ããŠããããã«ããã®äœ¿çšã¯WebRTCã«ãŸã£ããéå®ãããŸããã ç§ã®æèŠã§ã¯ãããã¯ããªãæè»ãªããŒã«ã§ãããããã»ã©èŠæ±ã¯ãããŸããã ã¯ããæ°Žå¹³æ¹åã«æ¡åŒµããçµã¿èŸŒã¿æ©èœã¯ãããŸããããããšãã°ä¿¡å·ãµãŒããŒã䜿çšããŠãã¹ãŠã解決ãããŸãã
STUN / TURNãããã³ã«ã䜿çšããŠæ§ç¯ããããµãŒããŒãšã®éä¿¡ã¯ã©ã®ããã«è¡ãããŸããïŒ
ãšã³ããã€ã³ããååŸããæé ã¯ãRFCïŒ3489ãïŒ5389ãïŒ5766ãããã³ïŒ6062ã«èšèŒãããŠããŸãã
STUNãŸãã¯TURNãããã³ã«ãžã®ãã¹ãŠã®ã¡ãã»ãŒãžã¯æ¬¡ã®ãšããã§ãã
ãããã£ãŠïŒ
- ã¡ãã»ãŒãžã¿ã€ãããšã«12ãã€ã
- ãã®é·ãïŒåŸç¶ã®ãã¹ãŠã®å±æ§ã®ãµã€ãºïŒã22ãã€ã
- TURNã®ã©ã³ãã èå¥åã«ã¯12ãã€ããSTUNãã±ããã«ã¯16ãã€ãã ãµã€ãºã¯4ãã€ãç°ãªããŸã-ãã®ããŒã¿ã¯ãäžå®ã®MagicCookieã®äžã§TURNãã±ããçšã«äºçŽãããŠããŸãã
äžè¬ã«ããªãŒããŒãããæ å ±ã¯ãã±ããã®æåã®20ãã€ãã«å«ãŸããŠããŸãã
å±æ§ã次ã®ãã®ã§æ§æãããŸãã
- å±æ§ã¿ã€ãããšã«2ãã€ã
- é·ã2ãã€ã
- å±æ§å€èªäœ
å±æ§ã®å šé·ã4ãã€ãã®åæ°ã§ããããšãéèŠã§ãã ããšãã°ãå±æ§ã®é·ãã®å€ã7ã§ããå ŽåãæåŸã«ã¹ã¿ããäžè¶³ãå¿ èŠã§ãïŒïŒ2 + 2 + 7ïŒïŒ 4ãã€ãã®ç©ºã®ããŒã¿ã
UDPãããã³ã«ã®ãšã³ããã€ã³ãã³ã¬ã¯ã·ã§ã³ã¯æ¬¡ã®ããã«ãªããŸãã
- ãµãŒããŒã«æ¥ç¶ãã
- ãã€ã³ãã£ã³ã°ãªã¯ãšã¹ããå«ãããã±ãŒãžãéä¿¡ããïŒ
- ãã€ã³ãã£ã³ã°ã¬ã¹ãã³ã¹ãå«ãããã±ãŒãžã®ååŸïŒ
- ãã±ããã®è§£æãšãããã³ã°ã¢ãã¬ã¹ã®æœåºïŒ
0x00 0x01-MAPPED-ADDRESSã«å¯Ÿå¿ããå±æ§ã¿ã€ã
0x00 0x08-å±æ§ã®å šé·
0x00 0x01-IPv4ã«å¯Ÿå¿ãããããã³ã«ããŒãžã§ã³
0x30 0x39-ããŒããå€12345
ããã«ãåãã€ãã¯ipv4ã¢ãã¬ã¹ã®ãªã¯ãããã«å¯Ÿå¿ããŸãïŒ123.123.123.123
TCPã®ãšã³ããã€ã³ãã®ã³ã¬ã¯ã·ã§ã³ã¯å€å°ç°ãªããŸãã TURNãããã³ã«ã«åŸã£ãŠååŸããŸãã ãªãããã§ããïŒ ãã¹ãŠã¯ãTURNãµãŒããŒã«æ¥ç¶ããããœã±ããã®æ°ãæå°åããããšã§èª¬æãããŸããã€ãŸããæœåšçã«å€ãã®äººãåããã©ãã£ãã¯ãªã¬ãŒãµãŒããŒã§ããã³ã°ãããããšãã§ããŸãã
TURNãããã³ã«ã§åè£è ãåéããã«ã¯ã以äžãè¡ãå¿ èŠããããŸãã
- ãµãŒããŒã«æ¥ç¶ããŸãã
- å²ãåœãŠèŠæ±ãå«ãããã±ãŒãžãéä¿¡ããŸãã
- TURNãµãŒããŒã§ã®èªèšŒãå¿ èŠãªå Žåãå¿çã§401ãšã©ãŒã䌎ãå²ãåœãŠãšã©ãŒãåãåããŸãã ãã®å ŽåããµãŒããŒããåä¿¡ããå¿çããååŸããã¡ãã»ãŒãžèªäœããŠãŒã¶ãŒåããã¹ã¯ãŒããããã³ã¬ã«ã å±æ§ã«åºã¥ããŠçæããããŠãŒã¶ãŒåãšã¡ãã»ãŒãžæŽåæ§å±æ§ã§å²ãåœãŠèŠæ±ãç¹°ãè¿ãå¿ èŠããããŸãã
- 次ã«ãç»é²ãæåããå ŽåããµãŒããŒã¯ãXOR-MAPPED-ADDRESSãšåæ§ã«ãTURNãµãŒããŒã®å°çšããŒãã®å±æ§ãšãšãã«å²ãåœãŠæåå¿çãéä¿¡ããŸããããã«ãããTCPãããã³ã«ã®ãããªãã¯ãšã³ããã€ã³ããéä¿¡ãããŸãã IPãããã«äœ¿çšããã«ã¯ãMagicCookieå®æ°å±æ§0x21 0x12 0xA4 0x42ã®åããã€ãã䜿çšããŠãåãªã¯ãããããè©°ãŸããããå¿ èŠããããŸãïŒXOR-è«çäŸå€æäœORïŒã
- ãã®TURNæ¥ç¶ã§ããã«äœæ¥ããå Žåã¯ãæ¯åæŽæ°èŠæ±ãéä¿¡ããŠç»é²ãæŽæ°ããå¿ èŠããããŸãã ããã¯ããããããæ¥ç¶ãç Žæ£ããããã«è¡ãããŸãã
ãã®ãããåéãããšã³ããã€ã³ãããªã¢ãŒãåŽãšäº€æãããµãŒããŒããããŸãã
ãã¡ãããããã¯åçŽã§ç解ããããããã«èŠããŸãããRFCãèŠãŠæ¯ãè¿ããšãwiresharkã®ãã³ãããªããã°ãç©äºãå°é¢ããèœã¡ãªãããšãç解ã§ããŸã-é£ã³èŸŒãæºåãã§ããŠããŸã...
åäŸãåŠã¶ãããã§ãªããã°ããªãã¯éµãäžããã§ããã...
æ¥ç¶ã確ç«ããæ¹æ³ã¯ïŒ
æãç°¡åãªã®ã¯ãUDPããŒã«ãã³ããæŽçããããšã§ãã
ãããè¡ãã«ã¯ãNATã§ã«ãŒãã£ã³ã°ã«ãŒã«ã人çºçã«äœæããå¿ èŠããããŸãã
ãªã¢ãŒããšã³ããã€ã³ããžã®äžé£ã®ãã±ãã転éãæŽçããããããã®å¿çãåŸ ã€ã ãã§ãã NATã§å¯Ÿå¿ããã«ãŒã«ãäœæãããã¬ãŒã¹ããåãé€ãã«ã¯ãããã€ãã®ããã±ãŒãžãå¿ èŠã§ãããã¬ãŒã¹ãã¯ã誰ã察å¿ããããã±ãŒãžãæåã«é ä¿¡ããã®ã§ããããã ããŠã誰ãUDPã®æ倱ããã£ã³ã»ã«ããŸããã§ããã
ãã®åŸãå¶åŸ¡ãã¬ãŒãºã亀æããæ¥ç¶ã確ç«ããããšæ³å®ã§ããŸãã
TCPããŒã«ãã³ãã®æ§æã¯ããå°ãè€éã§ãããäžè¬çãªã€ããªãã®ãŒã¯ãŸã£ããåãã§ãã
é£ç¹ã¯ãããã©ã«ãã§ããŒã«ã«ãšã³ããã€ã³ããå æã§ãããœã±ããã¯1ã€ã ãã§ãããå¥ã®ã¢ãã¬ã¹ã«æ¥ç¶ããããšãããšãæåã®ã¢ãã¬ã¹ããèªåçã«åæãããããšã§ãã ãã ãããã®å¶éãåé€ãããœã±ãããªãã·ã§ã³ããããŸãïŒREUSE_ADDRESSããã³EXCLUSIVEADDRUSEã ãœã±ããã®æåã®ãªãã·ã§ã³ãèšå®ãã2çªç®ã®ãªãã·ã§ã³ããªã»ãããããšãä»ã®ãœã±ãããåãããŒã«ã«ãšã³ããã€ã³ããå æã§ããããã«ãªããŸãã
TURNã«æ¥ç¶ãããšãã«ãœã±ããã«ãã£ãŠéãããããŒã«ã«ãšã³ããã€ã³ãã«ãã€ã³ããããªã¢ãŒãåŽã®ãšã³ããã€ã³ãã«æ¥ç¶ããããšããã ãã§ãã
ãŸããããå°ãè€éã§ãããå®å®ããæ¥ç¶èšå®ã«ã¯ãã©ãã£ãã¯ãªã¬ãŒãéèŠã§ãã
- ãªããªã ãã§ã«TURNã®ç»é²ããããŸããå¿ èŠãªã®ã¯ãTURNæš©éã«ãªã¢ãŒãåŽã®ç»é²ãè¿œå ããããšã ãã§ãã ãããè¡ãã«ã¯ããªã¢ãŒãç»é²ã瀺ãCreatePermissionããã±ãŒãžãéä¿¡ããŸãã
- æ¥ç¶ã®éå§åŽã¯ããªã¢ãŒãç»é²ã®ãè©°ãŸã£ãããšã³ããã€ã³ãã瀺ãConnectRequestãã±ãããéä¿¡ããMessageIntegrityãã±ããã«çœ²åããŸãã
- ãã¹ãŠãæ£åžžã§ããªã¢ãŒãåŽãç»é²ãšãšãã«CreatePermissionãéä¿¡ããå Žåãæ¥ç¶æåå¿çãã€ãã·ãšãŒã¿ãŒã«éãããæ¥ç¶ãã¯ã©ã€ã¢ã³ãã«è©Šã¿ãããŸãã ã©ã¡ãã®å Žåããconnection-idå±æ§ã¯çä¿¡ãã±ããã«ååšããŸãã
- ããã«ãçæéãå ã®ãœã±ãããšåãIPããã³TURNãµãŒããŒããŒãã«æ°ãããœã±ãããæ¥ç¶ãïŒåŸæ¥ã®TURNããŒãžã§ã³ã§ã¯ã3478ããã³443 TCPããŒãã®äž¡æ¹ããµãŒããŒããªãã¹ã³ã§ããŸãïŒãæ¥ç¶ã䜿çšããŠæ°ãããœã±ããããConnectionBindãã±ãããéä¿¡ããå¿ èŠããããŸãã以åã«åä¿¡ããIDã
- æ¥ç¶ãã€ã³ãæåå¿çãå«ããã±ãããåŸ ã¡ãåºæ¥äžãã-æ¥ç¶ã確ç«ãããŸãã ãã®å Žåãã¯ãã2ã€ã®ãœã±ããã䜿çšãããŸã-æ¥ç¶ã®ç¶æãæ åœããã³ã³ãããŒã«ãœã±ãããšãçŽæ¥æ¥ç¶ãšåæ§ã«æäœã§ãããã©ã³ã¹ããŒããœã±ãã-éåä¿¡ããããã¹ãŠã®ãã®ããã®ãŸãŸåŠçããå¿ èŠããããŸãã
䜿çšã®åªå é äœã«åŸã£ãŠããã®ãããªéå±€ã䞊ã¹ãŸããïŒdirect tcp> direct udp> relayïŒrelayïŒ
ãªãç§ãã¡ã¯çŽæ¥UDPã2äœã«ããã®ã§ããïŒ
ããŠãUDPã¯ããã®äœ¿ãããããšé床ã®ç¹ã§ãé倧ãªæ¬ ç¹ããããŸããé ä¿¡ã®ä¿èšŒãšåªå 床ããããŸããã ãããŠãã©ãããããããããªã¹ããªãŒã ïŒã°ã©ãã£ãã¯ã¢ãŒãã£ãã¡ã¯ãã®ååšïŒã«äœããã®åœ¢ã§å¯Ÿå¿ã§ããå Žåãããã§ã®ãã¡ã€ã«è»¢éã¯ããæ·±å»ã§ãã
ä¿èšŒãšåªå 床ã確ä¿ããããã«ãä¿¡é Œã§ããUDPã«äŒŒãã¡ã«ããºã ãå®è£ ãããŸãããããã¯ãã¯ãããããã«å€ãã®ãªãœãŒã¹ãæ¶è²»ããŸãããæãŸããçµæããããããŸãã
ã©ã®ããã«ããŠç¶æ³ããæãåºããŸãããïŒ ãŸããMTUïŒæ倧äŒéåäœïŒ-ã€ãŸããééããŒãã§ãã©ã°ã¡ã³ããŒã·ã§ã³ãªãã§éä¿¡ã§ãããã±ããã®å¯èœãªæ倧udpãµã€ãºãèŠã€ããå¿ èŠããããŸãã
ãããè¡ãã«ã¯ãæ倧ãã±ãããµã€ãºã«512ãã€ãã䜿çšããIP_DONTFRAGMENTãªãã·ã§ã³ããœã±ããã«èšå®ããŸãã ããã±ãŒãžãéä¿¡ãã確èªãåŸ ã¡ãŸãã äžå®æéå ã«åçãåŸãããå Žåã¯ãæ倧ãµã€ãºãå¢ãããŠå埩ãç¹°ãè¿ããŸãã æçµçã«ç¢ºèªãåŸ ããªãã£ãå ŽåãMTUãµã€ãºãæ確ã«ããæé ãéå§ããŸããæ倧ãããã¯ãµã€ãºãå€§å¹ ã«äžããã10å以å ã«å®å®ãã確èªãæåŸ ããŸãã 圌ãã¯ç¢ºèªãåããŸããã§ãã-圌ãã¯MTUãæžãããæ°ãã«ãµã€ã¯ã«ãå§ããŸããã
æé©ãªMTUãµã€ãºãèŠã€ãããŸããã
次ã«ãåå²ããŸãã倧ããªãããã¯å šäœãå€ãã®å°ããªãããã¯ã«åå²ããããã±ãŒãžãç¹åŸŽä»ããéå§ã»ã°ã¡ã³ãçªå·ãšçµäºã»ã°ã¡ã³ãçªå·ã瀺ããŸãã åå²åŸãã»ã°ã¡ã³ããéä¿¡ãã¥ãŒã«è¿œå ããŸãã ã»ã°ã¡ã³ãã¯ããªã¢ãŒãããŒãã£ãåä¿¡ããããšãéç¥ãããŸã§éä¿¡ãããŸãã åè©Šè¡ééã¯ã1.2 * MTUã®æ€çŽ¢æã«åä¿¡ããæ倧pingãµã€ãºãšããŠäœ¿çšãããŸãã
åä¿¡åŽã§ã¯ãåä¿¡ããã»ã°ã¡ã³ããèŠãŠããããçä¿¡ãã¥ãŒã«è¿œå ããæãè¿ããã±ãããåéããããšããŸãã ããŸããã£ãå Žåãã©ã€ã³ããããã«ããŠã次ã®ã©ã€ã³ãéããããšããŸãã
ããã§ããã¡ããããã®æ®µèœã«ãçãããããªãã®æã泚ææ·±ã人ã¯ãå®å šã«æ°ä»ãããšãã§ããŸãïŒx264ãŸãã¯x265ã³ãŒããã¯ã䜿çšããŸãããïŒ -ãããŠãéšåçã«æ£ããã§ãããã æ£çŽãªãšãããç§ãã¡ã¯ãããzayuzatããåŸåãããã®ã§ãudpã§ãã®èªè»¢è»ãæŸæ£ããããšãã§ããŸãã ããããããšãã°ããã€ããªãã¡ã€ã«ã®è»¢éã¯ã©ãã§ããããã ãã®å Žåãé éã®ä¿èšŒãšè·ç©ã®åªå 床ã®å¿ èŠæ§ã«åã³æ»ããŸãã
çµè«ãšããŠããã®ãããªæ¥ç¶ã®çµç¹ã§ã¯ã1æ¥ã«2ã3ïŒ ã®å€±æããæ¥ç¶ãããããŸããããã®ã»ãšãã©ã¯ãåé¡ãªãæ¥ç¶ãã»ããã¢ããããäžæ£ãªãããã·ãŸãã¯ãã¡ã€ã¢ãŠã©ãŒã«ã®èšå®ã§ãã
ãã®ãããã¯ãããªãã«ãšã£ãŠèå³æ·±ããã®ã§ããããšãå€æããå ŽåïŒãããŠããã®ããã«æãããŸãïŒã以äžã®èšäºã§ãã·ã¹ãã ã§æé«ã®æš©éãæã€ã¢ããªã±ãŒã·ã§ã³ã®èµ·åãããã«ããçããåé¡ãããã³ããããžã®å¯ŸåŠæ¹æ³ã«ã€ããŠèª¬æããŸãã å§çž®ã¢ã«ãŽãªãºã ãä»®æ³ãã¹ã¯ããããªã©ã«ã€ããŠã
äœæè ïŒVladislav Yakovlev asmsa