NS2.35中的802.11

时间:2017-05-20 15:34:03

标签: ns2 802.11 wireless-connection

如何在单次模拟中运行/模拟不同的802.11标准? 示例:802.11b和802.11g在单次模拟中运行/模拟。

我需要进行任何特殊配置吗?

1 个答案:

答案 0 :(得分:0)

Google,ns2 802.11b和802.11g https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=ns2+802.11b+and+802.11g

示例http://network-simulator-ns-2.7690.n7.nabble.com/802-11g-b-implementation-in-NS2-td26003.html

set opt(chan)           Channel/WirelessChannel    ;# channel type
set opt(prop)           Propagation/TwoRayGround   ;# radio-propagation model
set opt(netif)          Phy/WirelessPhy            ;# network interface type
set opt(mac)            Mac/802_11                 ;# MAC type
set opt(ifq)            Queue/DropTail/PriQueue    ;# interface queue type
set opt(ll)             LL                         ;# link layer type
set opt(ant)            Antenna/OmniAntenna        ;# antenna model
set opt(ifqlen)         50                         ;# max packet in ifq
set opt(adhocRouting)   DSDV                       ;# routing protocol
...

Mac/802_11 set SlotTime_          0.000020        ;# 20us
Mac/802_11 set SIFS_              0.000010        ;# 10us
Mac/802_11 set PreambleLength_    144             ;# 144 bit
Mac/802_11 set PLCPHeaderLength_  48              ;# 48 bits
Mac/802_11 set PLCPDataRate_      1.0e6           ;# 1Mbps
Mac/802_11 set dataRate_          11.0e6          ;# 11Mbps
Mac/802_11 set basicRate_         1.0e6           ;# 1Mbps
Mac/802_11 set RTSThreshold_      3000            ;# Use RTS/CTS for packets larger 3000 bytes

在一个模拟中有一些使用多种MAC类型的例子:NIST-MOB

    # Topology scenario:
    #
    #                                   bstation802(3.0.0)->)
    #                                   /
    #                                  /      
    # router0(1.0.0)---router1(2.0.0)-----------bstation80216(4.0.0)          +------------------------------------+
    #                                  \                                  + iface1:802.11(3.0.1)|              |
    #                                   \                                     +---------------------+ MutiFaceNode |
    #                                   rnc(0.0.0)                            + iface0:UMTS(0.0.2)  |  (5.0.0)     |
    #                                      |                                  +---------------------+              |
    #                                 bstationUMTS(0.0.1)->)              + iface2:80216(4.0.0) |              |    
    #                                     +---------------------|          |
    #                                     + iface:LTE(0.0.3)    |          |    
    #                                             +---------------------+--------------+    
    # 1 Multiface node.
.    
.
.   
        # 802.11    
      Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1 set cost80211_   [lindex $argv 3]
      Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1 set energy80211_ [lindex $argv 4]

    #802.16
      Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1 set cost80216_   [lindex $argv 5] 
      Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1 set energy80216_ [lindex $argv 6]
      Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover1 set PER80216_ [lindex $argv 7]

INFO http://www.linuxquestions.org/questions/tags/nist-mob/