1. Homepage
  2. Homework
  3. CS6027 Advanced Computer Networking - Introduction to Network Simulator 2 (NS2)
This question has been solved

CS6027 Advanced Computer Networking - Introduction to Network Simulator 2 (NS2)

Engage in a Conversation
KSUKennesawCS6027Advanced Computer NetworkingComputer NetworksNS2

Ahyoung Lee Lab 1: CS 6027 – Advanced Computer Networking Fall 2023 CourseNana.COM

Introduction to Network Simulator 2 (NS2) CourseNana.COM

Max: 100 points CourseNana.COM

Name and ID (print) _______________________________________________________ CourseNana.COM

Objectives CourseNana.COM

The purpose of today’s lab is to familiarize yourself with the network simulation tool: “Network Simulator (Version 2)”, widely known as NS2 that is an open-source event-driven simulator designed specifically for research in computer communication networks. NS2 contains modules for numerous network components such as routing, transport layer protocol, application, mobility, etc. To investigate network performance, researchers can simply use an easy-to-use scripting language to configure a network, and observe results generated by NS2. So, NS2 has become the most widely used open source network simulator, and one of the most widely used network simulators. Therefore, we will use NS2 to evaluate network performance such as end-to-end delay, packet loss, and throughput. CourseNana.COM

Activities CourseNana.COM

Before you get started, you need to know how to install NS2. So, please follow the instruction how to download and install NS2 on Ubuntu. CourseNana.COM

****** How to Install NS2 on Ubuntu at VirtualBox ****** CourseNana.COM

  1. 1)  Install VirtualBox on your OS system CourseNana.COM

    Download Ubuntu ISO file (Ubuntu 22.04 latest version) (18.04 – that is the best version for ns2) CourseNana.COM

    https://ubuntu.com/download/desktop CourseNana.COM

  2. 2)  Install Ubuntu on VirtualBox
    Tutorial:
    https://brb.nci.nih.gov/seqtools/installUbuntu.html
    - Do not select “Download updates while installing”, better to do after installation done. - After install Ubuntu do the following steps: CourseNana.COM

    1. a)  Get update software list: CourseNana.COM

      sudo apt-get update CourseNana.COM

    2. b)  Update software: CourseNana.COM

      sudo apt-get upgrade CourseNana.COM

  3. 3)  Install NS2 on Ubuntu at VirtualBox Follow the ns2 installation below. CourseNana.COM

Installation: NS2
Go to NS2 web page: CourseNana.COM

o https://www.isi.edu/nsnam/ns/ns-build.html
o Click“allatonce”ontheNS2webpage:https://www.isi.edu/nsnam/ns/ns- CourseNana.COM

build.html#allinone Download: CourseNana.COM

o ns-allinone-2.35.tar.gz CourseNana.COM

Ahyoung Lee Lab 1: CS 6027 – Advanced Computer Networking Fall 2023 CourseNana.COM

**** Configuration and Errors for gcc compiler***** CourseNana.COM

  • ns2 uses gcc-4.8 as c compiler and g++-4.8 as C++ Compiler, thus ns2, nam and xgraph all these CourseNana.COM

    softwares were comfortable with 4.8 version. CourseNana.COM

  • So, add xenial to o CourseNana.COM

    o anddo o
    o
    CourseNana.COM

    CourseNana.COM

  • Next, we need to change these settings in the Makefile.in CourseNana.COM

    o Wehavetomodifyatthreelocations; 1. CourseNana.COM

    2. CourseNana.COM

  • Go to the directory “linkstate” in /ns2/ns-allinone-2.35/ns-2.35/linkstate
    o Inthe“ls.h”file,thereisanerrorattheline137th:add“this->”erase CourseNana.COM

  • Use the installation package:
    o sudoapt-getinstalllibx11-devxorg-devlibxmu-devlibperl4-corelibs-perl o cdns-allinone-2.35
    o ./install CourseNana.COM

    § follow the instruction that shows important path setups into .bash profile. CourseNana.COM

/etc/apt/sources.list CourseNana.COM

sudo gedit /etc/apt/sources.list CourseNana.COM

temporarily to install g++-4.8: CourseNana.COM

deb http://dk.archive.ubuntu.com/ubuntu/ xenial main CourseNana.COM

deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe CourseNana.COM

sudo apt update && sudo apt install g++-4.8 CourseNana.COM

sudo apt update

sudo apt install build-essential autoconf automake libxmu-dev CourseNana.COM

~/ns-allinone-2.23/ns-2.35/Makefile.in CourseNana.COM

~/ns-allinone-2.23/nam-1.15/Makefile.in CourseNana.COM

~/ns-allinone-2.23/xgraph-12.2/Makefile.in CourseNana.COM

Change as per the following in the above three files CourseNana.COM

@CC@ --> gcc-4.8
@CPP@ --> g++-4.8

Ahyoung Lee CourseNana.COM

Lab 1: CS 6027 – Advanced Computer Networking CourseNana.COM

Fall 2023 CourseNana.COM

§ Go to home directory, just type “cd” and enter § “ls -a” CourseNana.COM

§ open the “.bashrc” file. CourseNana.COM

§ Add paths into the bashrc file. For example: CourseNana.COM

§ Save the bashrc file.
§ Do “source ~/.bashrc”
§ Type “ns” on a terminal, if you see “%” symbol then the installation is correct. CourseNana.COM

NS2 tutorial: CourseNana.COM

CourseNana.COM

 Marc Greis' Tutorial for the UCB/LBNL/VINT Network Simulator "ns": CourseNana.COM

o https://www.isi.edu/nsnam/ns/tutorial/ Exercise (100 points) CourseNana.COM

A Network Simulation Example CourseNana.COM

Try to write a script the given network simulation example and save the script with “lab1.tcl” run it as “ns lab1.tcl”. CourseNana.COM

UDPAgent CourseNana.COM

TCPAgent CourseNana.COM

100 Mbps n0 5 ms Delay CourseNana.COM

n1 100 Mbps 5 ms Delay CourseNana.COM

54 Mbps
10 ms Delay
n4 CourseNana.COM

54 Mbps n3 10 ms Delay CourseNana.COM

TCPSink CourseNana.COM

NullAgent CourseNana.COM

You may look at the tutorial website: http://nile.wpi.edu/NS/simple_ns.html CourseNana.COM

Submission CourseNana.COM

Please finish it and submit the exercise (lab1.tcl file) and captured demo (screenshot) outputs (one docx file) into the dropbox by next Wendesay (September 6, Wednesday, 2023).
The demo outputs look like as follows:
CourseNana.COM

Next lab class, we will learn how to analyze .tr file that is the output about your script file (lab1.tcl), then we will see results of network performance. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
KSU代写,Kennesaw代写,CS6027代写,Advanced Computer Networking代写,Computer Networks代写,NS2代写,KSU代编,Kennesaw代编,CS6027代编,Advanced Computer Networking代编,Computer Networks代编,NS2代编,KSU代考,Kennesaw代考,CS6027代考,Advanced Computer Networking代考,Computer Networks代考,NS2代考,KSUhelp,Kennesawhelp,CS6027help,Advanced Computer Networkinghelp,Computer Networkshelp,NS2help,KSU作业代写,Kennesaw作业代写,CS6027作业代写,Advanced Computer Networking作业代写,Computer Networks作业代写,NS2作业代写,KSU编程代写,Kennesaw编程代写,CS6027编程代写,Advanced Computer Networking编程代写,Computer Networks编程代写,NS2编程代写,KSUprogramming help,Kennesawprogramming help,CS6027programming help,Advanced Computer Networkingprogramming help,Computer Networksprogramming help,NS2programming help,KSUassignment help,Kennesawassignment help,CS6027assignment help,Advanced Computer Networkingassignment help,Computer Networksassignment help,NS2assignment help,KSUsolution,Kennesawsolution,CS6027solution,Advanced Computer Networkingsolution,Computer Networkssolution,NS2solution,