[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] 2 point to point links =? switch



make-lan will simulate a CSMA/CD (repeater hub) based LAN am i right ?
What if I want to simulated a switched network ?

Plz can you be more specific?

Thomas

> -----Message d'origine-----
> De : [email protected] [mailto:[email protected]]De la part de
> Ya Xu
> Envoye : mardi 10 avril 2001 7:25
> A : Thomas Kuborn
> Cc : [email protected]
> Objet : Re: [ns] 2 point to point links =? switch
>
>
> You can simulate 802.3 network
>
> On Sat, 7 Apr 2001, Thomas Kuborn wrote:
>
> > Hello all,
> >
> > ##############
> > FIRST QUESTION
> > ##############
> >
> > I'm trying to simulate a network consisting of 3 workstations
> connected to 3
> > ports on a switching hub
> >
> > radio_n0 <---> switch <---> cardio_n2
> >                   ^
> >                   |
> >                   |
> >                   |
> >                   ^
> >                mammo_n3
> >
> > Will the following piece of code do it ?
> >
> > set radio_n0 [$ns node]
> > set switch [$ns node]
> > set cardio_n2 [$ns node]
> > set mammo_n3 [$ns node]
> >
> > $ns duplex-link $radio_n0 $switch 100Mb 10ms DropTail
> > $ns duplex-link $switch $cardio_n2 10Mb 10ms DropTail
> > $ns duplex-link $switch $mammo_n3 10Mb 10ms DropTail
> >
> > ###############
> > SECOND QUESTION
> > ###############
> >
> > Is there any layer2 agent in Ns which i could use to get #collisions and
> > #frames transmitted ??
> >
> > Thank you
> >
> > Thomas
> >
>
>
>