802.11n HT模式配置说明

802.11n的HT一共有如下4种模式。

1.      HT20

2.      HT40

3.      HT20/40-20MHz

4.      HT20/40-40MHz


使用hostapd配置802.11nAP时有个选项为ht_capab

说明如下:

# ht_capab: HT capabilities (list of flags)
# LDPC coding capability: [LDPC] = supported
# Supported channel width set: [HT40-] = both 20 MHz and 40 MHz with secondary
# channel below the primary channel; [HT40+] = both 20 MHz and 40 MHz
# with secondary channel above the primary channel
# (20 MHz only if neither is set)
# Note: There are limits on which channels can be used with HT40- and
# HT40+. Following table shows the channels that may be available for
# HT40- and HT40+ use per IEEE 802.11n Annex J:
# freq HT40- HT40+
# 2.4 GHz 5-13 1-7 (1-9 in Europe/Japan)
# 5 GHz 40,48,56,64 36,44,52,60
# (depending on the location, not all of these channels may be available
# for use)
# Please note that 40 MHz channels may switch their primary and secondary
# channels if needed or creation of 40 MHz channel maybe rejected based
# on overlapping BSSes. These changes are done automatically when hostapd
# is setting up the 40 MHz channel.
# Spatial Multiplexing (SM) Power Save: [SMPS-STATIC] or [SMPS-DYNAMIC]
# (SMPS disabled if neither is set)
# HT-greenfield: [GF] (disabled if not set)
# Short GI for 20 MHz: [SHORT-GI-20] (disabled if not set)
# Short GI for 40 MHz: [SHORT-GI-40] (disabled if not set)
# Tx STBC: [TX-STBC] (disabled if not set)
# Rx STBC: [RX-STBC1] (one spatial stream), [RX-STBC12] (one or two spatial
# streams), or [RX-STBC123] (one, two, or three spatial streams); Rx STBC
# disabled if none of these set
# HT-delayed Block Ack: [DELAYED-BA] (disabled if not set)
# Maximum A-MSDU length: [MAX-AMSDU-7935] for 7935 octets (3839 octets if not
# set)
# DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set)
# 40 MHz intolerant [40-INTOLERANT] (not advertised if not set)

# L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set)


这里主要说明一下主通道和次通道的关系:

1,HT20和HT40的选择,

802.11n有两种频宽模式:HT(High Throughput)20和HT40。

HT20是出于兼容性考虑:比如,一个区域内存在802.11b/g信号,那么为了尽量减少对它们的干扰,需要设定为HT20,以减少频带的重叠。

2,HT40是出于高性能考虑:HT40将两个相邻的20MHz信道捆绑在一起形成一个40MHz的信道,一个是主,一个是辅。主信道发送beacon报文和部分数据报文,辅信道发送其他报文。

若捆绑两个相邻的20MHz信道时,辅助20MHz带宽的中心频率低于主信道的中心频率,则为plus,反之则为minus。

这里的plus和minus都是针对主信道说的,所以802.11n/a_ht40plus代表40M频宽时的2个信道叠加向上加的叠加,例如当前信道是149,配成40M频宽需要叠加另外一个信道,就是149+153两个信道组成的40MHz频宽,149plus表示40MHz信道是由中心频率149所在的20MHz信道,加上中心频率153所在的20MHz信道捆绑结合,802.11n/a_ht40minus代表信道叠加时是向下减的叠加,例如配了这个,信道161,就等于是161+157组成了40M频宽的新信道。

802.11g也如a是一样的意思,只不过。由于802.11g只有1、6、11这3个信道,所以使用40M频宽的信道时只剩下了一个不重叠信道,在一个蜂窝式无线覆盖区域最好不要在2.4GHz使用,最好在5GHz使用。在2.4G使用HT40,则有效通道有3~13,非重叠的只有3,11.所以在使用802.11ng时,不建议使用40MHz的频宽,使用默认的20MHz频宽即可。

再来看看5GHz频段,包含5150MHz-5825MHz的无线电频段,一共拥有201个信道,但能用的确实不多,特别是在我国,仅有5个信道(149,153,157,161,165)可用。考虑到信道就是无线数据的传输通道,也就是说,在人员密集的情况下,5个信道的体验效果肯定会受影响;不过目前来看,支持5GHz频段的设备并不多,因此目前还看不到影响(未来或许也会开放更多信道)。

注意:

HT40的双通道配置需要注意以下规律。

int allowed[] = { 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157, 184, 192 };

HT40-:次通道低于主通道:所选的通道对应的次通道必须为allowed中的数据

HT40+:次通道高于主通道:所选的通道必须为allowed中的数据

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值