WikiPrint - from Polar Technologies

New Delay Node Commands

make-new-lan

The new delay node supports variable delays based on various probability distributions such as: Poisson, Normal and Exponential. Moreover, it 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.

        set ns [ new Simulator] 
        source tb_compat.tcl

        set nodeA [$ns node]
        set nodeB [$ns node]
        set nodeC [$ns node]

        set lan1 [$ns make-new-lan "$nodeA $nodeB $nodeC" bw 1Gb delay static 30ms loss 0.1 static 1]
        $ns rtproto Static
        $ns run

This is a placeholder