Tuesday, 7 March 2017

Nebula: Distributed Edge Cloud for Data Intensive Computing

Summary
------------
Many big data applications rely on geographically distributed data, and with exisitng frameworks consisting of centralized computational resources, a non-trivial portion of the execution time and budget for processing such data is consumed in data upload. Another problem with  the exisiting applications is the high overhead involved in instantiating virtualized cloud resources. To address the mentioned problems, the paper proposes Nebula, a distributed cloud infrastructure which uses volunteer nodes as edge clouds for data intensive computing. Large amounts of data processing can be done at the edge which is located near the data, resulting in significant data compression, and thus reducing the time and cost involved in transoporting the data for centralized processing.
Nebula system architecture consists of the following components -
Nebula Central : A front-end web-based portal for volunteer nodes to join the Nebula system, and application deveopers to inject code into the system.
DataStore : A simple per-application storage service consisting of the volunteer nodes that store the data, and the DataStore Master which manages how and where data is stored at the volunteer nodes.
ComputePool : A per-application computation resources service consisting of the volunteer compute nodes, and the ComputePool Master which schedules and coordinates the execution at volunteer compute nodes.
Nebula Monitor : A central system to monitor the performance of the volunteer nodes, and the network characterstics. It is used by the DataStore Master and the ComputePool master for data placement and scheduling.


Strengths
------------
  • The paper is well-detailed and clearly explains and analyzes all the design decisions and performance results.
  • Location-aware data placement and scheduling, and replication helps make Nebula highly efficient, scalable and fault tolerant for data-intensive computations.
  • Provides performance comparison results with the exisiting volunteer based computing platforms - Central Source Central Intermediate Data, and Central Source Distributed Intermediate Data.
  • Proper care is taken to protect volunteer node from malicious code.
  • The design descisions have been well thought-out, considering specific boundary cases as well 
    • Locality-aware scheduler limits the number of tasks per node in each scheduler iteration to avoid many concurrent tasks being assigned to high-speed nodes.
    • To avoid resource wastage, the timeout value(to label a compute node as unresponsive) is set large enough, thus, giving a chance to make progress if the node becomes responsive again quickly.       
  
Weaknesses
---------------
  • The paper assumes that the data has already been stored into Nebula, and decomposition of input files is not needed as the number of files are much more than the number of tasks.
  • Nebula Monitor, DataStore Master, and ComputePool Master may act as single points of failure.
  • Edits or appends on files stored on the DataStore are not supported.
  • The result with 30 volunteer nodes to prove scalability could have been further validated by running an experiment with nodes atleast of the order of hundreds as we can expect thousands of nodes to join a volunteer based system.

Discussion Points
----------------------
  • The paper does not talk about privacy of data/code from the perspective of the person initiating the computation. Should the data/code be encrypted ?
  • Usually, there is a tradeoff between replication and performance in case of no failures. But, the results in the paper show that the runtime with replication is lower even for the no failure case, because with more replicas the ComputePool Master has more choices to assign tasks to compute nodes closer to the data. It would be interesting to see after what replication factor does the performance start decreasing due to replication.


For additional information related to Nebula -
[1] http://dcsg.cs.umn.edu/Projects/Nebula/

Monday, 6 March 2017

SOUL: An Edge-cloud System for Mobile Applications in a Sensor-rich World

Summary:
This paper focuses on challenges faced today in terms of different kinds of sensors available and management of corresponding protocols, how to overcome bottlenecks as far as resource constraints of devices are concerned, access privilege management for the data generated and scalability as far as number of sensors available and their mobile(dynamic) nature. SOUL stands for Sensors of Ubiquitous Life and it moves all the processing(interaction between sensors and actuators) to edge or remote cloud. It always tries to provide applications with best sensor and corresponding actuator available as far as resource availability and proximity is concerned. Access privileges for third party applications to access certain end users sensor-actuator is given at runtime. Paper presents a system for virtualizing sensors-actuator-services triplet to provide consistent and easy access to them. Authors compare the performance of apps and effect on battery life when using android sensor framework vs SOUL aggregate. Authors believe that SOUL will help applications use more(100s) number of sensors with ease of use and without actually effecting the battery of a mobile device as compared to current usage of 1 sensors by around 98.08% of apps analysed in the survey.

Design:

There are two main components of SOUL:
1. SOUL core : Built on top of edge cloud infrastructure(PCloud). It processes all the requests coming in from apps and gathers necessary data from sensor-actuator-service triplet.
2. SOUL engine : It exposes a virtual layer called aggregate to the apps. It runs on user's device and is a middle layer between the app and SOUL core.

Sensor data when requested is first stored in SOUL's sensor datastore before delivering it to the app. This helps SOUL to provide past and current data which will realize into better sensor processing. One more important aspect of SOUL is runtime access permissions for nearby sensors. Authors rightly say that there are few use cases which makes sensor data sharing inevitable. For better user experience SOUL assists users to setup privacy policies via reference monitor. Since all of the processing is done at remote resources, the app code is executed sand-boxed. The access authentication is driven by a Facebook app between the user app and owner of the sensor.

SOUL provides two kinds of data access, 1) Glance, which means that you can get summarized data(based on what sensor owner wants to expose for everyone) even without access permission, 2) Read, for which the app needs to have proper access privilege before requesting data and it will be detailed.

Strengths of the Paper:

1. One very good feature I liked about SOUL is that it uses social network(Facebook) to decide on policy that should be applied to a user. I feel that there's a lot of context between both the parties that can be leveraged, hence there's a lot of scope of finding new heuristic for policy generator.
2. Segregating glance and read type of access request helps SOUL cover a lot of use cases as compared to other similar systems. It uses the fact that there's always some processed data that can be broadcasted to everyone for community benefit.
3. Improved performance because of enhancement in data record transfer through batching.
4. Ability to provide composition of several different sensors as one helps app leverage better dataset. Composed sensor can serve entirely different objective than individual ones.
5. Demonstrated benefits achieved in all the stated key principles well in the evaluation section.

Weaknesses of the Paper:
1. There's no support for sensors connected via USB or Bluetooth, because for that there needs to be a custom SDK which may not support legacy apps and SOUL's one of the key principle is to provide full support to legacy apps.
2. There's no support for apps to specify QoS requirements to SOUL. This can eventually turn out to be a great user-experience feature.
3. Authors extensively(via results) show that SOUL gives better scalability for sensor use but they haven't shown any performance evaluation on how a mobile/moving app will have seemless execution of sensor access.

Discussion Points:
1. Guest token is renew every 2 hours. Authors state that estimating social ties is time consuming because of tracing all the social ties on the owners facebook account. Is there a smarter way to reduce social ties to look at based on past data?
2. Privacy aspect for sensor datastore in SOUL core is not discussed in this paper.
3. There's a room for discussion on discovery mechanism followed by SOUL. Currently there is a directory service hosted on remote cloud. What are few other mechanisms(technologies) that we can look into and their pros and cons?
4. There's not much discussion about why authors chose externalization as a default option for running app's SOUL aggregate. Sometimes it's better to run it locally.

The Design and Implementation of a Wireless Video Surveillance System

Summary:

The current wired surveillance system requires massive cost in the deployment and development of the infrastructure. This restricts the coverage of these cameras. The authors propose a real time distributed wireless video surveillance system, Vigil, that leverages edge computing to scale up the surveillance to many cameras and expand the coverage region in the presence of limited bandwidth. The major challenge in a wireless system is the limited capacity of the wireless spectrum. Vigil aims at minimizing bandwidth consumption without sacrificing surveillance accuracy. It consists of two major components:
  • Edge Computing Nodes (ECN) :  These are small computing platforms like a laptop or embedded system that are attached to the camera. Each ECN receives the video feed from its connected camera and executes initial processing on the the stream like face detection, indexing, compression and storage of video for a short period of time. It uploads the analytics of the feed to the Controller.
  • Controller : The controller is located in the cloud and receives the user queries and then runs a frame scheduling algorithm requesting the ECNs to upload only the relevant video frames. This content aware uploading strategy suppresses a large fractions of redundant data transfer to the cloud thereby saving the bandwidth.

Architecture and Design:

Each ECN calls a frameUtility on the frames to generate an array of analytics data called the util. These analytics are uploaded to the controller. The controller then makes the decision about the most valuable frames and requests the respective ECNs to upload them. Two designs are discussed in the paper:
  • Intra-cluster processing: When a number of cameras are capturing the same scene from different angles, there might be overlapping frames capturing the same object or person. The design suggests a re-identification algorithm that identifies frames with same objects and based on this the controller  executes a scheduling algorithm to  request frames from the ECNs in same cluster.
  • inter-cluster processing: The paper defines a metric, useful objects per second (ops),  that helps maximize the number of useful objects per second delivered to the controller. The ops captures how many useful objects per second the frame at the ith index of the selected image sequence from cluster c will deliver if it is selected for transmission. Thus the design uses the ops for the inter-cluster scheduling.

Strength:

  • The paper provides a very comprehensive description of the design and implementations. The examples were very useful in understanding the frameUtitily, utils and the Vigil DRR algorithm. The initial scoping and problem description was very clear with assumptions clearly stated leaving less room for speculations.
  • good evaluation methodology of providing experimental results of the intra-cluster an inter-cluster algorithms discussed in the paper.
  • The system proposed is flexible in the sense that the definition of the utility can be changed based on the specific use case without changing the underlying algorithms.
  • Vigil outperforms the Round Robin and single camera approaches at high activity level providing a gain of 23-30%.
  • The inter-cluster design outperforms the traditional benchmarks for all activity levels and bandwidth.
  • The system is already deployed at two indoor and one outdoor site for the purpose of testing. 

Weakness:

  • Each camera requires an ECN for connecting to the controller. This is overhead for infrastructure and management. The battery or power requirements of these devices should also be considered.
  • Additional hardware requirements to do video and image processing at the edge nodes. Some of these algorithms can be very computation intensive.

Discussion Points:

  • The re-identification algorithm fails when the objects are very close by in two frames. The author aim to target in future work the switching between traditional algorithm in such cases. How feasible is this switching keeping in mind that these are real time-systems?
  • In outdoor scenarios, face detection or object detection can be tricky since there is a lot of interference and noise.  What will be the accuracy of content-based frame selection in such real life scenarios?

Thursday, 2 March 2017

The Swarm at the Edge of the Cloud

This paper mainly discusses the opportunities and challenges of integrating sensors and cloud computing.

Background

In alignment with the Cloud and its all-present mobile access devices, a third layer of information acquisition and processing devices - called the sensory Swarm - is rapidly emerging, enabled by even more pervasive wireless networking and the introduction of novel ultra-low power technologies. The Swarm gives rise to the true emergence of concepts such as cyber-physical and cyber-biological systems, immersive computing, and augmented reality.

The TerraSwarm Research Center, at UC Berkley is addressing the huge potential (and associated risks) of pervasive integration of smart, networked sensors and actuators into our connected world.

https://www.terraswarm.org/index.html

Important Aspects

Swarm- Set of sensors and actuators devices interacting with users and the physical world.

TerraSwarm- the emerging cyber-physical network which consists of large number of sensors and actuators.

Swarmlets - The TerraSwarm applications which are characterized by their ability to dynamically recruit resources such as sensors, communication networks, computation and information from the cloud.

SwarmOS -  This will serve as a distributed executive and resource manager for TerraSwarm applications. The SwarmOS will mediate the needs of applications for services and clusters of resources where resource clusters may be, for example, a portion of a processor's resources, or a slice of bandwidth.

To achieve the idea of TerraSwarm, the authors propose a 3-level model comprising of Cloud as backbone that will offer extraordinary computing and networking capability, global data analytics, access and archiving. With the middle layer consisting of battery powered mobile devices which acts as the connection between nearby swarm devices and the cloud.

TerraSwarm research is aligned with the 4 major themes.
a. Realization of a “Smart City” scenario.
b. Platform architectures and operating systems.
c. Services, applications, and cloud interaction.
d. Methodologies, models, and tools.

Key Challenges in TerraSwarm

Characteristics of TerraSwarm - Large scale, Distributed, Cyber–physical, Adaptive, Heterogeneous.
  1. The important challenges in TerraSwarm includes generation of massive amounts of the data, Data privacy and security.
  2. A critical research challenge is how to recruit and compose heterogeneous resources, how to dynamically adapt applications to changing resources and contention for resources, and how to share resources without compromising safety, security, or privacy.
  3. Need to develop an energy-efficient hardware support for encryption/decryption, authentication, and hardware-enforced key management.
  4. Aggregation of data without compromise on Data privacy.
  5. Ensuring that different components and subsystems of TerraSwarm can be dynamically recombined yet still function properly will require new, highly advanced development methodologies, models, and tools.
  6. The security of information, actuation, and brokerage is essential to the success of the TerraSwarm vision. 
  7. In the dynamic network of a TerraSwarm system, noninterference properties is very important.

Strengths of the Paper

1. Excellent introduction on the architecture, model, themes of the TerraSwarm.
2. Clearly provides the details about the TerraSwarm vision.
3. Clearly provides details about the challenges that are encountered in TerraSwarm and the issues are discussed to provide more details to the further research.
4. Multiple TerraSwarm applications have been discussed in alignment with the research. Examples includes consumer applications, Health-related applications etc. 

Discussion Points

1. Scalability of the TerraSwarm application is clearly not discussed in the paper.
2. How to do handle the interference between the different swarm devices in the TerraSwarm is not addressed.
3. Even though paper discusses on the ideas of data privacy and protection and suggests on the multiple potential techniques which might be used to increase data privacy, there is still no concrete vision on what exact protocols work for the Terraswarm. The techniques are vaguely discussed.
4. One of the challenges of TerraSwarm is real time transfer of data and processing on the cloud for mission critical systems. How to address this challenge is clearly not discussed.



Wednesday, 1 March 2017

The Swarm at the Edge of the Cloud



The paper presents a vision of the future where thousands of smart sensing devices per person interact with other sensing devices, mobile personal devices and cloud to form a three tier structure that projects a TerraSwarm vision. 
This web of sensing devices form a swarm and the terraswarm application that makes use of such a system are called swarmlets. The authors believe that the swarm based systems can have at least as much impact as web when it was launched. 

Development and management of such a large scale system comes with its own challenges. The paper discuses four themes to address these challenges. The first of the themes focuses on idea of smart cities where swarmlets can drive innovation. The other themes include - 
  1. Platform architecture and operating systems
  2. Services, applications and cloud interaction
  3. Methodologies, models and tools

Key Points :


  • The most important factor in the transition from single application with dedicated set of resources to terraswarm application is the privacy and security of the information being shared in the swarm network.
  • Large scale presence of distributed network of swarm posses a big challenge of management, security and policy control.
  • Such an implementation needs “SwarmOS” which provides a support for continual reconfiguration of applications due to the dynamic nature of the sending devices and solution to the resource management problems when swarmlets are involved in a race condition.
  • Implementation of an adaptive system due to the dynamic nature of the environment.
  • TerraSwarm vision has the potential to disrupt consumer and enterprise market due to its context aware design and the wide range of application domains it can run.

Strengths


  • The paper presents a clear vision of the structure of TerraSwarm and overview of interaction between swarm applications, swarm resources and swarmOS.
  • One of the very strong points of the paper is the acknowledgement of the challenges due to the highly scaled model of the swarm and the ever changing nature of the swarm environment.
  • The 4 theme model presented for addressing the challenges provide an overview for future researchers and swarm application developers.

Weakness and Discussions


  • Data accrued by the sensors is highly sensitive and is at greater risk of being targeted by cyber criminals. Solution to such security risks presented by the integration and sharing of sensor data with multiple third-party vendors are not addressed in this paper.
  • The paper talks about development and configuration of applications which have not been invented yet without giving details about the scope and viability of such applications.
  • Continuously evolving nature of the swarm environment posses a difficulty in testing and verifying functionality of the applications components.
  • The paper does not address the communication and interfacing problems associated with the multilayered application interaction.
  • Potential cloud service failures can disrupt the commercial IT market. However, failure of services which support TerraSwarm applications like healthcare and disaster management can have more serious life threatening consequences. 



mClouds/Stratus



Vision: mClouds – Computing on Clouds of Mobile Devices


We have seen a lot of applications that require high computation and storage like the machine learning algorithms require high processing power and storage. The paper is based on the paradigm “Do it locally if you can”.

The paper is based on vision that with the current rate of growth in the mobile computational hardware in future the mobiles will have sufficient capabilities to run these algorithms. MCloud focuses on running resource intensive applications on collection of mobile devices that are ready to cooperate.

A single mobile device running complete resource intensive application is difficult, so the authors would like to build a cluster of mobile devices that would help with the processing.

Design:
The design of mCloud is pretty simple.
  • The master node that wants to run the application recognize the slaves that are willing to take up computation by broadcasting solicitation messages.
  • Once the slaves are identified, independent tasks are offloaded to the slaves for computation. 
  • Since the network is very dynamic (devices can enter and leave the network) periodic check on the availability of devices should be performed.

If there are any tasks that are not completed because of scarcity of resources or device moving out of network can be executed in the cloud by the master device. The decision of the device before accepting the invitation to run the tasks is based on certain incentives like battery performance of device, the wireless bandwidth usage etc.. The paper states that in future the carriers may provide incentives to the slave mDev for using the wireless bandwidth usage. But for this paper they considered the assumption that the master would pay slaves for their support (not sure how?)

Strength

  •  Most of the processing is pushed towards the edges i.e. onto mobile devices
  • The additional data that is required for applications can be obtained from the cloud at non-peak hours mostly when the device is charging. 
  • Incentives takes care of the utility, time taken to complete the service and battery drain costs.

Weakness
  • Being a vision paper it is mostly focused on stating on what the device cloud might look like and very simple way of making decisions. 
  • While deciding upon the incentives, the paper doesn’t provide clear understanding of how the parameters are defined. Are they static parameters for a specific mobile? Is there any method by which we could decide those parameters dynamically? 
  •  The independent tasks are offloaded by a master to other dev mobiles, but there is no clear understanding of how the independent tasks are defined. Are they specified by the developers or is there any automatic mechanism to decide upon that? 
  •  While offloading the computation to their devices, security is a primary concern. Are the other mobile devices secure to perform the computation? This is not discussed in detail in the paper. 
  • The paper doesn’t discuss about multiple application running within a single device.

Discussion points
  • What are the other potential devices that could take some load of computation?\
  • Will there not be overhead of network within the same devices if we run the discovery protocol periodically 
  •  If more than one device wanted to perform the tasks at the same point of time. Will the current procedure of calculating incentives be helpful?  Is this approach scalable in terms of multiple applications from multiple devices? 
  •  Network formed by mobile devices is dynamic. The paper states that if the cluster of devices are unable to perform the computation for reasons of nodes joining and leaving the network it would fall back to the cloud. But what is the effect on latency if such thing happens.


STRATUS: Assembling Virtual Platforms from Device Clouds


In edge computing we have seen mechanisms to offload the computation to a variety of edge devices i.e. other mobiles, Wi-Fi AP (Paradrop) etc. Most of the mechanisms focus on finding a single machine where the computation can be performed. Stratus on the other hand is a framework that dynamically constructs, synthesizes virtual platform from sets of network enabled devices, device clouds present in the end user environment. Stratus focuses on combining resources in different devices and provide a complete platform for computation i.e. processing can be on a device but memory of another device can be used. Combining the resources from different devices a device cloud is formed.

The issues that can arise with this kind of approach are heterogeneity of the devices, the communication between the devices and coordination between them to perform certain tasks. Since the processing is happening within the devices present in home, some part of security concern can be handled.

Design:
1    When an application is running the location based stratus service allows the application to join the device cloud.
2     The application sends its resource requirement to the stratus master
3    The stratus master with the list of the resources it has, checks with the devices for the availability of those resources
4     The stratus master then creates a virtual platform out of the existing resources and migrate the application running on single device to the virtual platform created.
5     Once the application is finished the virtual platform is terminated.

Strengths

  •  Computation happening within the home. 
  •  Power efficient policy is taking care of the device battery usage.

Weakness
  •  Since it is a vision paper there are no much details about implementation and numbers to support the idea. 
  •  Doesn’t mention much about the master node, how is the master selected and the criteria for a node to be master. 
  •  Master node being Single point of failure, no mechanism is mentioned about this. 
  •  User has to be familiar with the policies that are to be needed for every device. Not so user friendly. 
  •  Fall back mechanism when there are no sufficient resources within the device cloud is not discussed in detail. 
  •  All of the devices must have the Xen hypervisor. How scalable is the solution with this requirement? 
  •  How frequently is the performance index calculated and how is this decision going to affect the location of the resources?


Discussion
  •  What do you think about scalability of such a platform? With increase in the number of devices will the maintenance of the VM’s create any overhead on the master? 
  •  If suppose the resource for constructing a VM are taken from mobile devices, how will VM be handled when the devices are not in reach? Should there be a parameter in performance index to include mobility of the device? 
  •  Is having same file system for all devices feasible?