Giter VIP home page Giter VIP logo

ns2-offline's Introduction

Network Simulator
=================

This is an assignment for Level-3/Term-2.

Overview
--------

A wireless network simulator is built with ns2 and parsed with awk.

The parameters for the network are as follows:

- Wireless MAC Type
    [ ] Wireless 802.15.4
    [x] Wireless 802.11
- Routing Protocol
    [x] DSDV
    [ ] AODV
    [ ] DSR
- Agent + Application
    [ ] UDP + Exponential Traffic
    [ ] UDP + CBR Traffic
    [ ] TCP Reno + FTP
    [x] TCP Tahoe + Telnet,
- Node Positioning
    [x] Random (Randomly place nodes anywhere with area)
    [ ] Grid (Place nodes in a grid. You can choose the number of rows and
        columns yourself)
- Flow
    [ ] Random Source Destination (For each flow, choose random source and
        destination. Careful not to choose same node as source and destination)
    [x] 1 Source, Random Sink (except source itself) (Choose a random source X,
        then for each flow choose X as source, and any other node as
        destination)
    [ ] 1 Sink, Random Source (Choose a random sink X, then for each flow choose
        X as destination, and any other node as source)
- Queue: Droptail, max size 50 (Using Queue/DropTail/PriQueue with DSR may cause
  segmentation fault. In that case you can use CMUPriQueue instead.)
- Antenna: Omni Directional
- Speed of nodes: Uniform random between 1m/s and 5m/s for each node.
- Propagation Model: Two Ray Ground Propagation Model


The simulation is to be run a number of times with varying parameters and the
results are to be plotted on graph.

Baseline Parameters
(while varying one parameter, keep other parameters fixed like below)
    - Area Size: 500m x 500m
    - Number of Nodes: 40
    - Number of flows: 20

Vary parameters
    - Area Size
        - 250m x 250m
        - 500m x 500m
        - 750m x 750m
        - 1000m x 1000m
        - 1250m x 1250m
    - Number of Nodes
        - 20
        - 40
        - 60
        - 80
        - 100
    - Number of flows
        - 10
        - 20
        - 30
        - 40
        - 50

Metrics: For each of the varying parameters, plot 4 graph showing,
    - Network throughput
    - End-to-end delay
    - Packet delivery ratio (total # of packets delivered to end destination /
      total # of packets sent)
    - Packet drop ratio (total # of packets dropped / total # of packets sent)

The varying parameters are to be used to generate graphs, which will be
generated in bin/ folder and will have extension xg. Use xgraph utility to open
the graph file. For example:

        xgraph bin/dlay-area.xg

Installing XGraph
-----------------

XGraph can be downloaded from here: http://www.xgraph.org/linux/index.html

Or you can simply use the following command:

        wget http://www.xgraph.org/linux/xgraph_4.38_linux64.tar.gz

Extract the gunzip file and place the xgraph binary file inside it in your
$PATH.

        tar xvzf ./xgraph_4.38_linux64.tar.gz
        cp ./XGraph4.38_linux64/bin/xgraph ~/.local/bin


Running XGraph
--------------

Open the graph files in this project with xgraph. For example:

        xgraph bin/dlay-area.xg

ns2-offline's People

Contributors

3n4n avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.