Skip to main content


Showing posts from November, 2019

Installation of ns3 in Ubuntu | Ubuntu 24.04 | ns-3.42

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