Jartel, Sukiswo Sukiswo sukiswok@yahoo.com NS2 Sukiswo sukiswok@yahoo.com Jartel, Sukiswo
Pendahuluan Pengenalan NS2 Instalasi NS2 Simulasi dgn NS2 Trace File Network Animator Jartel, Sukiswo
What is ns? A discrete event, packet-level simulator Targeted at networking research Supports the simulation of intserv/diffserv, Multicast, Transport, Applications, Wireless (fixed, mobile, satellite) REAL variant (1989)DARPA (LBL, Xerox PARC, UCB, and USC/ISI) (1995) Currently; DARPA; NSF; collaboration with researchers: ACIRI, UCB Daedelus, CMU, Sun Microsystems, NORTEL, Cisco, Me! Jartel, Sukiswo
Status ns-2 Platforms 100K lines of C++ 70K lines of OTcl 50K+ lines of test suite, examples, docs Platforms Most UNIX and UNIX-like systems (FreeBSD, Linux, Sun Solaris) Window 95/98/NT (rocky) (Emulation only for FreeBSD for now) Jartel, Sukiswo
Resources http://www.isi.edu/nsnam/ns Installed on all machines in High Throughput Lab (EE/CSE 365) add to .cshrc: setenv TCL_LIBRARY /condor/ns-allinone-2.1b7a/tcl8.3.2 ns-users@isi.edu ns-users-request@isi.edu “subscribe ns-users” in body Archive: http://www.isi.edu/nsnam/ns Jartel, Sukiswo
Documentation Tcl (Tool Command Language) OTcl (MIT Object Tcl) http://dev.scriptics.com/scripting OTcl (MIT Object Tcl) ~otcl/doc/tutorial.html (in distribution) ns manual Included in distribution: ~ns/doc http://www.isi.edu/~salehi/ns_doc.ps.gz Jartel, Sukiswo
Remember! A simulator model of a real-world system is necessarily a simplification. For example, in simulating TCP No SYN/FIN Equal size segments No variable window advertisement Bugs: “Users of ns are responsible for verifying for themselves that their simulations are not invalidated by bugs”. Jartel, Sukiswo
Instalasi NS2 Install Linux (Red Hat atau Fedora) atau Cygwind Download NS2 (gunakan 2.29.3) Taruh ns-allinone-2.29.3.tgz di folder /root Ekstrak dg perintah tar xvfz ns-allinone-2.29.3.tgz Menuju folder /root/ns-allinone-2.29 Install NS dg perintah : ./install Validasi dg perintah : ./validate (opsional) Jartel, Sukiswo
Instalasi NS2 Setting PATH dg cara : Jalankan contoh NS2 dg cara : Buka file profile di folder /etc/profile Tambahkan : Jalankan contoh NS2 dg cara : Masuk folder /root/ns-allinone-2.29/ns-229/tcl/ex Simulasikan simple.tcl dg perintah ns simple.tcl Jartel, Sukiswo
Jartel, Sukiswo