I read Marcs tuturial now, and I still do not understand how you have a virtual
node run a local program. Every single time I see them running an NS2
simulation, it is always using some TCP or UDP setup... I have my own programs
that will create their own sockets and generate their own traffic. What I am
using NS for is to simulate latency and such.
> Hi George,
>
> I recommend that you take the time to work your way through Marc's
> tutorial. I belive you will understand a lot of these subjects that you
> are asking about if you do.
>
> Henrik
>
> George P Nychis wrote:
>>
>> Hey guys,
>>
>> I want to use NS-2 to run my own application for testing. I want it to
>> be a LAN environment, such that there is a router in the middle, and
>> everyone is connected to the router.
>>
>> Then, when the simulation starts, I want my nodes to run a local
>> application from my computer, so lets say I want 5 "clients" 1
>> "caching" and 1 "camera" node... then a router, with 100MBps links and
>> no delay
>>
>> so far, i understand: --------------------------------- set ns [new
>> Simulator] source tb_compat.tcl
>>
>> for{set i 1} {$i <= 5} {incr i} { set camera($i) [$ns node] }
>>
>> set caching [$ns node] set camera [$ns node]
>>
>> set LAN [$ns make-lan "$camera1 $client1 $client2 $client3 $client4
>> $client5 $caching" 100000kb 0ms] $ns rtproto Static $ns run
>> --------------------------------
>>
>> so, first off I don't know if my make-lan is correct, and second off, I
>> don't know how to do that in a loop fashion
>>
>> I also don't know how to get the nodes to start a script or program
>> when they run
>>
>> Thanks! George
>>
>>
>
>
>