Changes between Version 1 and Version 2 of NewDelayNodeNs
- Timestamp:
- Oct 13, 2011 2:06:28 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewDelayNodeNs
v1 v2 1 1 = New Delay Node Commands = 2 == make-new-lan == 3 The new delay node supports variable delays based on various probability distributions such as: Poisson, Normal and Exponential. Moreover, it 4 enhances some of the functions for a more realistic link emulation. "make-new-lan" command create a LAN that uses this new delay node to control bandwidth, add probabilistic delays and induces sophisticated loss pattern. make-new-lan parameters are the nodelist, bandwidth, delay properties, and loss pattern description. To create a LAN, connecting three nodes, with a static delay of 30ms, 1Gb bandwidth and a static loss of threshold 0.1 and a rate of 1. 5 {{{ 6 set ns [ new Simulator] 7 source tb_compat.tcl 2 8 9 set nodeA [$ns node] 10 set nodeB [$ns node] 11 set nodeC [$ns node] 12 13 set lan1 [$ns make-new-lan "$nodeA $nodeB $nodeC" bw 1Gb delay static 30ms loss 0.1 static 1] 14 $ns rtproto Static 15 $ns run 16 }}} 3 17 This is a placeholder