From: Anthony S. <an...@cs...> - 2008-04-18 09:58:48
|
Hello, Unfortunately, due to a design issue, an entity in GridSim can only connect through one Input and Output port. This is also due to SimJava definition of ports, i.e. they are unidirectional (1-way) communication links. To be able to send 3 files simultaneously, I may suggest that you use the Rate-controlled scheduler, see the example on http://www.gridbus.org/gridsim/example/net_index.html#gridsim_ex4 In the simulation setup, you partition the link bandwidth into 3 different percentages, say 30%, 30% and 40%. Then file A, B and C have different ToS. However, I am not completely sure whether all of them will be arriving at the same time (if they have the same size), since packets are enqued and dequed at the I/O ports and routers. Try this and tell us whether it works on not. anthony ---------------------------------------- Anthony Sulistio PhD student Room 5.18a, ICT Building 111 Barry St Department of Computer Science and Software Engineering The University of Melbourne Victoria 3053, Australia Telp: +61 3 8344 1360 Fax: +61 3 9348 1184 (ATTN: Anthony Sulistio - Room 5.18a) Email: an...@cs... Website: http://www.csse.unimelb.edu.au/~anthony ---------------------------------------- On Thu, 17 Apr 2008, llq wrote: > Hello, everyone. > > I have a question. If a user have more than 1 files to transfer. For example , file A and B and C belong to user 1 and should be transfered at the same time. However, user 1 have only one output port and therefore the 3 files are transfered one by one. How can I get what I want? I think maybe the sender need a number of output ports ,whether the receiver need several ports assuming only one receive? How can I create a user with more than one port? Better to have a simple example. > Thanks very much. > Best wishes. > Sincerely Yours > llq > > > --------------------------------- > ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡 |