Network Simulator-3 (N S-3) practical Lab Manual
()
About this ebook
"Late Bhausaheb Hiray S.S. Trust was established by Dr. Baliramji Hiray (ex-Education Minister Government of Maharashtra) in 1977, with the sole view of providing quality Education to the people of Maharashtra. It is a charitable trust with leading social workers, philanthropists, and doctors as members. With various courses to cater to multiple segments of urban and rural people, all provided at a reasonable cost, these colleges are spread over Mumbai, Nasik and Malegaon, offering several educational courses/ programme for over 10,000 students. The Institute of Computer Application started the M.C.A. programme in year 2001 with prior approval from the AICTE and affliation with University of Mumbai. All students are selected based on the Common Entrance Test (CET) score covering topics on aptitude and computer concepts conducted by the CET Cell of the Government of Maharashtra and the Directorate of Technical Education (DTE) of Maharashtra. It is a 2-year full time postgraduate course open to graduates of any field with Mathematics (10+2 level). Divided into 4 semesters, the course includes a full time 6-month internship IT industry as the last semester. Other titles available by the Institute of Computer Application 1. Advance Java Practical Journal 2. Artificial Intelligence and Machine Learning 3. Data Mining and Business Intelligence Lab Manual 4. Ethical Hacking Lab Manual 5. Internet of Things Lab Manual 6. Distributed System and Cloud Computing Lab Manual 7. Big Data and Visualization 8. Blockchain & Solidity Program Lab Manual 9. Web Technology with Node js, Angular js and MySQL
Related to Network Simulator-3 (N S-3) practical Lab Manual
Related ebooks
Wireless Sensor Networks Rating: 0 out of 5 stars0 ratingsNetwork Slicing The Ultimate Step-By-Step Guide Rating: 0 out of 5 stars0 ratingsMassive MIMO A Complete Guide Rating: 0 out of 5 stars0 ratingsBackhauling / Fronthauling for Future Wireless Systems Rating: 0 out of 5 stars0 ratingsUnderstanding UMTS Radio Network Modelling, Planning and Automated Optimisation: Theory and Practice Rating: 0 out of 5 stars0 ratingsReal Time Operating System A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsCISCO PACKET TRACER LABS: Best practice of configuring or troubleshooting Network Rating: 0 out of 5 stars0 ratingsPython Networking 101: Navigating essentials of networking, socket programming, AsyncIO, network testing, simulations and Ansible Rating: 0 out of 5 stars0 ratingsEvaluation of Some Intrusion Detection and Vulnerability Assessment Tools Rating: 0 out of 5 stars0 ratingsEvaluation of Some Windows and Linux Intrusion Detection Tools Rating: 0 out of 5 stars0 ratingsOverview of Some Windows and Linux Intrusion Detection Tools Rating: 0 out of 5 stars0 ratingsRaspberry Pi: Amazing Projects from Scratch Rating: 0 out of 5 stars0 ratingsTensorFlow Developer Certificate Exam Practice Tests 2024 Made Easy Rating: 0 out of 5 stars0 ratingsPYTHON FOR BEGINNERS: A Comprehensive Guide to Learning Python Programming from Scratch (2023) Rating: 0 out of 5 stars0 ratingsConfiguration of a Simple Samba File Server, Quota and Schedule Backup Rating: 0 out of 5 stars0 ratingsBuilding Telephony Systems with OpenSER Rating: 0 out of 5 stars0 ratingsConfiguration of a Simple Samba File Server, Quota and Schedule Backup Rating: 0 out of 5 stars0 ratingsLearning Nagios - Third Edition Rating: 0 out of 5 stars0 ratingsAdvanced Penetration Testing for Highly-Secured Environments: The Ultimate Security Guide Rating: 5 out of 5 stars5/5Some Tutorials in Computer Networking Hacking Rating: 0 out of 5 stars0 ratingsreStructuredText for Sphinx Rating: 0 out of 5 stars0 ratingsAdvanced Penetration Testing for Highly-Secured Environments - Second Edition Rating: 0 out of 5 stars0 ratingsLearning NAGIOS 3.0 Rating: 0 out of 5 stars0 ratingsPython-Deprecated Library v1.1 Documentation Rating: 0 out of 5 stars0 ratingsA Practical Guide Wireshark Forensics Rating: 5 out of 5 stars5/5Hack into your Friends Computer Rating: 0 out of 5 stars0 ratingsHiding Web Traffic with SSH: How to Protect Your Internet Privacy against Corporate Firewall or Insecure Wireless Rating: 0 out of 5 stars0 ratingsCisco Packet Tracer Implementation: Building and Configuring Networks: 1, #1 Rating: 0 out of 5 stars0 ratingsNode.js: Tools & Skills Rating: 0 out of 5 stars0 ratingsGNS3 Network Simulation Guide Rating: 0 out of 5 stars0 ratings
Children's Technology For You
How to Survive Without Grown-Ups Rating: 4 out of 5 stars4/5George's Secret Key to the Universe Rating: 4 out of 5 stars4/5Spaced Out Rating: 5 out of 5 stars5/5The Day the Screens Went Blank Rating: 5 out of 5 stars5/5Diary of an 8-Bit Warrior: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5Fallout: A Tale of Mutation Rating: 0 out of 5 stars0 ratingsMrs. Frisby and the Rats of Nimh Rating: 4 out of 5 stars4/5Quest for the Golden Apple: An Unofficial Graphic Novel for Minecrafters Rating: 5 out of 5 stars5/5Minecraft: Masters of Minecraft - The Awakening Rating: 4 out of 5 stars4/5Summary of Project Hail Mary: by Andy Weir - A Comprehensive Summary Rating: 0 out of 5 stars0 ratingsDiary of an 8-Bit Warrior: From Seeds to Swords: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5Diary of an 8-Bit Warrior: Crafting Alliances: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5Electricity - Your Common Sense Guide Rating: 4 out of 5 stars4/5Cathedral: The Story of Its Construction Rating: 4 out of 5 stars4/5Airplanes Rating: 0 out of 5 stars0 ratingsJokes for Minecrafters: Booby Traps, Bombs, Boo-Boos, and More Rating: 0 out of 5 stars0 ratingsSpectrum Science, Grade 3 Rating: 5 out of 5 stars5/5Masterminds: Criminal Destiny Rating: 5 out of 5 stars5/5The Renaissance Artists: With History Projects for Kids Rating: 5 out of 5 stars5/5Trapped in a Video Game: The Final Boss Rating: 5 out of 5 stars5/5Building with Virtual LEGO: Getting Started with LEGO Digital Designer, LDraw, and Mecabricks Rating: 0 out of 5 stars0 ratingsEscape from a Video Game: The Secret of Phantom Island Rating: 5 out of 5 stars5/5Diary of an 8-Bit Warrior: Path of the Diamond: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5Escape from a Video Game: Mystery on the Starship Crusader Rating: 5 out of 5 stars5/5Ghost Island and the Mystery of Charmander: An Unofficial Adventure for Pokémon GO Fans Rating: 5 out of 5 stars5/5Ellie, Engineer Rating: 5 out of 5 stars5/5Make Your Own Amazing YouTube Videos: Learn How to Film, Edit, and Upload Quality Videos to YouTube Rating: 5 out of 5 stars5/5
Reviews for Network Simulator-3 (N S-3) practical Lab Manual
0 ratings0 reviews
Book preview
Network Simulator-3 (N S-3) practical Lab Manual - Vikram Patalbansi
NETWORK SIMULATOR-3 (NS-3) PRACTICAL LAB MANUAL
NETWORK SIMULATOR-3 (NS-3) PRACTICAL LAB MANUAL
LATE BHAUSAHEB HIRAY S.S. TRUST’S INSTITUTE OF COMPUTER APPLICATION, BANDRA, EAST MUMBAI-51
Author: Vikram Patalbansi
Faculty, Master of Computer Application (M.C.A.)
Late Bhausaheb Hiray S.S. Trust’s Institute of Computer Application
First Edition, 2023
Copyright © Late Bhausaheb Hiray S.S. Trust’s Institute of Computer Application, Bandra (E), Mumbai-51, 2023
All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the author, except in the case of brief quotations embodied in critical reviews and certain other non-commercial uses permitted by copyright law. For permission requests, write to the publisher at the address below.
This book can8.504 ptbe exported from India only by the publishers or by the authorized suppliers. Infringement of this condition of sale will lead to Civil and Criminal prosecution.
Paperback ISBN: 978-81-19221-78-3
eBook ISBN: 978-81-19221-82-0
WebPDF ISBN: 978-81-19221-80-6
Note: Due care and diligence has been taken while editing and printing the book; neither the author nor the publishers of the book hold any responsibility for any mistake that may have inadvertently crept in.
The publishers shall not be liable for any direct, consequential, or incidental damages arising out of the use of the book. In case of binding mistakes, misprints, missing pages, etc., the publishers’ entire liability, and your exclusive remedy, is replacement of the book within one month of purchase by similar edition/reprint of the book.
Printed and bound in India by
16Leaves
2/579, Singaravelan Street
Chinna Neelankarai
Chennai – 600 041, India
info@16leaves.com
www.16Leaves.com
Call: 91-9940638999
Contents
Practical 1Installation of Ubuntu and NS3
Practical 2List of Packages for Installing NS-3 in Ubuntu/Mint Systems
Practical 3Steps for Installing NetAnim and Wireshark Simulator
Practical 4Configure NetAnim Simulator
Practical 5Conceptual Explanations of NS3 code
Practical 6Experiment Specific Instructions
Practical 7Default Network Topology (Point-to-Point)
Practical 8Program to simulate Hybrid Topology (Point-to-Point + Bus Topology)
Practical 9Program to Simulate Hybrid LAN with Wi-Fi
Practical 10Program to Simulate Star Topology
Practical 11Program to simulate UDP Server – Client communication.
Practical 12Program to simulate Bus Topology using UDP Protocol
Practical 13Program to Simulate Wireless Wi-Fi Network.
Practical 14Program to simulate WiMAX wireless network.
Practical 15Program to simulate IEEE 802.11 Wi-Fi Manager Nodes
Practical 16Program to Simulate Wi-Fi nodes
Program 17Program to Simulator Grid-Topology
Practical 18Program to Simulate Hybrid Topology
Program 19Program to simulator Mesh Topology
Practical 20Program to Simulate handover in Mesh Topology
Program 21Program to simulate FTP using TCP protocol.
Program 22Program to simulate DHCP server and n clients.
Practical 1: Installation of Ubuntu and NS3
Networking with Linux
In this we are going to learn network topology logical working using NS-3 and Wireshark simulator.
This simulator nothing but software model in analogus to hardware working of network.
For. Transmission of Packet over Network node shown in NS-3 GUI window.
To download NS-3 refer below website https://www.nsnam.org/
https://www.nsnam.org/Step 1.
On Ubuntu Terminal type command
sudo apt update
Step 2. After fetching latest package install it command is
sudo apt install
Step 3. After installation upgrade Ubuntu command is
sudo apt upgrade
Step 4. To Install C++ complier in Ubuntu then follows following command
sudo apt-get install build-essential
Step 5: To install Python compiler use following command sudo apt-get install python python-dev
Step 6: To install Mercurial means animation and NS3 supported package use following commands
sudo apt-get install mercurial
Step 7: To unzip file install supported package command is
sudo apt-get install bzr
Step 8: to install TCPDUMP for pcap trace file reading support use following command
sudo apt-get install tcpdump
Step 9: to Generate XML supported file to be readble file external simulator API use the following command
sudo apt-get install libxml2 libxml2-dev
Step 10: Unzip the NS3 package we have command
tar xjf ns-allinone3.32.tar.bz2
Step 11: To compile all the package in ns-3.32 execute following command
./waf configure --enable-examples –enable-tests
Step 12: To run our simulator then every classess must be compile. Use the following command
./waf –-run hello-simulator
After executing above commands then output will Hello Simulator
then assume that all NS3 API are in executable code of Operating System.
$
$
$
$
$ cd
mkdir workspace cd workspace
wget https://www.nsnam.org/release/ns-allinone-3.32.tar.bz2
tar xjf ns-allinone-3.32.tar.bz2
Notice the use above of the wget utility, which is a command-line tool to fetch objects from the web; if you do not have this installed, you can use a browser for this step.
Following these steps, if you change into the directory ns-allinone-3.32, you should see a number of files and directories
$ cd ns-allinone-3.32
$ ls
bake constants.py
build.py netanim-3.108 ns-3.32
pybindgen-0.21.0 README
util.py
You are now ready to build the base ns-3 distribution and may skip ahead to the section on building ns-3.
Now go ahead and switch back to the debug build that includes the examples and tests.
$ ./waf clean
to compile all API classes use following commands
$ ./waf configure --build-profile=debug --enable-examples –enable-tests
if you don’t see the Hello Simulator
output, type the following:
$ ./waf configure --build-profile=debug --enable-examples –enable-tests
and ten type command
./waf configure –enables-examples
and
./waf --run hello-simulator
Practical 2: List of Packages for Installing NS-3 in Ubuntu/Mint Systems
Perquisite for installing NS3.32
1sudo apt upgrade
2Sudo apt update
3Minimal requirements for C++ users
apt-get install g++ python3
4Minimal requirements for Python API users
apt-get install g++ python3 python3-dev pkg-config sqlite3
5Netanim animator: qt5 development tools are needed for Netanim animator;
apt-get install qt5-default mercurial
6ns-3-pyviz visualizer
apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python- pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3
7Debugging:
8apt-get install gdb valgrind
9Doxygen and related inline documentation:
apt-get install doxygen graphviz imagemagick
apt-get install texlive texlive-extra-utils texlive-latex-extra texlive-font-utils dvipng latexmk
10 The ns-3 manual and tutorial are written in reStructuredText for Sphinx (doc/tutorial, doc/manual, doc/models), and figures typically in dia (also needs the texlive packages above):
apt-get install python3-sphinx dia
11 To read pcap packet traces
apt-get install tcpdump
12 Support for generating modified python bindings
apt-get install cmake libc6-dev libc6-dev-i386 libclang-6.0-dev llvm-6.0-dev automake python3-pip
python3 -m pip install -- user cxxfilt
After installing the required