Skip to main content

Posts

Showing posts from October, 2021

NS2 trace analysis IN MATLAB

Hey, In this post we are discussing about  How to do ns2 trace analysis under Matlab using Tracegraph Tool The following procedure shows the way to do trace analysis under Matlab using the Tracegraph tool : About Software versions used : We can use ns2.35 for the proposed simulation (even it will run under some lower versions also). We are using the new version of Tracegraph Version 2.05.  We are using the new version of Trace Converter Version 1.01. We can get it from the following link:  http://www.tracegraph.com/trconvertwin.zip Matlab 6.5 can be used to run the source version of Tracegraph. We will use a trace converter because Tracegraph could not handle the trace file generated by the wired cum wireless scenario. Refer Internet for further information about Tracegraph and trace converter. Diagram Explaining the Simulation and Analysis Steps. The highlighted model (Case – 4)  in the following diagram shows the simulation and analysis using we are using in this example. Since we ar

Changing Attributes of Nodes in NS2

Hey, In this post we are discussing about changing of various attributes of a node in ns2.  As you all know , each node is defined with a set of attributes.  Attributes specific to node are color, shape, label, label-color, position of label and adding/deleting mark on the node. Each node can have 3 shapes: circle (default), square, or hexagon. But once created, the shape of a node Cannot be changed during the simulation. Different node may have different colors, and its color may be changed during animation. The following OTcl procedures are used to set node attributes, they are methods of the class Node: $node color [color] ;# sets color of node $node shape [shape] ;# sets shape of node $node label [label] ;# sets label on node $node label-color [lcolor] ;# sets color of label $node label-at [ldirection] ;# sets position of label $node add-mark [name] [color] [shape] ;# adds a mark to node $node delete-mark [name] ;# deletes mark from node Happy Coding!

NS2 INSTALLATION FROM GITHUB

Hey, Today we are discussing abou a   simple and easy port of the popular Network Simulator NS2 for the windows platform. For this method, there is no need of cygwin or virtual box. Is that Interesting??? Steps:  1. Downloading essential directories:  Download .zip or use git from here . Unzip the zipped file in your preferred directory. 2. Installation of  Software Install  chocolatey Chocolatey takes care of your environment variables and all the nuances when it comes to installing new software which require some specific paths to executables to be present as home variables. This step may take a couple of minutes. Run CMD prompt as administrator (system/32) once the installation is complete. Run the following command to install gawk . choco install gawk This step may take a few moments. Navigate  to the necessary directory where you have this repository cloned/unzipped. That's  all, its ready for execute program. Now type,  ns helloworld.tcl If all your setup has been done perfec

NS2 INSTALLATION IN KALI LINUX

Hey, This post explains the installation of NS2 in Kali Linux. Lets start from scratch. KaliLinux  is a  Debian -derived  Linux distribution  designed for digital forensics  and  penetration testing.  It was developed by Mati Aharoni and Devon Kearns of Offensive Security through the rewrite of   BackTrack , their previous information security testing Linux distribution based on   Knoppix . Originally, it was designed with a focus on kernel auditing, from which it got its name   Kernel   Auditing   Linux . The name is sometimes incorrectly assumed to come from   Kali   the Hindu goddess. T he third core developer, RaphaĂ«l Hertzog, joined them as a   Debian   expert. Kali Linux is based on the Debian  Testing  branch. Most packages Kali uses are imported from the Debian repositories. Kali Linux's popularity grew when it was featured in multiple episodes of the TV series Mr. Robot. Tools highlighted in the show and provided by Kali Linux include Bluesniff, Bluetooth Scanner (btscanne

NS2 INSTALLATION IN WINDOWS 10 & WINDOWS 11 USING WSL

Hey All, this post explains how to install NS2 easily using Windows OS using Windows Subsystem for Linux.  Before starting the topic, lets talk a little about WSL oe Windows Subsystem for Linux. Windows Subsystem for Linux The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dual-boot setup. Step 1:  Turn on developer mode Search > Developer Settings > Turn on Developer mode Step 2: Download Ubuntu from Store Go to Microsoft Store and Download Ubuntu . Step 3:  Download and Install Xming   Click here for downloading Xming. Step 4: Install Ubuntu Set Username and Password for ubuntu. If you get an error in installing ubuntu,  Ws1RegistrationDistributuin failed with error: 0x8007019e It mans the windows subsystem for Linux optional component is not enabled.  So Turn on windows features -> windows su

NS2 INSTALLATION IN UBUNTU 18.04

  Hello, this post explains how to install ns2 in Ubuntu 18.04.  1) First you have to download ns2 all-in-one package from following link;    http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download 2) Extract the downloaded zip file 'ns-allinone-2.35.tar.gz file' to home folder. 3)  Now you need to download some essential packages for ns2,these packages can be downloaded by using the following commands :  applications>accessories>terminal or dashhome>terminal   and   then type the below lines one by one on the terminal window sudo apt-get update sudo apt-get dist-upgrade sudo apt-get update 4) Install the basic libraries; sudo apt install build-essential autoconf automake libxmu-dev 5) Install gcc and g++ and for that please do following; open the file using sudo mode sudo nano /etc/apt/sources.list Include the following line in list;  deb http://in.archive.ubuntu.com/ubuntu bionic main universe then open terminal and exec

NS2 INSTALLATION IN UBUNTU 20.04

Hello, this post explains how to install ns2 in Ubuntu 20.04.  1) First you have to download ns2 all-in-one package from following link;    http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download 2) Extract the downloaded zip file 'ns-allinone-2.35.tar.gz file' to home folder. 3)  Now you need to download some essential packages for ns2,these packages can be downloaded by using the following commands :  applications>accessories>terminal or dashhome>terminal  and   then type the below lines one by one on the terminal window sudo apt-get update sudo apt-get dist-upgrade sudo apt-get update 4) Install the basic libraries; sudo apt install build-essential autoconf automake libxmu-dev 5) Install gcc and g++ and for that please do following; open the file using sudo mode sudo nano /etc/apt/sources.list Include the following line in list;  deb http://in.archive.ubuntu.com/ubuntu bionic main universe then open terminal and execute

VMWARE WORKSTATION PLAYER IN WINDOWS

VMware Workstation Player is the limited capability  free (for non-commercial use) version of VMware Workstation Pro . That is, it is just as VMware Workstation Pro with lesser functionality and free for personal use. But what is available is enough for most of the home users. VMware Workstation Player formally known as VMware Player is a Virtualization software used to run multiple virtual machines on the same hardware. Its available for both Windows and Linux based operating systems.  It runs on 64 bit operating system, which means that if you have 32 bit operating system, you will not be able to use it. Earlier, VMware Player was distinct from VMware Workstation. But now they have been merged. That is to say, VMware Player is now available as VMware Workstation Player which shares the same core as the VMware Workstation. The only difference is that, VMware Workstation provides all the features, where as VMware Workstation Player is a stripped down version of VMware Workstation pro a