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
Nokia Firewall, VPN, and IPSO Configuration Guide Rating: 0 out of 5 stars0 ratingsIPv6 Socket API Extensions: Programmer's Guide Rating: 0 out of 5 stars0 ratingsCacti 0.8 Network Monitoring Rating: 0 out of 5 stars0 ratingsOpenVX Programming Guide Rating: 0 out of 5 stars0 ratingsEmbedded Systems: ARM Programming and Optimization Rating: 0 out of 5 stars0 ratingsDiffuse Algorithms for Neural and Neuro-Fuzzy Networks: With Applications in Control Engineering and Signal Processing Rating: 0 out of 5 stars0 ratingsTcl Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsBeagleBone Essentials Rating: 0 out of 5 stars0 ratingsStorm Applied: Strategies for real-time event processing Rating: 0 out of 5 stars0 ratingsMicroelectronic Systems N3 Checkbook Rating: 0 out of 5 stars0 ratingsOpa Application Development Rating: 0 out of 5 stars0 ratingsNetwork Latency and Bandwidth Second Edition Rating: 0 out of 5 stars0 ratingsLearning SaltStack Rating: 4 out of 5 stars4/5Microelectronic Systems 3 Checkbook Rating: 0 out of 5 stars0 ratingsPolicy-Based Network Management: Solutions for the Next Generation Rating: 3 out of 5 stars3/5Network Designs A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsWireless Sensor Networks Rating: 0 out of 5 stars0 ratingsOpenCV Essentials Rating: 0 out of 5 stars0 ratingsDeploying IP and MPLS QoS for Multiservice Networks: Theory and Practice Rating: 0 out of 5 stars0 ratingsDesign Patterns in Modern C++: Reusable Approaches for Object-Oriented Software Design Rating: 0 out of 5 stars0 ratingsRed Hat Ansible A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsCacti 0.8 Beginner's Guide Rating: 0 out of 5 stars0 ratingsApplication-Specific Integrated Circuit ASIC A Complete Guide Rating: 0 out of 5 stars0 ratingsFrom GSM to LTE-Advanced Pro and 5G: An Introduction to Mobile Networks and Mobile Broadband Rating: 0 out of 5 stars0 ratingsPrivate 5G: A Systems Approach Rating: 0 out of 5 stars0 ratingsIP Multimedia Subsystem A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsOpenFlow Cookbook Rating: 5 out of 5 stars5/5GPU-based Parallel Implementation of Swarm Intelligence Algorithms Rating: 0 out of 5 stars0 ratingsNokia Network Security Solutions Handbook Rating: 0 out of 5 stars0 ratings
Children's Technology For You
Cathedral: The Story of Its Construction Rating: 4 out of 5 stars4/5The Day the Screens Went Blank Rating: 5 out of 5 stars5/5Mrs. Frisby and the Rats of Nimh 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: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5Diary of an 8-Bit Warrior: From Seeds to Swords: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5How to Survive Without Grown-Ups Rating: 4 out of 5 stars4/5Minecraft: Masters of Minecraft - The Awakening Rating: 4 out of 5 stars4/5Fallout: A Tale of Mutation Rating: 5 out of 5 stars5/5Electricity - Your Common Sense Guide Rating: 4 out of 5 stars4/5TBH #1: TBH, This Is So Awkward Rating: 3 out of 5 stars3/5Spectrum Science, Grade 3 Rating: 5 out of 5 stars5/5Spaced Out Rating: 5 out of 5 stars5/5Escape from a Video Game: Mystery on the Starship Crusader 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/5Diary of an 8-Bit Warrior: Crafting Alliances: An Unofficial Minecraft Adventure Rating: 5 out of 5 stars5/5Hilarious Jokes for Minecrafters: Mobs, Creepers, Skeletons, and More Rating: 1 out of 5 stars1/5Escape from a Video Game: The Secret of Phantom Island Rating: 5 out of 5 stars5/5How Do Electric Motors Work? Physics Books for Kids | Children's Physics Books Rating: 0 out of 5 stars0 ratingsProject Superhero Rating: 4 out of 5 stars4/5The Revenge of Clayface 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/5Circuitry and Electronics Rating: 0 out of 5 stars0 ratingsMinecraft: Masters of Minecraft - The Invasion Rating: 5 out of 5 stars5/5Quest for the Golden Apple: An Unofficial Graphic Novel for Minecrafters Rating: 5 out of 5 stars5/5The Everything Kids' Scratch Coding Book: Learn to Code and Create Your Own Cool Games! Rating: 4 out of 5 stars4/5Diary of an 8-Bit Warrior: Forging Destiny: An Unofficial Minecraft Adventure 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