Tareans2 - #Primera tarea de simulacion en NS-2#Universidad de los Andes#08 de Noviembre de 2009#LUIS FELIPE ARIZA VESGA#CODIGO:200519082#Topologia

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
# #Primera tarea de simulacion en NS-2 # #Universidad de los Andes # #08 de Noviembre de 2009 # #LUIS FELIPE ARIZA VESGA # #CODIGO:200519082 # #Topologia de la red a simular # ___ #(FTP)---|2Mbps/1ms|----------- # | # ____ ______ ____ #(CBR1)---|2Mbps/1ms|-----(Router)---|6Mbps/5ms|-------(sink) # | # ___ | #(CBR2)---|2Mbps/1ms|---------- # ## MAIN ## # #Crear el simulador set ns [new Simulator] #Definir los diferentes colores de los flujos $ns color 1 Blue $ns color 2 Red $ns color 3 Green #Crear el archivo Trace.tr set mytrace [open Trace.tr w] $ns trace-all $mytrace #Crear el archivo Simulacion.nam de simulacion set myNAM [open Simulacion.nam w] $ns namtrace-all $myNAM #Definicion del procedimiento de finalizacion proc finish {} { global ns mytrace myNAM $ns flush-trace close $mytrace close $myNAM exit 0 } #Generador de numeros aleatorios #set Pareto_rng [new RNG] #$Pareto_rng seed 0 #Variable tipo Pareto set Pareto_ [new RandomVariable/Pareto] $Pareto_ set avg_ 250
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/23/2010 for the course ELECTRONIC mems taught by Professor Juanariza during the Spring '10 term at 東京国際大学.

Page1 / 3

Tareans2 - #Primera tarea de simulacion en NS-2#Universidad de los Andes#08 de Noviembre de 2009#LUIS FELIPE ARIZA VESGA#CODIGO:200519082#Topologia

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online