0% found this document useful (0 votes)
31 views3 pages

Experiment - 4: OBJECTIVE: IEEE 802.11 Implementation in ns-2 LAN Connection. APPARATUS: NS2 Software Theory

The document discusses using the NS2 simulator to model a local area network (LAN) connection. It explains that NS2 can simulate link layer protocols, MAC protocols, and physical channels. It provides the command to define a LAN in NS2, which takes 7 arguments to specify the nodes in the group, delay, bandwidth, link layer type, interference queue, MAC type, and channel type. The procedure describes opening a terminal, writing an NS2 script in a .tcl file, saving and running it with ns2, and viewing the output in the .nam file. The learning outcome is how to set up LAN connections and share data/resources in NS2 simulations.

Uploaded by

Dhruv Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views3 pages

Experiment - 4: OBJECTIVE: IEEE 802.11 Implementation in ns-2 LAN Connection. APPARATUS: NS2 Software Theory

The document discusses using the NS2 simulator to model a local area network (LAN) connection. It explains that NS2 can simulate link layer protocols, MAC protocols, and physical channels. It provides the command to define a LAN in NS2, which takes 7 arguments to specify the nodes in the group, delay, bandwidth, link layer type, interference queue, MAC type, and channel type. The procedure describes opening a terminal, writing an NS2 script in a .tcl file, saving and running it with ns2, and viewing the output in the .nam file. The learning outcome is how to set up LAN connections and share data/resources in NS2 simulations.

Uploaded by

Dhruv Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

EXPERIMENT 4

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

You might also like