Cloudslab / cloudsimsdn

CloudSimSDN is an SDN extension of CloudSim project to simulate Networking, SDN and SFC features in the context of edge and cloud data centers.
GNU General Public License v2.0
94 stars 59 forks source link

compiling error #9

Open fatemehm opened 6 years ago

fatemehm commented 6 years ago

Hey, I am trying to compile and run CloudSimSDN on my machine but I've faced this error: java:128: error: incompatible types: Collection cannot be converted to Collection<? extends SDNHost> hg.hosts = new ArrayList((Collection<? extends SDNHost>)topology.getConnectedNodesLow(e)); ^ 1 error unfortunately, I couldn't figure out the error. I should run this as soon as possible.

sandinojardim commented 6 years ago

Hi, @fatemehm

Did you solve this problem?

fatemehm commented 6 years ago

Hi @sandinojardim Unfortunately, I couldn't run and compile the new version :( if you could figure out the problem, please let me know

sandinojardim commented 6 years ago

There is a pull request with a bug fix suggestion:

hg.hosts = new ArrayList<SDNHost>((Collection<? extends SDNHost>) (Collection<? extends Node>)topology.getConnectedNodesLow(e));

I replaced that line by the above suggestion and worked for me.

davidperezabreu commented 6 years ago

Hi there!

@sandinojardim is right! The problem is related with the casting! That kind of casting using the wildcard operator could be a little tricky. You also can use something like this:

hg.hosts = new ArrayList<SDNHost>((Collection<? extends SDNHost>)(Collection<?>)topology.getConnectedNodesLow(e));

Cheers,

fatemehm commented 6 years ago

@sandinojardim thanks you very much, let me check this :) I hope it works for me too.

fatemehm commented 6 years ago

@davidperezabreu Thanks, actually I'm new in CloudsimSDN and java programming. I need to extend this framework in order to support NFV ( Network function virtualization) and SFCs ( service function chaining) but I don't know exactly which of the packages I have to extend.

anyanteh commented 5 years ago

hello i'm trying to setup the cloudsimsdn v.2 but i appears this method "getCloudletFailedList()" is not available in the package org.cloudbus.cloudsim.sdn

anyanteh commented 5 years ago

can i have help with to fix this problem please

anyanteh commented 5 years ago

is there another version of the cloudsim 3.0.3 jar file please that implements "getCloudletFailedList()"??

fatemehm commented 5 years ago

Hi @anyanteh I've faced the same problem. could you figure out the problem? you can find cloudsim4.0 in this link : https://github.com/Cloudslab/cloudsim/releases/tag/cloudsim-4.0

fatemehm commented 5 years ago

@anyanteh It works with "cloudsim-4.0.jar" . You have to put this Jar file in the Jar folder.

anyanteh commented 5 years ago

thanks for your feedback,just tried it but its still doesn't work.Is there any particular thing u did aside setting up cloudsim v.4 cloudsim sdn v.2 and adding the maven dependencies, please??

fatemehm commented 5 years ago

@anyanteh try to compile all of the folders one by one. actually, I could not run the example, because of some problem in the vmallocation folder, I altered "getFreeMips().add(host.getTotalMips());" (line 65 in the VmAllocationPolicyCombinedMostFullFirst.java) to "getFreeMips().add((long)host.getTotalMips());" . Then try to run with this ( in Linux) : java -cp jars/*:. org/cloudbus/cloudsim/sdn/example/SimpleExample LFF dataset-energy/energy-physical.json dataset-energy/energy-virtual.json dataset-energy/energy-workload.csv > results.out

anyanteh commented 5 years ago

@ fatemehm, thank u so much for your help.

You were right. I reproduced the compile error with 3.0.3. When I brought in 4.0, the compile issue went away. This is bad ... to deliver a code repository containing an incorrect version number in the pom.xml file. I just did not want to believe it.

anyanteh commented 5 years ago

@fatemehm regarding the example, i think the project (CLoudsimSDN v.2.0) was updated on 14th of February and a these files might be available for use. you might want to give that shot Cheers

fatemehm commented 5 years ago

@anyanteh Hi, could you run the StartExperimentSFCEdge and StartExperimentSFC?

anyanteh commented 5 years ago

hey, I remember it run when i first set it up.but its seems not to be run at the moment. Let me look it up and get back to you. Cheers

hetianzhang commented 5 years ago

Hi @fatemehm and @anyanteh,

I recently have time to look at the code and fixed the bugs appeared in the example of StartExperimentSFCEdge and StartExperimentSFC, which is caused by the bugs in CloudSim 4.0. It is because the createDataCenter called in SDNDataCenter for creating the inter-cloud networking physical topology is failed as there are no physical hosts defined with available Pes.

Please download the CloudSim4.0 again to use the newest one. Cheers.

anyanteh commented 5 years ago

@hetianzhang thanks for the update, tried it last night with both the cloudsim 4.0 and the CloudsimSDN 2.0 for had no luck.followed all the steps you put in the updated readme file as well.Do let me know if there's another way of doing it. cheers

hetianzhang commented 5 years ago

@anyanteh I followed the tutorial and everything works well. Just download the cloudsim-4.0.zip and source code from the release https://github.com/Cloudslab/cloudsimsdn/releases/tag/v2.0.1-beta and put the cloudsim-4.0.jar in the project directory and run "mvn clean install".

anyanteh commented 5 years ago

@hetianzhang having a look right away

anyanteh commented 5 years ago

@hetianzhang can you please help with some explanation to these questions please

  1. the workloads and how the derived; how they used in the simulations
  2. interpretation of the simulations results and the breakdown in the summary console
  3. SDN Datacenter, SDNHost, and their configuration in the setup
  4. Overbooking the Host resources configurations and a few other issues
anyanteh commented 5 years ago

has anyone tried to use ANN on cloudsimSDN-NFV?? your advice will be gladly appreciated .. Thank you

CanVel00 commented 2 years ago

I also wanna use this , if you have please help me

CanVel00 commented 2 years ago

@anyanteh I followed the tutorial and everything works well. Just download the cloudsim-4.0.zip and source code from the release https://github.com/Cloudslab/cloudsimsdn/releases/tag/v2.0.1-beta and put the cloudsim-4.0.jar in the project directory and run "mvn clean install".

I am trying to install the cloudsimsdn but it is troubleshooting ,please guide