Changes between Version 16 and Version 17 of NewDelayNodeNs


Ignore:
Timestamp:
Nov 15, 2011 6:58:56 PM (12 years ago)
Author:
alwabel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewDelayNodeNs

    v16 v17  
    4242
    4343}}}
    44 Examples:
    45 {{{
    46         #Example 1
    47         make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms
    48         Ping from nodeA to nodeB
    49        
    50         #Example 2
    51         make-deter-lan "$nodeA $nodeB " bw 1Gb delay normal mean 100ms stv 5
    52         Ping from nodeA to nodeB
    53 
    54         #Example 3
    55         make-deter-lan "$nodeA $nodeB " bw 1Gb delay poisson mean 100ms
    56         Ping from nodeA to nodeB
    57 
    58         #Example 4
    59         make-deter-lan "$nodeA $nodeB " bw 1Gb delay exponential mean 15ms
    60         Ping from nodeA to nodeB
    61 
    62         #Example 4
    63         make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms loss static threshold 0.01 rate 1
    64         Ping from nodeA to nodeB
    65 
    66         #Example 5
    67         make-deter-lan "$nodeA $nodeB " bw 1Gb delay normal mean 100ms std 5 loss poisson threshold 0.01 rate 5
    68         Ping from nodeA to nodeB
    69 
    70 }}}
    7144Delay types are : static, normal , poisson and exponential. Note that normal requires standard variation, which is set to zero if not provided.
    7245loss dropmodes are static and poisson. Also notice that the default bandwidth is 1Gb.
     
    7548The loss model is more sophisticated.It adds the ability to drop packets based on different parameters. The user can adjust the parameters to achieve any desirable pattern. Dropping packet is based on a threshold x; x ≥ 0.000001 and x ≤ 1 which is given by the user. For each received packet, if not in the dropping state, the element generates a uniform random number r ∈ [0.000001, 1] if r ≤ x then it enters the dropping mode. It has to drop σ packets to leave the dropping state. σ is either a static value given by the user or a random number belongs to a Poisson distribution. To set up a dropping mode with static dropping rate the dropmode should be set to "static".
    7649
     50== Examples ==
     51
     52{{{
     53        #Example 1
     54        make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms
     55}}}
     56Ping from nodeA to nodeB
     57{{{
     58
     59}}}
     60
     61{{{     
     62        #Example 2
     63        make-deter-lan "$nodeA $nodeB " bw 1Gb delay normal mean 100ms stv 5
     64}}}
     65     Ping from nodeA to nodeB
     66{{{     
     67   
     68}}}
     69
     70{{{
     71        #Example 3
     72        make-deter-lan "$nodeA $nodeB " bw 1Gb delay poisson mean 100ms
     73}}}
     74        Ping from nodeA to nodeB
     75{{{
     76}}}
     77
     78{{{
     79        #Example 4
     80        make-deter-lan "$nodeA $nodeB " bw 1Gb delay exponential mean 15ms
     81}}}
     82        Ping from nodeA to nodeB
     83{{{
     84}}}
     85{{{
     86        #Example 5
     87        make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms loss static threshold 0.01 rate 1
     88}}}
     89        Ping from nodeA to nodeB
     90{{{
     91}}}
     92
     93{{{
     94        #Example 6
     95        make-deter-lan "$nodeA $nodeB " bw 1Gb delay normal mean 100ms std 5 loss poisson threshold 0.01 rate 5
     96}}}
     97        Ping from nodeA to nodeB
     98{{{
     99}}}
     100
    77101
    78102This is a placeholder