From: Jonathan M. <jon...@bs...> - 2009-03-20 12:37:55
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Geetha, For instance, a topology with 3 routers router[A, B, C], with A connected with B and C, and B, C connected as well: 3 routerA routerB routerC routerA routerB 0.1 10 1500 routerA routerC 0.1 10 1500 routerB routerC 0.1 10 1500 If you write this on a file, for instance let's say "/home/geetha/mynetwork.conf" you can use the following java code example: String path = "/home/geetha/mynetwork.conf"; LinkedList<Router> l = gridsim.util.NetworkReader.createFlow(path); If you are not using the new version of GridSim, you can use NetworkReader.createFIFO(path), but the simulation time increases exponentially since this second function uses SimpleLink links which implies the creation of a new entity object per network packet (in our example with MTUs = 1500, implies a new object for every 1500 bytes transferred). Regards, Jonathan geetha jini escribió: > Thank u for ur reply sir. > Can u please provide me an example for defining our own network topology. > Geetha. > > --- On *Tue, 17/3/09, Jonathan Marti /<jon...@bs...>/* wrote: > > > From: Jonathan Marti <jon...@bs...> > Subject: Re: [GridSim-users] how to create a peer to peer network in > gridsim > To: "geetha jini" <cge...@ya...> > Cc: gri...@li... > Date: Tuesday, 17 March, 2009, 9:17 PM > > > You cand define your own network topology in a simple plain text > file such as: > > #num of routers > 5 > #router ids > router1 > router2 > router3 > router4 > router5 > #router links defined between two of them > # bw(Gbps) delay(ms) (MTU) > router1 router2 0.1 10.0 1500 > router1 router5 0.1 10.0 1500 > router2 router5 0.1 10.0 1500 > router2 router3 0.1 10.0 1500 > router4 router5 0.1 10.0 1500 > > Then, you can use the gridsim.util.NetworkReader class to initialize the > topology (this class parses the file and creates the routers). > > Finally you can attach resources and users to any of these routers. > > Regards, > > Jonathan > > PS: Use GridSim 4.2 with Flow links if you want to simulate > data-intensive > gridlets. Otherwise, the time to execute simulation of data > transfers among > resources, grows exponentially. > > > > geetha jini escribió: >> Hello, > >> How to create a peer to peer network with peers as grid resources and >> grid users in gridsim? > >> Regards, >> Geetha. > > > > ------------------------------------------------------------------------ >> Add more friends to your messenger and enjoy! Invite them now. > > <http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/> > > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex > Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. > Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based > development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > > > ------------------------------------------------------------------------ > >> _______________________________________________ >> Gridsim-users mailing list >> Gri...@li... > </mc/compose?to=Gri...@li...> >> https://lists.sourceforge.net/lists/listinfo/gridsim-users > > ------------------------------------------------------------------------ > Add more friends to your messenger and enjoy! Invite them now. > <http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/> - -- - ----------------------------------------------------------------------- Jonathan Martí Fraiz Storage Systems Research Group - Computer Sciences Department Barcelona Supercomputing Center - Centro Nacional de Supercomputación www : http://www.bsc.es/StorageSystems email : jonathan(dot)marti(at)bsc(dot)es phone : (0034) 934054281 - ----------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknDjjUACgkQ4cH1a6R2mCtM/gCgxDBavSzqOU7baecRgA0OAJKz I4kAoLXEkmNwC1G1wmvvQsYSZgubqVA7 =Soua -----END PGP SIGNATURE----- |