NS simulator for beginners
By: Eitan Altman, Tania Jiménez
Contributors: Jiménez, Tania
Series: Synthesis lectures on communication networks -- # 10
Publisher: Morgan & Claypool
Published: 2012
Place of publication: San Rafael, Calif. (1537 Fourth Street, San Rafael, CA 94901 USA)
Language: eng
Format: [electronic resource] /
Number of pages: 170
ISBN-13: 9781608456932; 9781608456925
Subjects: Computer networks; Computer simulation; TCP/IP (Computer network protocol)
Other titles: Synthesis digital library of engineering and computer science.
Description: NS-2 is an open-source discrete event network simulator which is widely used by both the research community as well as by the people involved in the standardization protocols of IETF. The goal of this book is twofold: on one hand to learn how to use the NS-2 simulator, and on the other hand, to become acquainted with and to understand the operation of some of the simulated objects using NS-2 simulations. The book is intended to help students, engineers or researchers who need not have much background in programming or who want to learn through simple examples how to analyse some simulated objects using NS-2. Simulations may differ from each other in many aspects: the applications, topologies, parameters of network objects (links, nodes) and protocols used, etc. The first chapter 1 is a general introduction to the book, where the importance of NS-2 as a tool for a good comprehension of networks and protocols is stated. In the next chapters (4, 5, 6, 7, 8 and 9) we present special topics as TCP, RED, etc., using NS-2 as a tool for better understanding the protocols. We provide in the appendices a review of Random Variables A and Confidence Intervals B, as well as a first sketch for using the new NS-3 simulator C.
Notes: Part of: Synthesis digital library of engineering and computer science.

Series from website.

Includes bibliographical references (p. 163-167).

Abstract freely available; full-text restricted to subscribers or individual document purchasers.

Also available in print.

Mode of access: World Wide Web.

System requirements: Adobe Acrobat Reader.

Title from PDF t.p. (viewed on January 12, 2012).
Table of contents: title: 1. Introduction; title: 1.1 NS-2 as a tool for designing internet protocols; title: 1.2 NS-2, NS-3 and other simulators; title: 1.3 Further background on NS-2 simulator; title: 1.4 Tcl and Otcl programming; title: 2. NS-2 simulator preliminaries; title: 2.1 Initialization and termination; title: 2.2 Definition of a network of links and nodes; title: 2.3 Agents and applications; title: 2.3.1 FTP over TCP; title: 2.3.2 CBR over UDP; title: 2.3.3 UDP with other traffic sources; title: 2.4 Scheduling events in NS-2; title: 2.5 Visualisation using nam; title: 2.6 Tracing; title: 2.6.1 Tracing objects; title: 2.6.2 Structure of trace files; title: 2.6.3 Tracing a subset of events; title: 2.7 Random variables; title: 2.7.1 Seeds and generators; title: 2.7.2 Creating random variables in NS-2; title: 3. How to work with trace files; title: 3.1 Processing data files with awk; title: 3.2 Using grep; title: 3.3 Processing data files with perl; title: 3.4 Plotting with gnuplot; title: 3.5 Plotting with xgraph; title: 3.6 Extracting information within a tcl script; title: 4. Description and simulation of TCP/IP; title: 4.1 Description of TCP; title: 4.1.1 Objectives of TCP and window flow control; title: 4.1.2 Acknowledgements; title: 4.1.3 Dynamic congestion window; title: 4.1.4 Losses and a dynamic threshold Wth; title: 4.1.5 Initiating a connection; title: 4.2 Tracing and analysis of example ex1.tcl; title: 4.3 TCP over noisy links and queue monitoring; title: 4.4 Creating many connections with random features; title: 4.5 Short TCP connections; title: 4.6 Advanced monitoring tools; title: 4.7 Exercises; title: 5. Routing and network dynamics; title: 5.1 Unicast routing; title: 5.2 Network dynamics; title: 5.3 Multicast protocols; title: 5.3.1 The dense mode; title: 5.3.2 Routing based on a RV point; title: 5.4 Simulating multicast routing; title: 5.4.1 DM mode; title: 5.4.2 Routing with a centralized RV point; title: 5.5 Observations on the simulation of pimdm.tcl; title: 5.6 Exercises; title: 6. RED: random early discard; title: 6.1 Description of RED; title: 6.2 Setting RED parameters in NS-2; title: 6.3 Simulation examples; title: 6.3.1 Drop tail buffer; title: 6.3.2 RED buffer with automatic parameter configuration; title: 6.3.3 RED buffer with other parameters; title: 6.4 Monitoring flows; title: 6.5 Exercises; title: 7. Differentiated services; title: 7.1 Description of assured forwarding Diffserv; title: 7.2 MRED routers; title: 7.2.1 General description; title: 7.2.2 Configuration of MRED in NS-2; title: 7.2.3 TCL querying; title: 7.3 Defining policies; title: 7.3.1 Description; title: 7.3.2 Configuration; title: 7.3.3 TCL querying; title: 7.4 Simulation of diffserv: protection of vulnerable packets; title: 7.4.1 The simulated scenario; title: 7.5 Simulation results; title: 7.6 Discussions and conclusions; title: 7.7 Exercises; title: 8. Mobile networks and wireless local area networks; title: 8.1 The routing algorithms; title: 8.1.1 Destination sequenced distance vector - DSDV; title: 8.1.2 Ad-hoc on demand distance vector - AODV; title: 8.1.3 Dynamic source routing - DSR; title: 8.1.4 Temporally ordered routing algorithm - TORA; title: 8.2 Simulating mobile networks; title: 8.2.1 Simulation scenario; title: 8.2.2 Writing the TCL script; title: 8.3 Trace format; title: 8.4 Analysis of simulation results; title: 8.5 Comparison with other ad-hoc routing; title: 8.5.1 TCP over DSR; title: 8.5.2 TCP over AODV; title: 8.5.3 TCP over TORA; title: 8.5.4 Some comments; title: 8.6 The interaction of TCP with the MAC protocol; title: 8.6.1 Background; title: 8.6.2 The simulated scenario; title: 8.6.3 Simulation results; title: 8.7 Exercises; title: 9. Classical queueing models; title: 9.1 Simulating an M/M/1, M/D/1 and D/M/1 queues; title: 9.2 Finite queue; title: 9.3 Exercises; title: 10. Tcl and C++ linkage; title: A. Appendix I: Random variables: background; title: B. Appendix II: Confidence intervals; title: C. Appendix III: A small overview on NS-3; title: C.1 Initialization and termination in NS-3; title: C.2 Definition of a network topology in NS-3; title: C.3 Transport Protocols and Applications in NS-3; title: C.4 Scheduling events in NS-3; title: C.5 Tracing in NS-3; title: C.6 Creating Random Variables in NS-3; title: C.7 Short overview of TCP in NS-3; title: C.8 Simulating classical queueing models in NS-3; title: Bibliography; title: Authors' Biographies.