KEMBAR78
NWL Commands | PDF
0% found this document useful (0 votes)
13 views2 pages

NWL Commands

The document outlines a series of programming tasks and simulations using TCL and NS2, including creating multiplication tables, calculating factorials, and simulating wired and wireless networks with varying node counts. It also includes instructions for analyzing performance metrics using AWK scripts and creating a server-client application in Java. Each task specifies the necessary commands to execute the programs and simulations.

Uploaded by

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

NWL Commands

The document outlines a series of programming tasks and simulations using TCL and NS2, including creating multiplication tables, calculating factorials, and simulating wired and wireless networks with varying node counts. It also includes instructions for analyzing performance metrics using AWK scripts and creating a server-client application in Java. Each task specifies the necessary commands to execute the programs and simulations.

Uploaded by

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

question 2,3,4

2 To study basic of TCL. Write a program print multiplication table.

3 To study basic of TCL. Write a program to print factorial of a number.

4 To study basic of TCL. Write a program to print factors of a number.

tclsh exp3_1.tcl

question 5

To explore NS2 simulator and Simulation of Wired network using NS2 for

four nodes.

For install:- sudo apt-get install nam

Save as exp4.tcl

Run :- ns exp4.tcl

Question 6

Simulation of Wired network using NS2 for six nodes.

Save as exp5.tcl

Run :- ns exp5.tcl

nam wired.nam

question 7

Simulation of Wireless network using NS2 for six nodes.

Save as exp6.tcl

Run :- ns exp6.tcl

nam wireless.nam

question8

Analyze the performance metrics of the wireless network using AWK

script in NS2.

ns wireless.tcl

awk -f average_throu.awk wireless.tcl

awk -f instant_throu.awk wireless.tr

awk -f pdr.awk wireless.tr

awk -f resenergy.awk wireless.tr

awk -f instant_throu.awk wireless.tr>instant.txt

gnuplot
command for gnuplot terminal

plot “instant.txt” with linespoints

question 9

Server-Client Application using the Datagram Packet and Datagram

Socket classes.

javac UDPServerEx.java

java UDPServerEx

javac UDPClientEx.java

java UDPClientEx

question 10

To create a Socket to Display Message to a Single Client in Java.

javac GFG.java

java GFG

javac GFG1.java

java GFG1

You might also like