802_11e
所属分类:网络
开发工具:tcl/tk
文件大小:4082KB
下载次数:15
上传日期:2012-05-15 14:52:14
上 传 者:
rajrehaan
说明: 802.11 script shows graph of packet loss and received
文件列表:
802_11e\perl-scripts\updown-link-thr.pl (958, 2004-03-05)
802_11e\perl-scripts\throughput.pl (859, 2004-03-06)
802_11e\perl-scripts\thr-one.pl (1180, 2004-03-05)
802_11e\perl-scripts\second-pf-run.pl (867, 2004-03-08)
802_11e\perl-scripts\second-difs-run.pl (939, 2004-03-07)
802_11e\perl-scripts\second-cwmin-run.pl (925, 2004-03-08)
802_11e\perl-scripts\packetloss.pl (619, 2004-03-06)
802_11e\perl-scripts\latency.pl (985, 2004-03-08)
802_11e\perl-scripts\first-part-run.pl (899, 2004-03-22)
802_11e\tcl-scripts\test.tcl (8151, 2004-03-22)
802_11e\tcl-scripts\test-ud.tcl (9165, 2004-03-08)
802_11e\ns2-changed-files\ns-default.tcl (41579, 2004-03-04)
802_11e\ns2-changed-files\mac-802_11.cc (57542, 2004-03-08)
802_11e\ns2-changed-files\mac-802_11.h (15945, 2004-03-04)
802_11e\ns2-changed-files\build_ns (96, 2004-03-26)
802_11e\ns2tools\drawnetwork.m (11607, 2007-09-28)
802_11e\ns2tools\example-networks.py (1485, 2006-01-13)
802_11e\ns2tools\example.py (550, 2005-11-15)
802_11e\ns2tools\example.txt (78, 2007-09-27)
802_11e\ns2tools\flowanalysis.py (13250, 2006-01-13)
802_11e\ns2tools\frange.py (1476, 2005-11-15)
802_11e\ns2tools\networks-test.py (7991, 2005-11-15)
802_11e\ns2tools\networks-timing.py (2664, 2005-11-15)
802_11e\ns2tools\networks.py (25935, 2006-06-16)
802_11e\ns2tools\ns2stats.py (14429, 2006-04-19)
802_11e\ns2tools\simple.tr (49152, 2012-05-10)
802_11e\ns2tools\stupidplot.py (9934, 2006-04-19)
802_11e\ns2tools\throughputOverTime.py (1820, 2005-11-15)
802_11e\ns2tools\simple.tcl~ (2330, 2012-05-10)
802_11e\ns2tools\simple.tcl (2330, 2012-05-10)
802_11e\ns2tools\flowanalysis.pyc (13450, 2012-05-10)
802_11e\ns2tools\frange.pyc (1800, 2012-05-10)
802_11e\ns2tools\packetloss.pl (619, 2012-05-10)
802_11e\ns2tools\packetloss.pl~ (619, 2012-05-10)
802_11e\out.tr (0, 2012-05-10)
802_11e\multi_udpflows.tcl (5887, 2011-12-24)
802_11e\CHANGELOG (731, 2006-08-22)
802_11e\d-tail.cc (4528, 2006-02-16)
802_11e\d-tail.h (3496, 2006-02-16)
802_11e\mac-802_11e.cc (46445, 2006-08-22)
... ...
Note:
*****
The model lacks the HCCA, any management
mechanisms like Association/Reassociation, Authentication /
Deauthentication. In addition, no superframe structure with Beacon
frames and no power-saving methods are supported (as in the original
ns-2 model).
The RTS/CTS mechanism, which is included in the legacy ns-802.11
model, has never been tested and verified. Therefore we do not
recommend to use RTS/CTS without reviewing the code in detail.
This model only works with ns-2.28. Several changes might be needed to
use it in combination with other ns versions.
Installation of MAC 802.11e EDCA-Code:
**************************************
1. please change into the directory ns-whatever/ns-x.y/mac/
2. copy the tgz file into this directory and extract it with:
tar -xvzf filename.tgz
3. changes to your Makefile.in in ns-whatever/ns-x.y/:
- add to INCLUDES:
-I./mac/802_11e
- add to OBJ_CC:
mac/802_11e/mac-802_11e.o mac/802_11e/priq.o
mac/802_11e/d-tail.o mac/802_11e/mac-timers_802_11e.o
- exclude in NS_TCL_LIB:
tcl/lib/ns-mobilenode.tcl \
- add to NS_TCL_LIB:
mac/802_11e/ns-mobilenode_EDCA.tcl \
mac/802_11e/priority.tcl \
4. changes to your ns-whatever/ns-x.y/tcl/lib/ns-lib.tcl:
- exclude from the source list:
source ns-mobilenode.tcl
- add to the source list:
source ../../mac/802_11e/ns-mobilenode_EDCA.tcl
source ../../mac/802_11e/priority.tcl
5. changes to your ns-whatever/ns-x.y/tcl/lib/ns-default.tcl:
- add:
Queue/DTail set drop_front_ false
Queue/DTail set summarystats_ false
Queue/DTail set queue_in_bytes_ false
Queue/DTail set mean_pktsize_ 500
Queue/DTail/PriQ set Prefer_Routing_Protocols 1
Queue/DTail/PriQ set Max_Levels 4
Queue/DTail/PriQ set Levels 4
Mac/802_11e set SlotTime_ 0.000020 ;# 20us
Mac/802_11e set SIFS_ 0.000010 ;# 10us
Mac/802_11e set PreambleLength_ 144 ;# 144 bit
Mac/802_11e set PLCPHeaderLength_ 48 ;# 48 bits
Mac/802_11e set PLCPDataRate_ 1.0e6 ;# 1Mbps
Mac/802_11e set RTSThreshold_ 3000 ;# bytes
Mac/802_11e set ShortRetryLimit_ 7 ;# retransmittions
Mac/802_11e set LongRetryLimit_ 4 ;# retransmissions
6. add to tcl/lan/ns-mac.tcl:
if [TclObject is-class Mac/802_11e] {
...
copy settings of MAC/802.11
(which are contained in this file) into this section
and at an "e" at the end of the "Mac/802_11" terms
...
Mac/802_11e set cfb_ 0 ;# disables CFB
}
7. mac/wireless-phy.h:
change
enum ChannelStatus {IDLE, RECV, SEND};
to
enum ChannelStatus {IDLE, RECVING, SENDING};
mac/wireless-phy.cc:
replace all occurences of RECV and SEND (by RECVING and SENDING).
8. common/packet.h:
add
#define HDR_MAC802_11E(p) ((hdr_mac802_11e *)hdr_mac::access(p))
9. run ./configure; make clean; make depend; make in your ns directory
10. happy simulating :o) (e.g with the example script ../ns-x/mac/802.11e/multi_udpflows.tcl)
Simulations with 802.11e EDCA
*****************************
- in your simulation script: After defining your transport_agent
% set transport_agent [new Agent/UDP]
,just add
% $your_transport_agent prio_ x
to give a certain flow a specific priority
(x between 0 and 3, 0 being the highest, 3 being the lowest priority).
- changes to 802.11e parameters (CW_MIN, CW_MAX, AIFS, TXOPLimit, PF) should be
made in ../ns-x/mac/802_11e/priority.tcl for each queue. Please rerun make afterwards.
- please set Mac/802_11e cfb_ to 1 (in tcl/lan/ns-mac.tcl) if you want to enable CFB in
your simulations. Rerun make afterwards.
近期下载者:
相关文件:
收藏者: