NS2: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

    20 October 2022

    • curprev 20:1320:13, 20 October 2022James talk contribs 1,769 bytes +1,769 Created page with "Running NS2 is a four step process. Prepare a Tcl script for NS2 like the example ('''''ex.tcl''''') shown below. This example has 2 nodes with 1 link and uses UDP agent with the CBR traffic generator. <pre> set ns [new Simulator] set tr [open trace.out w] $ns trace-all $tr proc finish {} { global ns tr $ns flush-trace close $tr exit 0 } set n0 [$ns node] set n1 [$ns node] $ns duplex-link $n0 $n1 1Mb 10ms DropTail set udp0 [new Agent..."