Code Monkey home page Code Monkey logo

fogsim's People

Contributors

harshitgupta1337 avatar redowan-mahmud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fogsim's Issues

No EXECUTION SHOWN

as i m trying to execute vr_game_topo but is it showing no pop up window and no graph is drawn and no csp file nothing help me

connecting two fog nodes within the same level

Hi all

does any one knows how to setup a connection between two fog nodes within the same level, So that if a fog node cant handle the module it will send it to the neighbour fog node instead of sending it to the upper-level fog node in ifogsim

thanks in advance

Problems with edges in iFogSim

Hi guys,
I apologize in advance for the question, probably is very silly or maybe not. I try to create my own topologies to make a simulation and see some results but:

  1. I think it's not possible to create both directional edges between two nodes. It's true? (for example one edge from node A to node B and another one from node B to node A independently from the layer in which the nodes are)
  2. It's not possible to create ONE edge between nodes of the same level. it's true? (if I create two fog nodes of level 1 and i want to connect them with an edge. I would like to make a kind of load balancing among fog nodes in the topology)
  3. If I draw my topology and i want to test it to have back results (like the ones in the results folder), how i can do it?
    Can someone help me to take these doubts off? Thank you in advance.

Resource management and scheduling policies

Hi dear Harshit Gupta,
I am new to this field, and I want to know how new resource management and scheduling policies can be successfully added using iFogSim.

Many thanks.

NullPointerException when running CleanFromJson example

When running the CleanFromJson example with any topology other than the routerTopology I get a NullPointer exception and I cannot figure out what is going on, since my topology has very similar characteristics to the router one. Such error also occurs if any other topology already included in the iFogSim package is used. Do you have any idea on why such thing could be happening?

Here is the output:

Starting VRGame...
Sensor type : speed
Sensor type : speed
Sensor type : temperature
Sensor type : temperature
0.0 Submitted application dcns_game
java.lang.NullPointerException
at org.fog.entities.Sensor.transmit(Sensor.java:88)
at org.fog.entities.Sensor.processEvent(Sensor.java:136)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)
at org.fog.examples.CleanFromJson.main(CleanFromJson.java:60)

The topology is as follows:

{
    "nodes": [{
        "level": 0,
        "upBw": 1024,
        "ratePerMips": 67.0,
        "name": "cloud",
        "type": "FOG_DEVICE",
        "mips": 1000,
        "ram": 4096,
        "downBw": 2048
    }, {
        "level": 1,
        "upBw": 1024,
        "ratePerMips": 55.0,
        "name": "gateway1",
        "type": "FOG_DEVICE",
        "mips": 1000,
        "ram": 1024,
        "downBw": 1024
    }, {
        "mean": 50.0,
        "sensorType": "speed",
        "name": "sensor3",
        "type": "SENSOR",
        "distribution": 1,
        "stdDev": 2.0
    }, {
        "level": 1,
        "upBw": 1024,
        "ratePerMips": 55.0,
        "name": "gateway2",
        "type": "FOG_DEVICE",
        "mips": 1000,
        "ram": 1024,
        "downBw": 1024
    }, {
        "mean": 60.0,
        "sensorType": "speed",
        "name": "sensor4",
        "type": "SENSOR",
        "distribution": 1,
        "stdDev": 3.5
    }, {
        "mean": 30.0,
        "sensorType": "temperature",
        "name": "sensor1",
        "type": "SENSOR",
        "distribution": 1,
        "stdDev": 2.5
    }, {
        "mean": 32.0,
        "sensorType": "temperature",
        "name": "sensor2",
        "type": "SENSOR",
        "distribution": 1,
        "stdDev": 1.0
    }],
    "links": [{
        "latency": 50.0,
        "destination": "cloud",
        "source": "gateway1"
    }, {
        "latency": 43.0,
        "destination": "gateway2",
        "source": "sensor3"
    }, {
        "latency": 60.0,
        "destination": "cloud",
        "source": "gateway2"
    }, {
        "latency": 78.0,
        "destination": "gateway2",
        "source": "sensor4"
    }, {
        "latency": 92.0,
        "destination": "gateway1",
        "source": "sensor1"
    }, {
        "latency": 87.0,
        "destination": "gateway1",
        "source": "sensor2"
    }]
}

Is iFogSim calculate end to end latency ?

hi ,

I read the papers , But I could see using iFogSim anyone calculated end to end latency using any application. Apploop shows latency but it is for application only

Kindly guide me. Someone told me to minus each link latency gave from the operational cost than I will get the end to end latency . It correct ?

Issue with VRgame.java while executing in netbeans

run:
Starting VRGame...
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.cloudbus.cloudsim.DatacenterCharacteristics.setId(I)V from class org.fog.entities.FogDevice
at org.fog.entities.FogDevice.(FogDevice.java:128)
at org.fog.test.perfeval.VRGameFog.createFogDevice(VRGameFog.java:224)
at org.fog.test.perfeval.VRGameFog.createFogDevices(VRGameFog.java:125)
at org.fog.test.perfeval.VRGameFog.main(VRGameFog.java:75)
C:\Users\phantom\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)

issues and errors occured while creating more cameras for a fog device in a Fog_based Cloud Network using surveillance system application

While trying to simulate one fog device(one router) using 100 cameras in a Fog-Based Cloud Network in a surveillance system IoT application, I got the following results
"
Placement of operator object_detector on device Router-0 successful.
Placement of operator object_tracker on device Router-0 successful.
Router-0 is shifting object_detector north.
Proxy-Server is shifting object_detector north.
Cloud is shifting object_tracker north.
Cloud is shifting object_detector north.
Placement of operator object_tracker on device Cloud successful.
Placement of operator user_interface on device Cloud successful.
Placement of operator object_detector on device Router-0 successful.
Router-0 is shifting object_detector north.
Cloud is shifting object_tracker north.
Proxy-Server is shifting object_detector north.
java.lang.NullPointerException
at org.fog.placement.ModulePlacementEdgewards.shiftModuleNorth(ModulePlacementEdgewards.java:303)
at org.fog.placement.ModulePlacementEdgewards.placeModulesInPath(ModulePlacementEdgewards.java:207)
at org.fog.placement.ModulePlacementEdgewards.mapModules(ModulePlacementEdgewards.java:73)
at org.fog.placement.ModulePlacementEdgewards.(ModulePlacementEdgewards.java:54)
at org.fog.Simulation.FogSurveillanceSystem.main(FogSurveillanceSystem.java:114)
"
Can anybody help me with some of my following queries based on above simulation results?

  1. What does the following means and signify?
    a. Router-0 is shifting object_detector north.
    b. Cloud is shifting object_tracker north.
    c. Cloud is shifting object_detector north.
  2. Errors
    java.lang.NullPointerException
    at org.fog.placement.ModulePlacementEdgewards.shiftModuleNorth(ModulePlacementEdgewards.java:303)
    at org.fog.placement.ModulePlacementEdgewards.placeModulesInPath(ModulePlacementEdgewards.java:207)
    at org.fog.placement.ModulePlacementEdgewards.mapModules(ModulePlacementEdgewards.java:73)
    at org.fog.placement.ModulePlacementEdgewards.(ModulePlacementEdgewards.java:54)
    at org.fog.Simulation.FogSurveillanceSystem.main(FogSurveillanceSystem.java:114)

For router =1, no of cameras =5, I got the following normal results
" Placement of operator object_detector on device Router-0 successful.
Placement of operator object_tracker on device Router-0 successful.
Router-0 is shifting object_detector north.
Creating motion_detector on device Camera-0-4
Creating user_interface on device Cloud
Creating object_tracker on device Proxy-Server
Creating object_detector on device Proxy-Server
Creating motion_detector on device Camera-0-0
Creating motion_detector on device Camera-0-1
Creating motion_detector on device Camera-0-2
Creating motion_detector on device Camera-0-3"

How to run a topology in ifogsim

Please guide me how to run VRGame topology in ifogsim. Play button in GUI is disabled when i make it enable from the code then "please select Physical Topology file" error occurs.
Is it possible to run this VR Game from GUI.

Unresolved compilation problem error when executing VRGameFog.java example

after setting up the project adding all the necessary jar files I am facing following error

  at org.fog.entities.FogDevice.processActuatorJoined(FogDevice.java:349)  cannot cast from object to double
at org.fog.entities.FogDevice.processOtherEvent(FogDevice.java:277) 
at org.cloudbus.cloudsim.Datacenter.processEvent(Datacenter.java:254)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)
at org.fog.test.CleanFromJson.main(CleanFromJson.java:59)

i have also attached the output screenshot below
ifogsim_error
please help
thank you

In improv version, No energy consumption infomation

Hello, in the previous version, by running the VRGameFog.java, we can get the energy consumption details from the simulation results. In the newest improv and mobility versions, the energy consumed is no longer available. Is there any way to modify the PhyTopoExample.java to get the energy information?

Still in confusion about VR Game simulation.

How you have connected the devices and smartphone to perform VR game simulation. As you have not given any details about the implementation of physical devices. Even same with DCNS Simulation. How you have setup the camera setup to perform the experiment.
When i simulated your vr game with different value of rooms and FogperRoom i didn't got same result as u have documented in excel sheets in output folder . I was just simulated without any physical device. So please give a comolete details about the connection of vr game setup or its just virtual simulation without any physical connections.
Thank you

Load balancing using iFogsim

Hello, I'm currently trying to perform load balancing in a fog computing environment using ifogsim. I read the paper and downloaded the master branch and according to my understanding, I am suppose to perform the load balancing in the method called updateAllocatedMips() in the FogDevice class. I also downloaded the improv branch since it is the newest version. However, in the improv branch's FogDevice class, the updateAllocatedMips() method is removed. I am not sure whether it is possible to use ifogsim to perform load balancing. Should I use the master or improv branch to perform load balancing?

Hi harshitgupta, Can you please explain how can we add new tuple scheduling policy ?

Hi Mukhtar. I apologize for the late reply. In iFogSim, there are 2 levels
of task scheduling.

  1. Scheduling applications among fog devices : You implement an
    application module placement policy and decide which fog device will hold
    what application modules.
  2. Scheduling applications hosted on same device : You implement a Vm
    scheduling policy that decides which application module running on a device
    will receive what amount of resources of the fog node at any given time.
  3. Scheduling tuples on a given application module : You implement a
    Tuple scheduling policy that decides how much of resources of an
    application module should be given to a given tuple executing on the
    application module.

To reduce energy consumption, you may want to do the following :

  1. Consolidate computation on a smaller number of fog devices so that
    fewer fog devices are active and thus spending energy,
  2. Reduce the amount of data transmitted over network. Network
    transmission also consumes energy , though IT HAS NOT BEEN MODELED IN
    FOGSIM YET.
  3. Design application placement policies that select energy efficient
    devices more than energy inefficient ones

Please let me know if you need any specific details. I hope this helps.

On Fri, Aug 25, 2017 at 10:01 AM, mukhtarEdris [email protected]
wrote:

Dear Harshit Gupta and Chiamcy,
I would like to know where I can add my code for task scheduling and what
is your suggestion if my objective is to reduce energy consumption in fog
devices
Can you help me please by sharing some ideas?

Thanks in advance!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADjC4KOxAhC4Ubqm0DL7BMYO8nLN0yS6ks5sbtOdgaJpZM4Nv8yP
.

--
With regards,

HARSHIT GUPTA
PhD Student
Embedded Pervasive Laboratory
Georgia Institute of Technology
Atlanta, GA 30332.
+1 (404) 512-9792
[email protected]

Originally posted by @harshitgupta1337 in #5 (comment)

Performance Analysis between Fog Assisted and Cloud Only

Hello All,
I would like to compare the result of performance metrics ( like total latency, total energy consumed, the network usage, Cost of Execution) between Fog Assisted Network with the use of Cloud Network Only ( without using fog devices).
Please help me share ideas and java code for this work.

Implementation of rsa

Hi guys, i'd like to know if there's a way to implement RSA in ifogsim or simulate the cost of its computation

Installing IfogSim on Mac OS

Hello,
I have problem installing IFogSim on Mac OS version 10.13.4. Can you tell the jdk version and eclipse version compatible for it?

Thanks

Remove explicit specification of instance_count

During scenario setup, user has to specify the number of instances of a given module that are to run on a given device. This is extra information that can be obtained by the system as well, and its specification makes the interface complicated.

Tentative Solution approach : Derive the instance count from the number of modules connected to it.

get energy consumption during running

hello,
i want to get the energy consumption of a specific fog at a specific time(during running the simulation)
i want to detect how the energy change before and after the specific time(because this fog is mobile)
where i should put the code?
any help please!

TUPLES of application modules in iFogSim

Dear all,

I have this question - if a fog node doesn't have enough mips to handle the required cpu for processing a module and its tuples, Can this fog node sends some of the tuples to another fog node for processing and then sends the results back to the original fog node ? OR the module will be moved completely to another fog node that has enough mips to handle the module and all its tuples ??

thanks in advance

Workload and Power Parameters

Hello Harsh,

I would like to thank you for the amazing fog computing simulator, which was a great add-on to my research.

But I have some questions related to the simulator to be able to fully use it:
1- From where have you got the parameters for the smart camera example, for instance, the network latency = 100ms ?
2- In scalability experiments, it was mentioned that the workload has been varied by emitting the tuple of Headset A at twice the rate of Headset B, how did you do that? Because I am trying to vary the workload, but failed to do that.
3- From where are the CPU power values for the smart camera case are conducted ? I have searched a lot for the past couple of weeks, but couldn’t reach a solution.
4- Same applies to the tuple size, from where have you assumed the values?
5- I want to generate workload to test the proposed application under different environmental conditions. For instance, what will be the application delay, if the number of requests are equal to 1000,2000, and so on. I tried to vary the number of cloud users to millions but the application loop delay was the same.
6- How to have fluctuations in energy consumption and application loop delay without changing the configuration (ex. two gateways, each with 4 smart cameras).

Thank you so much Harsh

Wishing you the best

Best Regards
Dalia

Data Collection algorithm

Dear All,

I am working on data collection strategies in fog computing. I wanted to know that what data collection algorithm is adapted in ifogsim? If I want to implement my own data collection algorithm where to place the code in ifogsim( means In Java Class?)

Fog computing

hello,
i need help for project (resource allocation in iot fog networks). Simulation in ifogsim
fog
)

Uplink/Downlink Bandwidth unit of measurement?

Hello, I'm using iFogSim to simulate our fog computing system.

Can you tell me what unit of measurement is used for uplinkBandwidth and downlinkBandwidth in FogDevice class?

Thank you very much 👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.