Skip to main content

Posts

Installing NS-2.35 (Network Simulator 2) in Fedora 18

This post helps the developers to install NS-2.35 version in Fedora 18. Settings: I have used GNOME Desktop with all softwares selected. See the image below From Fedora 18, a new type of installer is designed as shown. The default installer of Fedora 18 does not install all the softwares that are needed for X Software development, so we need to download those softwares. Installation of NS-2.35 Open Terminal, Give the following command one by one su (press enter and enter your root or super user password) yum groupinstall "X Software Tools" exit (to come out of root user mode) Once installed, download the NS-2.35 allinone software from the following link. https://dl.dropbox.com/u/24623828/ns-allinone-2.35.tar.gz Copy that file to /home/pradeep (This is my home folder) Open terminal again and execute the following commands one by one tar zxvf ns-allinone-2.35.tar.gz cd ns-allinone-2.35 ./install (this is dot slash install) You may possibly get one error dur...

How to install tracegraph in a 64 bit Linux Machine

Installing tracegraph in a 32bit machine doen't post any issues or errors. but on a 64 bit machine, you need to download the libraries that are required to run for a 32 bit software so installing tracegraph in a 64 bit machine needs a special instruction like this In Ubuntu and Linux Mint, if you get error like this bash: ./trgraph: No such file or directory (this is mainly because you are trying to run in a 64 bit machine)  Issue the following command, sudo apt-get install ia32-libs  (it may download nealy 80MB of software)

Network Simulator 2(NS2) Projects for Students (PG and UG)

Here are some list of projects that may help PG/UG students to do their final Year Projects.  These projects can be implemented using NS2 as a tool and of other tools also. The following projects are categorized as wired and wireless networks (Sensor, Adhoc and Mesh). Performance of TCP in presence of UDP Flows Performance comparison of various routing protocols of Wireless Adhoc Networks (DSR, AODV, DSDV and TORA) Performance comparison of various routing protocols of Sensor Networks (LEACH, SPIN, etc) Implementation of a New TCP Protocol and compare it with other fellow protocols. Comparison of AODV, Trusted AODV and Secure AODV protocol Distance matrix based protocol for wireless sensor networks Bandwidth reuse and utilization for Wireless adhoc networks Peer to Peer Network Quality of Service ( QoS ) metrics in Adhoc Networks QoS metrics in Sensor Networks Qos Metrics in Wireless multimedia sensor networks QoS metrics in wireless Multimedia Adhoc Networks Animal H...

Installation of Network Simulator 2 (NS-2.35) in Linux Mint 14 (16bit)

The following video and the how to instructions will tell you how you can install ns-2.35 in Linux mint 14 (64 bit) edition. Step 1: This video shows you the demonstration of ns2 in Linux Mint 14 (64Bit) OS Step 2: issue this command in the terminal "sudo apt-get install build-essential autoconf automake libxmu-dev" (without Quotes) Step 3: if you have Ubuntu issue this command first before u try step 2 : "sudo apt-get update" Step 4: Once installation succeeded, start the process of installing ns2 Step 5: copy the ns-allinone-2.3x.tar.gz in the home folder, in my case it is /home/pradeep Step 6: go to home folder and execute this command "tar zxvf ns-allinone-2.35.tar.gz" step 7: cd ns-allinone-2.35 and ./install (after these commands, wait for the successful installation), it may take 5 min to 15 minutes based on the speed of your computer. Step 8: there may be errors shown, in case if errors, the errors should be corrected and reissue the comm...

How to Write Makefile

Assume there are more number of source files to be compiled using a set of commands everytime is a tedious process. So there is a facility to compile everything at a stretch is by the use of a Makefile. The makefile can be named as either “Makefile” or “makefile”. Let me define four files for my simple application, create a new directory and store all the files given below main.c  (which contains the main program) sum.c (summing function is defined) hello.c (print hello world) function.h (function prototypes are declared) //function.h int sum(int,int); void print_hello(); //hello.c #include #include “function.h” void print_hello() { printf(“Hello World \n”); } //sum.c #include “function.h” int sum(int a, int b) { int c; c=a+b; return c; } //main.c #include #include “function.h” int main() { int a=10,b=20,c; print_hello(); c=sum(a,b); printf(“The sum of two numbers is %d “,c); return 0; } There are different methods of compiling this file Method 1: (gcc com...

Linux Kernel and Embedded Systems Apps in Windows 8

Dear readers,  Thanks are using my website for technical information. Scaling to a new level, I have published two apps in Windows 8 app store, one related to linux kernel and other on Embedded systems Of course, both of the mateirals are already there in this blog.  So readers can download offline to see the contents related to embedded system and linux kernel and the advanatage is, they are free to download. Here are the links to download Embedded Systems -  http://apps.microsoft.com/webpdp/app/embeddedsystems/d38a2fd9-1ca3-4e17-a003-ef3be532608b Linux Kernel App - http://apps.microsoft.com/webpdp/app/linux-kernel/a61626c3-f135-4492-8a3d-64bd84c7ab40 I am planning to launch these and other apps in android also soon. Wait for my apps.

Energy Model in Network Simulator 2 (NS2)

Enabling or using energy for a wireless node is always giving the accurate results. Be default, when node-config is done is NS2, the energy supplied is infinite, means there is no energy log is been carried out. you can see the following code below: #Node configuration without energy Model $ns node-config -addressType hierarchical \ -adhocRouting AODV \ -llType LL \ -macType Mac/802_11 \ -ifqType Queue/DropTail/PriQueue \ -ifqLen 50 \ -antType Antenna/OmniAntenna \ -propType Propagation/TwoRayGround \ -phyType Phy/WirelessPhy \ -topologyInstance \$topo \ -channel Channel/WirelessChannel \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF #here is the change in which you can enable the energyMode...