SlideShare una empresa de Scribd logo
1 de 48
Creating Scenario in GloMoSim-2.03




             A.Kathirvel, AP/CSE
   B. S. Abdur Rahman University, Chennai
Outline

    Introduction

    Input/Output files

    Understanding Files/Directories

    Design a wired Network

    Design a wireless Network

    Understanding Transmission range

    Discussion
Introduction to scenarios

    In GloMoSim, a specific network topology is
    referred to as a scenario.

    scenario allows the user to specify all the
    network components and conditions under
    which the network will operate.

    Terrain details, channel propagation effects
    including path loss, wired and wireless subnets,
    network devices, the entire protocol stack of a
    variety of standard, and applications running on
    the network.
Input Files

    3 input files
         
           Scenario Configuration file
            − This is the primary input file for GloMoSim and
              specifies the network scenario andparameters for the
              simulation. This file usually the extension “.in”.
         
           Node placement file
            − This file is referenced by the scenario configuration file
              and specifies the initial position of nodes in the
              scenario. This file usually has the extension “.input”.
         
           Application configuration file
            − This file is referenced by the scenario configuration file
              and specifies the applications running on the nodes in
              the scenario. This file usually has the extension “.conf”.
Output File

    GloMoSim Statistics file
     −   The primary output file generated by a GloMo
         simulation run is a statistics file, which has the
         extension “.stat”. This file contains the statistics
         collected during the simulation run. Other output files
         that may be generated by GloMoSim include the trace
         file (which has the extension “.trace”) which records
         packet traces.

     Configuration files located in bin/ directory :
    -IN : app.conf : Application execution options
    -IN : config.in : Simulation configuration options
    -OUT : glomo.stat : Simulation results
GloMoSim Sub-Directories

    Main, Include, Bin, Doc, TCPLib, Java_gui

    Application

    Transport

    Network

    Mac

    Radio

    Scenarios
GloMoSim Files

    File Extensions:

    .pc – C source code

    .h - C header files

    .pi – Message file created and maintained
    internally by Parsec (don’t edit)
Design a Network using GloMoSim
Wired Networks
Wired Networks

    In this exercise, you will build and configure a simple
    wired network of four nodes connected with point-to-
    point links shown in the following figure.





    By reducing the transmission rate of a link to create a
    "bottleneck", you will find how applications overwhelm
    the link and cause significant packet loss.
Normal situation
( PDR = 100 % )
Solution

    Step 1: Node placement

    Step 2: Wired link definition

    Step 3: Creation of routing table

    Step 4: Application selection

    Step 5: Configuration

    Step 6: Execution & Analysis the Results
Scenario Topology

    The topology of a network is defined by the number
    and location of network devices and the physical and
    logical connections between them.

    NODE-PLACEMENT-FILE

    Format:

    nodeAddr 0 (x, y, z)

    The second parameter is for the consistency with the
    mobility trace format.

    0 0 (250, 250, 0)

    1 0 (500, 250, 0)

    2 0 (375, 500, 0)

    3 0 (375, 750, 0)
wired link definition

  Each link is bidirectional, and the bandwidth is
  specified in bits per second.

  Format:

  nodeAddr1 nodeAddr2 bandwidth1 propDelay1
0-----|
      |______
      |2 3
1-----|

0 2 10000000 1MS
1 2 10000000 1MS
2 3 10000000 1MS
Routing Table (static)

    Format: sourceAddr destAddr nextHop
    0-----|
          |______
          |2 3
    1-----|

    012             022             032

    102             122             132

    200             211             220

    233             302             312

    322
Application Layer

    The traffic generators currently available are FTP,
    FTP/GENERIC, TELNET, CBR, and HTTP.

    FTP <src> <dest> <items to send> <start time>

    FTP/GENERIC <src> <dest> <items to send> <item size>
    <start time> <end time>

    TELNET <src> dest> <session duration> <start time>

    CBR <src> <dest> <items to send> <item size> <interval>
    <start time> <end time>

    Client: HTTP <address> <num_of_server> <server_1> ...
    <server_n> <start> <thresh>

    Server: HTTPD <address>

    CBR 0 3 75 512 1MS 0S 30S

    CBR 1 3 75 512 1MS 0S 30S
Configure the wired Network

    SIMULATION-TIME        100S

    SEED                   2

    TERRAIN-DIMENSIONS     (1000, 1000)

    NUMBER-OF-NODES        4

    NODE-PLACEMENT         FILE

    NODE-PLACEMENT-FILE    ./wired_nodes.input

    MOBILITY               NONE

    PROPAGATION-LIMIT      -111.0

    PROPAGATION-PATHLOSS   FREE-SPACE

    RADIO-TYPE             RADIO-NONOISE

    RADIO-BANDWIDTH        2000000

    MAC-PROTOCOL           WIRED

    WIRED-LINK-FILE        wired.conf
Configure the wired Network

    NETWORK-PROTOCOL                         IP

    NETWORK-OUTPUT-QUEUE-SIZE-PER-PRIORITY   100

    ROUTING-PROTOCOL                         STATIC

    STATIC-ROUTE-FILE                        wired_route.in

    APP-CONFIG-FILE                      ./wired_app.conf

    APPLICATION-STATISTICS     YES

    TCP-STATISTICS             NO

    UDP-STATISTICS             NO

    ROUTING-STATISTICS         NO

    NETWORK-LAYER-STATISTICS   NO

    MAC-LAYER-STATISTICS       NO

    RADIO-LAYER-STATISTICS     NO

    CHANNEL-LAYER-STATISTICS   NO

    MOBILITY-STATISTICS        NO
Output
Node:   0, Layer:   AppCbrClient, (0) Server address: 3
Node:   0, Layer:   AppCbrClient, (0) Session status: Closed
Node:   0, Layer:   AppCbrClient, (0) Total number of packets sent: 75
Node:   1, Layer:   AppCbrClient, (0) Server address: 3
Node:   1, Layer:   AppCbrClient, (0) Session status: Closed
Node:   1, Layer:   AppCbrClient, (0) Total number of packets sent: 75
Node:   3, Layer:   AppCbrServer, (0) Client address: 1
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.003365200
Node:   3, Layer:   AppCbrServer, (0) Session status: Closed
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 75
Node:   3, Layer:   AppCbrServer, (0) Client address: 0
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.002910800
Node:   3, Layer:   AppCbrServer, (0) Session status: Closed
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 75
Data Packet Dropping Situations
wired link definition

  Each link is bidirectional, and the bandwidth is
  specified in bits per second.

  Format:

  nodeAddr1 nodeAddr2 bandwidth1 propDelay1
0-----|
      |______
      |2 3
1-----|

0 2 10000000 1MS
1 2 10000000 1MS
2 3 1000000 1MS
Output
Node:   0, Layer:   AppCbrClient, (0) Server address: 3
Node:   0, Layer:   AppCbrClient, (0) Session status: Closed
Node:   0, Layer:   AppCbrClient, (0) Total number of packets sent: 75
Node:   1, Layer:   AppCbrClient, (0) Server address: 3
Node:   1, Layer:   AppCbrClient, (0) Session status: Closed
Node:   1, Layer:   AppCbrClient, (0) Total number of packets sent: 75
Node:   3, Layer:   AppCbrServer, (0) Client address: 1
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.233964400
Node:   3, Layer:   AppCbrServer, (0) Session status: Not closed
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 56
Node:   3, Layer:   AppCbrServer, (0) Client address: 0
Node:   3, Layer:   AppCbrServer, (0) Session status: Not closed
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 61
Wireless Networks
Normal situation
( PDR = 100 % )
Solution

    Step 1: Node placement

    Step 2: Application selection

    Step 3: Configuration

    Step 4: Execution & Analysis the Results
Scenario Topology

    The topology of a network is defined by the number
    and location of network devices and the physical and
    logical connections between them.

    NODE-PLACEMENT-FILE

    Format:

    nodeAddr 0 (x, y, z)

    The second parameter is for the consistency with the
    mobility trace format.

    0 0 (250, 250, 0)

    1 0 (500, 250, 0)

    2 0 (375, 500, 0)

    3 0 (375, 750, 0)
Application Layer

    CBR 0 3 75 512 1NS 10S 30S

    CBR 1 3 75 512 1NS 40S 60S
Configure the wireless Network

    SIMULATION-TIME        100S

    SEED                   1

    TERRAIN-DIMENSIONS     (1000, 1000)

    NUMBER-OF-NODES        4

    NODE-PLACEMENT         FILE

    NODE-PLACEMENT-FILE    ./wireless_nodes.input


    MOBILITY               NONE


    PROPAGATION-LIMIT      -111.0

    PROPAGATION-PATHLOSS   TWO-RAY

    NOISE-FIGURE           10.0

    TEMPARATURE            290.0
Configure the wireless Network

    RADIO-TYPE             RADIO-ACCNOISE

    RADIO-FREQUENCY        2.4e9

    RADIO-BANDWIDTH        2000000

    RADIO-TX-POWER         15.0

    RADIO-ANTENNA-GAIN     0.0

    RADIO-RX-SENSITIVITY   -91.0

    RADIO-RX-THRESHOLD     -81.0


    MAC-PROTOCOL           802.11


    ROUTING-PROTOCOL       BELLMANFORD
Configure the wireless Network

    NETWORK-PROTOCOL                             IP

    NETWORK-OUTPUT-QUEUE-SIZE-PER-PRIORITY       100

    APP-CONFIG-FILE            ./wireless_app.conf

    APPLICATION-STATISTICS     YES

    TCP-STATISTICS             NO

    UDP-STATISTICS             NO

    ROUTING-STATISTICS         NO

    NETWORK-LAYER-STATISTICS   NO

    MAC-LAYER-STATISTICS       NO

    RADIO-LAYER-STATISTICS     NO

    CHANNEL-LAYER-STATISTICS   NO

    MOBILITY-STATISTICS        NO
Output
Node:   0, Layer:   AppCbrClient, (0) Server address: 3
Node:   0, Layer:   AppCbrClient, (0) Total number of packets sent: 75

Node:   1, Layer:   AppCbrClient, (0) Server address: 3
Node:   1, Layer:   AppCbrClient, (0) Total number of packets sent: 75

Node:   3, Layer:   AppCbrServer, (0) Client address: 1
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.276741535
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 75

Node:   3, Layer:   AppCbrServer, (0) Client address: 0
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.280470646
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 75
Data Packet Dropping Situations
Application Layer
CBR 0 3 75 512 1MS 0S 0S
CBR 1 3 75 512 1MS 0S 0S
Output
Node:   0, Layer:   AppCbrClient, (0) Server address: 3
Node:   0, Layer:   AppCbrClient, (0) Total number of packets sent: 75

Node:   1, Layer:   AppCbrClient, (0) Server address: 3
Node:   1, Layer:   AppCbrClient, (0) Total number of packets sent: 75

Node:   3, Layer:   AppCbrServer, (0) Client address: 1
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.410570911
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 47

Node:   3, Layer:   AppCbrServer, (0) Client address: 0
Node:   3, Layer:   AppCbrServer, (0) Average end-to-end delay [s]: 0.381539628
Node:   3, Layer:   AppCbrServer, (0) Total number of packets received: 47
Wireless Mobile Ad Hoc Networks
Default Parameter setting
Radio range
[root@localhost Wireless networks]# radio_range
  wireless_configuration
radio range: 376.782m
Execution time : 0.0059 sec
Number of events (including timeouts)
  processed : 0
Number of messages processed : 0
Number of context switches occurred : 6
Number of Local NULL messages sent : 0
Number of Remote NULL messages sent : 0
Total Number of NULL messages sent : 0
Setting Radio range
Free Space Propagation

    The free space propagation model is the simplest path loss model in which there is
    a direct path signal between the transmitter and the receiver, with no atmospheric
    attenuation or multipath components. In this model the relationship between the
    transmitted power Pt and the received power Pr is given by


   Pr = Pt Gt Gr (λ/4Πd )2


    Where Gt and Gr are the transmitter and receiver antenna gains, respectively, in the
    direction from the transmitter and receiver, d is the distance between the transmitter
    and receiver, and λ= c/f is the wavelength the signal.
Setting Radio range
Two Ray Propagation


    The two-path model assumes that the signal reaches the receiver through two
    paths, one a line-of-sight path, ad the other the path through which the
    reflected (or refracted, or scattered) wave is received.

   Pr = Pt Gt Gr (hthr /d2 )2

   Where Pt is the transmitted power, Gt and Gr are the transmitter and receiver

    antenna gains, respectively, in the direction from the transmitter and receiver,
    d is the distance between the transmitter and receiver, and ht and hr are the

    heights of the transmitter and receiver, respectively.
Radio Range Calculation
Input parameters

    PROPAGATION-PATHLOSS           TWO-RAY

    RADIO-FREQUENCY                2.4e9

    RADIO-TX-POWER                 15.0 (dBm)

    RADIO-ANTENNA-GAIN             0.0 (dBm) [ isotropic antenna]

    RADIO-RX-SENSITIVITY           -91.0 (dBm)

    RADIO-RX-THRESHOLD             -81.0 (dBm)

Given Data
Pt = 15 dBm    Pr = -81 dBm   c = 3 X 108   f = 2.4 X 109
Gt = Gr = 0 ht = hr = 1.5
Radio Range Calculation
PowerdBm = 10 Log (PowermW/1 mW)

PowermW = 10 (PowerdBm/10)

Pt = PowermW = 10 (PowerdBm/10) = 1015/10 = 101.5 = 31.622776 mW
 Pr = PowermW = 10 (PowerdBm/10) = 10-81/10 = 10-8.1 = 7.943 X 10-9 mW

Two-Ray Pr = Pt Gt Gr (hthr /d2 )2

      ____________________________________



d = 4 | 31.62276 X 1.5 X 1.5 X 1.5 X 1.5 / 7.943e-9 = 376.7839
Radio Range Calculation
Radio Transmission range = 250 m

    RADIO-TX-POWER                                              7.88 (dBm)


Given Data
Pt = 7.88 dBm                Pr = -81 dBm                c = 3 X 108    f = 2.4 X 109
Gt = Gr = 0 ht = hr = 1.5

Pt = PowermW = 10 (PowerdBm/10) = 107.88/10 = 6.137620052 mW
 Pr = PowermW = 10 (PowerdBm/10) = 10-81/10 = 10-8.1 = 7.943 X 10-9 mW

      ______________________________________



d = 4 |6.137620052 X 1.5 X 1.5 X 1.5 X 1.5 / 7.943e-9 = 250.08773
Output
[root@localhost Wireless networks]# radio_range
  wireless_config.in
radio range: 250.086m
Execution time : 0.0011 sec
Number of events (including timeouts)
  processed : 0
Number of messages processed : 0
Number of context switches occurred : 6
Number of Local NULL messages sent : 0
Number of Remote NULL messages sent : 0
Total Number of NULL messages sent : 0
Radio Range Calculation
Input parameters

    PROPAGATION-PATHLOSS           FREE-SPACE

    RADIO-FREQUENCY                2.4e9

    RADIO-TX-POWER                 15.0 (dBm)

    RADIO-ANTENNA-GAIN             0.0 (dBm) [ isotropic antenna]

    RADIO-RX-SENSITIVITY           -91.0 (dBm)

    RADIO-RX-THRESHOLD             -81.0 (dBm)

Given Data
Pt = 15 dBm    Pr = -81 dBm   c = 3 X 108   f = 2.4 X 109
Gt = Gr = 0 ht = hr = 1.5
Radio Range Calculation

Pt = PowermW = 10 (PowerdBm/10) = 1015/10 = 101.5 = 31.622776 mW
 Pr = PowermW = 10 (PowerdBm/10) = 10-81/10 = 10-8.1 = 7.943 X 10-9 mW

FREE-SPACE Pr = Pt Gt Gr (λ /4Πd )2
                       _________
   d = ( | (P / P ) C2 )/ 4Πf
             t r


      ___________________________



d = 4 | (31.62276 / 7.943e-9 ) X (3 e 8)2 / 4 X 3.14 X 2.4 e 9 = 627.57 m
Output
[root@localhost Wireless networks]# radio_range
  wireless_config.in
radio range: 627.625m
Execution time : 0.0011 sec
Number of events (including timeouts)
  processed : 0
Number of messages processed : 0
Number of context switches occurred : 6
Number of Local NULL messages sent : 0
Number of Remote NULL messages sent : 0
Total Number of NULL messages sent : 0
Radio Range Calculation
Radio Transmission range = 276 m

    RADIO-TX-POWER                                            7.88 (dBm)
FREE SPACE

[root@localhost Wireless networks]# radio_range wireless_config.in

radio range: 276.503m

Execution time : 0.0020 sec

Number of events (including timeouts) processed : 0

Number of messages processed : 0

Number of context switches occurred : 6

Number of Local NULL messages sent : 0

Number of Remote NULL messages sent : 0

Total Number of NULL messages sent : 0
Questions
   ?

Más contenido relacionado

La actualidad más candente

Memory Barriers in the Linux Kernel
Memory Barriers in the Linux KernelMemory Barriers in the Linux Kernel
Memory Barriers in the Linux KernelDavidlohr Bueso
 
Cs704 d distributedmutualexcclusion&memory
Cs704 d distributedmutualexcclusion&memoryCs704 d distributedmutualexcclusion&memory
Cs704 d distributedmutualexcclusion&memoryDebasis Das
 
Network emulator
Network emulatorNetwork emulator
Network emulatorjeromy fu
 
unix interprocess communication
unix interprocess communicationunix interprocess communication
unix interprocess communicationguest4c9430
 
Socket Programming using Java
Socket Programming using JavaSocket Programming using Java
Socket Programming using JavaRahul Hada
 
20 Common Ports and their purposes
20 Common Ports and their purposes 20 Common Ports and their purposes
20 Common Ports and their purposes MaryamAlGhaith
 
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsOlivier Bonaventure
 
PLNOG 3: Ela Jasińska - From the Earth to the Moon From a Quagga-based Route...
PLNOG 3: Ela Jasińska -  From the Earth to the Moon From a Quagga-based Route...PLNOG 3: Ela Jasińska -  From the Earth to the Moon From a Quagga-based Route...
PLNOG 3: Ela Jasińska - From the Earth to the Moon From a Quagga-based Route...PROIDEA
 
Linux Linux Traffic Control
Linux Linux Traffic ControlLinux Linux Traffic Control
Linux Linux Traffic ControlSUSE Labs Taipei
 
ops300 Week8 gre
ops300 Week8 greops300 Week8 gre
ops300 Week8 gretrayyoo
 
GRE (generic routing encapsulation)
GRE (generic routing encapsulation)GRE (generic routing encapsulation)
GRE (generic routing encapsulation)Netwax Lab
 

La actualidad más candente (19)

Memory Barriers in the Linux Kernel
Memory Barriers in the Linux KernelMemory Barriers in the Linux Kernel
Memory Barriers in the Linux Kernel
 
Cs704 d distributedmutualexcclusion&memory
Cs704 d distributedmutualexcclusion&memoryCs704 d distributedmutualexcclusion&memory
Cs704 d distributedmutualexcclusion&memory
 
socket programming
socket programming socket programming
socket programming
 
Tc basics
Tc basicsTc basics
Tc basics
 
Network emulator
Network emulatorNetwork emulator
Network emulator
 
Ns2pre
Ns2preNs2pre
Ns2pre
 
#1 (TCPvs. UDP)
#1 (TCPvs. UDP)#1 (TCPvs. UDP)
#1 (TCPvs. UDP)
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
unix interprocess communication
unix interprocess communicationunix interprocess communication
unix interprocess communication
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
Socket Programming using Java
Socket Programming using JavaSocket Programming using Java
Socket Programming using Java
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
20 Common Ports and their purposes
20 Common Ports and their purposes 20 Common Ports and their purposes
20 Common Ports and their purposes
 
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocols
 
Ebpf ovsconf-2016
Ebpf ovsconf-2016Ebpf ovsconf-2016
Ebpf ovsconf-2016
 
PLNOG 3: Ela Jasińska - From the Earth to the Moon From a Quagga-based Route...
PLNOG 3: Ela Jasińska -  From the Earth to the Moon From a Quagga-based Route...PLNOG 3: Ela Jasińska -  From the Earth to the Moon From a Quagga-based Route...
PLNOG 3: Ela Jasińska - From the Earth to the Moon From a Quagga-based Route...
 
Linux Linux Traffic Control
Linux Linux Traffic ControlLinux Linux Traffic Control
Linux Linux Traffic Control
 
ops300 Week8 gre
ops300 Week8 greops300 Week8 gre
ops300 Week8 gre
 
GRE (generic routing encapsulation)
GRE (generic routing encapsulation)GRE (generic routing encapsulation)
GRE (generic routing encapsulation)
 

Similar a Glomosim scenarios

Tutorial on IEEE 802.11 - MAC Protocols and Frames
Tutorial on IEEE 802.11 - MAC Protocols and FramesTutorial on IEEE 802.11 - MAC Protocols and Frames
Tutorial on IEEE 802.11 - MAC Protocols and FramesDheryta Jaisinghani
 
Computer Networking network layer chapter 4
Computer Networking network layer chapter 4Computer Networking network layer chapter 4
Computer Networking network layer chapter 4RoopaRathod2
 
Chapter_4_V6.11 Network layer.ppt
Chapter_4_V6.11 Network layer.pptChapter_4_V6.11 Network layer.ppt
Chapter_4_V6.11 Network layer.pptMaiTran87348
 
An ethernet based_approach_for_tm_data_analysis_v2
An ethernet based_approach_for_tm_data_analysis_v2An ethernet based_approach_for_tm_data_analysis_v2
An ethernet based_approach_for_tm_data_analysis_v2Priyasloka Arya
 
Internetworking Overview
Internetworking OverviewInternetworking Overview
Internetworking Overviewscooby_doo
 
Dash7 alliance protocol - where rfid meets wsn
Dash7 alliance protocol -  where rfid meets wsnDash7 alliance protocol -  where rfid meets wsn
Dash7 alliance protocol - where rfid meets wsnMaarten Weyn
 
Networking issues for distributed systems
Networking issues for distributed systemsNetworking issues for distributed systems
Networking issues for distributed systemskingGovindi
 
BWC Supercomputing 2008 Presentation
BWC Supercomputing 2008 PresentationBWC Supercomputing 2008 Presentation
BWC Supercomputing 2008 Presentationlilyco
 

Similar a Glomosim scenarios (20)

Ns2 introduction 2
Ns2 introduction 2Ns2 introduction 2
Ns2 introduction 2
 
Introduction to ns3
Introduction to ns3Introduction to ns3
Introduction to ns3
 
Tutorial on IEEE 802.11 - MAC Protocols and Frames
Tutorial on IEEE 802.11 - MAC Protocols and FramesTutorial on IEEE 802.11 - MAC Protocols and Frames
Tutorial on IEEE 802.11 - MAC Protocols and Frames
 
200-301-demo.pdf
200-301-demo.pdf200-301-demo.pdf
200-301-demo.pdf
 
Cisco 200-301 Exam Dumps
Cisco 200-301 Exam DumpsCisco 200-301 Exam Dumps
Cisco 200-301 Exam Dumps
 
Cisco 200-301 Exam Dumps
Cisco 200-301 Exam DumpsCisco 200-301 Exam Dumps
Cisco 200-301 Exam Dumps
 
Computer Networking network layer chapter 4
Computer Networking network layer chapter 4Computer Networking network layer chapter 4
Computer Networking network layer chapter 4
 
Chapter_4_V6.11 Network layer.ppt
Chapter_4_V6.11 Network layer.pptChapter_4_V6.11 Network layer.ppt
Chapter_4_V6.11 Network layer.ppt
 
Mini Project- Implementation & Evaluation of Wireless LANs
Mini Project- Implementation & Evaluation of Wireless LANsMini Project- Implementation & Evaluation of Wireless LANs
Mini Project- Implementation & Evaluation of Wireless LANs
 
An ethernet based_approach_for_tm_data_analysis_v2
An ethernet based_approach_for_tm_data_analysis_v2An ethernet based_approach_for_tm_data_analysis_v2
An ethernet based_approach_for_tm_data_analysis_v2
 
Tut hemant ns2
Tut hemant ns2Tut hemant ns2
Tut hemant ns2
 
Ns fundamentals 1
Ns fundamentals 1Ns fundamentals 1
Ns fundamentals 1
 
Internetworking Overview
Internetworking OverviewInternetworking Overview
Internetworking Overview
 
Shubham chakravarty ppt_wcan
Shubham chakravarty ppt_wcanShubham chakravarty ppt_wcan
Shubham chakravarty ppt_wcan
 
Dash7 alliance protocol - where rfid meets wsn
Dash7 alliance protocol -  where rfid meets wsnDash7 alliance protocol -  where rfid meets wsn
Dash7 alliance protocol - where rfid meets wsn
 
Networking issues for distributed systems
Networking issues for distributed systemsNetworking issues for distributed systems
Networking issues for distributed systems
 
June 28 Presentation
June 28 PresentationJune 28 Presentation
June 28 Presentation
 
Networking basics
Networking basicsNetworking basics
Networking basics
 
Chapter4 Network
Chapter4 NetworkChapter4 Network
Chapter4 Network
 
BWC Supercomputing 2008 Presentation
BWC Supercomputing 2008 PresentationBWC Supercomputing 2008 Presentation
BWC Supercomputing 2008 Presentation
 

Más de Kathirvel Ayyaswamy

22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE
22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE
22cs201 COMPUTER ORGANIZATION AND ARCHITECTUREKathirvel Ayyaswamy
 
20CS2021-Distributed Computing module 2
20CS2021-Distributed Computing module 220CS2021-Distributed Computing module 2
20CS2021-Distributed Computing module 2Kathirvel Ayyaswamy
 
Recent Trends in IoT and Sustainability
Recent Trends in IoT and SustainabilityRecent Trends in IoT and Sustainability
Recent Trends in IoT and SustainabilityKathirvel Ayyaswamy
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network SecurityKathirvel Ayyaswamy
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network SecurityKathirvel Ayyaswamy
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network SecurityKathirvel Ayyaswamy
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security 18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security Kathirvel Ayyaswamy
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network SecurityKathirvel Ayyaswamy
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network SecurityKathirvel Ayyaswamy
 
20CS024 Ethics in Information Technology
20CS024 Ethics in Information Technology20CS024 Ethics in Information Technology
20CS024 Ethics in Information TechnologyKathirvel Ayyaswamy
 

Más de Kathirvel Ayyaswamy (20)

22CS201 COA
22CS201 COA22CS201 COA
22CS201 COA
 
22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE
22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE
22cs201 COMPUTER ORGANIZATION AND ARCHITECTURE
 
22CS201 COA
22CS201 COA22CS201 COA
22CS201 COA
 
18CS3040_Distributed Systems
18CS3040_Distributed Systems18CS3040_Distributed Systems
18CS3040_Distributed Systems
 
20CS2021-Distributed Computing module 2
20CS2021-Distributed Computing module 220CS2021-Distributed Computing module 2
20CS2021-Distributed Computing module 2
 
18CS3040 Distributed System
18CS3040 Distributed System	18CS3040 Distributed System
18CS3040 Distributed System
 
20CS2021 Distributed Computing
20CS2021 Distributed Computing 20CS2021 Distributed Computing
20CS2021 Distributed Computing
 
20CS2021 DISTRIBUTED COMPUTING
20CS2021 DISTRIBUTED COMPUTING20CS2021 DISTRIBUTED COMPUTING
20CS2021 DISTRIBUTED COMPUTING
 
18CS3040 DISTRIBUTED SYSTEMS
18CS3040 DISTRIBUTED SYSTEMS18CS3040 DISTRIBUTED SYSTEMS
18CS3040 DISTRIBUTED SYSTEMS
 
Recent Trends in IoT and Sustainability
Recent Trends in IoT and SustainabilityRecent Trends in IoT and Sustainability
Recent Trends in IoT and Sustainability
 
20CS2008 Computer Networks
20CS2008 Computer Networks 20CS2008 Computer Networks
20CS2008 Computer Networks
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security 18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security
 
18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security18CS2005 Cryptography and Network Security
18CS2005 Cryptography and Network Security
 
20CS2008 Computer Networks
20CS2008 Computer Networks20CS2008 Computer Networks
20CS2008 Computer Networks
 
20CS2008 Computer Networks
20CS2008 Computer Networks 20CS2008 Computer Networks
20CS2008 Computer Networks
 
20CS024 Ethics in Information Technology
20CS024 Ethics in Information Technology20CS024 Ethics in Information Technology
20CS024 Ethics in Information Technology
 

Último

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Último (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Glomosim scenarios

  • 1. Creating Scenario in GloMoSim-2.03 A.Kathirvel, AP/CSE B. S. Abdur Rahman University, Chennai
  • 2. Outline  Introduction  Input/Output files  Understanding Files/Directories  Design a wired Network  Design a wireless Network  Understanding Transmission range  Discussion
  • 3. Introduction to scenarios  In GloMoSim, a specific network topology is referred to as a scenario.  scenario allows the user to specify all the network components and conditions under which the network will operate.  Terrain details, channel propagation effects including path loss, wired and wireless subnets, network devices, the entire protocol stack of a variety of standard, and applications running on the network.
  • 4. Input Files  3 input files  Scenario Configuration file − This is the primary input file for GloMoSim and specifies the network scenario andparameters for the simulation. This file usually the extension “.in”.  Node placement file − This file is referenced by the scenario configuration file and specifies the initial position of nodes in the scenario. This file usually has the extension “.input”.  Application configuration file − This file is referenced by the scenario configuration file and specifies the applications running on the nodes in the scenario. This file usually has the extension “.conf”.
  • 5. Output File  GloMoSim Statistics file − The primary output file generated by a GloMo simulation run is a statistics file, which has the extension “.stat”. This file contains the statistics collected during the simulation run. Other output files that may be generated by GloMoSim include the trace file (which has the extension “.trace”) which records packet traces.  Configuration files located in bin/ directory : -IN : app.conf : Application execution options -IN : config.in : Simulation configuration options -OUT : glomo.stat : Simulation results
  • 6. GloMoSim Sub-Directories  Main, Include, Bin, Doc, TCPLib, Java_gui  Application  Transport  Network  Mac  Radio  Scenarios
  • 7. GloMoSim Files  File Extensions:  .pc – C source code  .h - C header files  .pi – Message file created and maintained internally by Parsec (don’t edit)
  • 8. Design a Network using GloMoSim
  • 10. Wired Networks  In this exercise, you will build and configure a simple wired network of four nodes connected with point-to- point links shown in the following figure.  By reducing the transmission rate of a link to create a "bottleneck", you will find how applications overwhelm the link and cause significant packet loss.
  • 12. Solution  Step 1: Node placement  Step 2: Wired link definition  Step 3: Creation of routing table  Step 4: Application selection  Step 5: Configuration  Step 6: Execution & Analysis the Results
  • 13. Scenario Topology  The topology of a network is defined by the number and location of network devices and the physical and logical connections between them.  NODE-PLACEMENT-FILE  Format:  nodeAddr 0 (x, y, z)  The second parameter is for the consistency with the mobility trace format.  0 0 (250, 250, 0)  1 0 (500, 250, 0)  2 0 (375, 500, 0)  3 0 (375, 750, 0)
  • 14. wired link definition  Each link is bidirectional, and the bandwidth is specified in bits per second.  Format:  nodeAddr1 nodeAddr2 bandwidth1 propDelay1 0-----| |______ |2 3 1-----| 0 2 10000000 1MS 1 2 10000000 1MS 2 3 10000000 1MS
  • 15. Routing Table (static)  Format: sourceAddr destAddr nextHop 0-----| |______ |2 3 1-----|  012 022 032  102 122 132  200 211 220  233 302 312  322
  • 16. Application Layer  The traffic generators currently available are FTP, FTP/GENERIC, TELNET, CBR, and HTTP.  FTP <src> <dest> <items to send> <start time>  FTP/GENERIC <src> <dest> <items to send> <item size> <start time> <end time>  TELNET <src> dest> <session duration> <start time>  CBR <src> <dest> <items to send> <item size> <interval> <start time> <end time>  Client: HTTP <address> <num_of_server> <server_1> ... <server_n> <start> <thresh>  Server: HTTPD <address>  CBR 0 3 75 512 1MS 0S 30S  CBR 1 3 75 512 1MS 0S 30S
  • 17. Configure the wired Network  SIMULATION-TIME 100S  SEED 2  TERRAIN-DIMENSIONS (1000, 1000)  NUMBER-OF-NODES 4  NODE-PLACEMENT FILE  NODE-PLACEMENT-FILE ./wired_nodes.input  MOBILITY NONE  PROPAGATION-LIMIT -111.0  PROPAGATION-PATHLOSS FREE-SPACE  RADIO-TYPE RADIO-NONOISE  RADIO-BANDWIDTH 2000000  MAC-PROTOCOL WIRED  WIRED-LINK-FILE wired.conf
  • 18. Configure the wired Network  NETWORK-PROTOCOL IP  NETWORK-OUTPUT-QUEUE-SIZE-PER-PRIORITY 100  ROUTING-PROTOCOL STATIC  STATIC-ROUTE-FILE wired_route.in  APP-CONFIG-FILE ./wired_app.conf  APPLICATION-STATISTICS YES  TCP-STATISTICS NO  UDP-STATISTICS NO  ROUTING-STATISTICS NO  NETWORK-LAYER-STATISTICS NO  MAC-LAYER-STATISTICS NO  RADIO-LAYER-STATISTICS NO  CHANNEL-LAYER-STATISTICS NO  MOBILITY-STATISTICS NO
  • 19. Output Node: 0, Layer: AppCbrClient, (0) Server address: 3 Node: 0, Layer: AppCbrClient, (0) Session status: Closed Node: 0, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 1, Layer: AppCbrClient, (0) Server address: 3 Node: 1, Layer: AppCbrClient, (0) Session status: Closed Node: 1, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 3, Layer: AppCbrServer, (0) Client address: 1 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.003365200 Node: 3, Layer: AppCbrServer, (0) Session status: Closed Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 75 Node: 3, Layer: AppCbrServer, (0) Client address: 0 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.002910800 Node: 3, Layer: AppCbrServer, (0) Session status: Closed Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 75
  • 20. Data Packet Dropping Situations
  • 21. wired link definition  Each link is bidirectional, and the bandwidth is specified in bits per second.  Format:  nodeAddr1 nodeAddr2 bandwidth1 propDelay1 0-----| |______ |2 3 1-----| 0 2 10000000 1MS 1 2 10000000 1MS 2 3 1000000 1MS
  • 22. Output Node: 0, Layer: AppCbrClient, (0) Server address: 3 Node: 0, Layer: AppCbrClient, (0) Session status: Closed Node: 0, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 1, Layer: AppCbrClient, (0) Server address: 3 Node: 1, Layer: AppCbrClient, (0) Session status: Closed Node: 1, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 3, Layer: AppCbrServer, (0) Client address: 1 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.233964400 Node: 3, Layer: AppCbrServer, (0) Session status: Not closed Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 56 Node: 3, Layer: AppCbrServer, (0) Client address: 0 Node: 3, Layer: AppCbrServer, (0) Session status: Not closed Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 61
  • 25. Solution  Step 1: Node placement  Step 2: Application selection  Step 3: Configuration  Step 4: Execution & Analysis the Results
  • 26. Scenario Topology  The topology of a network is defined by the number and location of network devices and the physical and logical connections between them.  NODE-PLACEMENT-FILE  Format:  nodeAddr 0 (x, y, z)  The second parameter is for the consistency with the mobility trace format.  0 0 (250, 250, 0)  1 0 (500, 250, 0)  2 0 (375, 500, 0)  3 0 (375, 750, 0)
  • 27. Application Layer  CBR 0 3 75 512 1NS 10S 30S  CBR 1 3 75 512 1NS 40S 60S
  • 28. Configure the wireless Network  SIMULATION-TIME 100S  SEED 1  TERRAIN-DIMENSIONS (1000, 1000)  NUMBER-OF-NODES 4  NODE-PLACEMENT FILE  NODE-PLACEMENT-FILE ./wireless_nodes.input  MOBILITY NONE  PROPAGATION-LIMIT -111.0  PROPAGATION-PATHLOSS TWO-RAY  NOISE-FIGURE 10.0  TEMPARATURE 290.0
  • 29. Configure the wireless Network  RADIO-TYPE RADIO-ACCNOISE  RADIO-FREQUENCY 2.4e9  RADIO-BANDWIDTH 2000000  RADIO-TX-POWER 15.0  RADIO-ANTENNA-GAIN 0.0  RADIO-RX-SENSITIVITY -91.0  RADIO-RX-THRESHOLD -81.0  MAC-PROTOCOL 802.11  ROUTING-PROTOCOL BELLMANFORD
  • 30. Configure the wireless Network  NETWORK-PROTOCOL IP  NETWORK-OUTPUT-QUEUE-SIZE-PER-PRIORITY 100  APP-CONFIG-FILE ./wireless_app.conf  APPLICATION-STATISTICS YES  TCP-STATISTICS NO  UDP-STATISTICS NO  ROUTING-STATISTICS NO  NETWORK-LAYER-STATISTICS NO  MAC-LAYER-STATISTICS NO  RADIO-LAYER-STATISTICS NO  CHANNEL-LAYER-STATISTICS NO  MOBILITY-STATISTICS NO
  • 31. Output Node: 0, Layer: AppCbrClient, (0) Server address: 3 Node: 0, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 1, Layer: AppCbrClient, (0) Server address: 3 Node: 1, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 3, Layer: AppCbrServer, (0) Client address: 1 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.276741535 Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 75 Node: 3, Layer: AppCbrServer, (0) Client address: 0 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.280470646 Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 75
  • 32. Data Packet Dropping Situations
  • 33. Application Layer CBR 0 3 75 512 1MS 0S 0S CBR 1 3 75 512 1MS 0S 0S
  • 34. Output Node: 0, Layer: AppCbrClient, (0) Server address: 3 Node: 0, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 1, Layer: AppCbrClient, (0) Server address: 3 Node: 1, Layer: AppCbrClient, (0) Total number of packets sent: 75 Node: 3, Layer: AppCbrServer, (0) Client address: 1 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.410570911 Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 47 Node: 3, Layer: AppCbrServer, (0) Client address: 0 Node: 3, Layer: AppCbrServer, (0) Average end-to-end delay [s]: 0.381539628 Node: 3, Layer: AppCbrServer, (0) Total number of packets received: 47
  • 35. Wireless Mobile Ad Hoc Networks
  • 37. Radio range [root@localhost Wireless networks]# radio_range wireless_configuration radio range: 376.782m Execution time : 0.0059 sec Number of events (including timeouts) processed : 0 Number of messages processed : 0 Number of context switches occurred : 6 Number of Local NULL messages sent : 0 Number of Remote NULL messages sent : 0 Total Number of NULL messages sent : 0
  • 38. Setting Radio range Free Space Propagation  The free space propagation model is the simplest path loss model in which there is a direct path signal between the transmitter and the receiver, with no atmospheric attenuation or multipath components. In this model the relationship between the transmitted power Pt and the received power Pr is given by  Pr = Pt Gt Gr (λ/4Πd )2  Where Gt and Gr are the transmitter and receiver antenna gains, respectively, in the direction from the transmitter and receiver, d is the distance between the transmitter and receiver, and λ= c/f is the wavelength the signal.
  • 39. Setting Radio range Two Ray Propagation  The two-path model assumes that the signal reaches the receiver through two paths, one a line-of-sight path, ad the other the path through which the reflected (or refracted, or scattered) wave is received.  Pr = Pt Gt Gr (hthr /d2 )2  Where Pt is the transmitted power, Gt and Gr are the transmitter and receiver antenna gains, respectively, in the direction from the transmitter and receiver, d is the distance between the transmitter and receiver, and ht and hr are the heights of the transmitter and receiver, respectively.
  • 40. Radio Range Calculation Input parameters  PROPAGATION-PATHLOSS TWO-RAY  RADIO-FREQUENCY 2.4e9  RADIO-TX-POWER 15.0 (dBm)  RADIO-ANTENNA-GAIN 0.0 (dBm) [ isotropic antenna]  RADIO-RX-SENSITIVITY -91.0 (dBm)  RADIO-RX-THRESHOLD -81.0 (dBm) Given Data Pt = 15 dBm Pr = -81 dBm c = 3 X 108 f = 2.4 X 109 Gt = Gr = 0 ht = hr = 1.5
  • 41. Radio Range Calculation PowerdBm = 10 Log (PowermW/1 mW) PowermW = 10 (PowerdBm/10) Pt = PowermW = 10 (PowerdBm/10) = 1015/10 = 101.5 = 31.622776 mW Pr = PowermW = 10 (PowerdBm/10) = 10-81/10 = 10-8.1 = 7.943 X 10-9 mW Two-Ray Pr = Pt Gt Gr (hthr /d2 )2 ____________________________________ d = 4 | 31.62276 X 1.5 X 1.5 X 1.5 X 1.5 / 7.943e-9 = 376.7839
  • 42. Radio Range Calculation Radio Transmission range = 250 m  RADIO-TX-POWER 7.88 (dBm) Given Data Pt = 7.88 dBm Pr = -81 dBm c = 3 X 108 f = 2.4 X 109 Gt = Gr = 0 ht = hr = 1.5 Pt = PowermW = 10 (PowerdBm/10) = 107.88/10 = 6.137620052 mW Pr = PowermW = 10 (PowerdBm/10) = 10-81/10 = 10-8.1 = 7.943 X 10-9 mW ______________________________________ d = 4 |6.137620052 X 1.5 X 1.5 X 1.5 X 1.5 / 7.943e-9 = 250.08773
  • 43. Output [root@localhost Wireless networks]# radio_range wireless_config.in radio range: 250.086m Execution time : 0.0011 sec Number of events (including timeouts) processed : 0 Number of messages processed : 0 Number of context switches occurred : 6 Number of Local NULL messages sent : 0 Number of Remote NULL messages sent : 0 Total Number of NULL messages sent : 0
  • 44. Radio Range Calculation Input parameters  PROPAGATION-PATHLOSS FREE-SPACE  RADIO-FREQUENCY 2.4e9  RADIO-TX-POWER 15.0 (dBm)  RADIO-ANTENNA-GAIN 0.0 (dBm) [ isotropic antenna]  RADIO-RX-SENSITIVITY -91.0 (dBm)  RADIO-RX-THRESHOLD -81.0 (dBm) Given Data Pt = 15 dBm Pr = -81 dBm c = 3 X 108 f = 2.4 X 109 Gt = Gr = 0 ht = hr = 1.5
  • 45. Radio Range Calculation Pt = PowermW = 10 (PowerdBm/10) = 1015/10 = 101.5 = 31.622776 mW Pr = PowermW = 10 (PowerdBm/10) = 10-81/10 = 10-8.1 = 7.943 X 10-9 mW FREE-SPACE Pr = Pt Gt Gr (λ /4Πd )2 _________ d = ( | (P / P ) C2 )/ 4Πf t r ___________________________ d = 4 | (31.62276 / 7.943e-9 ) X (3 e 8)2 / 4 X 3.14 X 2.4 e 9 = 627.57 m
  • 46. Output [root@localhost Wireless networks]# radio_range wireless_config.in radio range: 627.625m Execution time : 0.0011 sec Number of events (including timeouts) processed : 0 Number of messages processed : 0 Number of context switches occurred : 6 Number of Local NULL messages sent : 0 Number of Remote NULL messages sent : 0 Total Number of NULL messages sent : 0
  • 47. Radio Range Calculation Radio Transmission range = 276 m  RADIO-TX-POWER 7.88 (dBm) FREE SPACE [root@localhost Wireless networks]# radio_range wireless_config.in radio range: 276.503m Execution time : 0.0020 sec Number of events (including timeouts) processed : 0 Number of messages processed : 0 Number of context switches occurred : 6 Number of Local NULL messages sent : 0 Number of Remote NULL messages sent : 0 Total Number of NULL messages sent : 0