Simple calculations in Cloudsim

1,539 views
Skip to first unread message

Nick

unread,
May 23, 2013, 7:04:57 AM5/23/13
to clou...@googlegroups.com
Hello All ! 
 Can anyone explain me how to calculate 50.1 in network example 4? Is it transmission time of the cloudlet from broker to datacenter?
How can i calculate sending and receiving time of the cloudlet?  But execution time is clear.

========== OUTPUT ==========
Cloudlet ID    STATUS    Data center ID    VM ID    Time    Start Time    Finish Time
    0        SUCCESS        2            0        160        50.1        210.1 

...

Thank you very much in advance!
Regards!

Awadheshwari Patel

unread,
May 25, 2013, 11:37:08 AM5/25/13
to clou...@googlegroups.com
Hi Nick
this 50.1 is the processing time that cloudlet takes, u change the length of cloudlet in code of networkExample4 and this val changes.(I have changed it from 40000 to 4000 and get time=16). Have u gone through the following line of code 
NetworkTopology.addLink(datacenter0.getId(),broker.getId(),10.0,10);
This 10.0 val is the BW and 10 is the Latency val i.e Round trip time needed for transmitting the cloudlet from broker to datacenter. It means you don't have to calculate it as they have already defined it.




--
 
---
You received this message because you are subscribed to the Google Groups "cloudsim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudsim+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nizomiddin UZB

unread,
May 26, 2013, 8:38:44 AM5/26/13
to clou...@googlegroups.com
Hello AWADHESHWARI 

Thank you very much for your answer but calculation of round trip time is not right i think  because 

processing time = cloudlet length/mips = 40000/250 =160   (this is processing time not 50.1)

round trip time = (file size/bw)+delay +(outputsize/bw)+delay = (300*8/10000)+10+(300*8/10000)+10 =20.48

but example shows that round trip time 50.1 why?
 I want to match my calculation with example one.


 

Awadheshwari Patel

unread,
May 29, 2013, 2:16:58 AM5/29/13
to clou...@googlegroups.com
Hi Nizomiddin 

Ya its true that 50.1 is not the processing time but it is not round trip time as well, i think it is (start time + delay) as in example seding cloudlet is at 40.1 so delay of 10 is added in it for getting the time at which execution of that clodlet  actually starts at server.

Similarly we can see that cloudlet is received at 76.1 but they have shown the finish time as 66.1 i.e they have subtracted the delay to get the actual finish time at the server.

By the way Can u plz tell me where this roundtrip time calculation implemented in cloudsim code or from where u get this formula.
Thanks in advance................


--

Nick

unread,
May 30, 2013, 11:31:29 AM5/30/13
to clou...@googlegroups.com
Hi AWADHESHWARI 

I think  roundtrip time calculation isn't implemented in cloudsim code. I mean amond datacenter entities and broker entities but you can built network inside the datacenter entity (hosts to hosts, vm to vm, cloudlet to cloudlet)

Actually 

round trip time = (file size/bw)+latency+processing time +(outputsize/bw)+latency= 180.48
this is simple calculation if you want to calculate any network's roundtrip time you should use this structure. 
i took latency =10; bw =10.0 Kbit/s; cloudllet file size and output siz =300 Byte =300*8 =2400 bit from the code. 

Didn't you  find any way how to calculate round trip time among broker and datacenter entities? If you find please let me know.




Regards!


hoa nguyen thi thanh

unread,
May 19, 2016, 10:11:00 PM5/19/16
to cloudsim
when i use CloudletShedulerTimeShared i get excution time = length/mips but when i use CloudletSchedulerDynamicWorkload i don't get it? Why? Please help me.

Vào 18:04:57 UTC+7 Thứ Năm, ngày 23 tháng 5 năm 2013, Nick đã viết:
Reply all
Reply to author
Forward
0 new messages