Changes between Version 16 and Version 17 of NewDelayNodeNs
- Timestamp:
- Nov 15, 2011 6:58:56 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewDelayNodeNs
v16 v17 42 42 43 43 }}} 44 Examples:45 {{{46 #Example 147 make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms48 Ping from nodeA to nodeB49 50 #Example 251 make-deter-lan "$nodeA $nodeB " bw 1Gb delay normal mean 100ms stv 552 Ping from nodeA to nodeB53 54 #Example 355 make-deter-lan "$nodeA $nodeB " bw 1Gb delay poisson mean 100ms56 Ping from nodeA to nodeB57 58 #Example 459 make-deter-lan "$nodeA $nodeB " bw 1Gb delay exponential mean 15ms60 Ping from nodeA to nodeB61 62 #Example 463 make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms loss static threshold 0.01 rate 164 Ping from nodeA to nodeB65 66 #Example 567 make-deter-lan "$nodeA $nodeB " bw 1Gb delay normal mean 100ms std 5 loss poisson threshold 0.01 rate 568 Ping from nodeA to nodeB69 70 }}}71 44 Delay types are : static, normal , poisson and exponential. Note that normal requires standard variation, which is set to zero if not provided. 72 45 loss dropmodes are static and poisson. Also notice that the default bandwidth is 1Gb. … … 75 48 The 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". 76 49 50 == Examples == 51 52 {{{ 53 #Example 1 54 make-deter-lan "$nodeA $nodeB " bw 1Gb delay static mean 100ms 55 }}} 56 Ping 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 77 101 78 102 This is a placeholder