stun学习笔记2

来源:互联网 发布:什么时候递归算法 编辑:程序博客网 时间:2024/04/28 21:46

<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->

A Full Cone

   

内到外:相同的内部地址和端口被映射到同一个外部地址和端口号

外到内:数据包的目的地址IP_A和端口PORT_ANAT被打开了,不管该数据包来自何处(不验证数据包的源地址和端口),数据包就可以通过。

 

B Restricted Cone

内到外:相同的内部地址和端口被映射到同一个外部地址和端口号

外到内: 数据包的目的地址IP_B和端口PORT_BNAT被打开了,如果内部主机通过IP_BPORT_B向该数据包的源IP发送过数据(验证数据包的源地址),则通过。

 

C Port Restricted Cone

内到外:相同的内部地址和端口被映射到同一个外部地址和端口号

外到内:数据包的目的地址IP_C和端口PORT_CNAT被打开了,如果内部主机通过IP_CPORT_C向数据包的源目的地址和端口发送过数据(验证数据包的源地址和端口),则通过。

 

D Symmetric

内到外:一条连接对应一个NAT上的映射关系

外到内:数据包的目的地址IP_C和端口PORT_CNAT被打开了,如果内部主机通过IP_CPORT_C向数据包的源目的地址和端口发送过数据(验证数据包的源地址和端口),则通过。

原创粉丝点击