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