Experiment - 4: OBJECTIVE: IEEE 802.11 Implementation in ns-2 LAN Connection. APPARATUS: NS2 Software Theory
Experiment - 4: OBJECTIVE: IEEE 802.11 Implementation in ns-2 LAN Connection. APPARATUS: NS2 Software Theory
OBJECTIVE: IEEE 802.11 implementation in ns-2 LAN connection. APPARATUS: NS2 software THEORY : NS simulator simulates the levels related to local area network : link layer protocals such as ARQ (Automatic repeat request) , MAC protocol (Ethernet or token ring) and physical channel . The best way to define a LAN through which a group of nodes is connected is by command. Set lan [$ns newLan <arguments>] There are seven arguments : 1. 2. 3. 4. 5. 6. 7. Group of nodes ex. $n3 $n4 $n5 The delay The bandwidth A link layer type(eg TTL) The interference queue , ex QueueDropTail, The MAC type (MAC/Csma/cd or MAC /802_3) The channel type (eg .chaanel)
PROCEDURE: Open Terminal window. Make a .tcl file with help of gedit. Type the program. Save in current directory. Compile and Run the program on terminal by typing ns2 followed by file _name.tcl. For the output see .nam file.
CODE :
OUTPUT :
LEARNING OUTCOME : We learnt how to share data and resources connections. in LAN connection and how to set LAN