您的位置:首页 > 理论基础 > 计算机网络

802.11 wireless 5

2012-09-08 19:24 106 查看
CSMA/CA,采用倒计时的方法,退避的时间(当年时间+duration 为发送时间,每一个帧会有一个duration,这个位叫做duration[n.持续])

PS:duration:time to send the frame + SIFS + ACK(这个ack返回,等一个间隔返回的)

1.SIFS:short interframe space,for higher priority and used for acks,among other things

2.PIFS:point-coordination interframe space,used when an AP is going to control the network

3.DIFS:distributed-coordination interframe space,used for data frames and is the normal spacing between frames the network

PS:这里写在我的理解,首先是SIFS和PIFS是用在ack确认的,而DIFS是用来连续发两次包的一个间隔,首先是cilent向ap发包,然后是需要ap进行ack的,这里实际上一般采用的是SIFS这个间隔,即这里的duration也就是等待ack的时间间隔是SIFS+ack的时间,而DIFS是一个cilent点进行再次发送时候所需要等待的一个时间点,即发完一个数据帧再发下一个数据帧的时候就是DIFS。

PPS:还可以简单点理解,这个控制帧,RTS,CTS,ACK这样的属于控制帧,间隔采用SIFS,数据帧的间隔采用DIFS,这个理解简单一点

802.11帧结构结构-具体内容到时候再查

[Frame control] [Duration/ID] [Address 1] [Address 2] [Address 3] [Sequence Control] [Address 4] [Frame Body] [FCS]

Frame control结构(bits):DS就当做有线网络

        2             2       4        1        1          1         1         1            1           1          1  

[Protocol version] [Type] [Subtype] [To DS] [From DS] [More Frag] [Retry] [Power-Mqmt] [More Data] [Prot-Frame] [Other]

这里4中MAC地址的一个选择的问题,思科给出的一张表(4种MAC地址,1.SA源MAC,2.DA目的MAC,3.RA接收设备MAC:一般是BSSID,4.TA传输设备MAC:一般是repeater)

[To DS] [From DS] [Address 1]    [Address 2]  [Address 3] [Address 4]

   0        0        RA/DA         TA/SA         BSSID        n/a          一般为AP发送的管理帧,也就是信标帧,广播SSID的感觉

   0        1        RA/DA         TA/BSSID       SA          n/a          一般为从网络到客户的数据帧,DS返回client的帧

   1        0        RA/BSSID      TA/SA          DA          n/a          一般为从客户到网络的数据帧,client到DS的数据帧

   1        1        RA            TA             DA          SA           一般为在AP间中继的帧(repeater),有线到有线网络

Frame Types(management)

-Beacon(信标帧),proble request,proble response(探测帧,实际上就是一个SSID的请求帧,微软用的技术有点奇怪,广播无SSID的proble request)

-Authenticaion request,authentication response(认证)

-Association request,association response(关联)

-Deauthentication(清楚认证),reassociation request(清除关联),reassociation response(重认证,实际上是漫游)

-Announcement Traffic Indication Message(ATIM)-省电模式的一种激活帧,类似做一个stack,ap抓获了一些数据,到时候clinet复活以后再发回去

Frame Types(control)

Control:

-Request to send(RTS),clear to send(CTS),acknowledgement(ACK)

PS:b/g连用时候时候会用到RTS和CTS,还有一种是隐藏节点,有点类似于PVLAN的感觉,a/b/g是发个ack一个,n是block的ack

-Power Save Poll(PS-Poll)-client发的。。。省电模式结束后请求stack的数据帧

Data:

-Simple data

-Null function(empty frame)

802.11 Frame Speeds

beacon是以最低强制速率进行发送的,数据帧是按照最优速率发送,ack的确认帧是按照最优速率的低一个速率进行发送的

RTS,CTS,ACK的帧结构

RTS: FC[2] D[2] RA[6] TA[6] FCS[4]

CTS: FC[2] D[2] RA[6] FCS[4]

ACK: FC[2] D[2] RA[6] FCS[4]

WMN Enhancement(wireless multple network) 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息