Skip to main content


Showing posts from July, 2018

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

Energy Model in ns2 - NS2 Tutorial # 6

LEcture 6 - Ns2 Energy Model Wireless NEtworking in ns2 By default, nodes have infinite energy, to make it finite, we need to implement energy model. in the node config we need to include the following lines -energyModel "EnergyModel" \ -initialEnergy 3.0 \ -txPower 0.9 \ -rxPower 0.5 \ -idlePower 0.45 \ -sleepPower 0.05 \ Energy (joules) = Power (Watts) * Time (sec) for downloading the source codes Also subscribe to my youtube channel Thanks for watching. Stay Tuned for more Lectures... Subscribe and Share. Copy the Source Code here #Lecture 6  #Example of Wireless networks #Step 1 initialize variables #Step 2 - Create a Simulator object #step 3 - Create Tracing and animation file #step 4 - topography #step 5 - GOD - General Operations Director #step 6 - Create nodes #Step 7 - Create Channel (Communication PATH) #step 8 - Position of the nodes

Wireless network Coding in ns2 - NS2 Tutorial # 5

This post shows you how to write TCL code for Wireless simulations in ns2. It also explains the various aspects of wireless network. It is part of a lecture series in network simulator 2. The following image is shown for explanation Wireless Networks Download the Source code for Wireless Networks #Example of Wireless networks #Step 1 initialize variables #Step 2 - Create a Simulator object #step 3 - Create Tracing and animation file #step 4 - topography #step 5 - GOD - General Operations Director #step 6 - Create nodes #Step 7 - Create Channel (Communication PATH) #step 8 - Position of the nodes (Wireless nodes needs a location) #step 9 - Any mobility codes (if the nodes are moving) #step 10 - TCP, UDP Traffic #run the simulation #initialize the variables set val(chan)           Channel/WirelessChannel    ;#Channel Type set val(prop)           Propagation/TwoRayGround   ;# radio-propagation model set val(netif)          Phy/WirelessPhy            ;# network

Wired Network Coding in ns2 - NS2 Tutorial # 4

This post shows the wired network coding in ns2. It uses 6 nodes ( 0 to 5) and exchange FTP/CBR packets between the nodes. Please find the coding here.  Wired Network Wired Coding in ns2 (with comments and explanation, for detailed explanation see the video at the end) #please subscribe #Thank you #create a simulator object  set ns [new Simulator] #create a trace file, this file is for logging purpose  set tracefile [open w] $ns trace-all $tracefile #create a animation infomration or NAM file creation set namfile [open wired.nam w] $ns namtrace-all $namfile #create nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] #creation of link between nodes with DropTail Queue #Droptail means Dropping the tail. $ns duplex-link $n0 $n1 5Mb 2ms DropTail $ns duplex-link $n2 $n1 10Mb 5ms DropTail $ns duplex-link $n1 $n4 3Mb 10ms

Wired Networks Design - NS2 Tutorial # 3

Subscribe to My Youtube Channel

Introduction to NS2 - NS2 Tutorial # 1

Video Lecture Channel Subscribe to My YouTube Channels Tech Channel Travel Channel

How to Mount NTFS and exFAT Partition in RHEL CentOS

Mounting NTFS Mounting NTFS partition in CentOS/RHEL will need a simple trick. Here is the step. $] sudo yum install epel-release $] sudo yum install ntfs-3g Suppose if the name of the device is /dev/sda3 and /dev/sda4, then here is the command to mount it from the terminal $] sudo mkdir /mnt/WinE $] sudo mkdir /mnt/WinD $] sudo mount -t ntfs-3g /dev/sda3 /mnt/WinE  $] sudo mount -t ntfs-3g /dev/sda4 /mnt/WinD If your windows OS is running with any updates or under hibernation, the above command will not work, Here is the solution for that. You can open the drives under read only mode. if you get the error like shown above, here is the command $] sudo mount -t ntfs-3g /dev/sda3 /mnt/WinE -ro o $] sudo mount -t ntfs-3g /dev/sda4 /mnt/WinD -ro o NB: Sometimes you need not type "-t ntfs-3g", if the libraries are there, without this attribute also, the disk will be mounted. Mounting in RHEL Mounting exFAT file system exFAT is another filesystem supported by the Unix families like