Skip to main content


Showing posts from November, 2019

Installing ns-3.37 and ns-3.35 in Ubuntu | Ubuntu 22.04 | NS3

Multiple Versions of ns3 in Ubuntu 22.04 In this post, we are going to install two versions of ns3 namely ns-3.35 and ns-3.37  My OS is : Ubuntu 22.04 LTS (Long Term Support) ns-3.35 uses waf and (./waf --run scratch/first)  ns-3.37 uses cmake  (./ns3 run scratch/ So we will install both the packages  Go through the video for complete instructions To start with  $ sudo apt update  $ sudo apt install build-essential autoconf automake libxmu-dev g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev  libxml2 libxml2-dev libc6-dev libc6-dev-i386 libclang-dev llvm-dev automake python3-pip libxml2 libxml2-dev libboost-all-dev  I have downloaded both the versions of ns3 fr

Flow Monitor in ns3

Flow Monitor - ns3 Flow monitor is a powerful too that identifies the performance characteristics of networks Flow Monitor Already there are some examples within ns3. We will be using one example called as and another example called as Check the Video for complete instructions: Download all the source Codes here: Step 1: Copy the above files from examples/tutorial/ and move it to scratch/ folder Copy from examples/routing/ and move it to scratch/ Step 2: Include the code relevant for flow monitor. There are two header files to be included #include "ns3/flow-monitor.h" #include "ns3/flow-monitor-helper.h" Include the following lines above the Simulator::Stop() // Flow monitor Ptr<FlowMonitor> flowMonitor; FlowMonitorHelper flowHelper; flowMonitor = flowHelper.InstallAll(); include

Installing TexLive 2019 in Ubuntu 18.04

Installation of TexLive 2019 in Linux (Ubuntu 18.04 LTS) TeX (Tech) Installation of TexLive 2019 Please watch the video for full installation I used .iso file to download, the Total size is 3.3GB for Linux, and i used the torrent file to download, it took me just 20 min to download the entire .iso file Extract the .iso file to a folder and open a terminal $] sudo ./install-tl (it goes into a terminal mode, which is faster compared to the GUI Mode) $] sudo ./install-tl -gui after the installation, set the PATH, MANPATH and INFOPATH as suggested by LATEX export PATH=$PATH:/usr/local/texlive/2019/bin/x86_64-linux export MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man export INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info put these lines in to the /home/pradeepkumar/.bashrc $] gedit /home/pradeepkumar/.bashrc We have installed TexLive 2019 and texstudio. To install texstudio $] sudo apt install texstudio The look and feel of TexStudio looks like this image. TexStudio texlive, it in

Histogram plotting using Gnuplot

Gnuplot to plot histograms To plot histograms using Gnuplot, please follow the steps given below. Gnuplot supports various techniques on historgrams like Clustered RowStacked ColumnStacked etc. Use the following video to watch the complete steps and description Steps for Gnuplot Part 1 - Gnuplot (Already In my youtube Channel) Part 2 - Histogram Step 1: Create a Data File Air Quality Index for famous cities across the world. #Filename is: Chennai 323 278 567 Turkey 890 765 456 Andorra 7 7 98 Palestine 70 67 56 Bulgaria 159 123 100 China 677 478 123 Netherlands 52 76 43 Step 2 : Write the GNU COde. #filename: gnucode.txt set terminal pdf set output "aqi.pdf" set title "Air Quality Index" set style data histogram set style fill solid set style histogram clustered plot for [COL=2:4] "" using COL:xtic(1) title "AQI" The following is the output in the pdf file that is generated within the