NS2 Program for Using Xgraph

How to Install: sudo apt-get install xgraph NS2 Program Based on UDP NS2 Program Based on TCP You will need both source code to plot ns2 simulations in this example. Additionally we have to use these perl scripts to extract data from output trace generated from NS2 # type:...
Share:

NS2 Program Based on TCP

CODE # Create a ns object set ns [new Simulator] $ns color 1 Blue $ns color 2 Red # Open the Trace files set TraceFile [open outtcp.tr w] $ns trace-all $TraceFile # Open the NAM trace file set NamFile [open outtcp.nam w] $ns namtrace-all $NamFile # Create six nodes set n0 [$ns...
Share:

NS2 Program Based on UDP

CODE: # Create a ns object set ns [new Simulator] $ns color 1 Blue $ns color 2 Red # Open the Trace files set TraceFile [open outudp.tr w] $ns trace-all $TraceFile # Open the NAM trace file set NamFile [open outudp.nam w] $ns namtrace-all $NamFile set n0 [$ns node] set n1 [$ns...
Share:

NS2 Program for Traffic Flow on Nodes

We are going to create some nodes and then enable the flow of traffic on those nodes. There are two ways to flow the traffic i.e. through TCP and UDP. We will use both here. CODE: #Create a simulator object set ns [new Simulator] #Define different colors for data flows (for NAM) $ns...
Share:

C Program for Implementation of Stack Using Array

CODE: #include "stdio.h" #include "conio.h" #define size 5 int stack[size] = {0}; int top = -1; void push(int value) {  if(top < size)  {   top++;   stack[top] = value;  }  else  {   printf("Stack overflow \n");  } } void pop() {  if(top >= 0)  {   printf("The popped element is:\t...
Share:

C Program To Implementation Sorted Linked List

PROGRAM include "stdio.h" include "stdlib.h" include "conio.h" void del(int data); void insert(int value); void display(); struct node {     int data;     struct node *link; }; struct node *top=NULL,*temp, *temp1, *temp2, *temp3; int main() {     int choice,data;       while(1) //infinite loop is...
Share:

NS2 Program for To Study Routing in Wireless Network

CODE: #=================================== #     Simulation parameters setup #=================================== set val(chan)   Channel/WirelessChannel    ;# channel type set val(prop)   Propagation/TwoRayGround   ;# radio-propagation...
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *