unit5 iot
unit5 iot
Fog Computing
Fog computing, also known as fogging or fog networking, is a distributed computing architecture
that extends the cloud by placing nodes between the cloud and edge devices:
• How it works
Fog computing uses edge devices to perform computation, storage, and communication locally, and
then routes it over the internet. Fog nodes are physical or virtual devices that reside between smart
end-devices and centralized cloud services.
Fog computing is a form of distributed computing that brings computation and data storage closer to
the network edge, where many IoT devices are located. By doing this, fog computing reduces the
reliance on the cloud for these resource-intensive tasks, improving performance and reducing latency.
characteristics
Fog computing has several characteristics, including:
• Proximity to data sources
Fog computing processes data closer to its source, which reduces latency and improves efficiency.
• Scalability
Fog computing can support a large number of devices, making it ideal for Internet of Things (IoT)
applications.
• Decentralization
1
Fog computing has no central server to manage computing resources and services.
• Heterogeneity
Fog computing collects data from various sources.
• Real-time interaction
Fog computing applications deal with real-time interactions instead of batch processing.
• Low latency
Fog computing keeps analysis closer to the data source, which prevents cascading system failures and
other major problems.
• Security
Fog computing can enhance security by keeping sensitive information from traversing the wider internet.
• Energy efficiency
Fog nodes don't consume a lot of energy because they are dispersed in the network.
• Mobility
Fog computing supports mobility.
Applications
Where Is Fog Computing Needed?
There are many potential applications for fog computing, including:
• Connected cars — collecting and processing data from sensors in real-time to enable features such as
autonomous driving and infotainment.
• Smart cities — monitoring traffic flows, managing public transportation, optimizing energy use, and more.
• Industrial IoT — enhancing efficiency and safety in factories, power plants, mines, and other industrial
infrastructure.
• Connected health — supporting remote patient monitoring, telemedicine, and other healthcare
applications.
• AR/VR — enabling low-latency, high-quality augmented and virtual reality experiences.
Fog computing can be used to support a wide range of applications that require data to be
processed at the edge of the network. In many cases, moving compute and storage resources
closer to the data source improves performance and reduces costs. For example, connected cars
generate a significant volume of data that needs to be analyzed in real-time to enable features
such as autonomous driving.
2
Who Uses Fog Computing?
Fog computing is often used in cases where real-time response is needed, such as with industrial control
systems, video surveillance, or autonomous vehicles. It can also be used to offload computationally
intensive tasks from centralized servers or to provide backup and redundancy in case of network failure.
Issues or challenges
Fog computing, a technology that brings cloud applications to IoT devices, faces several challenges, including:
• Privacy
Fog nodes collect a lot of information from end users, making it difficult to protect their privacy. If an
intruder gains access to a fog node, it can be difficult to stop them.
• Security
Fog computing systems are susceptible to cyber-attacks because they contain data from both the cloud
and IoT environments.
• Latency
Latency is a major challenge in fog computing because mission-critical environments are often sensitive to
delay.
• Resource management
Resource management is a key challenge in fog computing, including tasks scheduling and resource
allocation.
• Data collection and protection
Data collection and protection is challenging in different conditions, such as environmental and
geographical limitations.
• Resource selection
Selecting the best resource for processing, saving, and transferring data is a challenge.
Other challenges include:
• Network bandwidth allocation policies
• Trust and fault tolerance
• Overhead management
• Mobility management
• Interoperability
• Scalability
3
Why Is Fog Computing Beneficial for IoT?
The internet of things (IoT) is a system of interconnected devices, sensors, and software
components that share data and information. The power of the IoT comes from its ability to
collect and analyze massive volumes of data from various sources. This data can be used to
improve efficiency, optimize operations and make better decisions.
Fog computing in IoT is a decentralized computing model that brings computation and data
storage closer to the edge of the network. In other words, fog computing moves processing
power and data storage away from centralized server farms and into local networks where
IoT devices are located.
Latency: Sending data to the cloud can take a lot of time, which is not ideal for
applications that need quick responses. Fog computing processes data closer to where it's
generated, reducing delay and enabling faster decisions.
Security: Transferring sensitive data to the cloud increases risk. Processing data locally (at
the edge) helps protect data and allows quicker responses to security threats.
Data Integrity: Storing and processing data in the cloud can pose risks to its integrity,
especially since cloud providers may not disclose where data is physically stored. Local
processing reduces the risk of data corruption or unauthorized access.
Data Transfer and Bandwidth Cost: Sending large amounts of data to the cloud can be
slow and expensive. For example, offshore oil platforms generate huge amounts of data
daily, which can be costly and time-consuming to transfer. Fog computing cuts down on
these costs and speeds up processing.
4
What Are the Advantages and Disadvantages of Fog Computing?
5
Myths of fog computing
Fog computing is an exciting and evolving field, but like any technology, it comes with its share of
myths and misconceptions. Here are a few common myths about fog computing:
1. Fog Computing is the Same as Edge Computing: While both fog and edge computing involve
processing data closer to the data source, fog computing typically involves a more decentralized
approach, often using multiple nodes to process data, whereas edge computing usually refers to
processing data directly on devices at the network's edge.
2. Fog Computing Will Replace Cloud Computing: This is not true. Fog computing complements cloud
computing by addressing issues like latency and bandwidth usage, but it doesn't replace the
centralized data processing and storage capabilities of the cloud.
3. Fog Computing is Only for IoT: While fog computing is often associated with the Internet of Things
(IoT), it can be applied to a wide range of applications beyond IoT, including smart cities,
healthcare, and industrial automation.
4. Fog Computing is Too Complex to Implement: Implementing fog computing can be complex, but
with the right tools and expertise, it can be effectively integrated into existing systems to enhance
performance and efficiency.
5. Fog Computing is Not Secure: Security is a concern for any computing architecture, but fog
computing can be designed with robust security measures to protect data at every point in the
network.
6. Fog Computing is Only for Large Enterprises: While large enterprises can benefit significantly from
fog computing, smaller organizations and even individual developers can also leverage its
capabilities to improve their operations and services.
6
Fog computing is used for a variety of reasons, including:
• Real-time response
Fog computing is used in situations that require a real-time response, such as autonomous
vehicles, video surveillance, and industrial control systems.
• Data processing
Fog computing allows data to be processed closer to the source, which can improve network
bandwidth, reduce latency, and increase data processing efficiency.
• Data security
Fog computing can enhance data security by processing data locally, which can improve privacy
and security.
• Backup and redundancy
Fog computing can be used to provide backup and redundancy in case of network failure.
• Offloading tasks
Fog computing can be used to offload computationally intensive tasks from centralized servers.
The main difference between fog and edge computing is that fog computing extends cloud
services and connectivity to devices at the edge of the network. In contrast, edge computing
brings computation and data storage closer to devices at the edge of the network. In
contrast, edge computing brings computation and data storage closer to devices at the edge
of the network.
7
Difference Between Edge Computing and Fog Computing
Edge Computing Fog Computing
Less scalable than fog computing. Highly scalable when compared to edge computing.
Nodes are installed far away from the Nodes in this computing are installed closer to the
cloud. cloud(remote database where data is stored).
High privacy. Attacks on data are very low. The probability of data attacks is higher.
8
Here are some examples of fog computing in the Internet of
Things (IoT):
• Smart grid
Fog computing can be used to create a smart grid architecture that delivers services and
applications more efficiently.
• Data analysis
Fog computing can perform massive IoT data analytics.
• Communication
Fog computing uses a distributed network with individual devices as points of contact
between users and data sources. This allows for faster communication speeds.
• Resource manager
A resource manager in fog computing allocates and deallocates resources to various nodes,
schedules data transfer, and takes care of data backup.
Conclusion
Finally, fog computing delivers cloud capabilities to the edge of networks, increasing
efficiency, lowering latency, and improving data processing capabilities. It is perfect for real-
time data analysis, low-latency applications such as IoT, and situations where data privacy
and security are critical. While it provides scalability and lower bandwidth usage, it also has
issues in managing data congestion and increasing power consumption. Fog computing is
making progress in applications such as healthcare monitoring, industrial IoT, and real-time
analytics across a variety of industries.
9
• Gateway-level fog computing runs on devices that act as a gateway between the
edge and the cloud. These devices can be used to manage traffic and ensure that
only relevant data is sent to the cloud.
• Cloud-level fog computing runs on servers or appliances located in the cloud. These
devices can be used to process data before it is sent to end users.
10