现在的位置: 首页 > 综合 > 正文

stun学习笔记2

2017年12月22日 ⁄ 综合 ⁄ 共 1433字 ⁄ 字号 评论关闭


<!--
/* 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_A

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

 

B

Restricted Cone

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

外到内:
数据包的目的地址
IP_B
和端口
PORT_B

NAT
被打开了,如果内部主机通过
IP_B

PORT_B
向该数据包的源
IP
发送过数据(验证数据包的源地址),则通过。

 

C

Port Restricted Cone

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

外到内:数据包的目的地址
IP_C
和端口
PORT_C

NAT
被打开了,如果内部主机通过
IP_C

PORT_C
向数据包的源目的地址和端口发送过数据(验证数据包的源地址和端口),则通过。

 

D

Symmetric

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

外到内:数据包的目的地址
IP_C
和端口
PORT_C

NAT
被打开了,如果内部主机通过
IP_C

PORT_C
向数据包的源目的地址和端口发送过数据(验证数据包的源地址和端口),则通过。

抱歉!评论已关闭.